summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2007-12-26 17:28:52 +0000
committerPeter Volkov <pva@gentoo.org>2007-12-26 17:28:52 +0000
commit06557727830a0f75a7259cc4f2c14ed2b803fc20 (patch)
tree3607746a316f198780aa352c143d3d1d134fe0a2 /net-analyzer
parentamd64 stable wrt bug#202891 (diff)
downloadgentoo-2-06557727830a0f75a7259cc4f2c14ed2b803fc20.tar.gz
gentoo-2-06557727830a0f75a7259cc4f2c14ed2b803fc20.tar.bz2
gentoo-2-06557727830a0f75a7259cc4f2c14ed2b803fc20.zip
Version bump. Thank armin76 for report. --dbdir is droped as you can do the same in configuration file.
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/vnstat/ChangeLog9
-rw-r--r--net-analyzer/vnstat/files/digest-vnstat-1.53
-rw-r--r--net-analyzer/vnstat/metadata.xml9
-rw-r--r--net-analyzer/vnstat/vnstat-1.4-r2.ebuild4
-rw-r--r--net-analyzer/vnstat/vnstat-1.5.ebuild70
5 files changed, 90 insertions, 5 deletions
diff --git a/net-analyzer/vnstat/ChangeLog b/net-analyzer/vnstat/ChangeLog
index 6415e764a827..d3d53302ec1e 100644
--- a/net-analyzer/vnstat/ChangeLog
+++ b/net-analyzer/vnstat/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/vnstat
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.25 2007/09/06 18:50:19 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.26 2007/12/26 17:28:51 pva Exp $
+
+*vnstat-1.5 (26 Dec 2007)
+
+ 26 Dec 2007; <pva@gentoo.org> metadata.xml, vnstat-1.4-r2.ebuild,
+ +vnstat-1.5.ebuild:
+ Version bump. Thank armin76 for report. --dbdir is droped as you can do the
+ same in configuration file.
06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -vnstat-1.1.ebuild,
-vnstat-1.4.ebuild, -vnstat-1.4-r1.ebuild:
diff --git a/net-analyzer/vnstat/files/digest-vnstat-1.5 b/net-analyzer/vnstat/files/digest-vnstat-1.5
new file mode 100644
index 000000000000..5b8720f4d58f
--- /dev/null
+++ b/net-analyzer/vnstat/files/digest-vnstat-1.5
@@ -0,0 +1,3 @@
+MD5 c9b435f2d12b23064d7005219d2d7371 vnstat-1.5.tar.gz 33491
+RMD160 062ac9fc4355e67445c15ce36d97f54347f1dc28 vnstat-1.5.tar.gz 33491
+SHA256 a590048a97761fa97e9ecb89e3a81a5a56949b2f5e669446b15cf9d655901aa6 vnstat-1.5.tar.gz 33491
diff --git a/net-analyzer/vnstat/metadata.xml b/net-analyzer/vnstat/metadata.xml
index dd2f3579ea22..ff2cafb5d05e 100644
--- a/net-analyzer/vnstat/metadata.xml
+++ b/net-analyzer/vnstat/metadata.xml
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>netmon</herd>
-<longdescription>Console-based network traffic monitor that keeps statistics of network usage</longdescription>
+ <herd>netmon</herd>
+<longdescription>
+ vnStat is a network traffic monitor for Linux that keeps a log of daily
+ network traffic for the selected interface(s). vnStat isn't a packet sniffer.
+ The traffic information is analyzed from the /proc filesystem. That way vnStat
+ can be used even without root permissions.
+</longdescription>
</pkgmetadata>
diff --git a/net-analyzer/vnstat/vnstat-1.4-r2.ebuild b/net-analyzer/vnstat/vnstat-1.4-r2.ebuild
index f22b50d8ddab..8ccfe6df81f9 100644
--- a/net-analyzer/vnstat/vnstat-1.4-r2.ebuild
+++ b/net-analyzer/vnstat/vnstat-1.4-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.4-r2.ebuild,v 1.9 2007/06/15 22:47:46 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.4-r2.ebuild,v 1.10 2007/12/26 17:28:51 pva Exp $
inherit eutils toolchain-funcs
@@ -36,7 +36,7 @@ src_install() {
dobin src/vnstat || die
exeinto /etc/cron.hourly
- newexe ${FILESDIR}/vnstat.cron vnstat
+ newexe "${FILESDIR}"/vnstat.cron vnstat
doman man/vnstat.1
newdoc pppd/vnstat_ip-down ip-down.example
diff --git a/net-analyzer/vnstat/vnstat-1.5.ebuild b/net-analyzer/vnstat/vnstat-1.5.ebuild
new file mode 100644
index 000000000000..1c38773a6da7
--- /dev/null
+++ b/net-analyzer/vnstat/vnstat-1.5.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.5.ebuild,v 1.1 2007/12/26 17:28:51 pva Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage"
+HOMEPAGE="http://humdi.net/vnstat/"
+SRC_URI="http://humdi.net/vnstat/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/cron"
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "Compilation failed"
+}
+
+src_install() {
+ dobin src/vnstat || die
+ exeinto /etc/cron.hourly
+ newexe "${FILESDIR}"/vnstat.cron vnstat
+
+ insinto /etc
+ doins cfg/vnstat.conf
+
+ doman man/vnstat.1
+
+ keepdir /var/lib/vnstat
+
+ newdoc pppd/vnstat_ip-up ip-up.example
+ newdoc pppd/vnstat_ip-down ip-down.example
+ dodoc CHANGES README UPGRADE FAQ
+ newdoc INSTALL README.setup
+}
+
+pkg_postinst() {
+ # compatibility for 1.1 ebuild
+ if [[ -d ${ROOT}/var/spool/vnstat ]] ; then
+ mv -f "${ROOT}"/var/spool/vnstat/* "${ROOT}"/var/lib/vnstat/ \
+ && rmdir "${ROOT}"/var/spool/vnstat
+ elog "vnStat db files moved from /var/spool/vnstat to /var/lib/vnstat"
+ elog
+ fi
+
+ elog "Repeat the following command for every interface you"
+ elog "wish to monitor (replace eth0):"
+ elog " vnstat -u -i eth0"
+ elog
+ elog "Note: if an interface transfers more than ~4GB in"
+ elog "the time between cron runs, you may miss traffic"
+ elog
+
+ if [[ -e ${ROOT}/etc/cron.d/vnstat ]] ; then
+ elog "vnstat's cron script is now installed as /etc/cron.hourly/vnstat."
+ elog "Please remove /etc/cron.d/vnstat."
+ elog
+ else
+ elog "A cron script has been installed to /etc/cron.hourly/vnstat."
+ elog
+ fi
+ elog "To update your interface database automatically with"
+ elog "cron, uncomment the lines in /etc/cron.hourly/vnstat."
+ elog
+ elog "Starting with version 1.5 --dbdir option is droped. You can do the same"
+ elog "with DatabaseDir directive in configuration file (/etc/vnstat.conf)."
+}