Update remote archive url and bring the ebuild up to par with the one in the tree.

Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
Manuel Friedli 2025-01-04 23:52:24 +01:00
parent b826b59d43
commit 4709064273
Signed by: manuel
GPG key ID: 41D08ABA75634DA1
4 changed files with 39 additions and 21 deletions

View file

@ -2,9 +2,9 @@ AUX postfix_exporter-1.confd 891 BLAKE2B 7483607fd56a7cad95df4a1ba50306b1dd80226
AUX postfix_exporter.confd 527 BLAKE2B c05b24a709dd2d4f67f048975fedae0ca78eaacf42918c56c20d7a1aba8568158ee573076bce0c77518b55db5a78fd36bb0d5bd79138e7a31e47d1b7cc47c7c7 SHA512 6275fc294668e64996053923be9c3c00246c2db5deaaa50b28ddc1f049f953f51d9923813c32ca8f809d409a8e843c0de49fafe3d1ed11f69f222e3e1bf25a77
AUX postfix_exporter.initd 565 BLAKE2B 2bb9b4de2fdefd5e4be00415430eccd378dcb74254a308667679595269936a6acc02249a7c84f3d18f453efca7d64fd0a89748d601e97c8839130f0983285023 SHA512 4a525dfd6cac0d83ebf41b9f9265d1f06816bf25ed5753719451a187d71b7d4bdbc8669c6f34797e6c75ead5c489f18971435aae47396ec8c0c91554c5edbe3b
AUX postfix_exporter.logrotated 105 BLAKE2B 5285292139b4412afa9ab5d0fbe19f17f8785e0f98784a18f400373ec2c079cd4302ebb458564f2f052fc77a9b94709c81445947dd46a108029e680a0fd2b81c SHA512 1c20e1718bdd91df38758d30af520db983146332659d06205112a662eb8f096c3671f7631bc835255fdcb0538c66224c244a523e94f12e08ccb7b85b953844b5
AUX postfix_exporter.service 217 BLAKE2B 78a3822286cd117dcf873eb04a9edfd3fcef41a34acbe6852de29156086e564e9de39f19515f786ff65cae3aa4f696ab9a9703e9554e7e53897549b251e5b961 SHA512 880550355ff17c564948fe8d5ec0bc1c1a93a4eef4a3a97753f1153ec3c446a0820ab15c0318160a10db6be22e865172eb61ca3a47495252b151871fcc3baf30
DIST postfix_exporter-0.3.0-vendor.tar.xz 829564 BLAKE2B 55eeea0cf5ee16ffa9693cb812a7f325ed3896e1326c83979e67df82f73d45e8b351df03950ba6373f1b1463b519698033b94b201343132a3b45454e40b35feb SHA512 6b120b0266dad9bbc1cea240b014a855b2e0178516a4ba5910fd0fc943e388ca644b6d61dc225006e64cda5d6452c80f8990cd7d7ab70f22ddfa665fc8e644c3
AUX postfix_exporter.service 225 BLAKE2B 95517b7d089d79020d8376f14d82d01cefd572c35c83a6c51f9bbc40e2360a7b424ab19afb3f38cebdf591e06900de17ded91e4bea124fa953dd28627993744c SHA512 f95c8f9446306d86586866f494f2f3de7d6c226151d1a84855bb03cafbc1e130ee693f6ea4b521f36e628a465becde3df0ec16a13432134eefe33f51445d08f2
DIST postfix_exporter-0.3.0-deps.tar.xz 10261848 BLAKE2B 3ab985ae873f53019b093266df90d4593b3a1755bafb6a0df600ae84411fd73f578cfeb6749fdfade5392ec55ec4df1916cf6b86f0ea0b5e04828dda50687789 SHA512 d591ef808fd3ccc7b48f37257ae6925b8ae491decef9ac679f13af08d0c6717b162a53cc2cd2ffb98361f38eaceaac24b2fba1db958fc9fa172fbe5060b639b1
DIST postfix_exporter-0.3.0.tar.gz 26528 BLAKE2B 9d1b17917f4a6a6e73e1477e973454d9ce774d218463f151117e8772f77ea17c00536d0262789644716992c3c6ddcbf8b26d9c92eea77f9750e971e3a7c0d1d4 SHA512 1812d2ad95803290c12615975ba6e44c0a6f73dd0e10db927a9f1c58bfce27b71c9c2928f58623e263ba2737d2780f220e6a7fe0992e2607f290478eaa080b39
EBUILD postfix_exporter-0.3.0-r1.ebuild 1041 BLAKE2B 9945f602d1ad00c241b5312ca60cbf5a9a67f1ad79753be7b34893e7833c77d279d39a8334dbb4b53fd257e6ebefbbbd2e066086ba690ecd7b04721d3abc7d72 SHA512 f6b2e902e5e4147aa9692471503204690d1e97582bdc997603ee5518a4e0d44ea158b13a9e5997271c8cb684459919b245f1ef22cea0fd42bb38ab9003274808
EBUILD postfix_exporter-0.3.0-r2.ebuild 1037 BLAKE2B a4c15c167e0adb1412578480f691477840308629c2cbe37f8137d568a86bee874abcc8cf40e9230b947e3ade3c6f80baf473917dd39fbdca0202f7645f4fafdf SHA512 38aaea8909cf098ebe09488160543fa37b5b73d4958c05b73132c41188c333f0194bb3f1ef07d7ebcf4190642862ab4268ca64ba3c97b5e1ddd9ddbe9e012231
MISC ChangeLog 890 BLAKE2B de6961b87add10ea0b2597276ccf184a88fbe169bbfb1a30e17e48e8bfe5f35213f48a7fa0b597de95465cd9519370ceb81435eeba728618d910eecbd4e77dd3 SHA512 9b227ee69673fe8b7807a07af530d5e10a8840e65f93aac77be720632f11b117f5b2e9278947e6f81ed98afdd5354d07a0c23380ff5ddb4752a107fb5f8add7a
MISC metadata.xml 255 BLAKE2B 1132f0657024f17717e5191a4992978685715f9abb96052db6399468506deaa85454efcaf58c7dcebfe5e1cf8948c767a7b001832d50c7d9dc162b0ff1395361 SHA512 36fb59a02d322553d6bfad2deeff884cc782c54bbb01a3fb344767fb43536905c43950df368e645d08ba9c48f3ec13c05b1d3c827fa12581c164623d2c174d73

