diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /net-firewall/ipt_netflow | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'net-firewall/ipt_netflow')
11 files changed, 0 insertions, 622 deletions
diff --git a/net-firewall/ipt_netflow/Manifest b/net-firewall/ipt_netflow/Manifest deleted file mode 100644 index e5f4998b6c83..000000000000 --- a/net-firewall/ipt_netflow/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST ipt_netflow-2.6.tar.gz 95752 BLAKE2B 088c7030addd34d9d889cfa705aa060d0793e33be957deb3b703daea4229afc24f7268285ce336e425a024dc9d8139633a5206ff9d769c95cf71c156acbd4f25 SHA512 0ccea556e25dc6bc2d8c7648ed1b4ab366097baf5b06f167ccd19d2adb0a195ad652635181573785f9e9fa208d163f22b6527310eb939455d7ee3bc141cbeed5 -DIST ipt_netflow-2.6_p20250317.tar.gz 96793 BLAKE2B 8d397b79574b472a806da6c5a4aa2e9922765c046682266904f3d291594420f884131c24e45affa989f56c335a10d5e64540a235dffdc8368d78581181ae7192 SHA512 2569b372a24ac3c05505313a0dae2846055d265fcddc7c2f8112145960f857f1eb6b68e33bba7d888f253c34d1f9c1486d0bfaa3881c1c26dd8a83257631048e diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.0-configure.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.0-configure.patch deleted file mode 100644 index f6b3a005ba21..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.0-configure.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/configure -+++ b/configure -@@ -421,7 +421,6 @@ - iptables_find_version #IPTVER - iptables_try_pkgconfig #try to configure from pkg-config - iptables_find_src #IPTSRC --iptables_src_version #check that IPTSRC match to IPTVER - iptables_inc #IPTINC - iptables_modules #IPTLIB - diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-fix-linux-headers-5.14.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.6-fix-linux-headers-5.14.patch deleted file mode 100644 index 0f52b68d5235..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-fix-linux-headers-5.14.patch +++ /dev/null @@ -1,29 +0,0 @@ -https://github.com/aabc/ipt-netflow/commit/66e4304101010108892376866334ec9317b427d8.patch -https://bugs.gentoo.org/813993 - -From: ABC <abc@openwall.com> -Date: Wed, 14 Jul 2021 15:39:42 +0300 -Subject: [PATCH] Namespace sk_error_report - -sk_error_report is introduced in v5.14-rc1: e3ae2365efc14 ("net: sock: -introduce sk_error_report"). ---- a/ipt_NETFLOW.c -+++ b/ipt_NETFLOW.c -@@ -1943,7 +1943,7 @@ static struct ctl_path netflow_sysctl_path[] = { - #endif /* CONFIG_SYSCTL */ - - /* socket code */ --static void sk_error_report(struct sock *sk) -+static void netflow_sk_error_report(struct sock *sk) - { - struct ipt_netflow_sock *usock; - -@@ -1974,7 +1974,7 @@ static struct socket *usock_open_sock(struct ipt_netflow_sock *usock) - } - sock->sk->sk_allocation = GFP_ATOMIC; - sock->sk->sk_prot->unhash(sock->sk); /* hidden from input */ -- sock->sk->sk_error_report = &sk_error_report; /* clear ECONNREFUSED */ -+ sock->sk->sk_error_report = &netflow_sk_error_report; /* clear ECONNREFUSED */ - sock->sk->sk_user_data = usock; - sock->sk->sk_reuse = SK_CAN_REUSE; - diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch deleted file mode 100644 index 44dcfdec6d7b..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch +++ /dev/null @@ -1,61 +0,0 @@ ---- a/Makefile.in 2021-05-27 12:57:29.600377496 +0300 -+++ b/Makefile.in 2021-05-27 12:58:55.111381725 +0300 -@@ -13,7 +13,7 @@ - SNMPTGSO = /usr/lib/snmp/dlmod/snmp_NETFLOW.so - SNMPCONF = /etc/snmp/snmpd.conf - SNMPLINE = dlmod netflow $(SNMPTGSO) --CC = gcc -+CC ?= gcc - - # https://www.kernel.org/doc/Documentation/kbuild/modules.txt - # https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt -@@ -24,31 +24,31 @@ - - ipt_NETFLOW.ko: version.h ipt_NETFLOW.c ipt_NETFLOW.h compat_def.h compat.h Makefile - @echo Compiling $(shell ./version.sh) for kernel $(KVERSION) -- make -C $(KDIR) M=$(CURDIR) modules -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules - @touch $@ - compat_def.h: gen_compat_def - ./gen_compat_def > $@ - sparse: | version.h ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile - @rm -f ipt_NETFLOW.ko ipt_NETFLOW.o - @echo Compiling for kernel $(KVERSION) -- make -C $(KDIR) M=$(CURDIR) modules C=1 -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules C=1 - @touch ipt_NETFLOW.ko - coverity: - coverity-submit -v - - minstall: | ipt_NETFLOW.ko - @echo " *" -- make -C $(KDIR) M=$(CURDIR) modules_install INSTALL_MOD_PATH=$(DESTDIR) -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules_install INSTALL_MOD_PATH=$(DESTDIR) - $(DEPMOD) - mclean: -- make -C $(KDIR) M=$(CURDIR) clean -+ $(MAKE) -C $(KDIR) M=$(CURDIR) clean - lclean: - -rm -f *.so *_sh.o - clean: mclean lclean - -rm -f *.so *.o modules.order version.h compat_def.h - - snmp_NETFLOW.so: snmp_NETFLOW.c -- $(CC) -fPIC -shared -o $@ $< -lnetsnmp -+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $< -lnetsnmp - - sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my - @echo " *" -@@ -68,10 +68,10 @@ - fi - - %_sh.o: libipt_NETFLOW.c -- $(CC) $(CFLAGS) -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c -+ $(CC) $(CFLAGS) -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c - - %.so: %_sh.o -- $(CC) -shared -o $@ $< -+ $(CC) $(LDFLAGS) -shared -o $@ $< - - version.h: ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile - @./version.sh --define > version.h diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-kernel-6.4.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.6-kernel-6.4.patch deleted file mode 100644 index cfbca8823d79..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-kernel-6.4.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 0eb2092e930c78fc726d5d05abbcc81aa6c41b89 Mon Sep 17 00:00:00 2001 -From: ABC <abc@openwall.com> -Date: Mon, 26 Jun 2023 16:29:58 -0300 -Subject: [PATCH] Build compatibility with v6.4 (register_sysctl_paths) - -'register_sysctl_paths' is missed from v6.4 due to 0199849acd07 -("sysctl: remove register_sysctl_paths()"). - -Signed-off-by: ABC <abc@openwall.com> - -Slightly modified to fit on 2.6 release ---- - gen_compat_def | 2 ++ - ipt_NETFLOW.c | 10 ++++++++-- - 2 files changed, 10 insertions(+), 2 deletions(-) - -diff --git a/gen_compat_def b/gen_compat_def -index 396fdb9..a9cb95e 100755 ---- a/gen_compat_def -+++ b/gen_compat_def -@@ -87,6 +87,8 @@ - kbuild_test_symbol nf_bridge_info_get linux/netfilter_bridge.h - # Stumbled on 5.9 - kbuild_test_struct vlan_dev_priv linux/if_vlan.h -+# 6.4: 0199849acd07 ("sysctl: remove register_sysctl_paths()") -+kbuild_test_symbol register_sysctl_paths linux/sysctl.h - - echo "// End of compat_def.h" - -diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c -index b3c2c99..eee8074 100644 ---- a/ipt_NETFLOW.c -+++ b/ipt_NETFLOW.c -@@ -1929,16 +1929,18 @@ static ctl_table netflow_net_table[] = { - { } - }; - #else /* >= 2.6.25 */ -+# ifdef HAVE_REGISTER_SYSCTL_PATHS - static struct ctl_path netflow_sysctl_path[] = { - { - .procname = "net", --#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33) -+# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33) - .ctl_name = CTL_NET --#endif -+# endif - }, - { .procname = "netflow" }, - { } - }; -+# endif - #endif /* 2.6.25 */ - #endif /* CONFIG_SYSCTL */ - -@@ -5666,7 +5668,11 @@ static int __init ipt_netflow_init(void) - #endif - ); - #else /* 2.6.25 */ -+# ifdef HAVE_REGISTER_SYSCTL_PATHS - netflow_sysctl_header = register_sysctl_paths(netflow_sysctl_path, netflow_sysctl_table); -+# else -+ netflow_sysctl_header = register_sysctl("net/netflow", netflow_sysctl_table); -+# endif - #endif - if (!netflow_sysctl_header) { - printk(KERN_ERR "netflow: can't register to sysctl\n"); diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-ref_module_fix.patch b/net-firewall/ipt_netflow/files/ipt_netflow-2.6-ref_module_fix.patch deleted file mode 100644 index 21d647190709..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-2.6-ref_module_fix.patch +++ /dev/null @@ -1,60 +0,0 @@ -commit 352cdb28eecbb57de3509b18dfc37dcce0455c01 -Author: ABC <abc@openwall.com> -Date: Tue Jun 22 19:07:02 2021 +0300 - - Fix compile for stable kernels by not using 'ref_module' - - `ref_module' unexport in 7ef5264de7732 ("modules: mark ref_module - static") is back-ported into stable kernels making old `#if - LINUX_VERSION_CODE' checks irrelevant or too complicated to update. - - Do not use `ref_module' API at all since `try_module_get' is ancient - enough to use always. - - Reported-by: https://github.com/xtaran - Fixes: https://github.com/aabc/ipt-netflow/issues/177 - -diff --git a/compat.h b/compat.h -index 99edf91..30f1d8f 100644 ---- a/compat.h -+++ b/compat.h -@@ -170,10 +170,6 @@ static int __ethtool_get_settings(struct net_device *dev, struct ethtool_cmd *cm - # define CHECK_OK 0 - #endif - --#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) --# define use_module ref_module --#endif -- - #ifndef NF_IP_LOCAL_IN /* 2.6.25 */ - # define NF_IP_PRE_ROUTING NF_INET_PRE_ROUTING - # define NF_IP_LOCAL_IN NF_INET_LOCAL_IN -diff --git a/ipt_NETFLOW.c b/ipt_NETFLOW.c -index d3d3901..c4c049d 100644 ---- a/ipt_NETFLOW.c -+++ b/ipt_NETFLOW.c -@@ -5494,12 +5494,8 @@ static void register_ct_events(void) - } - /* Reference netlink module to prevent it's unsafe unload before us. */ - if (!netlink_m && (netlink_m = find_module(NETLINK_M))) { --#if LINUX_VERSION_CODE < KERNEL_VERSION(5,9,0) -- use_module(THIS_MODULE, netlink_m); --#else - if (!try_module_get(netlink_m)) - netlink_m = NULL; --#endif - } - - /* Register ct events callback. */ -@@ -5527,10 +5523,9 @@ static void unregister_ct_events(void) - #else /* < v3.2 */ - unset_notifier_cb(); - #endif /* v3.2 */ --#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) - module_put(netlink_m); - netlink_m = NULL; --#endif -+ - rcu_assign_pointer(saved_event_cb, NULL); - #else /* < v2.6.31 */ - nf_conntrack_unregister_notifier(&ctnl_notifier); diff --git a/net-firewall/ipt_netflow/files/ipt_netflow-9999-gentoo.patch b/net-firewall/ipt_netflow/files/ipt_netflow-9999-gentoo.patch deleted file mode 100644 index 4853d7505362..000000000000 --- a/net-firewall/ipt_netflow/files/ipt_netflow-9999-gentoo.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff --git a/Makefile.in b/Makefile.in -index 65edf4c..7d6ccc8 100644 ---- a/Makefile.in -+++ b/Makefile.in -@@ -13,7 +13,7 @@ CARGS = @CARGS@ - SNMPTGSO = /usr/lib/snmp/dlmod/snmp_NETFLOW.so - SNMPCONF = /etc/snmp/snmpd.conf - SNMPLINE = dlmod netflow $(SNMPTGSO) --CC = gcc -+$(CC) ?= gcc - - # https://www.kernel.org/doc/Documentation/kbuild/modules.txt - # https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt -@@ -24,7 +24,7 @@ all: ipt_NETFLOW.ko libipt_NETFLOW.so libip6t_NETFLOW.so @SNMPTARGET@ - - ipt_NETFLOW.ko: version.h ipt_NETFLOW.c ipt_NETFLOW.h compat_def.h compat.h Makefile - @echo Compiling $(shell ./version.sh) for kernel $(KVERSION) -- make -C $(KDIR) M=$(CURDIR) modules -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules - @touch $@ - compat_def.h: gen_compat_def - ./gen_compat_def > $@- -@@ -32,24 +32,24 @@ compat_def.h: gen_compat_def - sparse: | version.h ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile - @rm -f ipt_NETFLOW.ko ipt_NETFLOW.o - @echo Compiling for kernel $(KVERSION) -- make -C $(KDIR) M=$(CURDIR) modules C=1 -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules C=1 - @touch ipt_NETFLOW.ko - coverity: - coverity-submit -v - - minstall: | ipt_NETFLOW.ko - @echo " *" -- make -C $(KDIR) M=$(CURDIR) modules_install INSTALL_MOD_PATH=$(DESTDIR) -+ $(MAKE) -C $(KDIR) M=$(CURDIR) modules_install INSTALL_MOD_PATH=$(DESTDIR) - $(DEPMOD) - mclean: -- make -C $(KDIR) M=$(CURDIR) clean -+ $(MAKE) -C $(KDIR) M=$(CURDIR) clean - lclean: - -rm -f *.so *_sh.o - clean: mclean lclean - -rm -f *.so *.o modules.order version.h compat_def.h - - snmp_NETFLOW.so: snmp_NETFLOW.c -- $(CC) -fPIC -shared -o $@ $< -lnetsnmp -+ $(CC) $(CFLAGS) $(LDFLAGS) -fPIC -shared -o $@ $< -lnetsnmp - - sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my - @echo " *" -@@ -69,10 +69,10 @@ sinstall: | snmp_NETFLOW.so IPT-NETFLOW-MIB.my - fi - - %_sh.o: libipt_NETFLOW.c -- $(CC) $(CFLAGS) -O2 -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c -+ $(CC) $(CFLAGS) -Wall -Wunused $(IPTABLES_CFLAGS) -fPIC -o $@ -c libipt_NETFLOW.c - - %.so: %_sh.o -- $(CC) -shared -o $@ $< -+ $(CC) $(LDFLAGS) -shared -o $@ $< - - version.h: ipt_NETFLOW.c ipt_NETFLOW.h compat.h Makefile - @./version.sh --define > version.h diff --git a/net-firewall/ipt_netflow/ipt_netflow-2.6-r1.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.6-r1.ebuild deleted file mode 100644 index 08997f3178c2..000000000000 --- a/net-firewall/ipt_netflow/ipt_netflow-2.6-r1.ebuild +++ /dev/null @@ -1,109 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-mod-r1 toolchain-funcs - -DESCRIPTION="Netflow iptables module" -HOMEPAGE=" - https://sourceforge.net/projects/ipt-netflow - https://github.com/aabc/ipt-netflow -" -SRC_URI="https://github.com/aabc/ipt-netflow/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -IUSE="natevents snmp" - -RDEPEND=" - net-firewall/iptables:0= - snmp? ( net-analyzer/net-snmp ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/linux-sources - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/${PN}-2.0-configure.patch" # bug #455984 - "${FILESDIR}/${PN}-2.6-gentoo.patch" - "${FILESDIR}/${P}-ref_module_fix.patch" # bug #781014 - "${FILESDIR}/${P}-fix-linux-headers-5.14.patch" # bug #813993 - "${FILESDIR}/${P}-kernel-6.4.patch" # bug #921589 -) - -pkg_setup() { - local CONFIG_CHECK="BRIDGE_NETFILTER ~IP_NF_IPTABLES VLAN_8021Q" - if use natevents; then - CONFIG_CHECK+=" NF_CONNTRACK_EVENTS" - if kernel_is lt 5 2; then - CONFIG_CHECK+=" NF_NAT_NEEDED" - else - CONFIG_CHECK+=" NF_NAT" - fi - fi - - IPT_LIB="/usr/$(get_libdir)/xtables" - linux-mod-r1_pkg_setup -} - -src_unpack() { - default - - mv "${WORKDIR}"/${PN/_/-}-* "${WORKDIR}"/${P} || die -} - -src_prepare() { - default - - # Checking for directory is enough - sed -i \ - -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \ - configure || die -} - -do_conf() { - tc-export CC - echo ./configure $* - ./configure $* ${EXTRA_ECONF} || die 'configure failed' -} - -src_configure() { - local IPT_VERSION="$($(tc-getPKG_CONFIG) --modversion xtables)" - # this configure script is not based on autotools - # ipt-src need to be defined, see bug #455984 - do_conf \ - --disable-dkms \ - --enable-aggregation \ - --enable-direction \ - --enable-macaddress \ - --enable-vlan \ - --ipt-lib="${IPT_LIB}" \ - --ipt-src="/usr/" \ - --ipt-ver="${IPT_VERSION}" \ - --kdir="${KV_DIR}" \ - --kver="${KV_FULL}" \ - $(use natevents && echo '--enable-natevents') \ - $(use snmp && echo '--enable-snmp-rules' || echo '--disable-snmp-agent') -} - -src_compile() { - local modlist=( ipt_NETFLOW=ipt_netflow ) - linux-mod-r1_src_compile - emake ARCH="$(tc-arch-kernel)" CC="$(tc-getCC)" LD="$(tc-getLD)" OBJDUMP="$(tc-getOBJDUMP)" all -} - -src_install() { - linux-mod-r1_src_install - - use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall - - exeinto "${IPT_LIB}" - doexe libip{,6}t_NETFLOW.so - - doheader ipt_NETFLOW.h -} diff --git a/net-firewall/ipt_netflow/ipt_netflow-2.6_p20250317.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.6_p20250317.ebuild deleted file mode 100644 index 71baeddafbe9..000000000000 --- a/net-firewall/ipt_netflow/ipt_netflow-2.6_p20250317.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit linux-mod-r1 toolchain-funcs - -# Hash of commit point. -SNAPSHOT=0c5759d002131ac3ae161713f4ce0d515037c1de - -DESCRIPTION="Netflow iptables module" -HOMEPAGE="https://github.com/aabc/ipt-netflow" -SRC_URI="https://github.com/aabc/ipt-netflow/archive/${SNAPSHOT}.tar.gz -> ${P}.tar.gz" - -S="${WORKDIR}/ipt-netflow-${SNAPSHOT}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="natevents snmp" - -RDEPEND=" - net-firewall/iptables:0= - snmp? ( net-analyzer/net-snmp ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/linux-sources - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/${PN}-2.0-configure.patch" # bug #455984 - "${FILESDIR}/${PN}-9999-gentoo.patch" -) - -pkg_setup() { - local CONFIG_CHECK="BRIDGE_NETFILTER ~IP_NF_IPTABLES VLAN_8021Q" - if use natevents; then - CONFIG_CHECK+=" NF_CONNTRACK_EVENTS" - if kernel_is lt 5 2; then - CONFIG_CHECK+=" NF_NAT_NEEDED" - else - CONFIG_CHECK+=" NF_NAT" - fi - fi - - IPT_LIB="/usr/$(get_libdir)/xtables" - linux-mod-r1_pkg_setup -} - -src_prepare() { - default - - # Fix incorrect module version in sources - sed -i \ - -e '/IPT_NETFLOW_VERSION/s#"[0-9.]*"#"'${PV}'"#' \ - ipt_NETFLOW.c || die - - # Checking for directory is enough - sed -i \ - -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \ - configure || die -} - -do_conf() { - tc-export CC - echo ./configure $* - ./configure $* ${EXTRA_ECONF} || die 'configure failed' -} - -src_configure() { - local IPT_VERSION="$($(tc-getPKG_CONFIG) --modversion xtables)" - # this configure script is not based on autotools - # ipt-src need to be defined, see bug #455984 - do_conf \ - --disable-dkms \ - --enable-aggregation \ - --enable-direction \ - --enable-macaddress \ - --enable-vlan \ - --ipt-lib="${IPT_LIB}" \ - --ipt-src="/usr/" \ - --ipt-ver="${IPT_VERSION}" \ - --kdir="${KV_DIR}" \ - --kver="${KV_FULL}" \ - $(use natevents && echo '--enable-natevents') \ - $(use snmp && echo '--enable-snmp-rules' || echo '--disable-snmp-agent') -} - -src_compile() { - local modlist=( ipt_NETFLOW=ipt_netflow ) - linux-mod-r1_src_compile - emake ARCH="$(tc-arch-kernel)" CC="$(tc-getCC)" LD="$(tc-getLD)" OBJDUMP="$(tc-getOBJDUMP)" all -} - -src_install() { - linux-mod-r1_src_install - - use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall - - exeinto "${IPT_LIB}" - doexe libip{,6}t_NETFLOW.so - - doheader ipt_NETFLOW.h -} diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild deleted file mode 100644 index 5c63a5984557..000000000000 --- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit git-r3 linux-mod-r1 toolchain-funcs - -DESCRIPTION="Netflow iptables module" -HOMEPAGE=" - https://sourceforge.net/projects/ipt-netflow - https://github.com/aabc/ipt-netflow -" -EGIT_REPO_URI="https://github.com/aabc/ipt-netflow" - -LICENSE="GPL-2" -SLOT="0" -IUSE="natevents snmp" - -RDEPEND=" - net-firewall/iptables:0= - snmp? ( net-analyzer/net-snmp ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/linux-sources - virtual/pkgconfig -" - -PATCHES=( - "${FILESDIR}/${PN}-2.0-configure.patch" # bug #455984 - "${FILESDIR}/${PN}-9999-gentoo.patch" -) - -pkg_setup() { - local CONFIG_CHECK="BRIDGE_NETFILTER ~IP_NF_IPTABLES VLAN_8021Q" - if use natevents; then - CONFIG_CHECK+=" NF_CONNTRACK_EVENTS" - if kernel_is lt 5 2; then - CONFIG_CHECK+=" NF_NAT_NEEDED" - else - CONFIG_CHECK+=" NF_NAT" - fi - fi - - IPT_LIB="/usr/$(get_libdir)/xtables" - linux-mod-r1_pkg_setup -} - -src_prepare() { - default - - # Fix incorrect module version in sources - sed -i \ - -e '/IPT_NETFLOW_VERSION/s#"[0-9.]*"#"'${PV}'"#' \ - ipt_NETFLOW.c || die - - # Checking for directory is enough - sed -i \ - -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \ - configure || die -} - -do_conf() { - tc-export CC - echo ./configure $* - ./configure $* ${EXTRA_ECONF} || die 'configure failed' -} - -src_configure() { - local IPT_VERSION="$($(tc-getPKG_CONFIG) --modversion xtables)" - # this configure script is not based on autotools - # ipt-src need to be defined, see bug #455984 - do_conf \ - --disable-dkms \ - --enable-aggregation \ - --enable-direction \ - --enable-macaddress \ - --enable-vlan \ - --ipt-lib="${IPT_LIB}" \ - --ipt-src="/usr/" \ - --ipt-ver="${IPT_VERSION}" \ - --kdir="${KV_DIR}" \ - --kver="${KV_FULL}" \ - $(use natevents && echo '--enable-natevents') \ - $(use snmp && echo '--enable-snmp-rules' || echo '--disable-snmp-agent') -} - -src_compile() { - local modlist=( ipt_NETFLOW=ipt_netflow ) - linux-mod-r1_src_compile - emake ARCH="$(tc-arch-kernel)" CC="$(tc-getCC)" LD="$(tc-getLD)" OBJDUMP="$(tc-getOBJDUMP)" all -} - -src_install() { - linux-mod-r1_src_install - - use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall - - exeinto "${IPT_LIB}" - doexe libip{,6}t_NETFLOW.so - - doheader ipt_NETFLOW.h -} diff --git a/net-firewall/ipt_netflow/metadata.xml b/net-firewall/ipt_netflow/metadata.xml deleted file mode 100644 index ebe4a986ab13..000000000000 --- a/net-firewall/ipt_netflow/metadata.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>netmon@gentoo.org</email> - <name>Gentoo network monitoring and analysis project</name> - </maintainer> - <use> - <flag name="natevents">Netflow NAT translation events (NEL) support</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> |
