Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/ipt_netflow/
Date: Sun, 29 Dec 2019 13:21:31
Message-Id: 1577625681.fac0c38880319604baead2e643e9bdc3f99e2232.jer@gentoo
1 commit: fac0c38880319604baead2e643e9bdc3f99e2232
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 29 13:20:58 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 29 13:21:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fac0c388
7
8 net-firewall/ipt_netflow: Old
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11
12 Closes: https://bugs.gentoo.org/678788
13 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
14
15 net-firewall/ipt_netflow/Manifest | 1 -
16 net-firewall/ipt_netflow/ipt_netflow-2.3.ebuild | 100 ------------------------
17 2 files changed, 101 deletions(-)
18
19 diff --git a/net-firewall/ipt_netflow/Manifest b/net-firewall/ipt_netflow/Manifest
20 index 45893db3a07..ee990a70dbd 100644
21 --- a/net-firewall/ipt_netflow/Manifest
22 +++ b/net-firewall/ipt_netflow/Manifest
23 @@ -1,2 +1 @@
24 -DIST ipt_netflow-2.3.tar.gz 90987 BLAKE2B fbe46583e58e75e3cfe5cc5ad4e8b40d5040d6642f850c560c3e8aa831effa43cba8f25907d32b3b66721f4d5d5bb8579bafa82e4b8d1c9a2225a5c748d08dd9 SHA512 e5ba66da9cae6fb9652e5532383233d433dd30dd16634734860f7e6910e46080e562e2d72c74584a86ead31156cffd4c5c44b438f617a9e5b3e5fdc1470045fc
25 DIST ipt_netflow-2.4.tar.gz 92580 BLAKE2B 0197e7e5cdd9c94c7b80b38cb4e2879343139592421922bf73aeaac70ac3af54ea25934bb1474ff455a9f58eab2368995591542f46be48b5c8491a3b6a192f56 SHA512 3c80d02cfda996fbde8d258875df8795000fd8390b5a6f8296771a992067e153eca48f7f4602421529948beaf3030e164adfc2ffe5b528042fbdc15ffb56aa74
26
27 diff --git a/net-firewall/ipt_netflow/ipt_netflow-2.3.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.3.ebuild
28 deleted file mode 100644
29 index 04f6abd7769..00000000000
30 --- a/net-firewall/ipt_netflow/ipt_netflow-2.3.ebuild
31 +++ /dev/null
32 @@ -1,100 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -MY_PN="${PN/_/-}"
38 -MY_P="${MY_PN}-${PV}"
39 -inherit linux-info linux-mod toolchain-funcs
40 -
41 -DESCRIPTION="Netflow iptables module"
42 -HOMEPAGE="
43 - https://sourceforge.net/projects/ipt-netflow
44 - https://github.com/aabc/ipt-netflow
45 -"
46 -SRC_URI="https://github.com/aabc/ipt-netflow/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 -
48 -LICENSE="GPL-2"
49 -SLOT="0"
50 -KEYWORDS="amd64 x86"
51 -
52 -IUSE="debug natevents snmp"
53 -
54 -RDEPEND="
55 - net-firewall/iptables:0=
56 - snmp? ( net-analyzer/net-snmp )
57 -"
58 -DEPEND="${RDEPEND}
59 - virtual/linux-sources
60 - virtual/pkgconfig
61 -"
62 -
63 -# set S before MODULE_NAMES
64 -S="${WORKDIR}/${MY_P}"
65 -PATCHES=(
66 - # bug #455984
67 - "${FILESDIR}/${PN}-2.0-configure.patch"
68 -)
69 -
70 -pkg_setup() {
71 - BUILD_TARGETS="all"
72 - MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
73 - IPT_LIB="/usr/$(get_libdir)/xtables"
74 - local CONFIG_CHECK="~IP_NF_IPTABLES"
75 - use debug && CONFIG_CHECK+=" ~DEBUG_FS"
76 - use natevents && CONFIG_CHECK+=" NF_CONNTRACK_EVENTS NF_NAT_NEEDED"
77 - linux-mod_pkg_setup
78 -}
79 -
80 -src_prepare() {
81 - sed -i \
82 - -e 's:make -C:$(MAKE) -C:g' \
83 - -e 's:gcc -O2:$(CC) $(CFLAGS) $(LDFLAGS):' \
84 - -e 's:gcc:$(CC) $(CFLAGS) $(LDFLAGS):' \
85 - Makefile.in || die
86 -
87 - # Fix incorrect module version in sources
88 - sed -i -e "/IPT_NETFLOW_VERSION/s/2.2/${PV}/" ipt_NETFLOW.c || die
89 -
90 - # Checking for directory is enough
91 - sed -i -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' configure || die
92 -
93 - default
94 -}
95 -
96 -do_conf() {
97 - echo ./configure $*
98 - ./configure $* ${EXTRA_ECONF} || die 'configure failed'
99 -}
100 -
101 -src_configure() {
102 - local IPT_VERSION="$($(tc-getPKG_CONFIG) --modversion xtables)"
103 - # this configure script is not based on autotools
104 - # ipt-src need to be defined, see bug #455984
105 - do_conf \
106 - --disable-dkms \
107 - --enable-aggregation \
108 - --enable-direction \
109 - --enable-macaddress \
110 - --enable-vlan \
111 - --ipt-lib="${IPT_LIB}" \
112 - --ipt-src="/usr/" \
113 - --ipt-ver="${IPT_VERSION}" \
114 - --kdir="${KV_DIR}" \
115 - --kver="${KV_FULL}" \
116 - $(use debug && echo '--enable-debugfs') \
117 - $(use natevents && echo '--enable-natevents') \
118 - $(use snmp && echo '--enable-snmp-rules' || echo '--disable-snmp-agent')
119 -}
120 -
121 -src_compile() {
122 - emake ARCH="$(tc-arch-kernel)" CC="$(tc-getCC)" all
123 -}
124 -
125 -src_install() {
126 - linux-mod_src_install
127 - exeinto "${IPT_LIB}"
128 - doexe libipt_NETFLOW.so
129 - use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall
130 - doheader ipt_NETFLOW.h
131 - dodoc README*
132 -}