1 |
commit: 86c8d8cff2cf19c2fcd505218fbdbb493dfbed88 |
2 |
Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 26 14:01:58 2020 +0000 |
4 |
Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 26 14:02:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86c8d8cf |
7 |
|
8 |
app-admin/restart-services: bump version |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.2 |
11 |
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> |
12 |
|
13 |
app-admin/restart-services/Manifest | 1 + |
14 |
.../restart-services-0.17.0.ebuild | 63 ++++++++++++++++++++++ |
15 |
2 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/restart-services/Manifest b/app-admin/restart-services/Manifest |
18 |
index c0262fe38f5..2bbacc476cb 100644 |
19 |
--- a/app-admin/restart-services/Manifest |
20 |
+++ b/app-admin/restart-services/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST restart-services-0.15.2.tgz 23688 BLAKE2B e043b872d55109ad176a6437006cf581a993e72e460bb034625ed612f9ceca85ef91a20e90f23bcecc964caa527cfa4bc39d97c52487b7bf92eec21dc2e35c48 SHA512 afe7c96aabf61d664460d5d68447df09b3d9a54098887727db796821220f5ddd5a3b5030d995d5a6c3128e4a2b8494b9a0a3b86b5c805d56c0e201058ad04327 |
23 |
DIST restart-services-0.16.0.tgz 24531 BLAKE2B fea233755d214a502096551226078a7fe15a75ccf937bbf8a75c78b7a294b5977da453f54f37e3d7e65f131e49e018bf08bec6245a3aa46ec6c3bec94019f5ad SHA512 57b3514132c02839cafbfd9152445a6482cf3591e22d18436a4d894061b59d2495863a912a87495559e9945a39715e7e798dca44dafd52c26b5412d749f37cc2 |
24 |
DIST restart-services-0.16.1.tgz 24569 BLAKE2B 210ffebf321d9524ee3176ac8d56e2579c9e1686bd11d484be02600aab70347c522d5e7f8826b103ebd37f3e21c11130e0717f033ac0af3e938c4cece1a036bb SHA512 d4657120860ec26a2d9e6cdd935d720dac2bff50131fc9e8efd69b4768a5fd9afa4ee24b367a002122f3e1b335e9c99cc6b41c801c0285252e6f5e701d027de1 |
25 |
+DIST restart-services-0.17.0.tgz 25643 BLAKE2B 5999e12e38207d00266928504da05c00482c8297b7fee634f302f09cfa09e206bcf9d5a558d2a91e5de1d97318025fa995fbc3a61f0d0e74b8dfb1af3db8670b SHA512 c11ca431fbbc6899ab268e8979049144448479d953ed7373cc7483cca2c03cd4041a1ca1e47c0e810f91a18a43aa32cc305a4ea791e8b992246f972e0fbb19ab |
26 |
|
27 |
diff --git a/app-admin/restart-services/restart-services-0.17.0.ebuild b/app-admin/restart-services/restart-services-0.17.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8ea339b4acf |
30 |
--- /dev/null |
31 |
+++ b/app-admin/restart-services/restart-services-0.17.0.ebuild |
32 |
@@ -0,0 +1,63 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+DESCRIPTION="Tool to manage OpenRC and systemd services that need to be restarted" |
39 |
+HOMEPAGE="https://dev.gentoo.org/~mschiff/restart-services/" |
40 |
+SRC_URI="https://dev.gentoo.org/~mschiff/src/${PN}/${P}.tgz" |
41 |
+ |
42 |
+LICENSE="GPL-3" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+DEPEND="" |
48 |
+RDEPEND=" |
49 |
+ app-admin/lib_users |
50 |
+ || ( sys-apps/openrc sys-apps/systemd ) |
51 |
+ app-portage/portage-utils |
52 |
+" |
53 |
+ |
54 |
+src_install() { |
55 |
+ dosbin restart-services |
56 |
+ doman restart-services.1 |
57 |
+ keepdir /etc/restart-services.d |
58 |
+ insinto /etc |
59 |
+ doins restart-services.conf |
60 |
+ dodoc README CHANGES |
61 |
+ |
62 |
+ sed -i 's/^#include/include/' "${D}"/etc/restart-services.conf |
63 |
+ cat>"${D}"/etc/restart-services.d/00-local.conf<<-EOF |
64 |
+ # You may put your local changes here or in any other *.conf file |
65 |
+ # in this directory so you can leave /etc/restart-services.conf as is. |
66 |
+ # Example: |
67 |
+ # *extend* SV_ALWAYS to match 'myservice' |
68 |
+ # SV_ALWAYS+=( myservice ) |
69 |
+ EOF |
70 |
+} |
71 |
+ |
72 |
+pkg_postinst() { |
73 |
+ local MAJOR MINOR |
74 |
+ # migrate config data for versions < 0.13.2 |
75 |
+ if [[ $REPLACING_VERSIONS ]]; then |
76 |
+ MAJOR=${REPLACING_VERSIONS%%.*} |
77 |
+ MINOR=${REPLACING_VERSIONS%.*} |
78 |
+ MINOR=${MINOR#*.} |
79 |
+ |
80 |
+ if [[ $MAJOR -eq 0 && $MINOR -lt 14 ]]; then |
81 |
+ einfo "Checking for old config" |
82 |
+ if [[ -f /etc/restart_services.conf ]]; then |
83 |
+ ewarn "Old config file found: /etc/restart_services.conf" |
84 |
+ ewarn "It will be ignored so please migrate settings to a file in" |
85 |
+ ewarn "/etc/restart-services.d/ and/or remove /etc/restart_services.conf" |
86 |
+ fi |
87 |
+ if [[ -d /etc/restart_services.d ]]; then |
88 |
+ ewarn "Old config directory found: /etc/restart_services.d" |
89 |
+ ewarn "It will be ignored so please migrate files to /etc/restart-services.d" |
90 |
+ ewarn "and/or remove /etc/restart_services.d" |
91 |
+ fi |
92 |
+ einfo "done" |
93 |
+ fi |
94 |
+ fi |
95 |
+} |