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