summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schiffbauer <mschiff@gentoo.org>2020-10-08 01:20:04 +0200
committerMarc Schiffbauer <mschiff@gentoo.org>2020-10-08 01:20:04 +0200
commit1e4287bad250023635809ee2f9a960728cea0c92 (patch)
treee91fffcea1a0ed998de3cb2953855cf308e90939 /app-admin
parentdev-perl/Cpanel-JSON-XS: Bump to version 4.240.0 (diff)
downloadgentoo-1e4287bad250023635809ee2f9a960728cea0c92.tar.gz
gentoo-1e4287bad250023635809ee2f9a960728cea0c92.tar.bz2
gentoo-1e4287bad250023635809ee2f9a960728cea0c92.zip
app-admin/restart-services: add new version 0.16.1
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/restart-services/Manifest1
-rw-r--r--app-admin/restart-services/restart-services-0.16.1.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/app-admin/restart-services/Manifest b/app-admin/restart-services/Manifest
index 52ddca91c897..c0262fe38f56 100644
--- a/app-admin/restart-services/Manifest
+++ b/app-admin/restart-services/Manifest
@@ -1,2 +1,3 @@
DIST restart-services-0.15.2.tgz 23688 BLAKE2B e043b872d55109ad176a6437006cf581a993e72e460bb034625ed612f9ceca85ef91a20e90f23bcecc964caa527cfa4bc39d97c52487b7bf92eec21dc2e35c48 SHA512 afe7c96aabf61d664460d5d68447df09b3d9a54098887727db796821220f5ddd5a3b5030d995d5a6c3128e4a2b8494b9a0a3b86b5c805d56c0e201058ad04327
DIST restart-services-0.16.0.tgz 24531 BLAKE2B fea233755d214a502096551226078a7fe15a75ccf937bbf8a75c78b7a294b5977da453f54f37e3d7e65f131e49e018bf08bec6245a3aa46ec6c3bec94019f5ad SHA512 57b3514132c02839cafbfd9152445a6482cf3591e22d18436a4d894061b59d2495863a912a87495559e9945a39715e7e798dca44dafd52c26b5412d749f37cc2
+DIST restart-services-0.16.1.tgz 24569 BLAKE2B 210ffebf321d9524ee3176ac8d56e2579c9e1686bd11d484be02600aab70347c522d5e7f8826b103ebd37f3e21c11130e0717f033ac0af3e938c4cece1a036bb SHA512 d4657120860ec26a2d9e6cdd935d720dac2bff50131fc9e8efd69b4768a5fd9afa4ee24b367a002122f3e1b335e9c99cc6b41c801c0285252e6f5e701d027de1
diff --git a/app-admin/restart-services/restart-services-0.16.1.ebuild b/app-admin/restart-services/restart-services-0.16.1.ebuild
new file mode 100644
index 000000000000..874ac8f35520
--- /dev/null
+++ b/app-admin/restart-services/restart-services-0.16.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Tool to manage OpenRC services that need to be restarted"
+HOMEPAGE="https://dev.gentoo.org/~mschiff/restart-services/"
+SRC_URI="https://dev.gentoo.org/~mschiff/src/${PN}/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ app-admin/lib_users
+ sys-apps/openrc
+ app-portage/portage-utils
+"
+
+src_install() {
+ dosbin restart-services
+ doman restart-services.1
+ keepdir /etc/restart-services.d
+ insinto /etc
+ doins restart-services.conf
+ dodoc README CHANGES
+
+ sed -i 's/^#include/include/' "${D}"/etc/restart-services.conf
+ cat>"${D}"/etc/restart-services.d/00-local.conf<<-EOF
+ # You may put your local changes here or in any other *.conf file
+ # in this directory so you can leave /etc/restart-services.conf as is.
+ # Example:
+ # *extend* SV_ALWAYS to match 'myservice'
+ # SV_ALWAYS+=( myservice )
+ EOF
+}
+
+pkg_postinst() {
+ local MAJOR MINOR
+ # migrate config data for versions < 0.13.2
+ if [[ $REPLACING_VERSIONS ]]; then
+ MAJOR=${REPLACING_VERSIONS%%.*}
+ MINOR=${REPLACING_VERSIONS%.*}
+ MINOR=${MINOR#*.}
+
+ if [[ $MAJOR -eq 0 && $MINOR -lt 14 ]]; then
+ einfo "Checking for old config"
+ if [[ -f /etc/restart_services.conf ]]; then
+ ewarn "Old config file found: /etc/restart_services.conf"
+ ewarn "It will be ignored so please migrate settings to a file in"
+ ewarn "/etc/restart-services.d/ and/or remove /etc/restart_services.conf"
+ fi
+ if [[ -d /etc/restart_services.d ]]; then
+ ewarn "Old config directory found: /etc/restart_services.d"
+ ewarn "It will be ignored so please migrate files to /etc/restart-services.d"
+ ewarn "and/or remove /etc/restart_services.d"
+ fi
+ einfo "done"
+ fi
+ fi
+}