diff options
author | Sam James <sam@gentoo.org> | 2023-08-21 07:05:53 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-21 07:05:53 +0100 |
commit | 9de29e8d83c6c697146ca96a37a27302124d57df (patch) | |
tree | 9560abe1818fc52e7cac7e3c1a2b30fa0085d426 /net-analyzer/vnstat | |
parent | dev-ruby/fakefs: Stabilize 2.5.0 arm, #910993 (diff) | |
download | gentoo-9de29e8d83c6c697146ca96a37a27302124d57df.tar.gz gentoo-9de29e8d83c6c697146ca96a37a27302124d57df.tar.bz2 gentoo-9de29e8d83c6c697146ca96a37a27302124d57df.zip |
net-analyzer/vnstat: add 2.11
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/vnstat')
-rw-r--r-- | net-analyzer/vnstat/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/vnstat/vnstat-2.11.ebuild | 90 | ||||
-rw-r--r-- | net-analyzer/vnstat/vnstat-9999.ebuild | 14 |
3 files changed, 100 insertions, 6 deletions
diff --git a/net-analyzer/vnstat/Manifest b/net-analyzer/vnstat/Manifest index c6c80056983e..edda5197456a 100644 --- a/net-analyzer/vnstat/Manifest +++ b/net-analyzer/vnstat/Manifest @@ -1,2 +1,4 @@ DIST vnstat-2.10.tar.gz 304464 BLAKE2B 82fcb54cf00a8122f31dc27f41f830ef68b92452bf7ae22bf2f1be13a1526bd12e8365002edef7766156f2df15472b189b3f219074532cb00a81156775b08997 SHA512 86c761290ec059a3252049b4f2a0a2aecdd7f8c159ee3db904339b1a9b14157a2125b919dd52754a29320ccdb41c89739bca78548b5a44b158b493f48be24a78 DIST vnstat-2.10.tar.gz.asc 833 BLAKE2B bb3b7ef9d52c7ba4e8fb3ae7c8693e36803374c0ced0a0d6c4c16c8ca554290ab805e6f732ea2d188d78246e34b7a747673cf99725fcb74f65192cba1fbaeac4 SHA512 2b3c0f381bad8ce542cc0fa287a7a9a16f4381a8aecb342dbb5622464131a7c7cdbf01cb12f5b75964d0e2b6792d28e37f4f8e6ca607cb8122462013b0077773 +DIST vnstat-2.11.tar.gz 312821 BLAKE2B 6eeed45d628641c9d88cf33ae1fc14871109b1e9fd0ac4a46fe8e2c194bb4600878b69408ed177bcde38ca859d0a3165d0095cab9b0bb6c036f7788fbfcb47e6 SHA512 d1ec9fd7e57598712df50601247c9904a371b7a2e5cb33efab2d44d330294d8ea3facf914de3d8d3a0381061b14642c613948478bf0c8d7f5e599a83321aad34 +DIST vnstat-2.11.tar.gz.asc 833 BLAKE2B ded1462ee51dc6fde349ae6e21a6b45bdab268ff024804394268f515b618beead7d4582721ffa26d3f9cc7a8434a0f7145d31dcf9c95c575145e4903bdbd5460 SHA512 8b15f73d412e05c50e2e5a514bc96daa2dceae49af95ed7f09e742f3bbc8b34b856bb2d0a33a7146a8b19f714d47863388cfcb63821dac670c9e020ca60f4785 diff --git a/net-analyzer/vnstat/vnstat-2.11.ebuild b/net-analyzer/vnstat/vnstat-2.11.ebuild new file mode 100644 index 000000000000..9ba136577512 --- /dev/null +++ b/net-analyzer/vnstat/vnstat-2.11.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit systemd tmpfiles + +DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage" +HOMEPAGE="https://humdi.net/vnstat/" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/vergoh/vnstat" + inherit git-r3 +else + VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/teemutoivola.asc + inherit verify-sig + + SRC_URI=" + https://humdi.net/vnstat/${P}.tar.gz + https://github.com/vergoh/vnstat/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( + https://humdi.net/vnstat/${P}.tar.gz.asc + https://github.com/vergoh/vnstat/releases/download/v${PV}/${P}.tar.gz.asc + ) + " + + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + + BDEPEND="verify-sig? ( sec-keys/openpgp-keys-teemutoivola )" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="gd selinux test" +RESTRICT="!test? ( test )" + +RDEPEND=" + acct-group/vnstat + acct-user/vnstat + dev-db/sqlite + gd? ( media-libs/gd[png] ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-libs/check ) +" +RDEPEND+=" selinux? ( sec-policy/selinux-vnstatd )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.9-conf.patch +) + +src_compile() { + emake \ + ${PN} \ + ${PN}d \ + $(usev gd ${PN}i) +} + +src_install() { + use gd && dobin vnstati + dobin vnstat vnstatd + + exeinto /usr/share/${PN} + newexe "${FILESDIR}"/vnstat.cron-r1 vnstat.cron + + insinto /etc + doins cfg/vnstat.conf + fowners root:vnstat /etc/vnstat.conf + + keepdir /var/lib/vnstat + fowners vnstat:vnstat /var/lib/vnstat + + newconfd "${FILESDIR}"/vnstatd.confd-r1 vnstatd + newinitd "${FILESDIR}"/vnstatd.initd-r2 vnstatd + + systemd_newunit "${FILESDIR}"/vnstatd.systemd vnstatd.service + newtmpfiles "${FILESDIR}"/vnstatd.tmpfile vnstatd.conf + + use gd && doman man/vnstati.1 + + doman man/vnstat.1 man/vnstatd.8 + + newdoc INSTALL README.setup + dodoc CHANGES README UPGRADE FAQ examples/vnstat.cgi +} + +pkg_postinst() { + tmpfiles_process vnstatd.conf +} diff --git a/net-analyzer/vnstat/vnstat-9999.ebuild b/net-analyzer/vnstat/vnstat-9999.ebuild index 2db2af4d81b3..9ba136577512 100644 --- a/net-analyzer/vnstat/vnstat-9999.ebuild +++ b/net-analyzer/vnstat/vnstat-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,12 +15,14 @@ else VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/teemutoivola.asc inherit verify-sig - SRC_URI="https://humdi.net/vnstat/${P}.tar.gz" - SRC_URI+=" https://github.com/vergoh/vnstat/releases/download/v${PV}/${P}.tar.gz" - SRC_URI+=" verify-sig? ( + SRC_URI=" + https://humdi.net/vnstat/${P}.tar.gz + https://github.com/vergoh/vnstat/releases/download/v${PV}/${P}.tar.gz + verify-sig? ( https://humdi.net/vnstat/${P}.tar.gz.asc https://github.com/vergoh/vnstat/releases/download/v${PV}/${P}.tar.gz.asc - )" + ) + " KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" @@ -52,7 +54,7 @@ src_compile() { emake \ ${PN} \ ${PN}d \ - $(usex gd ${PN}i '') + $(usev gd ${PN}i) } src_install() { |