ChangeLog

# ChangeLog for net-analyzer/flow-tools
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.36 2008/05/21 18:49:07 dev-zero Exp $

21 May 2008; Tiziano Müller
flow-tools-0.68-r5.ebuild:
Changed dependency for postgresql from dev-db/postgresql to
virtual/postgresql-server

26 Jan 2008; flow-tools-0.68-r5.ebuild:
Moved autotools stuff to src_unpack, bug #207463, thank Diego Pettenò
for report.

06 Sep 2007; Markus Ullmann
-files/flow-tools-0.68-gcc-4.1-fix.patch, -flow-tools-0.68-r3.ebuild,
-flow-tools-0.68-r4.ebuild:
Cleanup

29 Jun 2007; Christoph Mende
flow-tools-0.68-r5.ebuild:
Stable on amd64 wrt bug #183050

26 Jun 2007; Lars Weiler flow-tools-0.68-r5.ebuild:
Stable on ppc; bug #183050.

25 Jun 2007; Raúl Porcel flow-tools-0.68-r5.ebuild:
ia64/x86 stable wrt #183050

*flow-tools-0.68-r5 (15 May 2007)

15 May 2007;
+files/flow-tools-0.68-another-amd64-casting-fixes.patch,
+flow-tools-0.68-r5.ebuild:
Fixed amd64 specific problem reported by Alexander Zubkov mes.msu.ru> in bug #177955.

*flow-tools-0.68-r4 (09 Apr 2007)

09 Apr 2007; files/flowcapture.initd,
+flow-tools-0.68-r4.ebuild:
Fixed bug #155456, thank Andrey Kolbasenko for
report and analysis.

23 Nov 2006; Francesco Riosa flow-tools-0.68-r3.ebuild:
dev-db/mysql => virtual/mysql

28 Oct 2006; Peter Volkov flow-tools-0.68-r3.ebuild:
Use autoools.eclass to take care of autotools dependecies. Fixed bug
#153074. Thank Evil Compile Person for report.

27 Sep 2006; Aron Griffis flow-tools-0.68-r3.ebuild:
Mark 0.68-r3 ~ia64

23 Sep 2006; Peter Volkov
-files/flow-tools-0.67-debug.patch,
-files/flow-tools-0.67-fix-a-zillion-warnings.diff,
-files/flow-tools-0.67-fix-configure.diff,
-files/flow-tools-0.67-gcc34.diff,
-files/flow-tools-0.68-fix-a-zillion-warnings.diff,
-flow-tools-0.66.ebuild, -flow-tools-0.67.ebuild, -flow-tools-0.68.ebuild,
-flow-tools-0.68-r1.ebuild, -flow-tools-0.68-r2.ebuild:
Remove old ebuilds.

