summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-06-14 00:02:26 +0000
committerMike Frysinger <vapier@gentoo.org>2004-06-14 00:02:26 +0000
commit4f136f98a472c671104b76bff95dab8f9ef0d559 (patch)
treee89a4f2f0bb14b0c2c1b51d4b2ec78980e680a95 /net-analyzer/vnstat
parentx86 keyworded to remove circular emerges on dependancy libgcrypt.bug #53775 (diff)
downloadhistorical-4f136f98a472c671104b76bff95dab8f9ef0d559.tar.gz
historical-4f136f98a472c671104b76bff95dab8f9ef0d559.tar.bz2
historical-4f136f98a472c671104b76bff95dab8f9ef0d559.zip
ver bump #44679
Diffstat (limited to 'net-analyzer/vnstat')
-rw-r--r--net-analyzer/vnstat/ChangeLog10
-rw-r--r--net-analyzer/vnstat/Manifest17
-rw-r--r--net-analyzer/vnstat/files/digest-vnstat-1.41
-rw-r--r--net-analyzer/vnstat/files/vnstat.cron8
-rw-r--r--net-analyzer/vnstat/vnstat-1.1.ebuild4
-rw-r--r--net-analyzer/vnstat/vnstat-1.4.ebuild44
6 files changed, 78 insertions, 6 deletions
diff --git a/net-analyzer/vnstat/ChangeLog b/net-analyzer/vnstat/ChangeLog
index 71bde4fd530b..0d8ddfbee5d0 100644
--- a/net-analyzer/vnstat/ChangeLog
+++ b/net-analyzer/vnstat/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/vnstat
-# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.1 2003/09/22 16:20:02 vapier Exp $
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.2 2004/06/14 00:02:26 vapier Exp $
+
+*vnstat-1.4 (13 Jun 2004)
+
+ 13 Jun 2004; Mike Frysinger <vapier@gentoo.org> +files/vnstat.cron,
+ +vnstat-1.4.ebuild:
+ Version bump #44679.
*vnstat-1.1 (22 Sep 2003)
diff --git a/net-analyzer/vnstat/Manifest b/net-analyzer/vnstat/Manifest
index 73f1ed7161c4..1a4d44e35073 100644
--- a/net-analyzer/vnstat/Manifest
+++ b/net-analyzer/vnstat/Manifest
@@ -1,3 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 8ee135a75921f00861993493927ceb8e ChangeLog 495
+MD5 a81eb7a5c2706240d5b3146dc90f3bb3 vnstat-1.1.ebuild 646
+MD5 780454f286dd8c822cf71c45e161ef6e vnstat-1.4.ebuild 1224
+MD5 e00cefa01ca437c27e38d078c012403c files/vnstat.cron 148
MD5 afdaa51d96e363c56fe7358b1c5814c5 files/digest-vnstat-1.1 61
-MD5 2b24ababffaae06e81381ba948ee8cc3 ChangeLog 353
-MD5 6fb4891e6295485bb06ec745bbf8a598 vnstat-1.1.ebuild 647
+MD5 94dd735fdba2070fefd9f85480b1a2b9 files/digest-vnstat-1.4 61
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.8 (GNU/Linux)
+
+iD8DBQFAzOswHTu7gpaalycRAslAAKDaTyY/DqotbnTBS/0oeqcmI6vNaQCguP+j
+pyiUiZ5yyP2016xLLGtjU4A=
+=6SH9
+-----END PGP SIGNATURE-----
diff --git a/net-analyzer/vnstat/files/digest-vnstat-1.4 b/net-analyzer/vnstat/files/digest-vnstat-1.4
new file mode 100644
index 000000000000..c2424fe6d2b1
--- /dev/null
+++ b/net-analyzer/vnstat/files/digest-vnstat-1.4
@@ -0,0 +1 @@
+MD5 9184f79b5e60499bc059f670032291e5 vnstat-1.4.tar.gz 26237
diff --git a/net-analyzer/vnstat/files/vnstat.cron b/net-analyzer/vnstat/files/vnstat.cron
new file mode 100644
index 000000000000..716405fe50c8
--- /dev/null
+++ b/net-analyzer/vnstat/files/vnstat.cron
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# uncomment this line to enable this cron script
+exit 0
+
+if [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ] ; then
+ exec /usr/bin/vnstat -u
+fi
diff --git a/net-analyzer/vnstat/vnstat-1.1.ebuild b/net-analyzer/vnstat/vnstat-1.1.ebuild
index 3c0cdfc3d90d..9972a05d5caa 100644
--- a/net-analyzer/vnstat/vnstat-1.1.ebuild
+++ b/net-analyzer/vnstat/vnstat-1.1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.1.ebuild,v 1.1 2003/09/22 16:20:02 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.1.ebuild,v 1.2 2004/06/14 00:02:26 vapier Exp $
DESCRIPTION="network traffic monitor that keeps statistics of daily network traffic"
HOMEPAGE="http://torus.lnet.lut.fi/vnstat/"
diff --git a/net-analyzer/vnstat/vnstat-1.4.ebuild b/net-analyzer/vnstat/vnstat-1.4.ebuild
new file mode 100644
index 000000000000..c0e40a752f0a
--- /dev/null
+++ b/net-analyzer/vnstat/vnstat-1.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.4.ebuild,v 1.1 2004/06/14 00:02:26 vapier Exp $
+
+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="x86"
+IUSE=""
+
+RDEPEND="virtual/cron"
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ keepdir /var/lib/vnstat
+
+ dobin src/vnstat || die
+ insinto /etc/cron.hourly
+ newins ${FILESDIR}/vnstat.cron vnstat
+ doman man/vnstat.1
+
+ newdoc pppd/vnstat_ip-down ip-down.example
+ newdoc pppd/vnstat_ip-up ip-up.example
+ dodoc CHANGES INSTALL README UPGRADE FAQ
+}
+
+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
+ einfo "vnStat db files moved from /var/spool/vnstat to /var/lib/vnstat"
+ fi
+
+ einfo "Repeat the following command for every interface you"
+ einfo "wish to monitor (replace eth0):"
+ einfo " vnstat -u -i eth0"
+}