diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-13 06:19:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-13 06:19:51 +0000 |
commit | 8be70107efbb417f839292165ee39d07a062046f (patch) | |
tree | 013918887ec4a00f0cefdb4b4d1313cbc3054305 /net-analyzer/prometheus | |
parent | 343a7272d559a21a0e0ed13cb743fabb2bfcc479 (diff) |
gentoo resync : 13.01.2018
Diffstat (limited to 'net-analyzer/prometheus')
-rw-r--r-- | net-analyzer/prometheus/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/prometheus/files/prometheus-3.initd | 11 | ||||
-rw-r--r-- | net-analyzer/prometheus/files/prometheus.initd | 19 | ||||
-rw-r--r-- | net-analyzer/prometheus/prometheus-1.8.2.ebuild | 59 | ||||
-rw-r--r-- | net-analyzer/prometheus/prometheus-2.0.0-r1.ebuild (renamed from net-analyzer/prometheus/prometheus-2.0.0.ebuild) | 2 |
5 files changed, 13 insertions, 85 deletions
diff --git a/net-analyzer/prometheus/Manifest b/net-analyzer/prometheus/Manifest index 9390f30b0bf5..2aae03d7e3fb 100644 --- a/net-analyzer/prometheus/Manifest +++ b/net-analyzer/prometheus/Manifest @@ -1,8 +1,5 @@ -AUX prometheus-3.initd 659 BLAKE2B 8f02de10267a5aeea4a902c75e65f8673f82a263bc81ea626e4a19c92d83601d69e1d0c1981149513747b1714029ffe2790fd33d4bd86914c5a691f229f612d4 SHA512 14321f0a0e39e4ed1b879ba956855046c21dff85770d3d269492a6d0b911af69ccbf047ec48b91c56bfb678da9390fb236ce165326dc2139b1255d448f2512fa +AUX prometheus-3.initd 851 BLAKE2B 600d9e541206f99c0ddddc0f5a1d37d9bea69d8f45ce6562a2d3c040a75c3665d9862829fc44134db2fbbbbf1d38b7dc4010c9c284f5af38f0dd2cf4be1f9d11 SHA512 7d3650ef5b632507ade4cfb00a167ec7c2d3d8e91551ef8f4550f9947038df0b22a3dd0a33e093296eeb0ca88f1d12ae40e73c7fec4df03e5dcc7630893ded59 AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c -AUX prometheus.initd 664 BLAKE2B a6a40447e7215846569ffba183c479def8913bf98dad15b6e075213ac06c09b2276ad2e0ed4e9ca28e3b8de66157cbc0a26b9cbbb596480133bd0594d3d66785 SHA512 95e2ac4969c26f2e91330b521223e94912d68832ef29429e68930479c29b24027c138011bd1f480546c14a07ae15800967e9ff114cdec3cabd0c15bdca489665 -DIST prometheus-1.8.2.tar.gz 5238057 BLAKE2B 33b53fab08df985ec459150166494d46552b7815d8b68d2f8a63023a12c1017197f7043327b4182935231c86b0fb492f3d05d477b97c7e7cd233fbdb0211f1b6 SHA512 ed52ab494ae565d4787b29cf1800605ac3bfdacee25e833704131d57bad9759a3e2585b96316ad754e6612324e68079d7f670004a86aa12c768a2e03542966d2 DIST prometheus-2.0.0.tar.gz 5603884 BLAKE2B 0e2c7ee267f4f817fe84105b89fa2951c07212ca75bf540c67afe900c1df62641919f2ad9d2ce24932a946a0c3db8da6847184c56578ef9626db1f55c1ea3080 SHA512 9d23e10b3eb12755781b9edc5c32a0cb1e99055a8a905517619d992a174a8621ebc1e82999ce2412e7fc3e2e0af8a0dfe1eded8bcd2701a5aaaffce79c7fbcc5 -EBUILD prometheus-1.8.2.ebuild 1603 BLAKE2B cf1f071975df0a6b06d1a3196791e8ad0d3ea066c1a4514b3b3b9eeab03559127c728f409f8e4932030d66d5cfa4bd003a41c7ebb5ede4778b8dca4fdad08608 SHA512 4ee12d760b3138cb99e86052d0e32c2ad4ba47b42adf5f4582d3af32d48770f65d9baa7130065fd0af65860bddc501dcb87fa2814278050a38c154630119fdc6 -EBUILD prometheus-2.0.0.ebuild 2000 BLAKE2B 0008f75e521e628c90724b3b4d83ed3aad3960b624110b9081119eb8717dbfe3f054ee83cadac3bd1a09453a2738fe709ffd8102e73d62e88dca7a19264985d9 SHA512 35279a1fa0a51c6e677ded1e73374a046cb863a753e493608c04690c9a11be268b4b48a2204f61f44f8e02891334dafdc3264e52b1630d56d910e93210bfd420 +EBUILD prometheus-2.0.0-r1.ebuild 2000 BLAKE2B 13fbd2811ab3feefcb1018cdce480b0e1b663e42d631db5c27a003544399fdf99a3df1dd0ede40c8e552a47ab5a0e4f577121c5112c8e7ed43acd8d9892c7f81 SHA512 d08dd4d8056ea966a9b50e4faa21bd00804b8f6402ac8557f3a12a90451a6bda62731638488aaefb15de1250e360e10bbcd72c22f91f7f7a88f0645e4b7a2b77 MISC metadata.xml 331 BLAKE2B 80bf59233349fc1fdc6c102fb65ba146bcde2c5c2a6039ec9b9f50f21a36fb1e8c864cba422e721d01216c792ffcf0429a3a840540305442b5e516ac09c03850 SHA512 06fd0da413c0280a902bbdf50e1e0557375d2208021fda3c3081d8a25a4b17ad1ca647d994dd97ba2d838ea5c87148d3ffd13a8a54cb8dc007b45927df8de47a diff --git a/net-analyzer/prometheus/files/prometheus-3.initd b/net-analyzer/prometheus/files/prometheus-3.initd index 5f6d6fe14267..ae151ef91fbd 100644 --- a/net-analyzer/prometheus/files/prometheus-3.initd +++ b/net-analyzer/prometheus/files/prometheus-3.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 2016-2017 Gentoo Foundation +# Copyright 2016-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 description="Prometheus monitoring system and time series database" @@ -14,6 +14,15 @@ start_stop_daemon_args="--user ${user} --group ${group} \ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" +extra_started_commands="reload" + depend() { after net } + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? "Failed to stop ${SVCNAME}" +} + diff --git a/net-analyzer/prometheus/files/prometheus.initd b/net-analyzer/prometheus/files/prometheus.initd deleted file mode 100644 index 245dcc85ae6d..000000000000 --- a/net-analyzer/prometheus/files/prometheus.initd +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2016-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Prometheus monitoring system and time series database" -pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} -user=${user:-${RC_SVCNAME}} -group=${group:-${RC_SVCNAME}} - -command="/usr/bin/prometheus" -command_args="${command_args:--config.file=/etc/prometheus/prometheus.yml -storage.local.path=/var/lib/prometheus/data}" -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/net-analyzer/prometheus/prometheus-1.8.2.ebuild b/net-analyzer/prometheus/prometheus-1.8.2.ebuild deleted file mode 100644 index 1006108b0996..000000000000 --- a/net-analyzer/prometheus/prometheus-1.8.2.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2017 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/prometheus/prometheus" -EGIT_COMMIT="v${PV}" -PROMETHEUS_COMMIT="5211b96" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus monitoring system and time series database" -HOMEPAGE="https://github.com/prometheus/prometheus" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0" -SLOT="0" -IUSE="" - -DEPEND=">=dev-lang/go-1.8 - dev-util/promu" - -PROMETHEUS_HOME="/var/lib/prometheus" - -RESTRICT="test" - -pkg_setup() { - enewgroup prometheus - enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus -} - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - GOPATH="${S}" promu build -v || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin promtool prometheus - dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} - insinto /etc/prometheus - doins documentation/examples/prometheus.yml - insinto /usr/share/prometheus - doins -r console_libraries consoles - dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries - dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles - popd || die - - newinitd "${FILESDIR}"/prometheus.initd prometheus - newconfd "${FILESDIR}"/prometheus.confd prometheus - keepdir /var/log/prometheus /var/lib/prometheus - fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus -} diff --git a/net-analyzer/prometheus/prometheus-2.0.0.ebuild b/net-analyzer/prometheus/prometheus-2.0.0-r1.ebuild index f316f9e3f9c2..a51b71d9bb2e 100644 --- a/net-analyzer/prometheus/prometheus-2.0.0.ebuild +++ b/net-analyzer/prometheus/prometheus-2.0.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 |