1 |
commit: 8bd99b0239dc60e14372e76d3a118e829089bcae |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 16 07:20:26 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 16 07:20:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bd99b02 |
7 |
|
8 |
net-analyzer/fprobe: EAPI bump. Fix bashisms by Andrew Savchenko (bug #609112). |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-analyzer/fprobe/files/conf.d-fprobe | 2 +- |
13 |
net-analyzer/fprobe/files/init.d-fprobe | 8 +++---- |
14 |
.../{fprobe-1.1-r2.ebuild => fprobe-1.1-r3.ebuild} | 26 +++++++++++----------- |
15 |
3 files changed, 18 insertions(+), 18 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/fprobe/files/conf.d-fprobe b/net-analyzer/fprobe/files/conf.d-fprobe |
18 |
index f73ccf4c58..a93c5c10b2 100644 |
19 |
--- a/net-analyzer/fprobe/files/conf.d-fprobe |
20 |
+++ b/net-analyzer/fprobe/files/conf.d-fprobe |
21 |
@@ -23,7 +23,7 @@ IFACE=eth0 |
22 |
#LOCALIP= |
23 |
|
24 |
# SNMP iface id |
25 |
-SNMP_IFACE="${IFACE//eth}" |
26 |
+SNMP_IFACE="${IFACE#eth}" |
27 |
|
28 |
# Maximum number of concurrent flows to track |
29 |
# using a specified amount of memory |
30 |
|
31 |
diff --git a/net-analyzer/fprobe/files/init.d-fprobe b/net-analyzer/fprobe/files/init.d-fprobe |
32 |
index efa5357177..c470af432c 100644 |
33 |
--- a/net-analyzer/fprobe/files/init.d-fprobe |
34 |
+++ b/net-analyzer/fprobe/files/init.d-fprobe |
35 |
@@ -1,5 +1,5 @@ |
36 |
#!/sbin/openrc-run |
37 |
-# Copyright 1999-2008 Gentoo Foundation |
38 |
+# Copyright 1999-2017 Gentoo Foundation |
39 |
# Distributed under the terms of the GNU General Public License v2 |
40 |
|
41 |
depend() { |
42 |
@@ -14,14 +14,14 @@ PIDFILE="/var/run/fprobe$PIDFILE_EXTRA.pid" |
43 |
start() { |
44 |
ebegin "Starting fprobe" |
45 |
local OPTS="" |
46 |
- [ "${PROMISC}" == "yes" ] || OPTS="${OPTS} -p" |
47 |
+ [ "${PROMISC}" = "yes" ] || OPTS="${OPTS} -p" |
48 |
[ -n "${FILTER}" ] && OPTS="${OPTS} -f '${FILTER}'" |
49 |
for optname in i:IFACE s:TIMER_EXPIRED g:TIME_FRAGMENTED d:TIMER_IDLE \ |
50 |
e:TIMER_ACTIVE n:FLOW_VER a:LOCALIP x:SNMP_IFACE b:MEMBULK \ |
51 |
m:MEMLIMIT q:PENDING B:KERNBUF r:RTPRIO t:DELAY S:SNAPLEN \ |
52 |
c:CHROOT u:USER v:LOGLEVEL ; do |
53 |
- opt="${optname/:*}" optvar="${optname/*:}" |
54 |
- optvalue="${!optvar}" |
55 |
+ opt="${optname%:*}" optvar="${optname#*:}" |
56 |
+ eval optvalue='$'$optvar |
57 |
[ -n "$optvalue" ] && OPTS="${OPTS} -${opt} ${optvalue}" |
58 |
done |
59 |
OPTS="${OPTS} -l 1:${PIDFILE_ID} ${COLLECTORS}" |
60 |
|
61 |
diff --git a/net-analyzer/fprobe/fprobe-1.1-r2.ebuild b/net-analyzer/fprobe/fprobe-1.1-r3.ebuild |
62 |
similarity index 54% |
63 |
rename from net-analyzer/fprobe/fprobe-1.1-r2.ebuild |
64 |
rename to net-analyzer/fprobe/fprobe-1.1-r3.ebuild |
65 |
index ba10e41b4a..8524efb162 100644 |
66 |
--- a/net-analyzer/fprobe/fprobe-1.1-r2.ebuild |
67 |
+++ b/net-analyzer/fprobe/fprobe-1.1-r3.ebuild |
68 |
@@ -1,11 +1,10 @@ |
69 |
-# Copyright 1999-2014 Gentoo Foundation |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
# $Id$ |
73 |
|
74 |
-EAPI=5 |
75 |
-inherit eutils |
76 |
+EAPI=6 |
77 |
|
78 |
-DESCRIPTION="A libpcap-based tool to collect network traffic data and emit it as NetFlow flows" |
79 |
+DESCRIPTION="libpcap-based tool to collect network traffic data and emit it as NetFlow flows" |
80 |
HOMEPAGE="http://fprobe.sourceforge.net" |
81 |
LICENSE="GPL-2" |
82 |
|
83 |
@@ -15,15 +14,16 @@ KEYWORDS="~amd64 ~ppc ~x86" |
84 |
|
85 |
IUSE="debug messages" |
86 |
|
87 |
-DEPEND="net-libs/libpcap" |
88 |
- |
89 |
-src_prepare() { |
90 |
- # The pidfile should be created by the parent process, before the |
91 |
- # setuid/chroot is executed. |
92 |
- epatch "${FILESDIR}"/fprobe-1.1-pidfile-sanity.patch |
93 |
- # This seems to fail, uncertain why. |
94 |
- epatch "${FILESDIR}"/fprobe-1.1-setgroups.patch |
95 |
-} |
96 |
+DEPEND=" |
97 |
+ net-libs/libpcap |
98 |
+" |
99 |
+RDEPEND=" |
100 |
+ ${DEPEND} |
101 |
+" |
102 |
+PATCHES=( |
103 |
+ "${FILESDIR}"/fprobe-1.1-pidfile-sanity.patch |
104 |
+ "${FILESDIR}"/fprobe-1.1-setgroups.patch |
105 |
+) |
106 |
|
107 |
src_configure() { |
108 |
econf \ |