1 |
commit: 4d679ab1fa2373d13ef13d6ad644af512ceaef02 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 19 08:36:47 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 08:38:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d679ab1 |
7 |
|
8 |
net-firewall/ipt_netflow: Install libip6t_NETFLOW.so |
9 |
|
10 |
Package-Manager: Portage-3.0.3, Repoman-3.0.0 |
11 |
Closes: https://bugs.gentoo.org/737950 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
...low-9999.ebuild => ipt_netflow-2.5.1-r1.ebuild} | 30 ++++++++++++---------- |
15 |
net-firewall/ipt_netflow/ipt_netflow-9999.ebuild | 7 +++-- |
16 |
2 files changed, 21 insertions(+), 16 deletions(-) |
17 |
|
18 |
diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.5.1-r1.ebuild |
19 |
similarity index 83% |
20 |
copy from net-firewall/ipt_netflow/ipt_netflow-9999.ebuild |
21 |
copy to net-firewall/ipt_netflow/ipt_netflow-2.5.1-r1.ebuild |
22 |
index d24c48cebca..637824868f6 100644 |
23 |
--- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild |
24 |
+++ b/net-firewall/ipt_netflow/ipt_netflow-2.5.1-r1.ebuild |
25 |
@@ -2,18 +2,18 @@ |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
EAPI=7 |
29 |
-inherit git-r3 linux-info linux-mod toolchain-funcs |
30 |
+inherit linux-info linux-mod toolchain-funcs |
31 |
|
32 |
DESCRIPTION="Netflow iptables module" |
33 |
HOMEPAGE=" |
34 |
https://sourceforge.net/projects/ipt-netflow |
35 |
https://github.com/aabc/ipt-netflow |
36 |
" |
37 |
-EGIT_REPO_URI="https://github.com/aabc/ipt-netflow" |
38 |
+SRC_URI="https://github.com/aabc/ipt-netflow/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
|
40 |
LICENSE="GPL-2" |
41 |
SLOT="0" |
42 |
-KEYWORDS="" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
|
45 |
IUSE="debug natevents snmp" |
46 |
|
47 |
@@ -27,7 +27,7 @@ DEPEND="${RDEPEND} |
48 |
" |
49 |
PATCHES=( |
50 |
"${FILESDIR}/${PN}-2.0-configure.patch" # bug #455984 |
51 |
- "${FILESDIR}/${PN}-9999-gentoo.patch" |
52 |
+ "${FILESDIR}/${PN}-2.5-gentoo.patch" |
53 |
) |
54 |
|
55 |
pkg_setup() { |
56 |
@@ -51,18 +51,17 @@ pkg_setup() { |
57 |
linux-mod_pkg_setup |
58 |
} |
59 |
|
60 |
-src_prepare() { |
61 |
+src_unpack() { |
62 |
default |
63 |
|
64 |
- # Fix incorrect module version in sources |
65 |
- sed -i \ |
66 |
- -e '/IPT_NETFLOW_VERSION/s#"[0-9.]*"#"'${PV}'"#' \ |
67 |
- ipt_NETFLOW.c || die |
68 |
+ mv "${WORKDIR}"/${PN/_/-}-* "${WORKDIR}"/${P} || die |
69 |
+} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
|
74 |
# Checking for directory is enough |
75 |
- sed -i \ |
76 |
- -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \ |
77 |
- configure || die |
78 |
+ sed -i -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' configure || die |
79 |
} |
80 |
|
81 |
do_conf() { |
82 |
@@ -97,9 +96,12 @@ src_compile() { |
83 |
|
84 |
src_install() { |
85 |
linux-mod_src_install |
86 |
- exeinto "${IPT_LIB}" |
87 |
- doexe libipt_NETFLOW.so |
88 |
+ |
89 |
use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall |
90 |
+ |
91 |
+ exeinto "${IPT_LIB}" |
92 |
+ doexe libip{,6}t_NETFLOW.so |
93 |
+ |
94 |
doheader ipt_NETFLOW.h |
95 |
dodoc README* |
96 |
} |
97 |
|
98 |
diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild |
99 |
index d24c48cebca..74ad5f1c71d 100644 |
100 |
--- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild |
101 |
+++ b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild |
102 |
@@ -97,9 +97,12 @@ src_compile() { |
103 |
|
104 |
src_install() { |
105 |
linux-mod_src_install |
106 |
- exeinto "${IPT_LIB}" |
107 |
- doexe libipt_NETFLOW.so |
108 |
+ |
109 |
use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall |
110 |
+ |
111 |
+ exeinto "${IPT_LIB}" |
112 |
+ doexe libip{,6}t_NETFLOW.so |
113 |
+ |
114 |
doheader ipt_NETFLOW.h |
115 |
dodoc README* |
116 |
} |