summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2018-11-17 19:04:33 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2018-11-17 19:12:05 +0100
commit90db3f4ff3d1a3b71f41d8e4820057d4561af487 (patch)
treeff432c21e3592d5a6f10a4ca78110155ea674d26 /app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r2.ebuild
parentx11-libs/libnotify: cleanup old revision (diff)
downloadgentoo-90db3f4ff3d1a3b71f41d8e4820057d4561af487.tar.gz
gentoo-90db3f4ff3d1a3b71f41d8e4820057d4561af487.tar.bz2
gentoo-90db3f4ff3d1a3b71f41d8e4820057d4561af487.zip
app-admin/aerospike-amc-community: drop gcr dependency
Could not find it anywhere in codebase. Commiting due to maintainer timeout. Refs: https://bugs.gentoo.org/630734 Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Gilles Dartiguelongue <eva@gentoo.org>
Diffstat (limited to 'app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r2.ebuild')
-rw-r--r--app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r2.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r2.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r2.ebuild
new file mode 100644
index 000000000000..7c372174c825
--- /dev/null
+++ b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils user
+
+DESCRIPTION="Web UI based monitoring tool for Aerospike Community Edition Server"
+HOMEPAGE="http://www.aerospike.com"
+SRC_URI="http://www.aerospike.com/artifacts/${PN}/${PV}/${P}.all.x86_64.deb"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ dev-python/eventlet
+ dev-python/flask
+ dev-python/greenlet
+ dev-python/setproctitle
+ www-servers/gunicorn"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ default
+ mkdir "${P}"
+ tar -xf data.tar.xz -C "${S}" || die
+ tar -xzf "${S}"/opt/amc.tar.gz -C "${S}"/opt/ || die
+}
+
+src_install() {
+ mv opt/amc/amc/* opt/amc/
+ rm -rf opt/amc/amc
+ rm -f opt/amc/install
+ rm -f opt/amc/bin/uninstall
+ rm -f opt/amc/bin/amc_*.sh
+ rm -f opt/amc/bin/gunicorn
+ rm -rf opt/amc/server/site-packages/
+ rm -rf opt/amc/server/setups/
+
+ insinto /etc/logrotate.d
+ newins opt/amc/config/logrotate amc
+ rm -f opt/amc/config/logrotate
+
+ insinto /etc/cron.daily
+ newins opt/amc/config/logcron amc
+ rm -f opt/amc/config/logcron
+
+ sed -e 's@/tmp/amc.pid@/run/amc.pid@g' -i opt/amc/config/gunicorn_config.py || die
+
+ insinto /etc/amc/config
+ doins -r opt/amc/config/*
+ rm -rf opt/amc/config/
+
+ echo "${PV}" > opt/amc/amc_version
+
+ insinto /opt/amc/
+ doins -r opt/amc/*
+
+ keepdir /var/log/amc
+
+ newinitd "${FILESDIR}"/amc.init2 amc
+}