1 |
commit: 21db5496bfd5cc77395acae854025818dbd9d644 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 3 08:02:12 2018 +0000 |
4 |
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 3 08:02:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21db5496 |
7 |
|
8 |
app-admin/aerospike-amc-community: Fix init script |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
app-admin/aerospike-amc-community/Manifest | 1 - |
13 |
.../aerospike-amc-community-3.6.13.ebuild | 63 ---------------------- |
14 |
...ld => aerospike-amc-community-4.0.19-r1.ebuild} | 2 +- |
15 |
.../aerospike-amc-community-4.0.19.ebuild | 24 --------- |
16 |
.../files/{amc.init.3 => amc.init.4} | 5 +- |
17 |
5 files changed, 2 insertions(+), 93 deletions(-) |
18 |
|
19 |
diff --git a/app-admin/aerospike-amc-community/Manifest b/app-admin/aerospike-amc-community/Manifest |
20 |
index 69a1f3701c3..a2242f18258 100644 |
21 |
--- a/app-admin/aerospike-amc-community/Manifest |
22 |
+++ b/app-admin/aerospike-amc-community/Manifest |
23 |
@@ -1,3 +1,2 @@ |
24 |
DIST aerospike-amc-community-3.6.13.all.x86_64.deb 1436414 BLAKE2B cd823dd1c546fe69948ef3f77fa8bf0a68a8d95ed3ee778272b84c39b1b1bc4e5afef803931ce859fd957421f4816358590a3c1e0845fdc524a0f029b52ce828 SHA512 8077f8c51aab39ca701eb1ada633a3a378e02fed39ef2e565fed57fa57cf12da6c69a2b3d93e179110c29043a0a5a114512d30752eab6356e1b819ae490d23bb |
25 |
-DIST aerospike-amc-community-4.0.17.tar.gz 7868123 BLAKE2B 86ada2e5af69b9306dc10b5386d21bd4459fff8a05672f289511f1b4efc27b1bd114cdd7bf9e5d6656fa3911ca111c8eabaa178a564f2ff9e6ab64c4a88a0145 SHA512 3dce8e8d435f70685498083d50818c1655faa61125391424c0ff99ea50618df4f9f3c3ddc7be5c64aba7118e75c5c3f24f7c5bfe834ba7fb504fa7d72bd00db3 |
26 |
DIST aerospike-amc-community-4.0.19.tar.gz 7868527 BLAKE2B 69835bdf3d7f1a4b23cd63bb7344c50b6bbbdc04fd55b2d6ec5783a429a442fa6cdf985c77cb4ac73f8ac0663ed2524c8d7a853e970cc086335cf810fd9eaecf SHA512 821de8569bf020b9a2b829e71aab5d48d25639620468aa0b3ed28dc24e0d57bc61be60939425c0a69c418602fa2fbf5ef60f1870edb3f04fa40a2a2aca281218 |
27 |
|
28 |
diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13.ebuild |
29 |
deleted file mode 100644 |
30 |
index 5e04b68567f..00000000000 |
31 |
--- a/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,63 +0,0 @@ |
34 |
-# Copyright 1999-2016 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=5 |
38 |
-inherit eutils user |
39 |
- |
40 |
-DESCRIPTION="Web UI based monitoring tool for Aerospike Community Edition Server" |
41 |
-HOMEPAGE="http://www.aerospike.com" |
42 |
-SRC_URI="http://www.aerospike.com/artifacts/${PN}/${PV}/${P}.all.x86_64.deb" |
43 |
- |
44 |
-LICENSE="Apache-2.0" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~amd64" |
47 |
-IUSE="" |
48 |
- |
49 |
-RDEPEND="app-crypt/gcr |
50 |
- dev-python/eventlet |
51 |
- dev-python/flask |
52 |
- dev-python/greenlet |
53 |
- dev-python/setproctitle |
54 |
- www-servers/gunicorn" |
55 |
-DEPEND="${RDEPEND}" |
56 |
- |
57 |
-src_unpack() { |
58 |
- default |
59 |
- mkdir "${P}" |
60 |
- tar -xf data.tar.xz -C "${S}" || die |
61 |
- tar -xzf "${S}"/opt/amc.tar.gz -C "${S}"/opt/ || die |
62 |
-} |
63 |
- |
64 |
-src_install() { |
65 |
- mv opt/amc/amc/* opt/amc/ |
66 |
- rm -rf opt/amc/amc |
67 |
- rm -f opt/amc/install |
68 |
- rm -f opt/amc/bin/uninstall |
69 |
- rm -f opt/amc/bin/amc_*.sh |
70 |
- rm -f opt/amc/bin/gunicorn |
71 |
- rm -rf opt/amc/server/site-packages/ |
72 |
- rm -rf opt/amc/server/setups/ |
73 |
- |
74 |
- insinto /etc/logrotate.d |
75 |
- newins opt/amc/config/logrotate amc |
76 |
- rm -f opt/amc/config/logrotate |
77 |
- |
78 |
- insinto /etc/cron.daily |
79 |
- newins opt/amc/config/logcron amc |
80 |
- rm -f opt/amc/config/logcron |
81 |
- |
82 |
- sed -e 's@/tmp/amc.pid@/run/amc.pid@g' -i opt/amc/config/gunicorn_config.py || die |
83 |
- |
84 |
- insinto /etc/amc/config |
85 |
- doins -r opt/amc/config/* |
86 |
- rm -rf opt/amc/config/ |
87 |
- |
88 |
- echo "${PV}" > opt/amc/amc_version |
89 |
- |
90 |
- insinto /opt/amc/ |
91 |
- doins -r opt/amc/* |
92 |
- |
93 |
- keepdir /var/log/amc |
94 |
- |
95 |
- newinitd "${FILESDIR}"/amc.init amc |
96 |
-} |
97 |
|
98 |
diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.17.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild |
99 |
similarity index 92% |
100 |
rename from app-admin/aerospike-amc-community/aerospike-amc-community-4.0.17.ebuild |
101 |
rename to app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild |
102 |
index ee583da80e5..d1d21c1ab7b 100644 |
103 |
--- a/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.17.ebuild |
104 |
+++ b/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild |
105 |
@@ -20,5 +20,5 @@ S=$WORKDIR |
106 |
src_install() { |
107 |
cp -r "$S/"* "$D" |
108 |
rm "${D}/etc/init.d/*" |
109 |
- newinitd "${FILESDIR}/amc.init.3" amc |
110 |
+ newinitd "${FILESDIR}/amc.init.4" amc |
111 |
} |
112 |
|
113 |
diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19.ebuild |
114 |
deleted file mode 100644 |
115 |
index ee583da80e5..00000000000 |
116 |
--- a/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19.ebuild |
117 |
+++ /dev/null |
118 |
@@ -1,24 +0,0 @@ |
119 |
-# Copyright 1999-2018 Gentoo Foundation |
120 |
-# Distributed under the terms of the GNU General Public License v2 |
121 |
- |
122 |
-EAPI=6 |
123 |
-inherit eutils user |
124 |
- |
125 |
-DESCRIPTION="Web UI based monitoring tool for Aerospike Community Edition Server" |
126 |
-HOMEPAGE="http://www.aerospike.com" |
127 |
-SRC_URI="http://www.aerospike.com/download/amc/${PV}/artifact/linux -> ${P}.tar.gz" |
128 |
-LICENSE="Apache-2.0" |
129 |
-SLOT="0" |
130 |
-KEYWORDS="~amd64" |
131 |
-IUSE="" |
132 |
- |
133 |
-RDEPEND="" |
134 |
-DEPEND="${RDEPEND}" |
135 |
- |
136 |
-S=$WORKDIR |
137 |
- |
138 |
-src_install() { |
139 |
- cp -r "$S/"* "$D" |
140 |
- rm "${D}/etc/init.d/*" |
141 |
- newinitd "${FILESDIR}/amc.init.3" amc |
142 |
-} |
143 |
|
144 |
diff --git a/app-admin/aerospike-amc-community/files/amc.init.3 b/app-admin/aerospike-amc-community/files/amc.init.4 |
145 |
similarity index 89% |
146 |
rename from app-admin/aerospike-amc-community/files/amc.init.3 |
147 |
rename to app-admin/aerospike-amc-community/files/amc.init.4 |
148 |
index 6fd8097b18f..87405a83c70 100644 |
149 |
--- a/app-admin/aerospike-amc-community/files/amc.init.3 |
150 |
+++ b/app-admin/aerospike-amc-community/files/amc.init.4 |
151 |
@@ -11,11 +11,8 @@ pidfile=${run_dir}/${SVCNAME}.pid |
152 |
user=${user:-root} |
153 |
group=${group:-root} |
154 |
start_stop_daemon_args="--user ${user} --group ${group}" |
155 |
+command_args="--daemon" |
156 |
|
157 |
depend() { |
158 |
use net |
159 |
} |
160 |
- |
161 |
-start_post() { |
162 |
- ewaitfile 60 "${pidfile}" |
163 |
-} |