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:
parent
df6d1f2fde
commit
2fe17ee8a3
@ -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
|
||||
|
14
app-misc/repositorg/files/repositorg_uuid.initd
Normal file
14
app-misc/repositorg/files/repositorg_uuid.initd
Normal 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"
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user