Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/vnstat: ChangeLog vnstat-1.6.ebuild
Date: Tue, 08 Jan 2008 18:50:36
Message-Id: E1JCJWz-0003Ht-LI@stork.gentoo.org
1 pva 08/01/08 18:50:33
2
3 Modified: ChangeLog
4 Added: vnstat-1.6.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.27 net-analyzer/vnstat/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/vnstat/ChangeLog?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/vnstat/ChangeLog?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/vnstat/ChangeLog?r1=1.26&r2=1.27
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -u -r1.26 -r1.27
22 --- ChangeLog 26 Dec 2007 17:28:51 -0000 1.26
23 +++ ChangeLog 8 Jan 2008 18:50:33 -0000 1.27
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-analyzer/vnstat
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.26 2007/12/26 17:28:51 pva Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.27 2008/01/08 18:50:33 pva Exp $
30 +
31 +*vnstat-1.6 (08 Jan 2008)
32 +
33 + 08 Jan 2008; <pva@g.o> +vnstat-1.6.ebuild:
34 + Version bump.
35
36 *vnstat-1.5 (26 Dec 2007)
37
38
39
40
41 1.1 net-analyzer/vnstat/vnstat-1.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/vnstat/vnstat-1.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/vnstat/vnstat-1.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vnstat-1.6.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/vnstat-1.6.ebuild,v 1.1 2008/01/08 18:50:33 pva Exp $
51
52 inherit eutils toolchain-funcs
53
54 DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage"
55 HOMEPAGE="http://humdi.net/vnstat/"
56 SRC_URI="http://humdi.net/vnstat/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
61 IUSE=""
62
63 RDEPEND="virtual/cron"
64
65 src_compile() {
66 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "Compilation failed"
67 }
68
69 src_install() {
70 dobin src/vnstat || die
71 exeinto /etc/cron.hourly
72 newexe "${FILESDIR}"/vnstat.cron vnstat
73
74 insinto /etc
75 doins cfg/vnstat.conf
76
77 doman man/vnstat.1
78
79 keepdir /var/lib/vnstat
80
81 newdoc pppd/vnstat_ip-up ip-up.example
82 newdoc pppd/vnstat_ip-down ip-down.example
83 dodoc CHANGES README UPGRADE FAQ
84 newdoc INSTALL README.setup
85 }
86
87 pkg_postinst() {
88 # compatibility for 1.1 ebuild
89 if [[ -d ${ROOT}/var/spool/vnstat ]] ; then
90 mv -f "${ROOT}"/var/spool/vnstat/* "${ROOT}"/var/lib/vnstat/ \
91 && rmdir "${ROOT}"/var/spool/vnstat
92 elog "vnStat db files moved from /var/spool/vnstat to /var/lib/vnstat"
93 elog
94 fi
95
96 elog "Repeat the following command for every interface you"
97 elog "wish to monitor (replace eth0):"
98 elog " vnstat -u -i eth0"
99 elog
100 elog "Note: if an interface transfers more than ~4GB in"
101 elog "the time between cron runs, you may miss traffic"
102 elog
103
104 if [[ -e ${ROOT}/etc/cron.d/vnstat ]] ; then
105 elog "vnstat's cron script is now installed as /etc/cron.hourly/vnstat."
106 elog "Please remove /etc/cron.d/vnstat."
107 elog
108 else
109 elog "A cron script has been installed to /etc/cron.hourly/vnstat."
110 elog
111 fi
112 elog "To update your interface database automatically with"
113 elog "cron, uncomment the lines in /etc/cron.hourly/vnstat."
114 elog
115 elog "Starting with version 1.5 --dbdir option is droped. You can do the same"
116 elog "with DatabaseDir directive in configuration file (/etc/vnstat.conf)."
117 }
118
119
120
121 --
122 gentoo-commits@l.g.o mailing list