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

(-)sshguard-1.0.ebuild.orig (-7 / +19 lines)
Lines 8-26 Link Here
8
8
9
LICENSE="BSD"
9
LICENSE="BSD"
10
SLOT="0"
10
SLOT="0"
11
KEYWORDS="~x86"
11
KEYWORDS="~x86 ~x86-fbsd"
12
IUSE=""
12
IUSE="ipfw kernel_linux kernel_FreeBSD"
13
13
14
DEPEND=""
14
DEPEND=""
15
RDEPEND="net-firewall/iptables"
15
RDEPEND="kernel_linux? (net-firewall/iptables)
16
	kernel_FreeBSD? (!ipfw? (sys-freebsd/freebsd-pf))"
16
17
17
src_compile() {
18
src_compile() {
18
	econf --with-firewall=iptables
19
	if use kernel_linux; then
19
	emake CFLAGS="${CFLAGS}" || die "emake failed"
20
		myconf="--with-firewall=iptables"
21
	else
22
		if use kernel_FreeBSD; then
23
			if use ipfw; then
24
				myconf="--with-firewall=ipfw"
25
			else
26
				myconf="--with-firewall=pf"
27
			fi
28
		fi
29
	fi
30
	econf $myconf
31
	emake CFLAGS="${CFLAGS}" || die "emake failed"
20
}
32
}
21
33
22
src_install() {
34
src_install() {
23
	emake DESTDIR="${D}" install || die "emake install failed"
35
	emake DESTDIR="${D}" install || die "emake install failed"
24
	dodoc README Changes || die "dodoc failed"
36
	dodoc README Changes || die "dodoc failed"
25
	dodoc -r examples || die "dodoc failed"
37
	dodoc -r examples || die "dodoc failed"
26
}
38
}

Return to bug 182926