public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/vnstat/
Date: Sun,  5 Sep 2021 05:48:32 +0000 (UTC)	[thread overview]
Message-ID: <1630819485.9d9a6d7aeed1a2a6043aed24a0a6fddbdd7d488c.sam@gentoo> (raw)

commit:     9d9a6d7aeed1a2a6043aed24a0a6fddbdd7d488c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  5 03:08:51 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep  5 05:24:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d9a6d7a

net-analyzer/vnstat: add 2.8

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/vnstat/Manifest          |  2 +
 net-analyzer/vnstat/vnstat-2.8.ebuild | 86 +++++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git a/net-analyzer/vnstat/Manifest b/net-analyzer/vnstat/Manifest
index 303e92c6e94..ddd03e8d927 100644
--- a/net-analyzer/vnstat/Manifest
+++ b/net-analyzer/vnstat/Manifest
@@ -4,3 +4,5 @@ DIST vnstat-2.6.tar.gz 275751 BLAKE2B 7351b265d66e42d1e5450dae6f5eaa973a9cdc171b
 DIST vnstat-2.6.tar.gz.asc 833 BLAKE2B 5e79d1b622dd4d37603a209b78018a3e88f2c404c700e1f439e4b98e2c2dd5bdf26e8ecd3b1b1242e14a725d7839c5a8b3b5448dc27e1f917cbeaf6012546656 SHA512 c643152bec14b70317465f8adc2256b41b8686e106b35ce492ad5030c2d5b32162441ac5fb2f309071da855efdf444076288cf075d8073bad0c0907067366e7f
 DIST vnstat-2.7.tar.gz 287304 BLAKE2B f7b50cccfe4b62bce45751e6029650dc6d8ac7b7925cc4177fb1772c6d842b5201f6834d5e6374016b4c42374660b1c127d5b021adffe873de0a4c484171b6b3 SHA512 3d1674ddb5269d29d4d758551dc3e58fb1858a7dd790914c7d74047443b25d242c91f8ab20bdede9c1b061d6b682d73f3d6c1a8aa656a9676bc33c0ed9b1b2d4
 DIST vnstat-2.7.tar.gz.asc 833 BLAKE2B ae9bb28ccd9f10e7ac0c32e9895140cdd9d8498ef18d9b716ffbed3c6693ff08e5ddb08c377ec009df881f7fc1666f09da48cee75857566bdd4f1a2be30a97b9 SHA512 dd1ae2d94400aee9622c28385a103680ca87abfb66b5c92e8ce7240b97f28e81ac1a9cfc97fff7cd6d3934bfa639f46c835acbf855c7a4a29309946d7cbd80d4
+DIST vnstat-2.8.tar.gz 290644 BLAKE2B 21ff801ce6abb135c26eb937eadb447bea9fd3dcb2af123051edb9861e088d8fc217f84ef2d924fe8b480388cfc761d0259f8abb2312ae49c2840643787d49bd SHA512 207aa1699df298ce3008153701782634a96a239599d17a5b2f1fbb298a9cf8edb35298e2de1f4f93415ddf34e0bdb831f95984b47fdd7f89ecc6aeb4821a0afd
+DIST vnstat-2.8.tar.gz.asc 833 BLAKE2B 097d37e1916924901f10d09bba882357c0eb81cf71fca921dbc642735ec8c0bde97f7ab63cd3953718c21687e6f39099cf2446210f41f3698b39b74116c4c025 SHA512 d5448d68da92d434cc6a34e007002c81ed8d97e533bf99364d3f65b4125bd6f21fe2f6f6efb97775ecc4ba4afd09e12add71ae2299a2d990a7a9d0a591c32811