09 Sep 2006; Stephanie Lockwood-Childs
flow-tools-0.68-r3.ebuild:
stable on ppc (Bug #138438)

08 Sep 2006; Joshua Jackson flow-tools-0.68-r3.ebuild:
Stable x86; bug #138438

08 Sep 2006; Daniel Gryniewicz
flow-tools-0.68-r3.ebuild:
Marked stable on amd64 for bug #138438

*flow-tools-0.68-r3 (07 Sep 2006)

07 Sep 2006; Peter Volkov
+files/flow-tools-0.68-fix-a-zillion-warnings-updated.diff, metadata.xml,
+flow-tools-0.68-r3.ebuild:
Some cleanups: removed 0.67-debug.patch as debug variable is defined
globally in this version. Fixed possible problem on amd64 and both this fix
and gcc-4.1 fix integrated into
flow-tools-0.68-fix-a-zillion-warnings-updated.diff. Updated longdescription
in metadata.xml

05 Sep 2006; Peter Volkov
+files/flow-tools-0.68-gcc-4.1-fix.patch, flow-tools-0.68-r2.ebuild:
Compilation problem with gcc-4.1 is fixed. Thank Ian P. Christian for report
and Marcelo Goes for actual fix; bug #138438.

30 Mar 2006; Aron Griffis flow-tools-0.68-r1.ebuild:
Mark 0.68-r1 ~ia64

25 Feb 2006; Marcelo Goes flow-tools-0.66.ebuild,
flow-tools-0.67.ebuild, flow-tools-0.68.ebuild, flow-tools-0.68-r1.ebuild,
flow-tools-0.68-r2.ebuild:
Do not install COPYING/INSTALL.

*flow-tools-0.68-r2 (17 Feb 2006)

17 Feb 2006; Marcelo Goes
+flow-tools-0.68-r2.ebuild:
Add sed line for bug 122842, we have /usr/bin/python and not
/usr/local/bin/python. Thanks to Hasan Khalil .

16 Sep 2005; Aaron Walker
files/flow-tools-0.67-fix-a-zillion-warnings.diff,
files/flow-tools-0.68-fix-a-zillion-warnings.diff:
Update gcc4 warnings patch as it was causing bug #106063.

23 Aug 2005; Aaron Walker flow-tools-0.67.ebuild,
flow-tools-0.68.ebuild, flow-tools-0.68-r1.ebuild:
Use -1 instead of /bin/false, bug #103421.

23 Jun 2005; David Holm flow-tools-0.68-r1.ebuild:
Added to ~ppc.

*flow-tools-0.68-r1 (22 Jun 2005)

22 Jun 2005; Benjamin Smee +files/flowcapture.confd,
+files/flowcapture.initd, +files/linkme, +flow-tools-0.68-r1.ebuild:
Added some init scripts and config files. Also added directory structure.
Changed created user.

*flow-tools-0.68 (14 May 2005)

14 May 2005; Aaron Walker
+files/flow-tools-0.68-fix-a-zillion-warnings.diff,
+files/flow-tools-0.68-fix-configure.diff, +flow-tools-0.68.ebuild:
Version bump for bug 92368.

25 Mar 2005; +files/flow-tools-0.67-debug.patch,
flow-tools-0.67.ebuild:
added Jeremy Hanmer's patch to make it working with USE=debug and added ~amd64
keyword, see bug #85416

19 Mar 2005; Aaron Walker flow-tools-0.66.ebuild,
flow-tools-0.67.ebuild:
Reverted to ~x86 due to issues mentioned in bug 79652 (c#4). Added gcc-3.4
patch to 0.66 ebuild.

25 Feb 2005; Aaron Walker flow-tools-0.67.ebuild:
Marked stable on x86.

27 Jan 2005; Aaron Walker
+files/flow-tools-0.67-fix-a-zillion-warnings.diff,
+files/flow-tools-0.67-fix-configure.diff,
+files/flow-tools-0.67-gcc34.diff, files/flow-tools-0.67-memleak.patch,
files/flow-tools-0.67-nodebug.patch, flow-tools-0.67.ebuild:
Added a sleu of patches: gcc-3.4 fixes, fixes of 99% of the *many* compiler
warnings, and configure.in fixes so that --with-XXX and --without-XXX work
properly - bug 79652. Also updated nodebug and memleak patches so that they
can be applied from ${S}.

*flow-tools-0.67 (26 Jan 2005)

26 Jan 2005; Otavio R. Piske
+files/flow-tools-0.67-memleak.patch, +files/flow-tools-0.67-nodebug.patch,
+flow-tools-0.67.ebuild:
Version bump. Thanks to Molchanov Alexander and Vanquirius
for submitting the ebuild. This ebuild closes bug
#50926

26 Oct 2004; Eldad Zack flow-tools-0.66.ebuild:
Fixed ebuild to use tc-getCC from toolchain-funcs.eclass, as suggested by
vapier@g.o. Closes #69016.

13 Jul 2004; Eldad Zack +metadata.xml:
Added metadata

01 Jul 2004; Jon Hood flow-tools-0.66.ebuild:
ebuild cleanups, virtual/glibc -> virtual/libc

*flow-tools-0.66 (18 May 2003)

18 May 2003; Martin Holzer flow-tools-0.66.ebuild:
Initial version. Ebuild submitted by Mishael Sibiryakov
in #18947.

Manifest

AUX flow-tools-0.67-memleak.patch 465 RMD160 6e04608d9ce2cd9da945451a668be1e2426eb88a SHA1 68e777246680b23861504aabe7132dc04e2667f7 SHA256 185b1751d4b9208be73917f8dfd90662f61e7fedc617a0dad15cf4141bc473bd
AUX flow-tools-0.67-nodebug.patch 933 RMD160 fe974a8a69f168783d7c77ca6aaf302010ffcacb SHA1 38ab0c45bb08f327f9efce843691e07eedbc7d9d SHA256 e862d823543f422319c31e305149b25a0d74ffbc9d0ee98ec756a90fc053b373
AUX flow-tools-0.68-another-amd64-casting-fixes.patch 2070 RMD160 a46a9eb144c5ca130b3af1351194af212b0fd8c3 SHA1 95d0e154e064cbc67fafab9729b37ef1da3e3bb7 SHA256 ff5a14e7c3999888325c3bee057e40410c3bb600bfb8c15f931094b164799c98
AUX flow-tools-0.68-fix-a-zillion-warnings-updated.diff 19404 RMD160 81535106be145c56a6a201125ad1cd137ec25378 SHA1 fad3da5429d8d3edef5ea9af09cac11484c4b159 SHA256 03991fe055eae71b58d7ac1b7cb1b4cdfe33566e9ee8c0cd99144b583bb2affe
AUX flow-tools-0.68-fix-configure.diff 4311 RMD160 fd14ccfd4def9c5f5ca77f368c512abaf8ac4a04 SHA1 8ba5adac524978f3662020976bd40b28e3296d57 SHA256 bc0877413e4eb8548219065b4b48dd9104972fa31031735f9c63b203dfb5ab9e
AUX flowcapture.confd 1590 RMD160 8c1fc976191bde42950e0b9e7eed98838abd51ad SHA1 34079f52426add558bb117fef62ebff68b36d9bd SHA256 5d5640ff055d555d527c261ada54e044519c8197413719435e6a965a42147fa4
AUX flowcapture.initd 488 RMD160 a0e5688cd49ce9623a3f11bae0fa2d58cc47c609 SHA1 da2024ab2af2cdb0c76f3104d8519cba800983d8 SHA256 125cc865b380427a0e48eb40c3af3d4441ed2a46ac2fd78bdd7768f251feee25
AUX linkme 283 RMD160 663284e66edca80e03d88db3078cd93d6faca452 SHA1 ebf19e1a1b0b7d74ada82e13d87f95cd61651958 SHA256 93cef6b11cb25a9e91b529030e66cd4c709f382993335f2c7252de89c36735da
DIST flow-tools-0.68.tar.gz 987151 RMD160 71bfd1a40cb34fae55b2769d93208d13b3b0a927 SHA1 6259263ac4fbf8a9394224e4053393fa756473c7 SHA256 69d5353b339f917fc141919db042b007d5c8d31c9ad1bc2f989a41aa41d629df
EBUILD flow-tools-0.68-r5.ebuild 2707 RMD160 66ef3a8e556b19049847809666ac8274a5936b93 SHA1 be8fe34273496c7b593cc838386cfcee1c8770cf SHA256 130bf4b17d1d1a90f0f24597338acde4ce3242f7f13a6b996630767589ca51ff
MISC ChangeLog 6980 RMD160 d14b58a15e65b5b0dd79af524dec26f2efead770 SHA1 d81809af22cf3e3250e8ed6f55403c0ba80f316f SHA256 1a7f32c794eaefed45cc27e25b80e610a425c3dafd7144e3d49c98b3f7147f46
MISC metadata.xml 706 RMD160 48d179b230fd01a49853e73fc46f534373bb8488 SHA1 44ba0dd063806d48e8d6aa341c0bc28ea2d932b3 SHA256 4d947ce226ad090ea1274c75c6b360cb14ffdcd2f5730b0e596098aecb1b8daf

files

flow-tools-0.68-r5.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/flow-tools-0.68-r5.ebuild,v 1.6 2008/05/21 18:49:07 dev-zero Exp $

WANT_AUTOMAKE="1.6"
WANT_AUTOCONF="latest"
inherit eutils flag-o-matic autotools

DESCRIPTION="Flow-tools is a package for collecting and processing NetFlow data"
HOMEPAGE="http://www.splintered.net/sw/flow-tools/"
SRC_URI="ftp://ftp.eng.oar.net/pub/flow-tools/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ia64 ppc x86"
IUSE="mysql postgres debug ssl"

RDEPEND="sys-apps/tcp-wrappers
sys-libs/zlib
sys-devel/flex
!postgres? ( mysql? ( virtual/mysql ) )
!mysql? ( postgres? ( virtual/postgresql-server ) )
ssl? ( dev-libs/openssl )"

DEPEND="${RDEPEND}
sys-devel/bison"

pkg_setup() {
if use mysql && use postgres ; then
echo
eerror "The mysql and postgres USE flags are mutually exclusive."
eerror "Please choose either USE=mysql or USE=postgres, but not both."
die
fi

enewgroup flows
enewuser flows -1 -1 /var/lib/flows flows
}

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-fix-configure.diff
epatch "${FILESDIR}"/${P}-fix-a-zillion-warnings-updated.diff
epatch "${FILESDIR}"/${P}-another-amd64-casting-fixes.patch
use debug || epatch "${FILESDIR}"/${PN}-0.67-nodebug.patch
epatch "${FILESDIR}"/${PN}-0.67-memleak.patch

sed -i "s|^[^#]\(^.*CFLAGS=\).*$|\1-Wall|g" \
configure.in src/Makefile.am lib/Makefile.am || die "sed CFLAGS failed"

# bug 122842, we have /usr/bin/python and not /usr/local/bin/python
sed -i -e "s:/usr/local/bin/python:/usr/bin/python:g" \
"${S}"/bin/flow-{rptfmt,rpt2rrd,log2rrd}

AM_OPTS="-f -i"
eautoreconf || die "autoreconf failed"
}

src_compile() {
use mysql && append-flags "-L/usr/lib/mysql -I/usr/include/mysql"
use postgres && append-flags "-L/usr/lib/postgres -I/usr/include/postgres"

econf \
--localstatedir=/etc/flow-tools \
--enable-lfs \
$(use_with ssl openssl) \
$(use_with mysql) \
$(use_with postgres pgsql) \
|| die "econf failed"

emake CFLAGS="${CFLAGS}" || die "emake failed"
}

src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc ChangeLog README SECURITY TODO

keepdir /var/lib/flows
keepdir /var/lib/flows/bin
exeinto /var/lib/flows/bin
doexe "${FILESDIR}"/linkme
keepdir /var/run/flows

newinitd "${FILESDIR}/flowcapture.initd" flowcapture
newconfd "${FILESDIR}/flowcapture.confd" flowcapture

}

pkg_postinst() {
chown flows:flows /var/run/flows
chown flows:flows /var/lib/flows
chown flows:flows /var/lib/flows/bin
chmod 0755 /var/run/flows
chmod 0755 /var/lib/flows
chmod 0755 /var/lib/flows/bin
}

metadata.xml




netmon

Flow-tools is library and a collection of programs used to collect,
send, process, and generate reports from NetFlow data. The tools can be
used together on a single server or distributed to multiple servers for
large deployments. The flow-toools library provides an API for
development of custom applications for NetFlow export versions 1,5,6 and
the 14 currently defined version 8 subversions. A Perl and Python
interface have been contributed and are included in the distribution.