Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/ipt_netflow/
Date: Mon, 16 Oct 2017 08:56:36
Message-Id: 1508144188.f2d52e7ee3ae0762d7c01f07c904036f56ee9462.pinkbyte@gentoo
1 commit: f2d52e7ee3ae0762d7c01f07c904036f56ee9462
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 16 08:56:07 2017 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 16 08:56:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2d52e7e
7
8 net-firewall/ipt_netflow: drop old revision
9
10 Package-Manager: Portage-2.3.10, Repoman-2.3.1
11
12 net-firewall/ipt_netflow/ipt_netflow-2.2-r1.ebuild | 96 ----------------------
13 1 file changed, 96 deletions(-)
14
15 diff --git a/net-firewall/ipt_netflow/ipt_netflow-2.2-r1.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.2-r1.ebuild
16 deleted file mode 100644
17 index f82263fe40c..00000000000
18 --- a/net-firewall/ipt_netflow/ipt_netflow-2.2-r1.ebuild
19 +++ /dev/null
20 @@ -1,96 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -MY_PN="${PN/_/-}"
26 -MY_P="${MY_PN}-${PV}"
27 -inherit linux-info linux-mod toolchain-funcs
28 -
29 -DESCRIPTION="Netflow iptables module"
30 -HOMEPAGE="https://sourceforge.net/projects/ipt-netflow"
31 -SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tgz"
32 -
33 -LICENSE="GPL-2"
34 -SLOT="0"
35 -KEYWORDS="amd64 x86"
36 -
37 -IUSE="debug snmp"
38 -
39 -RDEPEND="
40 - net-firewall/iptables
41 - snmp? ( net-analyzer/net-snmp )
42 -"
43 -DEPEND="${RDEPEND}
44 - virtual/linux-sources
45 - virtual/pkgconfig
46 -"
47 -
48 -# set S before MODULE_NAMES
49 -S="${WORKDIR}/${MY_P}"
50 -
51 -pkg_setup() {
52 - BUILD_TARGETS="all"
53 - MODULE_NAMES="ipt_NETFLOW(ipt_netflow:${S})"
54 - IPT_LIB="/usr/$(get_libdir)/xtables"
55 - local CONFIG_CHECK="~IP_NF_IPTABLES"
56 - use debug && CONFIG_CHECK+=" ~DEBUG_FS"
57 - linux-mod_pkg_setup
58 -}
59 -
60 -src_prepare() {
61 - sed -i \
62 - -e 's:make -C:$(MAKE) -C:g' \
63 - -e 's:gcc -O2:$(CC) $(CFLAGS) $(LDFLAGS):' \
64 - -e 's:gcc:$(CC) $(CFLAGS) $(LDFLAGS):' \
65 - Makefile.in || die
66 -
67 - # Checking for directory is enough
68 - sed -i -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' configure || die
69 -
70 - # bug #455984
71 - eapply "${FILESDIR}/${PN}-2.0-configure.patch"
72 -
73 - # Compatibility with kernel 4.6
74 - eapply "${FILESDIR}/${P}-linux-4.6.patch"
75 -
76 - # Compatibility with kernel 4.10, bug #617484
77 - eapply "${FILESDIR}/${P}-linux-4.10.patch"
78 -
79 - # Compatibility with kernel 4.13, bug #630446
80 - eapply "${FILESDIR}/${P}-linux-4.13.patch"
81 -
82 - eapply_user
83 -}
84 -
85 -do_conf() {
86 - echo ./configure $*
87 - ./configure $* ${EXTRA_ECONF} || die 'configure failed'
88 -}
89 -
90 -src_configure() {
91 - local IPT_VERSION="$($(tc-getPKG_CONFIG) --modversion xtables)"
92 - # this configure script is not based on autotools
93 - # ipt-src need to be defined, see bug #455984
94 - do_conf \
95 - --disable-dkms \
96 - --ipt-lib="${IPT_LIB}" \
97 - --ipt-src="/usr/" \
98 - --ipt-ver="${IPT_VERSION}" \
99 - --kdir="${KV_DIR}" \
100 - --kver="${KV_FULL}" \
101 - $(use debug && echo '--enable-debugfs') \
102 - $(use snmp && echo '--enable-snmp-rules' || echo '--disable-snmp-agent')
103 -}
104 -
105 -src_compile() {
106 - emake ARCH="$(tc-arch-kernel)" CC="$(tc-getCC)" all
107 -}
108 -
109 -src_install() {
110 - linux-mod_src_install
111 - exeinto "${IPT_LIB}"
112 - doexe libipt_NETFLOW.so
113 - use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall
114 - doheader ipt_NETFLOW.h
115 - dodoc README*
116 -}