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
commit67ee4a69104dcb7a9b04a48a589248e05b2289f7 (patch)
treeaf3a0fdb721591137406688982634c0540980bf3 /net-analyzer/vnstat
parentx86 keyworded to remove circular emerges on dependancy libgcrypt.bug #53775 (diff)
downloadgentoo-2-67ee4a69104dcb7a9b04a48a589248e05b2289f7.tar.gz
gentoo-2-67ee4a69104dcb7a9b04a48a589248e05b2289f7.tar.bz2
gentoo-2-67ee4a69104dcb7a9b04a48a589248e05b2289f7.zip
ver bump #44679
Diffstat (limited to 'net-analyzer/vnstat')
-rw-r--r--net-analyzer/vnstat/ChangeLog10
-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
5 files changed, 63 insertions, 4 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/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"
+}