commit:     8650e8f2bf3e82d3c678fdc0fc05a22aeac3452c
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 22 14:18:17 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 22 14:19:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8650e8f2

net-firewall/firehol: Version bump to 3.1.8

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 net-firewall/firehol/Manifest             |  1 +
 net-firewall/firehol/firehol-3.1.8.ebuild | 82 +++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)

diff --git a/net-firewall/firehol/Manifest b/net-firewall/firehol/Manifest
index 41c60b489672..d515eaba4f15 100644
--- a/net-firewall/firehol/Manifest
+++ b/net-firewall/firehol/Manifest
@@ -1 +1,2 @@
 DIST firehol-3.1.7.tar.xz 1457932 BLAKE2B 
9a861f2e9c900bce45d0dbd12f4546bc14eb4d74aea27a8d4cb0e5bfe8bea92d9bff3ccf008d46bd64212d689123273c99d0b0faaaadd34f0e1d85e22ee757c9
 SHA512 
b05cec806c2c8fc410bf9c7a30e3ad1d9f1c06fd2d501a7e5434010f6bb38722aac5b64de9b4285d2c71cacbf6b2f3c758685da5a70c05621df52879eb5148c2
+DIST firehol-3.1.8.tar.xz 1419992 BLAKE2B 
47846b0f574df64759f1467304f6e420f04b6caa80ce26e85ba628a38e57d3ae53572a85f65acf71f5ad2f075bda4f0f45069d24a33355b95d2ee3a8a001faa6
 SHA512 
391190fc17e6339566c4fea9bbd1fe6acd237b10debf4ad4f19a6e6b7fd314a11c6825c85b95498a2d7951e2ec971c05a4c8632846f621ac70e3030a59cd0f72

diff --git a/net-firewall/firehol/firehol-3.1.8.ebuild 
b/net-firewall/firehol/firehol-3.1.8.ebuild
new file mode 100644
index 000000000000..24e7760f88bd
--- /dev/null
+++ b/net-firewall/firehol/firehol-3.1.8.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info systemd
+
+DESCRIPTION="iptables firewall generator"
+HOMEPAGE="https://firehol.org/ https://github.com/firehol/firehol";
+SRC_URI="https://github.com/firehol/firehol/releases/download/v${PV}/${P}.tar.xz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="doc ipv6 ipset"
+
+# Set the dependency versions to aid cross-compiling. Keep them at their
+# minimums as the configure script merely checks whether they are sufficient.
+MY_BASH_VERSION=4.0
+MY_IPRANGE_VERSION=1.0.2
+
+RDEPEND="
+       app-arch/gzip
+       >=app-shells/bash-${MY_BASH_VERSION}:0
+       net-analyzer/traceroute
+       net-firewall/iptables
+       >=net-misc/iprange-${MY_IPRANGE_VERSION}:0
+       net-misc/iputils[ipv6(+)?]
+       sys-apps/iproute2[-minimal,ipv6(+)?]
+       sys-apps/kmod[tools]
+       ipset? ( net-firewall/ipset )
+"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+       local CONFIG_CHECK=" \
+               ~IP_NF_FILTER \
+               ~IP_NF_IPTABLES \
+               ~IP_NF_MANGLE \
+               ~IP_NF_TARGET_MASQUERADE
+               ~IP_NF_TARGET_REDIRECT \
+               ~IP_NF_TARGET_REJECT \
+               ~NETFILTER_XT_CONNMARK \
+               ~NETFILTER_XT_MATCH_HELPER \
+               ~NETFILTER_XT_MATCH_LIMIT \
+               ~NETFILTER_XT_MATCH_OWNER \
+               ~NETFILTER_XT_MATCH_STATE \
+               ~NF_CONNTRACK \
+               ~NF_CONNTRACK_MARK \
+               ~NF_NAT \
+               ~NF_NAT_FTP \
+               ~NF_NAT_IRC \
+       "
+
+       if kernel_is -lt 4 19; then
+               CONFIG_CHECK+=" ~NF_CONNTRACK_IPV4"
+       fi
+
+       linux-info_pkg_setup
+}
+
+src_configure() {
+       # This erroneously checks for BASH_VERSION_PATH rather than 
BASH_VERSION.
+       BASH_VERSION_PATH=${MY_BASH_VERSION} \
+       IPRANGE_VERSION=${MY_IPRANGE_VERSION} \
+       econf \
+               --disable-vnetbuild \
+               $(use_enable ipset update-ipsets) \
+               $(use_enable doc) \
+               $(use_enable ipv6)
+}
+
+src_install() {
+       default
+
+       newconfd "${FILESDIR}"/firehol.confd firehol
+       newinitd "${FILESDIR}"/firehol.initd firehol
+       newconfd "${FILESDIR}"/fireqos.confd fireqos
+       newinitd "${FILESDIR}"/fireqos.initd fireqos
+
+       systemd_dounit contrib/fire{hol,qos}.service
+}

Reply via email to