You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.4 KiB
68 lines
1.4 KiB
3 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
6 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=7
|
||
|
|
||
6 years ago
|
inherit linux-info
|
||
|
|
||
|
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"
|
||
|
IUSE="doc ipv6 ipset"
|
||
4 years ago
|
KEYWORDS="amd64 arm ~arm64 ~ppc ~x86"
|
||
6 years ago
|
|
||
|
RDEPEND="net-firewall/iptables
|
||
3 years ago
|
sys-apps/iproute2[-minimal,ipv6(+)?]
|
||
4 years ago
|
sys-apps/kmod[tools]
|
||
3 years ago
|
net-misc/iputils[ipv6(+)?]
|
||
6 years ago
|
net-misc/iprange
|
||
|
net-analyzer/traceroute
|
||
|
app-arch/gzip
|
||
|
ipset? (
|
||
|
net-firewall/ipset
|
||
|
)"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
pkg_setup() {
|
||
6 years ago
|
local CONFIG_CHECK=" \
|
||
6 years ago
|
~IP_NF_FILTER \
|
||
|
~IP_NF_IPTABLES \
|
||
|
~IP_NF_MANGLE \
|
||
|
~IP_NF_TARGET_MASQUERADE
|
||
|
~IP_NF_TARGET_REDIRECT \
|
||
|
~IP_NF_TARGET_REJECT \
|
||
6 years ago
|
~NETFILTER_XT_CONNMARK \
|
||
|
~NETFILTER_XT_MATCH_HELPER \
|
||
6 years ago
|
~NETFILTER_XT_MATCH_LIMIT \
|
||
|
~NETFILTER_XT_MATCH_OWNER \
|
||
|
~NETFILTER_XT_MATCH_STATE \
|
||
|
~NF_CONNTRACK \
|
||
|
~NF_CONNTRACK_IPV4 \
|
||
|
~NF_CONNTRACK_MARK \
|
||
|
~NF_NAT \
|
||
|
~NF_NAT_FTP \
|
||
|
~NF_NAT_IRC \
|
||
|
"
|
||
|
linux-info_pkg_setup
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-vnetbuild \
|
||
|
$(use_enable ipset update-ipsets) \
|
||
|
$(use_enable doc) \
|
||
|
$(use_enable ipv6)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
6 years ago
|
newconfd "${FILESDIR}"/firehol.confd firehol
|
||
|
newinitd "${FILESDIR}"/firehol.initd firehol
|
||
|
newconfd "${FILESDIR}"/fireqos.confd fireqos
|
||
|
newinitd "${FILESDIR}"/fireqos.initd fireqos
|
||
6 years ago
|
}
|