1 |
jer 14/09/03 14:16:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vnstat-1.12.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
9 |
|
10 |
Revision Changes Path |
11 |
1.67 net-analyzer/vnstat/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/vnstat/ChangeLog?rev=1.67&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/vnstat/ChangeLog?rev=1.67&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/vnstat/ChangeLog?r1=1.66&r2=1.67 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v |
20 |
retrieving revision 1.66 |
21 |
retrieving revision 1.67 |
22 |
diff -u -r1.66 -r1.67 |
23 |
--- ChangeLog 23 Jul 2014 01:03:46 -0000 1.66 |
24 |
+++ ChangeLog 3 Sep 2014 14:16:40 -0000 1.67 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for net-analyzer/vnstat |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.66 2014/07/23 01:03:46 mrueg Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/vnstat/ChangeLog,v 1.67 2014/09/03 14:16:40 jer Exp $ |
30 |
+ |
31 |
+*vnstat-1.12 (03 Sep 2014) |
32 |
+ |
33 |
+ 03 Sep 2014; Jeroen Roovers <jer@g.o> +vnstat-1.12.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
23 Jul 2014; Manuel RĂ¼ger <mrueg@g.o> vnstat-1.11-r2.ebuild: |
37 |
Fix compilation target for emake. See bug #517762. |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-analyzer/vnstat/vnstat-1.12.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/vnstat/vnstat-1.12.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/vnstat/vnstat-1.12.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vnstat-1.12.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2014 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.12.ebuild,v 1.1 2014/09/03 14:16:40 jer Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
inherit toolchain-funcs user |
54 |
|
55 |
DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage" |
56 |
HOMEPAGE="http://humdi.net/vnstat/" |
57 |
SRC_URI="http://humdi.net/vnstat/${P}.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" |
62 |
IUSE="gd" |
63 |
|
64 |
DEPEND=" |
65 |
gd? ( media-libs/gd[png] )" |
66 |
RDEPEND="${DEPEND}" |
67 |
|
68 |
pkg_setup() { |
69 |
enewgroup vnstat |
70 |
enewuser vnstat -1 -1 /dev/null vnstat |
71 |
} |
72 |
|
73 |
src_prepare() { |
74 |
tc-export CC |
75 |
} |
76 |
|
77 |
src_compile() { |
78 |
sed -i 's:vnstat[.]log:vnstatd.log:' cfg/vnstat.conf || die |
79 |
sed -i 's:vnstat[.]pid:vnstatd/vnstatd.pid:' cfg/vnstat.conf || die |
80 |
|
81 |
emake CFLAGS="${CFLAGS}" $(usex gd all '') |
82 |
} |
83 |
|
84 |
src_install() { |
85 |
use gd && dobin src/vnstati |
86 |
dobin src/vnstat src/vnstatd |
87 |
|
88 |
exeinto /etc/cron.hourly |
89 |
newexe "${FILESDIR}"/vnstat.cron vnstat |
90 |
|
91 |
insinto /etc |
92 |
doins cfg/vnstat.conf |
93 |
fowners root:vnstat /etc/vnstat.conf |
94 |
|
95 |
newconfd "${FILESDIR}"/vnstatd.confd vnstatd |
96 |
newinitd "${FILESDIR}"/vnstatd.initd vnstatd |
97 |
|
98 |
keepdir /var/lib/vnstat |
99 |
fowners vnstat:vnstat /var/lib/vnstat |
100 |
|
101 |
use gd && doman man/vnstati.1 |
102 |
doman man/vnstat.1 man/vnstatd.1 |
103 |
|
104 |
newdoc INSTALL README.setup |
105 |
dodoc CHANGES README UPGRADE FAQ examples/vnstat.cgi |
106 |
} |
107 |
|
108 |
pkg_postinst() { |
109 |
# Workaround feature/bug #141619 |
110 |
chown -R vnstat:vnstat "${ROOT}"/var/lib/vnstat |
111 |
chown vnstat:vnstat "${ROOT}"/var/run/vnstatd |
112 |
ewarn "vnStat db files owning user and group has been changed to \"vnstat\"." |
113 |
|
114 |
elog |
115 |
elog "Repeat the following command for every interface you" |
116 |
elog "wish to monitor (replace eth0):" |
117 |
elog " vnstat -u -i eth0" |
118 |
elog "and set correct permissions after that, e.g." |
119 |
elog " chown -R vnstat:vnstat /var/lib/vnstat" |
120 |
elog |
121 |
elog "Note: if an interface transfers more than ~4GB in" |
122 |
elog "the time between cron runs, you may miss traffic" |
123 |
elog |
124 |
elog "To update the interfaces database automatically with cron, uncomment" |
125 |
elog "lines in /etc/cron.hourly/vnstat and set cron job to run it as" |
126 |
elog "frequently as required. Alternatively you can use vnstatd. Init script" |
127 |
elog "was installed into /etc/init.d/vnstatd for your convenience." |
128 |
} |