diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-03-27 13:11:32 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-03-27 13:11:32 +0200 |
commit | 69e46dc76012b866bc91bd92649abc27e53f9075 (patch) | |
tree | c799525a1841fbaf629b05ff81080611bf1c151e /app-admin | |
parent | sys-cluster/kube-proxy: Remove old (diff) | |
download | gentoo-69e46dc76012b866bc91bd92649abc27e53f9075.tar.gz gentoo-69e46dc76012b866bc91bd92649abc27e53f9075.tar.bz2 gentoo-69e46dc76012b866bc91bd92649abc27e53f9075.zip |
app-metrics/nginx-vts-exporter: Move package from app-admin/nginx-vts-exporter
Diffstat (limited to 'app-admin')
5 files changed, 0 insertions, 80 deletions
diff --git a/app-admin/nginx-vts-exporter/Manifest b/app-admin/nginx-vts-exporter/Manifest deleted file mode 100644 index e6c23304897f..000000000000 --- a/app-admin/nginx-vts-exporter/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST nginx-vts-exporter-0.10.0.tar.gz 149620 BLAKE2B 6856240886d1a7082c901535954193798e8636ef744a5960441726cb12a5510706f7b8c1757e9f719c756d0beabc355cde8ec626c9bd4f14f7ff84894d0cc6da SHA512 bdd3993b3fee24d3332db720df2880493eeb0724cd5b099ccdd5fe6456df1b344132e4e585271999df355fb2042954cb3d452e6dc0b92dead288e94dd71f627c diff --git a/app-admin/nginx-vts-exporter/files/nginx-vts-exporter.confd b/app-admin/nginx-vts-exporter/files/nginx-vts-exporter.confd deleted file mode 100644 index ae134353a235..000000000000 --- a/app-admin/nginx-vts-exporter/files/nginx-vts-exporter.confd +++ /dev/null @@ -1,2 +0,0 @@ -# arguments for prometheus nginx virtual host traffic stats exporter -command_args="-nginx.scrape_uri=http://localhost/status/format/json" diff --git a/app-admin/nginx-vts-exporter/files/nginx-vts-exporter.initd b/app-admin/nginx-vts-exporter/files/nginx-vts-exporter.initd deleted file mode 100644 index f61549b061d7..000000000000 --- a/app-admin/nginx-vts-exporter/files/nginx-vts-exporter.initd +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2016-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Prometheus nginx virtual host traffic status exporter" -pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} -user=${user:-${RC_SVCNAME}} -group=${group:-${RC_SVCNAME}} - -command="/usr/bin/nginx-vts-exporter" -command_args="${command_args:--nginx.scrape_uri=http://localhost/status/format/json}" -command_background="true" -start_stop_daemon_args="--user ${user} --group ${group} \ - --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ - --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" - -depend() { - after net -} diff --git a/app-admin/nginx-vts-exporter/metadata.xml b/app-admin/nginx-vts-exporter/metadata.xml deleted file mode 100644 index 0baff3eb9512..000000000000 --- a/app-admin/nginx-vts-exporter/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>mrueg@gentoo.org</email> - <name>Manuel Rüger</name> - </maintainer> - <upstream> - <remote-id type="github">hnlq715/nginx-vts-exporter</remote-id> - </upstream> -</pkgmetadata> diff --git a/app-admin/nginx-vts-exporter/nginx-vts-exporter-0.10.0.ebuild b/app-admin/nginx-vts-exporter/nginx-vts-exporter-0.10.0.ebuild deleted file mode 100644 index 761f9630f63c..000000000000 --- a/app-admin/nginx-vts-exporter/nginx-vts-exporter-0.10.0.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="github.com/hnlq715/nginx-vts-exporter" -EXPORTER_COMMIT="f5b3491cd0a8cc2df7088470f2727b0ae39a2700" -ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Nginx virtual host traffic stats exporter for Prometheus" -HOMEPAGE="https://github.com/hnlq715/nginx-vts-exporter" -SRC_URI="${ARCHIVE_URI}" -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="dev-util/promu" - -pkg_setup() { - enewgroup ${PN} - enewuser ${PN} -1 -1 -1 ${PN} -} - -src_prepare() { - default - sed -i -e "/-s$/d" -e "s/{{.Revision}}/${EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - mkdir -p bin || die - GOPATH="${S}" promu build -v --prefix bin || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin bin/${PN} - dodoc README.md - popd || die - keepdir /var/log/${PN} - fowners ${PN}:${PN} /var/log/${PN} - newinitd "${FILESDIR}"/${PN}.initd ${PN} - newconfd "${FILESDIR}"/${PN}.confd ${PN} -} |