1 |
commit: 03963fb7dad6d6d73bc380fed4cfb700ef87c437 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 14:37:06 2016 +0000 |
4 |
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 14:37:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03963fb7 |
7 |
|
8 |
app-admin/aerospike-amc-community: Initial import, borrowed from the adjust overlay |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-admin/aerospike-amc-community/Manifest | 1 + |
13 |
.../aerospike-amc-community-3.6.8.ebuild | 64 ++++++++++++++++++++++ |
14 |
app-admin/aerospike-amc-community/files/amc.init | 24 ++++++++ |
15 |
app-admin/aerospike-amc-community/metadata.xml | 7 +++ |
16 |
4 files changed, 96 insertions(+) |
17 |
|
18 |
diff --git a/app-admin/aerospike-amc-community/Manifest b/app-admin/aerospike-amc-community/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..f2f48d8 |
21 |
--- /dev/null |
22 |
+++ b/app-admin/aerospike-amc-community/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST aerospike-amc-community-3.6.8.all.x86_64.deb 1429404 SHA256 7c29269746a806f04c3828188a249af6407135ebcf151fe55550d84d2e8dc464 SHA512 de44333471307410461bd53266b84fdc9fa92f7115012eb4b29b3ad415dd471ca3d9bf1a7c52bec7063df02a7e600dce9366910a089751dd19163cc212574d28 WHIRLPOOL 134a8f6dbd006b9918be787f090ca762b45b4c9083f43b6f039b3f33ab1a43ef38be30e3fa31c137185e35672620eace1a2cff7615091f9a9bfab955dfa1f914 |
25 |
|
26 |
diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.8.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.8.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..942b7c9 |
29 |
--- /dev/null |
30 |
+++ b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.8.ebuild |
31 |
@@ -0,0 +1,64 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+inherit eutils user |
38 |
+ |
39 |
+DESCRIPTION="Web UI based monitoring tool for Aerospike Community Edition Server" |
40 |
+HOMEPAGE="http://www.aerospike.com" |
41 |
+SRC_URI="http://www.aerospike.com/artifacts/${PN}/${PV}/${P}.all.x86_64.deb" |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RDEPEND="app-crypt/gcr |
49 |
+ dev-python/eventlet |
50 |
+ dev-python/flask |
51 |
+ dev-python/greenlet |
52 |
+ dev-python/setproctitle |
53 |
+ www-servers/gunicorn" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+ |
56 |
+src_unpack() { |
57 |
+ default |
58 |
+ mkdir "${P}" |
59 |
+ tar -xf data.tar.xz -C "${S}" || die |
60 |
+ tar -xzf "${S}"/opt/amc.tar.gz -C "${S}"/opt/ || die |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ mv opt/amc/amc/* opt/amc/ |
65 |
+ rm -rf opt/amc/amc |
66 |
+ rm -f opt/amc/install |
67 |
+ rm -f opt/amc/bin/uninstall |
68 |
+ rm -f opt/amc/bin/amc_*.sh |
69 |
+ rm -f opt/amc/bin/gunicorn |
70 |
+ rm -rf opt/amc/server/site-packages/ |
71 |
+ rm -rf opt/amc/server/setups/ |
72 |
+ |
73 |
+ insinto /etc/logrotate.d |
74 |
+ newins opt/amc/config/logrotate amc |
75 |
+ rm -f opt/amc/config/logrotate |
76 |
+ |
77 |
+ insinto /etc/cron.daily |
78 |
+ newins opt/amc/config/logcron amc |
79 |
+ rm -f opt/amc/config/logcron |
80 |
+ |
81 |
+ sed -e 's@/tmp/amc.pid@/run/amc.pid@g' -i opt/amc/config/gunicorn_config.py || die |
82 |
+ |
83 |
+ insinto /etc/amc/config |
84 |
+ doins -r opt/amc/config/* |
85 |
+ rm -rf opt/amc/config/ |
86 |
+ |
87 |
+ echo "${PV}" > opt/amc/amc_version |
88 |
+ |
89 |
+ insinto /opt/amc/ |
90 |
+ doins -r opt/amc/* |
91 |
+ |
92 |
+ keepdir /var/log/amc |
93 |
+ |
94 |
+ newinitd "${FILESDIR}"/amc.init amc |
95 |
+} |
96 |
|
97 |
diff --git a/app-admin/aerospike-amc-community/files/amc.init b/app-admin/aerospike-amc-community/files/amc.init |
98 |
new file mode 100644 |
99 |
index 0000000..2fb535c |
100 |
--- /dev/null |
101 |
+++ b/app-admin/aerospike-amc-community/files/amc.init |
102 |
@@ -0,0 +1,24 @@ |
103 |
+#!/sbin/runscript |
104 |
+# Copyright 1999-2014 Gentoo Foundation |
105 |
+# Distributed under the terms of the GNU General Public License v2 |
106 |
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongodb.initd-r2,v 1.2 2014/05/26 08:03:45 ultrabug Exp $ |
107 |
+ |
108 |
+config_file=${config_file:-/etc/amc/config/gunicorn_config.py} |
109 |
+run_dir=${run_dir:-/run} |
110 |
+ |
111 |
+command="/usr/bin/gunicorn" |
112 |
+command_args="--daemon --config ${config_file} flaskapp:app" |
113 |
+command_background="true" |
114 |
+pidfile=${run_dir}/${SVCNAME}.pid |
115 |
+user=${user:-root} |
116 |
+group=${group:-root} |
117 |
+start_stop_daemon_args="--user ${user} --group ${group}" |
118 |
+required_files="${config_file}" |
119 |
+ |
120 |
+depend() { |
121 |
+ use net |
122 |
+} |
123 |
+ |
124 |
+start_post() { |
125 |
+ ewaitfile 60 "${pidfile}" |
126 |
+} |
127 |
|
128 |
diff --git a/app-admin/aerospike-amc-community/metadata.xml b/app-admin/aerospike-amc-community/metadata.xml |
129 |
new file mode 100644 |
130 |
index 0000000..0127e4a |
131 |
--- /dev/null |
132 |
+++ b/app-admin/aerospike-amc-community/metadata.xml |
133 |
@@ -0,0 +1,7 @@ |
134 |
+<?xml version="1.0" encoding="UTF-8"?> |
135 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
136 |
+<pkgmetadata> |
137 |
+ <maintainer> |
138 |
+ <email>patrick@g.o</email> |
139 |
+ </maintainer> |
140 |
+</pkgmetadata> |