From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-admin/aerospike-amc-community/Manifest | 8 +++ .../aerospike-amc-community-3.6.13-r1.ebuild | 63 ++++++++++++++++++++++ .../aerospike-amc-community-4.0.19-r1.ebuild | 24 +++++++++ app-admin/aerospike-amc-community/files/amc.init | 23 ++++++++ app-admin/aerospike-amc-community/files/amc.init.4 | 18 +++++++ app-admin/aerospike-amc-community/files/amc.init2 | 24 +++++++++ app-admin/aerospike-amc-community/metadata.xml | 7 +++ 7 files changed, 167 insertions(+) create mode 100644 app-admin/aerospike-amc-community/Manifest create mode 100644 app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r1.ebuild create mode 100644 app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild create mode 100644 app-admin/aerospike-amc-community/files/amc.init create mode 100644 app-admin/aerospike-amc-community/files/amc.init.4 create mode 100644 app-admin/aerospike-amc-community/files/amc.init2 create mode 100644 app-admin/aerospike-amc-community/metadata.xml (limited to 'app-admin/aerospike-amc-community') diff --git a/app-admin/aerospike-amc-community/Manifest b/app-admin/aerospike-amc-community/Manifest new file mode 100644 index 000000000000..1dacf8721f73 --- /dev/null +++ b/app-admin/aerospike-amc-community/Manifest @@ -0,0 +1,8 @@ +AUX amc.init 562 BLAKE2B f4aed655b924f345905aa8d3f149799ad299086cca1555e4902e09b376a47e2da8a34445446b00f7508cf4b6ef1d7eb83df93ae6af7c89d9b6e23d027ea5ce45 SHA512 4f50237b23ec1d2257791266ee5ee4c8b963bb0429c7386d50e4ba74ee8a451cd99a8dde277ed92b490a9b40bf33f5f6920e66c777e388bae43cfe402d255094 +AUX amc.init.4 401 BLAKE2B a649832bdbc6dc33de0f87ac0037b1c38212b97abdec16d25d714db6c183fcaed0eb8374d7fecccaf8c8cdeff2c125007b4a924e208721e9d6a8e83befb93dc6 SHA512 00cca21719821efff950d272bfe1c35bbedaf5597507d2b19ecdf6f6c2e7ac7c1c1bdd42474177551e55b9751060ec396add7f4cc94f693537c105f5cbe1bac6 +AUX amc.init2 583 BLAKE2B 0745a48ecfdc060ac9995c0634761d9b16d7d190df9d6a3d8fd7ec415fda486157e22f6f7ff03b2d4a3afe93632a67e7ad07214831007101bd9ebc71557f6003 SHA512 c91d1e66a6bcd286efec425295fc168c7d277f0d4886c9e0cd43f49e58b9c9ae0b0c2c453d278404d4d07935c55baf91bffe272699de095df13028316cc0d317 +DIST aerospike-amc-community-3.6.13.all.x86_64.deb 1436414 BLAKE2B cd823dd1c546fe69948ef3f77fa8bf0a68a8d95ed3ee778272b84c39b1b1bc4e5afef803931ce859fd957421f4816358590a3c1e0845fdc524a0f029b52ce828 SHA512 8077f8c51aab39ca701eb1ada633a3a378e02fed39ef2e565fed57fa57cf12da6c69a2b3d93e179110c29043a0a5a114512d30752eab6356e1b819ae490d23bb +DIST aerospike-amc-community-4.0.19.tar.gz 7868527 BLAKE2B 69835bdf3d7f1a4b23cd63bb7344c50b6bbbdc04fd55b2d6ec5783a429a442fa6cdf985c77cb4ac73f8ac0663ed2524c8d7a853e970cc086335cf810fd9eaecf SHA512 821de8569bf020b9a2b829e71aab5d48d25639620468aa0b3ed28dc24e0d57bc61be60939425c0a69c418602fa2fbf5ef60f1870edb3f04fa40a2a2aca281218 +EBUILD aerospike-amc-community-3.6.13-r1.ebuild 1404 BLAKE2B 8b278cd44569c009fb9801ebded251e7dbbb074056a94ff07f9634660150171219e73af4638990bb660676a1e6d127015eef515b46026e97ba30a6eaed360baf SHA512 b359adddaf57972b90436bf09edac8081ee5113636f427f69e94e57eae15da8ad1a93c0e1c97ee2ddd590a98ff22290a360fe2ff54da292a16d4ed009fbbf77d +EBUILD aerospike-amc-community-4.0.19-r1.ebuild 539 BLAKE2B f68e4bdeed829f5340c2ce1dd15773da038a1755e7682aa4cc02236e7654ff956f87582be75bcea950c1aafd9f8b26848039990354ac780a9574425ae93b3a55 SHA512 89c275ed1d9706a4cd9bf068f0ab6d7931f6a7b346248b5ced94163e98434461b2c22226c0c83a75cec4f5f13a0efec63ab3a09c8537d513fe6bc1dcdd4681f4 +MISC metadata.xml 218 BLAKE2B 2189d142b4baed0b8edb49fcc98f7397610a257a4cb5f87873272b284f84290420f0950c8b41d1d050ca7a1e0486c6e00344672a3f0479d1d382c14bf7f18485 SHA512 882f7787b97aa780dd3ba4112b9e1dcc84986e2a17704cba9a557ec3a3f9211bcf93532b92d42f60157b56b457ee9ee17e5409066230e54d48931b91bd6786cd diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r1.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r1.ebuild new file mode 100644 index 000000000000..aeea28831d00 --- /dev/null +++ b/app-admin/aerospike-amc-community/aerospike-amc-community-3.6.13-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2016 Gentoo Foundation +# 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="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.init2 amc +} diff --git a/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild b/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild new file mode 100644 index 000000000000..d1d21c1ab7be --- /dev/null +++ b/app-admin/aerospike-amc-community/aerospike-amc-community-4.0.19-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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/download/amc/${PV}/artifact/linux -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND}" + +S=$WORKDIR + +src_install() { + cp -r "$S/"* "$D" + rm "${D}/etc/init.d/*" + newinitd "${FILESDIR}/amc.init.4" 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..06c14001f5d6 --- /dev/null +++ b/app-admin/aerospike-amc-community/files/amc.init @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/files/amc.init.4 b/app-admin/aerospike-amc-community/files/amc.init.4 new file mode 100644 index 000000000000..87405a83c709 --- /dev/null +++ b/app-admin/aerospike-amc-community/files/amc.init.4 @@ -0,0 +1,18 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +run_dir=${run_dir:-/run} + +command="/opt/amc/amc" +command_progress="true" +retry='TERM/30/KILL/5' +pidfile=${run_dir}/${SVCNAME}.pid +user=${user:-root} +group=${group:-root} +start_stop_daemon_args="--user ${user} --group ${group}" +command_args="--daemon" + +depend() { + use net +} diff --git a/app-admin/aerospike-amc-community/files/amc.init2 b/app-admin/aerospike-amc-community/files/amc.init2 new file mode 100644 index 000000000000..3e3bdd9920a3 --- /dev/null +++ b/app-admin/aerospike-amc-community/files/amc.init2 @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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_progress="true" +retry='TERM/30/KILL/5' +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..8c5a5301197b --- /dev/null +++ b/app-admin/aerospike-amc-community/metadata.xml @@ -0,0 +1,7 @@ + + + + + patrick@gentoo.org + + -- cgit v1.2.3