diff options
-rw-r--r-- | net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch | 21 | ||||
-rw-r--r-- | net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild | 5 |
2 files changed, 25 insertions, 1 deletions
diff --git a/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch b/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch new file mode 100644 index 000000000000..d6c80405e86d --- /dev/null +++ b/net-firewall/pglinux/files/pglinux-2.3.1_p20171006-fno-common.patch @@ -0,0 +1,21 @@ +--- a/pgld/src/blocklist.h ++++ b/pgld/src/blocklist.h +@@ -74,6 +74,6 @@ + void blocklist_stats(int clearhits); + block_entry_t * blocklist_find(uint32_t ip); + void blocklist_dump(); +-blocklist_t blocklist; ++extern blocklist_t blocklist; + + #endif /* INC_BLOCKLIST_H */ +--- a/pgld/src/blocklist.c ++++ b/pgld/src/blocklist.c +@@ -22,6 +22,8 @@ + #include "blocklist.h" + #include "pgld.h" + ++blocklist_t blocklist; ++ + void blocklist_init() { + blocklist.entries = NULL; + blocklist.count = 0; diff --git a/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild b/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild index 8f0826099c32..eafaafe2ee81 100644 --- a/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild +++ b/net-firewall/pglinux/pglinux-2.3.1_p20171006.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -58,6 +58,9 @@ CONFIG_CHECK="~NETFILTER_NETLINK ~IP_NF_IPTABLES ~IP_NF_TARGET_REJECT" +PATCHES=( + "${FILESDIR}"/${P}-fno-common.patch +) S="${WORKDIR}/${MY_PN}-code-${COMMIT}" src_prepare() { |