Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/pmacct: ChangeLog pmacct-0.12.5-r1.ebuild
Date: Sat, 30 Jul 2011 21:08:06
Message-Id: 20110730210754.6093C2004B@flycatcher.gentoo.org
1 patrick 11/07/30 21:07:54
2
3 Modified: ChangeLog
4 Added: pmacct-0.12.5-r1.ebuild
5 Log:
6 Config file location fix for #354649
7
8 (Portage version: 2.1.9.42/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.74 net-analyzer/pmacct/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/ChangeLog?rev=1.74&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/ChangeLog?rev=1.74&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/ChangeLog?r1=1.73&r2=1.74
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/ChangeLog,v
20 retrieving revision 1.73
21 retrieving revision 1.74
22 diff -u -r1.73 -r1.74
23 --- ChangeLog 29 Dec 2010 16:57:29 -0000 1.73
24 +++ ChangeLog 30 Jul 2011 21:07:54 -0000 1.74
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-analyzer/pmacct
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/ChangeLog,v 1.73 2010/12/29 16:57:29 jer Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/ChangeLog,v 1.74 2011/07/30 21:07:54 patrick Exp $
31 +
32 +*pmacct-0.12.5-r1 (30 Jul 2011)
33 +
34 + 30 Jul 2011; Patrick Lauer <patrick@g.o> +pmacct-0.12.5-r1.ebuild:
35 + Config file location fix for #354649
36
37 *pmacct-0.12.5 (29 Dec 2010)
38
39
40
41
42 1.1 net-analyzer/pmacct/pmacct-0.12.5-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/pmacct-0.12.5-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/pmacct/pmacct-0.12.5-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pmacct-0.12.5-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/pmacct/pmacct-0.12.5-r1.ebuild,v 1.1 2011/07/30 21:07:54 patrick Exp $
52
53 EAPI="2"
54
55 inherit eutils toolchain-funcs
56
57 DESCRIPTION="A network tool to gather IP traffic information"
58 HOMEPAGE="http://www.pmacct.net/"
59 SRC_URI="http://www.pmacct.net/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="64bit debug ipv6 mysql postgres sqlite threads ulog"
65
66 RDEPEND="net-libs/libpcap
67 mysql? ( virtual/mysql )
68 postgres? ( dev-db/postgresql-base )
69 sqlite? ( =dev-db/sqlite-3* )"
70 DEPEND="${RDEPEND}"
71
72 src_prepare() {
73 epatch \
74 "${FILESDIR}"/${PN}-0.12.0-gentoo.patch \
75 "${FILESDIR}"/${PN}-0.12.5-sin6_addr.patch
76 }
77
78 src_configure() {
79 tc-export CC
80 econf \
81 $(use_enable 64bit) \
82 $(use_enable debug) \
83 $(use_enable ipv6) \
84 $(use_enable mysql) \
85 $(use_enable postgres pgsql) \
86 $(use_enable sqlite sqlite3) \
87 $(use_enable threads) \
88 $(use_enable ulog) \
89 || die "econf failed"
90 }
91
92 src_install() {
93 emake DESTDIR="${D}" install || die "make install failed"
94 dodoc ChangeLog CONFIG-KEYS EXAMPLES FAQS KNOWN-BUGS README UPGRADE \
95 docs/SIGNALS docs/PLUGINS docs/INTERNALS TODO TOOLS \
96 || die "dodoc failed"
97
98 for dirname in examples sql; do
99 docinto ${dirname}
100 dodoc ${dirname}/* || die "dodoc ${dirname} failed"
101 done
102
103 newinitd "${FILESDIR}"/pmacctd-init.d pmacctd || die "newinitd failed"
104 newconfd "${FILESDIR}"/pmacctd-conf.d pmacctd || die "newconfd failed"
105
106 mkdir -p "${D}"/etc/pmacctd
107 insinto /etc/pmacctd
108 newins "${S}/examples/pmacctd-imt.conf.example" pmacctd.conf || \
109 die "newins failed"
110 }