diff options
author | Patrick Lauer <patrick@gentoo.org> | 2016-03-30 16:37:06 +0200 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2016-03-30 16:37:06 +0200 |
commit | 03963fb7dad6d6d73bc380fed4cfb700ef87c437 (patch) | |
tree | 7aeb33a7c81d5f00d338b67de6fe831cddd5b9ec /app-admin/aerospike-amc-community | |
parent | dev-db/aerospike-server-community: Initial import, borrowed and bumped from t... (diff) | |
download | gentoo-03963fb7dad6d6d73bc380fed4cfb700ef87c437.tar.gz gentoo-03963fb7dad6d6d73bc380fed4cfb700ef87c437.tar.bz2 gentoo-03963fb7dad6d6d73bc380fed4cfb700ef87c437.zip |
app-admin/aerospike-amc-community: Initial import, borrowed from the adjust overlay
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-admin/aerospike-amc-community')
4 files changed, 96 insertions, 0 deletions
diff --git a/app-admin/aerospike-amc-community/Manifest b/app-admin/aerospike-amc-community/Manifest new file mode 100644 index 000000000000..f2f48d815f8f --- /dev/null +++ b/app-admin/aerospike-amc-community/Manifest @@ -0,0 +1 @@ +DIST aerospike-amc-community-3.6.8.all.x86_64.deb 1429404 SHA256 7c29269746a806f04c3828188a249af6407135ebcf151fe55550d84d2e8dc464 SHA512 de44333471307410461bd53266b84fdc9fa92f7115012eb4b29b3ad415dd471ca3d9bf1a7c52bec7063df02a7e600dce9366910a089751dd19163cc212574d28 WHIRLPOOL 134a8f6dbd006b9918be787f090ca762b45b4c9083f43b6f039b3f33ab1a43ef38be30e3fa31c137185e35672620eace1a2cff7615091f9a9bfab955dfa1f914 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 new file mode 100644 index 000000000000..942b7c99157c --- /dev/null +++ b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.8.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="app-crypt/gcr + 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.init amc +} diff --git a/app-admin/aerospike-amc-community/files/amc.init b/app-admin/aerospike-amc-community/files/amc.init new file mode 100644 index 000000000000..2fb535cd4310 --- /dev/null +++ b/app-admin/aerospike-amc-community/files/amc.init @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mongodb/files/mongodb.initd-r2,v 1.2 2014/05/26 08:03:45 ultrabug Exp $ + +config_file=${config_file:-/etc/amc/config/gunicorn_config.py} +run_dir=${run_dir:-/run} + +command="/usr/bin/gunicorn" +command_args="--daemon --config ${config_file} flaskapp:app" +command_background="true" +pidfile=${run_dir}/${SVCNAME}.pid +user=${user:-root} +group=${group:-root} +start_stop_daemon_args="--user ${user} --group ${group}" +required_files="${config_file}" + +depend() { + use net +} + +start_post() { + ewaitfile 60 "${pidfile}" +} diff --git a/app-admin/aerospike-amc-community/metadata.xml b/app-admin/aerospike-amc-community/metadata.xml new file mode 100644 index 000000000000..0127e4a8f349 --- /dev/null +++ b/app-admin/aerospike-amc-community/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>patrick@gentoo.org</email> + </maintainer> +</pkgmetadata> |