1
0
mirror of synced 2024-12-22 12:50:33 +01:00

app-misc/repositorg: OpenRC script

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
Horea Christian 2020-06-11 08:15:18 -04:00
parent df6d1f2fde
commit 2fe17ee8a3
No known key found for this signature in database
GPG Key ID: EAA9223EE3BB378A
3 changed files with 22 additions and 2 deletions

View File

@ -1,2 +1,6 @@
11 Jun 2020; <chymera@gentoo.org> +files/repositorg_uuid.initd,
repositorg-9999.ebuild:
app-misc/repositorg: OpenRC script
12 May 2019; <chymera@gentoo.org> +metadata.xml, repositorg-9999.ebuild:
app-misc/repositorg: Updated metadata and systemd USE functionality

View File

@ -0,0 +1,14 @@
#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="repositorg daemon"
description=""
supervisor=supervise-daemon
pidfile=/var/run/repositorg_uuid.pid
command="/usr/bin/repositorg_uuid"
command_args="${repositorg_args}"
command_user="${RC_SVCNAME#*.}"
output_log="/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"

View File

@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=(python2_7 python3_{4,5,6})
PYTHON_COMPAT=(python3_{6,7,8})
inherit distutils-r1 git-r3 systemd
@ -28,6 +28,8 @@ python_install() {
distutils-r1_python_install
if use systemd; then
systemd_newunit "${FILESDIR}/${PN}_uuid.service" "${PN}_uuid@.service"
else
newinitd "${FILESDIR}/${PN}_uuid.initd" "${PN}_uuid"
fi
dobin repositorg_uuid
}