summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-04-13 14:34:03 +0000
committerJeroen Roovers <jer@gentoo.org>2014-04-13 14:34:03 +0000
commita17bda51d8e32aeffca9d04498a388ca1a5d843c (patch)
treede3deb2990bdefc08170629e46022cc0976119eb /net-analyzer/flow-tools
parentalpha stable wrt bug #498608 (diff)
downloadgentoo-2-a17bda51d8e32aeffca9d04498a388ca1a5d843c.tar.gz
gentoo-2-a17bda51d8e32aeffca9d04498a388ca1a5d843c.tar.bz2
gentoo-2-a17bda51d8e32aeffca9d04498a388ca1a5d843c.zip
Set keepdir /var/lib/flows/ft (bug #483590). Use prune_libtool_files. Set up user/group in pkg_preinst() too.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-analyzer/flow-tools')
-rw-r--r--net-analyzer/flow-tools/ChangeLog6
-rw-r--r--net-analyzer/flow-tools/flow-tools-0.68.5.1-r2.ebuild26
2 files changed, 19 insertions, 13 deletions
diff --git a/net-analyzer/flow-tools/ChangeLog b/net-analyzer/flow-tools/ChangeLog
index 918929e89184..4afe47fb80b3 100644
--- a/net-analyzer/flow-tools/ChangeLog
+++ b/net-analyzer/flow-tools/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/flow-tools
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.68 2014/04/12 23:19:55 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/ChangeLog,v 1.69 2014/04/13 14:34:03 jer Exp $
+
+ 13 Apr 2014; Jeroen Roovers <jer@gentoo.org> flow-tools-0.68.5.1-r2.ebuild:
+ Set keepdir /var/lib/flows/ft (bug #483590). Use prune_libtool_files. Set up
+ user/group in pkg_preinst() too.
12 Apr 2014; Jeroen Roovers <jer@gentoo.org> files/flowcapture.initd:
Replace PIDFILE here too.
diff --git a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r2.ebuild b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r2.ebuild
index a27711203784..9a17f8bf92b8 100644
--- a/net-analyzer/flow-tools/flow-tools-0.68.5.1-r2.ebuild
+++ b/net-analyzer/flow-tools/flow-tools-0.68.5.1-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 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-r2.ebuild,v 1.5 2013/02/26 15:41:31 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/flow-tools/flow-tools-0.68.5.1-r2.ebuild,v 1.6 2014/04/13 14:34:03 jer Exp $
EAPI=4
-inherit user
+inherit eutils user
DESCRIPTION="library and programs to collect, send, process, and generate reports from NetFlow data"
HOMEPAGE="http://code.google.com/p/flow-tools/"
@@ -54,23 +54,25 @@ src_configure() {
src_install() {
default
+ prune_libtool_files
+
exeinto /var/lib/flows/bin
- keepdir /run/flows
- keepdir /var/lib/flows
- keepdir /var/lib/flows/bin
doexe "${FILESDIR}"/linkme
+ keepdir /var/lib/flows/ft
+
newinitd "${FILESDIR}/flowcapture.initd" flowcapture
newconfd "${FILESDIR}/flowcapture.confd" flowcapture
- if ! use static-libs; then
- rm -f "${D}"/usr/lib*/libft.la || die
- fi
-
- fowners flows:flows /run/flows
fowners flows:flows /var/lib/flows
fowners flows:flows /var/lib/flows/bin
- fperms 0755 /run/flows
+ fowners flows:flows /var/lib/flows/ft
+
fperms 0755 /var/lib/flows
fperms 0755 /var/lib/flows/bin
}
+
+pkg_preinst() {
+ enewgroup flows
+ enewuser flows -1 -1 /var/lib/flows flows
+}