diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-07-06 06:09:51 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-07-06 06:09:51 +0000 |
commit | 5fb5f248530805b0b19d6cbcaf309055549039e8 (patch) | |
tree | e2d81e018813a7d2431e8f60beceb8bb2c126cbe /sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild | |
parent | Version bump. (diff) | |
download | historical-5fb5f248530805b0b19d6cbcaf309055549039e8.tar.gz historical-5fb5f248530805b0b19d6cbcaf309055549039e8.tar.bz2 historical-5fb5f248530805b0b19d6cbcaf309055549039e8.zip |
bump to 8.2
Package-Manager: portage-2.2.0_alpha43/cvs/Linux x86_64
Diffstat (limited to 'sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild')
-rw-r--r-- | sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild new file mode 100644 index 000000000000..a664875c208b --- /dev/null +++ b/sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-8.2.ebuild,v 1.1 2011/07/06 06:04:57 aballier Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's base system libraries" +SLOT="0" +KEYWORDS="~x86-fbsd" + +IUSE="" + +# Crypto is needed to have an internal OpenSSL header +SRC_URI="mirror://gentoo/${USBIN}.tar.bz2 + mirror://gentoo/${SBIN}.tar.bz2 + mirror://gentoo/${CONTRIB}.tar.bz2 + mirror://gentoo/${ETC}.tar.bz2" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND} + dev-libs/libevent + sys-freebsd/freebsd-mk-defs + =sys-freebsd/freebsd-sources-${RV}*" + +S="${WORKDIR}" + +SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy/ftp-proxy" + +pkg_setup() { + enewgroup authpf 63 + mymakeopts="${mymakeopts} NO_MANCOMPRESS= NO_INFOCOMPRESS= " +} + +src_unpack() { + freebsd_src_unpack + # pcap-int.h redefines snprintf as pcap_snprintf + epatch "${FILESDIR}/${PN}-7.0-pcap_pollution.patch" + # Use system's libevent + epatch "${FILESDIR}/${PN}-7.0-libevent.patch" + # Link in kernel sources + ln -s "/usr/src/sys-${RV}" "${WORKDIR}/sys" +} + +src_compile() { + for dir in ${SUBDIRS}; do + einfo "Starting make in ${dir}" + cd "${S}/${dir}" + mkmake || die "Make ${dir} failed" + done +} + +src_install() { + for dir in ${SUBDIRS}; do + einfo "Starting install in ${dir}" + cd "${S}/${dir}" + mkinstall || die "Install ${dir} failed" + done + + cd "${WORKDIR}"/etc + insinto /etc + doins pf.os + newdoc pf.conf pf.conf.example + # pf.initd provided by openrc, but no pf.confd + newconfd "${FILESDIR}/pf.confd" pf +} |