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.714_rc2.ebuild darkstat-3.0.712.ebuild |
Date: | Wed, 01 Jun 2011 00:54:48 |
Message-Id: | 20110601005437.79C1D20054@flycatcher.gentoo.org |
1 | jer 11/06/01 00:54:37 |
2 | |
3 | Modified: ChangeLog |
4 | Added: darkstat-3.0.714_rc2.ebuild |
5 | Removed: darkstat-3.0.712.ebuild |
6 | Log: |
7 | Version bump. |
8 | |
9 | (Portage version: 2.2.0_alpha37/cvs/Linux x86_64) |
10 | |
11 | Revision Changes Path |
12 | 1.44 net-analyzer/darkstat/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?rev=1.44&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?rev=1.44&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?r1=1.43&r2=1.44 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v |
21 | retrieving revision 1.43 |
22 | retrieving revision 1.44 |
23 | diff -u -r1.43 -r1.44 |
24 | --- ChangeLog 26 Jun 2010 16:15:42 -0000 1.43 |
25 | +++ ChangeLog 1 Jun 2011 00:54:37 -0000 1.44 |
26 | @@ -1,6 +1,12 @@ |
27 | # ChangeLog for net-analyzer/darkstat |
28 | -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.43 2010/06/26 16:15:42 nixnut Exp $ |
30 | +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.44 2011/06/01 00:54:37 jer Exp $ |
32 | + |
33 | +*darkstat-3.0.714_rc2 (01 Jun 2011) |
34 | + |
35 | + 01 Jun 2011; Jeroen Roovers <jer@g.o> -darkstat-3.0.712.ebuild, |
36 | + +darkstat-3.0.714_rc2.ebuild: |
37 | + Version bump. |
38 | |
39 | 26 Jun 2010; <nixnut@g.o> darkstat-3.0.713.ebuild: |
40 | ppc stable #323569 |
41 | |
42 | |
43 | |
44 | 1.1 net-analyzer/darkstat/darkstat-3.0.714_rc2.ebuild |
45 | |
46 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.714_rc2.ebuild?rev=1.1&view=markup |
47 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.714_rc2.ebuild?rev=1.1&content-type=text/plain |
48 | |
49 | Index: darkstat-3.0.714_rc2.ebuild |
50 | =================================================================== |
51 | # Copyright 1999-2011 Gentoo Foundation |
52 | # Distributed under the terms of the GNU General Public License v2 |
53 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.714_rc2.ebuild,v 1.1 2011/06/01 00:54:37 jer Exp $ |
54 | |
55 | EAPI="2" |
56 | inherit eutils |
57 | |
58 | DESCRIPTION="darkstat is a network traffic analyzer" |
59 | HOMEPAGE="http://dmr.ath.cx/net/darkstat/" |
60 | SRC_URI="http://dmr.ath.cx/net/${PN}/${P/_/-}.tar.bz2" |
61 | |
62 | KEYWORDS="~amd64 ~ppc ~x86" |
63 | IUSE="" |
64 | LICENSE="GPL-2" |
65 | SLOT="0" |
66 | |
67 | DEPEND="net-libs/libpcap" |
68 | RDEPEND="${DEPEND}" |
69 | |
70 | DARKSTAT_CHROOT_DIR=${DARKSTAT_CHROOT_DIR:-/var/lib/darkstat} |
71 | |
72 | S="${WORKDIR}/${P/_/-}" |
73 | |
74 | src_configure() { |
75 | econf \ |
76 | --with-privdrop-user=darkstat \ |
77 | --with-chroot-dir="${DARKSTAT_CHROOT_DIR}" |
78 | } |
79 | |
80 | src_install() { |
81 | emake DESTDIR="${D}" install || die "installation failed." |
82 | |
83 | dodoc AUTHORS ChangeLog README NEWS || die |
84 | |
85 | newinitd "${FILESDIR}"/darkstat-init.new darkstat || die |
86 | newconfd "${FILESDIR}"/darkstat-confd.new darkstat || die |
87 | |
88 | sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/conf.d/darkstat |
89 | sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/init.d/darkstat |
90 | |
91 | keepdir "${DARKSTAT_CHROOT_DIR}" |
92 | chown darkstat:0 "${D}${DARKSTAT_CHROOT_DIR}" |
93 | } |
94 | |
95 | pkg_preinst() { |
96 | enewuser darkstat |
97 | } |
98 | |
99 | pkg_postinst() { |
100 | # Workaround bug #141619 |
101 | DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat` |
102 | chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}" |
103 | |
104 | elog "To start different darkstat instances which will listen on a different" |
105 | elog "interfaces create in /etc/init.d directory the 'darkstat.if' symlink to" |
106 | elog "darkstat script where 'if' is the name of the interface." |
107 | elog "Also in /etc/conf.d directory copy darkstat to darkstat.if" |
108 | elog "and edit it to change default values." |
109 | elog |
110 | elog "darkstat's default chroot directory is: \"${ROOT}${DARKSTAT_CHROOT_DIR}\"" |
111 | } |