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.719.ebuild |
Date: | Sun, 31 May 2015 08:32:29 |
Message-Id: | 20150531083226.73CCBA18@oystercatcher.gentoo.org |
1 | jer 15/05/31 08:32:26 |
2 | |
3 | Modified: ChangeLog |
4 | Added: darkstat-3.0.719.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
9 | |
10 | Revision Changes Path |
11 | 1.67 net-analyzer/darkstat/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?rev=1.67&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?rev=1.67&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/ChangeLog?r1=1.66&r2=1.67 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v |
20 | retrieving revision 1.66 |
21 | retrieving revision 1.67 |
22 | diff -u -r1.66 -r1.67 |
23 | --- ChangeLog 15 Aug 2014 19:18:31 -0000 1.66 |
24 | +++ ChangeLog 31 May 2015 08:32:26 -0000 1.67 |
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.66 2014/08/15 19:18:31 jer Exp $ |
29 | +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/ChangeLog,v 1.67 2015/05/31 08:32:26 jer Exp $ |
31 | + |
32 | +*darkstat-3.0.719 (31 May 2015) |
33 | + |
34 | + 31 May 2015; Jeroen Roovers <jer@g.o> +darkstat-3.0.719.ebuild: |
35 | + Version bump. |
36 | |
37 | 15 Aug 2014; Jeroen Roovers <jer@g.o> darkstat-3.0.718.ebuild: |
38 | sed must die(). |
39 | |
40 | |
41 | |
42 | 1.1 net-analyzer/darkstat/darkstat-3.0.719.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.719.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.719.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: darkstat-3.0.719.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2015 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-3.0.719.ebuild,v 1.1 2015/05/31 08:32:26 jer Exp $ |
52 | |
53 | EAPI=5 |
54 | inherit autotools 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 | sed -i -e 's|-flto||g' configure.ac || die |
73 | epatch_user |
74 | eautoreconf |
75 | } |
76 | |
77 | src_configure() { |
78 | econf --disable-debug --with-privdrop-user=darkstat |
79 | } |
80 | |
81 | src_install() { |
82 | default |
83 | |
84 | newinitd "${FILESDIR}"/darkstat-initd darkstat |
85 | newconfd "${FILESDIR}"/darkstat-confd darkstat |
86 | |
87 | sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/conf.d/darkstat || die |
88 | sed -i -e "s:__CHROOT__:${DARKSTAT_CHROOT_DIR}:g" "${D}"/etc/init.d/darkstat || die |
89 | |
90 | keepdir "${DARKSTAT_CHROOT_DIR}" |
91 | chown darkstat:0 "${D}${DARKSTAT_CHROOT_DIR}" |
92 | } |
93 | |
94 | pkg_preinst() { |
95 | enewuser darkstat |
96 | } |
97 | |
98 | pkg_postinst() { |
99 | # Workaround bug #141619 |
100 | DARKSTAT_CHROOT_DIR=`sed -n 's/^#CHROOT=\(.*\)/\1/p' "${ROOT}"etc/conf.d/darkstat` |
101 | chown darkstat:0 "${ROOT}${DARKSTAT_CHROOT_DIR}" |
102 | |
103 | elog "To start different darkstat instances which will listen on a different" |
104 | elog "interfaces create in /etc/init.d directory the 'darkstat.if' symlink to" |
105 | elog "darkstat script where 'if' is the name of the interface." |
106 | elog "Also in /etc/conf.d directory copy darkstat to darkstat.if" |
107 | elog "and edit it to change default values." |
108 | elog |
109 | elog "darkstat's default chroot directory is: \"${ROOT}${DARKSTAT_CHROOT_DIR}\"" |
110 | } |