From: | "Jeroen Roovers (jer)" <jer@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-analyzer/darkstat: ChangeLog darkstat-3.0.718.ebuild |
Date: | Sun, 04 May 2014 14:10:56 |
Message-Id: | 20140504141051.38BD92004C@flycatcher.gentoo.org |
1 | jer 14/05/04 14:10:51 |
2 | |
3 | Modified: ChangeLog |
4 | Added: darkstat-3.0.718.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
9 | |
10 | Revision Changes Path |
11 | 1.59 net-analyzer/darkstat/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?rev=1.59&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?rev=1.59&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?r1=1.58&r2=1.59 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v |
20 | retrieving revision 1.58 |
21 | retrieving revision 1.59 |
22 | diff -u -r1.58 -r1.59 |
23 | --- ChangeLog 20 Jan 2014 15:53:10 -0000 1.58 |
24 | +++ ChangeLog 4 May 2014 14:10:50 -0000 1.59 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for net-analyzer/darkstat |
27 | # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.58 2014/01/20 15:53:10 ago Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.59 2014/05/04 14:10:50 jer Exp $ |
30 | + |
31 | +*darkstat-3.0.718 (04 May 2014) |
32 | + |
33 | + 04 May 2014; Jeroen Roovers <jer@g.o> +darkstat-3.0.718.ebuild: |
34 | + Version bump. |
35 | |
36 | 20 Jan 2014; Agostino Sarubbo <ago@g.o> darkstat-3.0.717.ebuild: |
37 | Stable for ppc, wrt bug #495830 |
38 | |
39 | |
40 | |
41 | 1.1 net-analyzer/darkstat/darkstat-3.0.718.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.718.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.718.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: darkstat-3.0.718.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/darkstat/darkstat-3.0.718.ebuild,v 1.1 2014/05/04 14:10:51 jer Exp $ |
51 | |
52 | EAPI=5 |
53 | |
54 | inherit eutils user |
55 | |
56 | DESCRIPTION="Network traffic analyzer with cute web interface" |
57 | HOMEPAGE="http://unix4lyfe.org/darkstat/" |
58 | SRC_URI="http://unix4lyfe.org/${PN}/${P}.tar.bz2" |
59 | |
60 | LICENSE="GPL-2" |
61 | SLOT="0" |
62 | KEYWORDS="~amd64 ~ppc ~x86" |
63 | |
64 | DEPEND="net-libs/libpcap" |
65 | RDEPEND="${DEPEND}" |
66 | |
67 | DARKSTAT_CHROOT_DIR=${DARKSTAT_CHROOT_DIR:-/var/lib/darkstat} |
68 | |
69 | DOCS=( AUTHORS ChangeLog README NEWS ) |
70 | |
71 | src_prepare() { |
72 | epatch_user |
73 | } |
74 | |
75 | src_configure() { |
76 | econf --disable-debug --with-privdrop-user=darkstat |
77 | } |
78 | |
79 | src_install() { |
80 | default |
81 | |
82 | newinitd "${FILESDIR}"/darkstat-init.new darkstat |
83 | newconfd "${FILESDIR}"/darkstat-confd.new darkstat |
84 | |
85 | sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/conf.d/darkstat |
86 | sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/init.d/darkstat |
87 | |
88 | keepdir "${DARKSTAT_CHROOT_DIR}" |
89 | chown darkstat:0 "${D}${DARKSTAT_CHROOT_DIR}" |
90 | } |
91 | |
92 | pkg_preinst() { |
93 | enewuser darkstat |
94 | } |
95 | |
96 | pkg_postinst() { |
97 | # Workaround bug #141619 |
98 | DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat` |
99 | chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}" |
100 | |
101 | elog "To start different darkstat instances which will listen on a different" |
102 | elog "interfaces create in /etc/init.d directory the 'darkstat.if' symlink to" |
103 | elog "darkstat script where 'if' is the name of the interface." |
104 | elog "Also in /etc/conf.d directory copy darkstat to darkstat.if" |
105 | elog "and edit it to change default values." |
106 | elog |
107 | elog "darkstat's default chroot directory is: \"${ROOT}${DARKSTAT_CHROOT_DIR}\"" |
108 | } |