mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-analyzer/vnstat: drop 2.8, 1.7
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,6 +1,2 @@
|
||||
DIST vnstat-1.17.tar.gz 238397 BLAKE2B 73aaffda3c91a1146b1d6a21f637272be227a15a7964aad90fb76c407c5f7fb0085e6f9f54408e8ebc667475c15f260d701c5924737f20921ebc0a35affd52be SHA512 c9c119a89054dacdc15026c766a20d88336d7689dd4264530d0347fcc58f3cbfc806b271e0f83e76c3b4a31ab793a628ee7d7b696943da919ee4cd2fdb481cc3
|
||||
DIST vnstat-1.17.tar.gz.asc 819 BLAKE2B 3186e28dc29edb37eb0bbef9b29f1ea682e4a9de208b69b83a8bc99c81f272eb6865176aaa30e415bf8423d94f385e0725e1256eeb822c3152638eaace23b749 SHA512 c26af29daefe6431c1769812d04ba5bff92ac1241a6a49df11e28f0e51b21d4eb84ff1f1fb133a388fd8ac59967162bc5d60d5f02c409d34be5414acd34f7818
|
||||
DIST vnstat-2.8.tar.gz 290644 BLAKE2B 21ff801ce6abb135c26eb937eadb447bea9fd3dcb2af123051edb9861e088d8fc217f84ef2d924fe8b480388cfc761d0259f8abb2312ae49c2840643787d49bd SHA512 207aa1699df298ce3008153701782634a96a239599d17a5b2f1fbb298a9cf8edb35298e2de1f4f93415ddf34e0bdb831f95984b47fdd7f89ecc6aeb4821a0afd
|
||||
DIST vnstat-2.8.tar.gz.asc 833 BLAKE2B 097d37e1916924901f10d09bba882357c0eb81cf71fca921dbc642735ec8c0bde97f7ab63cd3953718c21687e6f39099cf2446210f41f3698b39b74116c4c025 SHA512 d5448d68da92d434cc6a34e007002c81ed8d97e533bf99364d3f65b4125bd6f21fe2f6f6efb97775ecc4ba4afd09e12add71ae2299a2d990a7a9d0a591c32811
|
||||
DIST vnstat-2.9.tar.gz 300796 BLAKE2B 1671fe49f3add0087431b57aaa69d4c6280066a299e6899c00cd5bf6ec21380d1457295f884f683ebfb89959eea08a9d900e898a865e3f6ff2a82ecf354d974a SHA512 883f273c02f6d91478991d95deffba9d90457a1bb0b9dd818c01398365df97ffb72dda88299231d9076756192b05524b6f8820470c9caf6ee6a12e5914a82176
|
||||
DIST vnstat-2.9.tar.gz.asc 833 BLAKE2B 4dd17e02e6c0c5232354ea8c4dea1d86ac43015ac66c60dc227b143aa5352e5a1eb0870932662778b2350928b124e2bbc56dfa13cfe7c2fd74538d84c00f9b4c SHA512 bf57974afb028fef7ec311a15bb1dcf275f10b845c5512efe73711b622b5912c4de0ff0553db4152389d2421a468c888191eab8fca08212e164f997ad1e04778
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/cfg/vnstat.conf
|
||||
+++ b/cfg/vnstat.conf
|
||||
@@ -143,7 +143,7 @@
|
||||
LogFile "/var/log/vnstat/vnstat.log"
|
||||
|
||||
# file used as daemon pid / lock file
|
||||
-PidFile "/var/run/vnstat/vnstat.pid"
|
||||
+PidFile "/run/vnstat/vnstat.pid"
|
||||
|
||||
# 1 = 64-bit, 0 = 32-bit, -1 = old style logic, -2 = automatic detection
|
||||
64bitInterfaceCounters -2
|
||||
@@ -1,15 +0,0 @@
|
||||
--- a/cfg/vnstat.conf
|
||||
+++ b/cfg/vnstat.conf
|
||||
@@ -69,10 +69,10 @@
|
||||
##
|
||||
|
||||
# switch to given user when started as root (leave empty to disable)
|
||||
-DaemonUser ""
|
||||
+DaemonUser "vnstat"
|
||||
|
||||
# switch to given group when started as root (leave empty to disable)
|
||||
-DaemonGroup ""
|
||||
+DaemonGroup "vnstat"
|
||||
|
||||
# try to detect interface maximum bandwidth, 0 = disable feature
|
||||
# MaxBandwidth will be used as fallback value when enabled
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# run vnstat if installed and at least one database exists
|
||||
|
||||
# Uncomment the following to enable
|
||||
|
||||
#if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ] ; then
|
||||
# exec /usr/bin/vnstat -u
|
||||
#fi
|
||||
@@ -1,7 +0,0 @@
|
||||
# /etc/conf.d/vnstatd: config file for /etc/init.d/vnstatd
|
||||
|
||||
# Adjust scheduling priority on vnstatd (default: 0)
|
||||
#VNSTATD_NICELEVEL="0"
|
||||
|
||||
# Pass extra options to vnstatd
|
||||
#VNSTATD_EXTRAOPTS="--config /etc/vnstat.conf"
|
||||
@@ -1,37 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
extra_started_commands="reload"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
VNSTATD_PIDFILE="${VNSTATD_PIDFILE:-/run/vnstatd/vnstatd.pid}"
|
||||
|
||||
start() {
|
||||
ebegin "Starting vnstatd"
|
||||
checkpath -q -d -m 755 -o vnstat:vnstat /run/vnstatd
|
||||
checkpath -q -d -m 755 -o vnstat:vnstat /var/lib/vnstat
|
||||
start-stop-daemon --start --quiet \
|
||||
--pidfile "${VNSTATD_PIDFILE}" \
|
||||
--user vnstat --group vnstat \
|
||||
--nicelevel ${VNSTATD_NICELEVEL:-0} \
|
||||
--exec /usr/bin/vnstatd -- \
|
||||
-d ${VNSTATD_EXTRAOPTS} -p ${VNSTATD_PIDFILE}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping vnstatd"
|
||||
start-stop-daemon --stop --quiet \
|
||||
--pidfile "${VNSTATD_PIDFILE}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
reload() {
|
||||
ebegin "Reloading vnstatd configuration"
|
||||
kill -HUP $(cat "${VNSTATD_PIDFILE}") 2>&1 >/dev/null
|
||||
eend $?
|
||||
}
|
||||
@@ -1,78 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/teemutoivola.asc
|
||||
inherit flag-o-matic toolchain-funcs verify-sig
|
||||
|
||||
DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage"
|
||||
HOMEPAGE="https://humdi.net/vnstat/"
|
||||
SRC_URI="https://humdi.net/vnstat/${P}.tar.gz"
|
||||
SRC_URI+=" verify-sig? ( https://humdi.net/vnstat/${P}.tar.gz.asc )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~hppa ppc ppc64 sparc x86"
|
||||
IUSE="gd selinux test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="gd? ( media-libs/gd[png] )"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-libs/check )
|
||||
"
|
||||
RDEPEND+=" acct-group/vnstat
|
||||
acct-user/vnstat
|
||||
selinux? ( sec-policy/selinux-vnstatd )"
|
||||
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-teemutoivola )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
tc-export CC
|
||||
|
||||
sed -i \
|
||||
-e 's|vnstat[.]log|vnstatd.log|' \
|
||||
-e 's|vnstat[.]pid|vnstatd/vnstatd.pid|' \
|
||||
-e 's|/var/run|/run|' \
|
||||
cfg/${PN}.conf || die
|
||||
|
||||
sed -i \
|
||||
-e '/PIDFILE/s|/var/run|/run|' \
|
||||
src/common.h || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
|
||||
# Fails to build with GCC 10
|
||||
append-flags -fcommon
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake ${PN} ${PN}d $(usex gd ${PN}i '')
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use gd && dobin vnstati
|
||||
dobin vnstat vnstatd
|
||||
|
||||
exeinto /etc/cron.hourly
|
||||
newexe "${FILESDIR}"/vnstat.cron vnstat
|
||||
|
||||
insinto /etc
|
||||
doins cfg/vnstat.conf
|
||||
fowners root:vnstat /etc/vnstat.conf
|
||||
|
||||
newconfd "${FILESDIR}"/vnstatd.confd vnstatd
|
||||
newinitd "${FILESDIR}"/vnstatd.initd-r1 vnstatd
|
||||
|
||||
use gd && doman man/vnstati.1
|
||||
doman man/vnstat.1 man/vnstatd.1
|
||||
|
||||
newdoc INSTALL README.setup
|
||||
dodoc CHANGES README UPGRADE FAQ examples/vnstat.cgi
|
||||
}
|
||||
@@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2022 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? ( 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.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
|
||||
}
|
||||
Reference in New Issue
Block a user