diff --git a/net-analyzer/vnstat/vnstat-2.8.ebuild b/net-analyzer/vnstat/vnstat-2.8.ebuild
new file mode 100644
index 00000000000..02ba926a4b8
--- /dev/null
+++ b/net-analyzer/vnstat/vnstat-2.8.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+	SRC_URI+=" verify-sig? ( https://humdi.net/vnstat/${P}.tar.gz.asc )"
+
+	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+
+	BDEPEND="verify-sig? ( app-crypt/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.2-conf.patch
+	"${FILESDIR}"/${PN}-2.2-drop-root.patch
+	"${FILESDIR}"/${PN}-2.2-run.patch
+)
+
+src_compile() {
+	emake \
+		${PN} \
+		${PN}d \
+		$(usex 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
+}


             reply	other threads:[~2021-09-05  5:48 UTC|newest]

Thread overview: 105+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05  5:48 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-18  3:19 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/vnstat/ Sam James
2024-04-13  6:26 Arthur Zamarin
2024-03-14  7:54 Arthur Zamarin
2024-03-14  7:51 Arthur Zamarin
2024-03-14  7:34 Sam James
2024-03-14  6:26 Sam James
2024-03-14  6:11 Sam James
2024-03-14  6:11 Sam James
2024-03-14  6:07 Sam James
2024-02-02  1:02 Sam James
2023-12-28  3:43 Sam James
2023-12-22  5:14 Ionen Wolkens
2023-12-15 12:27 Arthur Zamarin
2023-12-15  7:06 Sam James
2023-12-15  7:06 Sam James
2023-12-15  6:52 Sam James
2023-12-15  6:52 Sam James
2023-12-15  6:44 Sam James
2023-08-21  6:06 Sam James
2022-12-10  4:36 Sam James
2022-11-25  9:50 Arthur Zamarin
2022-11-25  7:16 Sam James
2022-11-25  5:39 Sam James
2022-11-25  5:33 Sam James
2022-11-25  5:17 Sam James
2022-11-25  5:15 Sam James
2022-11-25  5:08 Sam James
2022-11-25  5:06 Sam James
2022-10-24 12:18 Sam James
2022-02-26  0:21 Sam James
2022-02-25 21:34 Sam James
2022-02-25 10:08 Jakov Smolić
2022-02-25  9:28 Yixun Lan
2022-02-25  8:08 Arthur Zamarin
2022-02-25  7:57 Agostino Sarubbo
2022-02-25  7:56 Agostino Sarubbo
2022-02-25  7:56 Agostino Sarubbo
2022-02-25  7:55 Agostino Sarubbo
2022-02-05 19:17 Arthur Zamarin
2022-01-01  9:38 Sam James
2021-10-08  1:57 Sam James
2021-10-06 23:06 Sam James
2021-10-06 23:06 Sam James
2021-10-06 23:06 Sam James
2021-10-06  6:47 Agostino Sarubbo
2021-10-06  6:47 Agostino Sarubbo
2021-10-06  6:06 Agostino Sarubbo
2021-07-31 13:40 Michał Górny
2021-06-25 19:36 Sam James
2021-06-17  0:17 Sam James
2021-06-17  0:17 Sam James
2021-06-17  0:17 Sam James
2021-06-17  0:17 Sam James
2021-06-17  0:17 Sam James
2021-06-17  0:17 Sam James
2021-05-17  0:39 Sam James
2021-05-17  0:39 Sam James
2021-05-17  0:39 Sam James
2021-04-26 15:39 Sam James
2021-04-26 15:37 Sam James
2021-03-23  4:53 Sam James
2021-03-23  4:04 Sam James
2021-01-02 11:11 Sam James
2020-12-29 23:59 Sam James
2020-12-29 23:35 Sam James
2020-12-29 23:35 Sam James
2020-11-06  6:33 Sam James
2020-11-04  0:44 Sam James
2020-11-04  0:44 Sam James
2020-10-28 16:18 Sam James
2020-10-26  7:29 Sergei Trofimovich
2020-10-25 23:08 Thomas Deutschmann
2020-10-24 17:46 Sergei Trofimovich
2020-10-24 11:08 Sergei Trofimovich
2020-10-24 11:03 Sergei Trofimovich
2020-10-12  3:17 Joshua Kinard
2020-01-20 19:58 Jeroen Roovers
2020-01-16 13:21 Jeroen Roovers
2020-01-16 13:21 Jeroen Roovers
2019-08-20  8:49 Jeroen Roovers
2019-08-20  8:48 Jeroen Roovers
2019-07-13  9:52 Jeroen Roovers
2019-04-30 14:02 Jeroen Roovers
2018-12-09 14:59 Jeroen Roovers
2018-10-23 10:56 Jeroen Roovers
2018-09-13  7:39 Jeroen Roovers
2018-05-06 14:16 Aaron Bauman
2018-03-09 19:39 Jeroen Roovers
2017-10-17 11:01 Jeroen Roovers
2017-10-13 13:42 Jeroen Roovers
2017-04-08  8:45 Jeroen Roovers
2017-03-29  8:38 Michael Weber
2017-03-28 10:24 Michael Weber
2017-03-28  9:31 Michael Weber
2017-03-25 14:43 Agostino Sarubbo
2017-02-21  5:10 Jeroen Roovers
2017-02-21  5:10 Jeroen Roovers
2016-12-28 14:18 Jeroen Roovers
2016-05-20  8:29 Jeroen Roovers
2016-04-23 10:01 Jeroen Roovers
2016-04-22 20:01 Markus Meier
2016-04-09 13:46 Agostino Sarubbo
2015-12-24 22:08 Jeroen Roovers
2015-12-24 22:08 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1630819485.9d9a6d7aeed1a2a6043aed24a0a6fddbdd7d488c.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox