1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 inherit bsdmk freebsd user
6 DESCRIPTION="FreeBSD's base system libraries"
8 KEYWORDS="~amd64-fbsd ~x86-fbsd"
12 # Crypto is needed to have an internal OpenSSL header
13 SRC_URI="mirror://gentoo/${USBIN}.tar.bz2
14 mirror://gentoo/${SBIN}.tar.bz2
15 mirror://gentoo/${CONTRIB}.tar.bz2
16 mirror://gentoo/${ETC}.tar.bz2"
18 RDEPEND="net-libs/libpcap"
21 =sys-freebsd/freebsd-mk-defs-${RV}*
22 =sys-freebsd/freebsd-sources-${RV}*"
26 SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy/ftp-proxy"
30 mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= "
35 # pcap-int.h redefines snprintf as pcap_snprintf
36 epatch "${FILESDIR}/${PN}-9.0-pcap_pollution.patch"
37 # Use system's libevent
38 epatch "${FILESDIR}/${PN}-9.0-libevent.patch"
39 epatch "${FILESDIR}/${PN}-9.0-pflogd.patch"
40 epatch "${FILESDIR}/${PN}-9.0-bpf.patch"
41 epatch "${FILESDIR}/${PN}-9.0-getline.patch"
42 # Link in kernel sources
43 ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys"
47 for dir in ${SUBDIRS}; do
48 einfo "Starting make in ${dir}"
50 mkmake || die "Make ${dir} failed"
55 for dir in ${SUBDIRS}; do
56 einfo "Starting install in ${dir}"
58 mkinstall || die "Install ${dir} failed"
64 # pf.initd provided by openrc, but no pf.confd
65 newconfd "${FILESDIR}/pf.confd" pf