Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 452374
Collapse All | Expand All

(-)sshguard-1.5-r2.ebuild (-5 / +16 lines)
Lines 13-28 Link Here
13
LICENSE="BSD"
13
LICENSE="BSD"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
15
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
16
IUSE="ipfilter kernel_FreeBSD kernel_linux"
16
IUSE="ipfilter iptables kernel_FreeBSD kernel_linux tcpd"
17
17
18
CDEPEND="kernel_linux? ( net-firewall/iptables )
18
CDEPEND="iptables? ( net-firewall/iptables )
19
	kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) )"
19
	kernel_FreeBSD? ( !tcpd? ( !ipfilter? ( sys-freebsd/freebsd-pf ) ) )
20
	tcpd? ( sys-apps/tcp-wrappers )"
20
DEPEND="${CDEPEND}
21
DEPEND="${CDEPEND}
21
	sys-devel/flex"
22
	sys-devel/flex"
22
RDEPEND="${CDEPEND}
23
RDEPEND="${CDEPEND}
23
	sys-apps/openrc
24
	sys-apps/openrc
24
	virtual/logger"
25
	virtual/logger"
25
26
27
REQUIRED_USE="^^ ( ipfilter iptables tcpd )"
28
26
DOCS=( README Changes scripts/sshguard_backendgen.sh )
29
DOCS=( README Changes scripts/sshguard_backendgen.sh )
27
30
28
src_prepare() {
31
src_prepare() {
Lines 35-46 Link Here
35
38
36
	local myconf
39
	local myconf
37
	if use kernel_linux; then
40
	if use kernel_linux; then
38
		einfo "Selected firewall backend: iptables"
41
		if use iptables; then
39
		myconf="--with-firewall=iptables"
42
			einfo "Selected firewall backend: iptables"
43
			myconf="--with-firewall=iptables"
44
		elif use tcpd; then
45
			einfo "Selected firewall backend: tcp-wrappers"
46
			myconf="--with-firewall=hosts"
47
		fi
40
	elif use kernel_FreeBSD; then
48
	elif use kernel_FreeBSD; then
41
		if use ipfilter; then
49
		if use ipfilter; then
42
			einfo "Selected firewall backend: ipfw"
50
			einfo "Selected firewall backend: ipfw"
43
			myconf="--with-firewall=ipfw"
51
			myconf="--with-firewall=ipfw"
52
		elif use tcpd; then
53
			einfo "Selected firewall backend: tcp-wrappers"
54
			myconf="--with-firewall=hosts"
44
		else
55
		else
45
			einfo "Selected firewall backend: pf"
56
			einfo "Selected firewall backend: pf"
46
			myconf="--with-firewall=pf"
57
			myconf="--with-firewall=pf"

Return to bug 452374