diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2021-05-27 13:01:51 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2021-05-27 13:01:51 +0300 |
commit | 490a3ecbbc4e4e43a7e1b4d2253490f1ca169212 (patch) | |
tree | 3b5c489d29932e90d1f12ba0bc1f96ae82954d12 /net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch | |
parent | net-libs/libyang: Security cleanup (diff) | |
download | gentoo-490a3ecbbc4e4e43a7e1b4d2253490f1ca169212.tar.gz gentoo-490a3ecbbc4e4e43a7e1b4d2253490f1ca169212.tar.bz2 gentoo-490a3ecbbc4e4e43a7e1b4d2253490f1ca169212.zip |
net-firewall/ipt_netflow: version bump
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
Diffstat (limited to 'net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch')
-rw-r--r-- | net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch | 61 |
1 files changed, 61 insertions, 0 deletions
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 new file mode 100644 index 000000000000..44dcfdec6d7b --- /dev/null +++ b/net-firewall/ipt_netflow/files/ipt_netflow-2.6-gentoo.patch @@ -0,0 +1,61 @@ +--- 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 |