1 |
jer 10/02/08 12:27:20 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: flow-tools-0.68-r7.ebuild |
5 |
Removed: flow-tools-0.68-r6.ebuild |
6 |
Log: |
7 |
Only patch the mysql connection code, not the pgsql stuff too thanks to Mike Nerone (bug #213788 again). |
8 |
(Portage version: 2.2_rc62/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.38 net-analyzer/flow-tools/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/flow-tools/ChangeLog?rev=1.38&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/flow-tools/ChangeLog?rev=1.38&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/flow-tools/ChangeLog?r1=1.37&r2=1.38 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v |
20 |
retrieving revision 1.37 |
21 |
retrieving revision 1.38 |
22 |
diff -u -r1.37 -r1.38 |
23 |
--- ChangeLog 26 May 2009 01:26:21 -0000 1.37 |
24 |
+++ ChangeLog 8 Feb 2010 12:27:19 -0000 1.38 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-analyzer/flow-tools |
27 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.37 2009/05/26 01:26:21 jer Exp $ |
29 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.38 2010/02/08 12:27:19 jer Exp $ |
31 |
+ |
32 |
+*flow-tools-0.68-r7 (08 Feb 2010) |
33 |
+ |
34 |
+ 08 Feb 2010; Jeroen Roovers <jer@g.o> -flow-tools-0.68-r6.ebuild, |
35 |
+ +flow-tools-0.68-r7.ebuild, files/flow-tools-0.68-db_tmp.patch: |
36 |
+ Only patch the mysql connection code, not the pgsql stuff too thanks to |
37 |
+ Mike Nerone (bug #213788 again). |
38 |
|
39 |
*flow-tools-0.68-r6 (26 May 2009) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 net-analyzer/flow-tools/flow-tools-0.68-r7.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/flow-tools/flow-tools-0.68-r7.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/flow-tools/flow-tools-0.68-r7.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: flow-tools-0.68-r7.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2010 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/flow-tools-0.68-r7.ebuild,v 1.1 2010/02/08 12:27:19 jer Exp $ |
54 |
|
55 |
WANT_AUTOMAKE="1.6" |
56 |
WANT_AUTOCONF="latest" |
57 |
inherit eutils flag-o-matic autotools |
58 |
|
59 |
DESCRIPTION="Flow-tools is a package for collecting and processing NetFlow data" |
60 |
HOMEPAGE="http://www.splintered.net/sw/flow-tools/" |
61 |
SRC_URI="ftp://ftp.eng.oar.net/pub/flow-tools/${P}.tar.gz" |
62 |
|
63 |
LICENSE="BSD" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~ia64 ~ppc ~x86" |
66 |
IUSE="mysql postgres debug ssl" |
67 |
|
68 |
RDEPEND="sys-apps/tcp-wrappers |
69 |
sys-libs/zlib |
70 |
sys-devel/flex |
71 |
!postgres? ( mysql? ( virtual/mysql ) ) |
72 |
!mysql? ( postgres? ( virtual/postgresql-server ) ) |
73 |
ssl? ( dev-libs/openssl )" |
74 |
|
75 |
DEPEND="${RDEPEND} |
76 |
sys-devel/bison" |
77 |
|
78 |
pkg_setup() { |
79 |
if use mysql && use postgres ; then |
80 |
echo |
81 |
eerror "The mysql and postgres USE flags are mutually exclusive." |
82 |
eerror "Please choose either USE=mysql or USE=postgres, but not both." |
83 |
die |
84 |
fi |
85 |
|
86 |
enewgroup flows |
87 |
enewuser flows -1 -1 /var/lib/flows flows |
88 |
} |
89 |
|
90 |
src_unpack() { |
91 |
unpack ${A} |
92 |
cd "${S}" |
93 |
epatch "${FILESDIR}"/${P}-fix-configure.diff |
94 |
epatch "${FILESDIR}"/${P}-fix-a-zillion-warnings-updated.diff |
95 |
epatch "${FILESDIR}"/${P}-another-amd64-casting-fixes.patch |
96 |
use debug || epatch "${FILESDIR}"/${PN}-0.67-nodebug.patch |
97 |
epatch "${FILESDIR}"/${PN}-0.67-memleak.patch |
98 |
epatch "${FILESDIR}"/${P}-db_tmp.patch |
99 |
|
100 |
sed -i "s|^[^#]\(^.*CFLAGS=\).*$|\1-Wall|g" \ |
101 |
configure.in src/Makefile.am lib/Makefile.am || die "sed CFLAGS failed" |
102 |
|
103 |
# bug 122842, we have /usr/bin/python and not /usr/local/bin/python |
104 |
sed -i -e "s:/usr/local/bin/python:/usr/bin/python:g" \ |
105 |
"${S}"/bin/flow-{rptfmt,rpt2rrd,log2rrd} |
106 |
|
107 |
AM_OPTS="-f -i" |
108 |
eautoreconf || die "autoreconf failed" |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
use mysql && append-flags "-L/usr/lib/mysql -I/usr/include/mysql" |
113 |
use postgres && append-flags "-L/usr/lib/postgres -I/usr/include/postgres" |
114 |
|
115 |
econf \ |
116 |
--localstatedir=/etc/flow-tools \ |
117 |
--enable-lfs \ |
118 |
$(use_with ssl openssl) \ |
119 |
$(use_with mysql) \ |
120 |
$(use_with postgres pgsql) \ |
121 |
|| die "econf failed" |
122 |
|
123 |
emake CFLAGS="${CFLAGS}" || die "emake failed" |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
make DESTDIR="${D}" install || die "make install failed" |
128 |
dodoc ChangeLog README SECURITY TODO |
129 |
|
130 |
keepdir /var/lib/flows |
131 |
keepdir /var/lib/flows/bin |
132 |
exeinto /var/lib/flows/bin |
133 |
doexe "${FILESDIR}"/linkme |
134 |
keepdir /var/run/flows |
135 |
|
136 |
newinitd "${FILESDIR}/flowcapture.initd" flowcapture |
137 |
newconfd "${FILESDIR}/flowcapture.confd" flowcapture |
138 |
|
139 |
} |
140 |
|
141 |
pkg_postinst() { |
142 |
chown flows:flows /var/run/flows |
143 |
chown flows:flows /var/lib/flows |
144 |
chown flows:flows /var/lib/flows/bin |
145 |
chmod 0755 /var/run/flows |
146 |
chmod 0755 /var/lib/flows |
147 |
chmod 0755 /var/lib/flows/bin |
148 |
} |