View file

@ -3,7 +3,7 @@ Description=Postfix Exporter
[Service]
User=postfix_exporter
Group=postdrop
Group=postfix_exporter
EnvironmentFile=/etc/conf.d/postfix_exporter
ExecStart=/usr/bin/postfix_exporter $command_args

View file

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -7,35 +7,37 @@ inherit go-module systemd
DESCRIPTION="Prometheus Exporter for Postfix"
HOMEPAGE="https://github.com/kumina/postfix_exporter"
SRC_URI="https://github.com/kumina/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://manuel.friedli.info/gentoo-overlay/${P}-vendor.tar.xz"
SRC_URI="
https://github.com/kumina/postfix_exporter/archive/${PV}.tar.gz -> ${P}.tar.gz
https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/${PN}/${P}-deps.tar.xz
"
LICENSE="Apache-2.0"
LICENSE="Apache-2.0 BSD MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd"
RESTRICT+=" test"
DEPEND="systemd? ( sys-apps/systemd )"
RDEPEND="acct-user/postfix_exporter"
RESTRICT="test"
RDEPEND="
acct-group/postfix_exporter
acct-user/postfix_exporter
"
DEPEND="${RDEPEND}
systemd? ( sys-apps/systemd )
"
src_compile() {
ego build -tags "$(usex systemd '' 'nosystemd')" -v -o bin/${PN} || die
ego build -tags "$(usex systemd '' 'nosystemd')" -v -o bin/${PN}
}
src_install() {
dobin "bin/${PN}"
dobin bin/${PN}
dodoc {CHANGELOG,README}.md
local dir
for dir in /var/{lib,log}/${PN}; do
keepdir "${dir}"
fowners postfix_exporter:postfix_exporter "${dir}"
done
keepdir /var/log/${PN}
fowners ${PN}:${PN} /var/log/${PN}
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}-1.confd ${PN}
insinto /etc/logrotate.d
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
systemd_dounit "${FILESDIR}"/"${PN}".service
systemd_dounit "${FILESDIR}"/${PN}.service
}

View file

@ -0,0 +1,16 @@
BDEPEND=>=dev-lang/go-1.20:= app-arch/unzip virtual/pkgconfig
DEFINED_PHASES=compile install unpack
DEPEND=acct-group/postfix_exporter acct-user/postfix_exporter systemd? ( sys-apps/systemd )
DESCRIPTION=Prometheus Exporter for Postfix
EAPI=8
HOMEPAGE=https://github.com/kumina/postfix_exporter
INHERIT=go-module systemd
IUSE=systemd
KEYWORDS=~amd64
LICENSE=Apache-2.0 BSD MIT
RDEPEND=acct-group/postfix_exporter acct-user/postfix_exporter
RESTRICT=test strip
SLOT=0
SRC_URI=https://github.com/kumina/postfix_exporter/archive/0.3.0.tar.gz -> postfix_exporter-0.3.0.tar.gz https://dev.gentoo.org/~arthurzam/distfiles/app-metrics/postfix_exporter/postfix_exporter-0.3.0-deps.tar.xz
_eclasses_=multiprocessing 1e32df7deee68372153dca65f4a7c21f toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe go-env 90efbc8636d2f02d9654183330e84cf7 go-module df32d29550d40a92da723d3b8e17b467 systemd 54bd206bb5c4efac6ae28b6b006713b0
_md5_=d0afc2eb49cf15d7dcd6b97a64019350