summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-02-21 16:18:46 +0000
committerJeroen Roovers <jer@gentoo.org>2012-02-21 16:18:46 +0000
commitd12739b9fc3708e75a572d8b596c9472c7d9c993 (patch)
tree0db778b23b184ee746da949cb758aa05878b3369 /net-analyzer/flow-tools
parentStable for amd64, wrt bug #383391 (diff)
downloadgentoo-2-d12739b9fc3708e75a572d8b596c9472c7d9c993.tar.gz
gentoo-2-d12739b9fc3708e75a572d8b596c9472c7d9c993.tar.bz2
gentoo-2-d12739b9fc3708e75a572d8b596c9472c7d9c993.zip
Add IUSE=static-libs by Maurizio Camisaschi (bug #405157).
(Portage version: 2.2.0_alpha88/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/flow-tools')
-rw-r--r--net-analyzer/flow-tools/ChangeLog7
-rw-r--r--net-analyzer/flow-tools/flow-tools-0.68.5.1-r1.ebuild71
2 files changed, 77 insertions, 1 deletions
diff --git a/net-analyzer/flow-tools/ChangeLog b/net-analyzer/flow-tools/ChangeLog
index c723c900f830..dc2ab555f774 100644
--- a/net-analyzer/flow-tools/ChangeLog
+++ b/net-analyzer/flow-tools/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/flow-tools
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.50 2012/02/21 14:53:43 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.51 2012/02/21 16:18:46 jer Exp $
+
+*flow-tools-0.68.5.1-r1 (21 Feb 2012)
+
+ 21 Feb 2012; Jeroen Roovers <jer@gentoo.org> +flow-tools-0.68.5.1-r1.ebuild:
+ Add IUSE=static-libs by Maurizio Camisaschi (bug #405157).
21 Feb 2012; Agostino Sarubbo <ago@gentoo.org> flow-tools-0.68.5.1.ebuild:
Stable for amd64, wrt bug #404809
diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r1.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r1.ebuild
new file mode 100644
index 000000000000..c72e6bdf4c5f
--- /dev/null
+++ b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 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.5.1-r1.ebuild,v 1.1 2012/02/21 16:18:46 jer Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="library and programs to collect, send, process, and generate reports from NetFlow data"
+HOMEPAGE="http://code.google.com/p/flow-tools/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug mysql postgres ssl static-libs"
+
+RDEPEND="sys-apps/tcp-wrappers
+ sys-libs/zlib
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql-base )
+ ssl? ( dev-libs/openssl )"
+
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison"
+
+DOCS=( ChangeLog README SECURITY TODO )
+
+pkg_setup() {
+ enewgroup flows
+ enewuser flows -1 -1 /var/lib/flows flows
+}
+
+src_configure() {
+ local myconf="--sysconfdir=/etc/flow-tools"
+ use mysql && myconf="${myconf} --with-mysql"
+ if use postgres; then
+ myconf="${myconf} --with-postgresql=yes"
+ else
+ myconf="${myconf} --with-postgresql=no"
+ fi
+ use ssl && myconf="${myconf} --with-openssl"
+ econf ${myconf} $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ 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
+
+ if ! use static-libs; then
+ rm -f "${D}"/usr/lib*/libft.la || die
+ fi
+}
+
+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
+}