diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-09-11 17:25:44 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-09-11 17:25:44 +0000 |
commit | 76eaa45f5f375015e31ba920749ecfb76bea7000 (patch) | |
tree | 7d3813805c85f5beffdd5fff3291e0899a78ef68 /sys-freebsd/freebsd-pf | |
parent | Version bump. (diff) | |
download | gentoo-2-76eaa45f5f375015e31ba920749ecfb76bea7000.tar.gz gentoo-2-76eaa45f5f375015e31ba920749ecfb76bea7000.tar.bz2 gentoo-2-76eaa45f5f375015e31ba920749ecfb76bea7000.zip |
bump to 9.1_rc1 from bsd overlay by Yuta SATOH, bug #426838 and keyword ~amd64-fbsd
(Portage version: 2.2.0_alpha125/cvs/Linux x86_64)
Diffstat (limited to 'sys-freebsd/freebsd-pf')
-rw-r--r-- | sys-freebsd/freebsd-pf/ChangeLog | 8 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/freebsd-pf-9.1_rc1.ebuild | 68 |
2 files changed, 75 insertions, 1 deletions
diff --git a/sys-freebsd/freebsd-pf/ChangeLog b/sys-freebsd/freebsd-pf/ChangeLog index 26d2f9a87e54..fea41283c0de 100644 --- a/sys-freebsd/freebsd-pf/ChangeLog +++ b/sys-freebsd/freebsd-pf/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-freebsd/freebsd-pf # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.34 2012/03/30 15:47:33 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.35 2012/09/11 17:25:44 aballier Exp $ + +*freebsd-pf-9.1_rc1 (11 Sep 2012) + + 11 Sep 2012; Alexis Ballier <aballier@gentoo.org> +freebsd-pf-9.1_rc1.ebuild: + bump to 9.1_rc1 from bsd overlay by Yuta SATOH, bug #426838 and keyword + ~amd64-fbsd 30 Mar 2012; Alexis Ballier <aballier@gentoo.org> -freebsd-pf-9.0_rc1.ebuild, -freebsd-pf-9.0_rc2.ebuild, -freebsd-pf-9.0_rc3.ebuild: diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-9.1_rc1.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-9.1_rc1.ebuild new file mode 100644 index 000000000000..85d7eb14588c --- /dev/null +++ b/sys-freebsd/freebsd-pf/freebsd-pf-9.1_rc1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-9.1_rc1.ebuild,v 1.1 2012/09/11 17:25:44 aballier Exp $ + +inherit bsdmk freebsd + +DESCRIPTION="FreeBSD's base system libraries" +SLOT="0" +KEYWORDS="~amd64-fbsd ~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}-9.0-pcap_pollution.patch" + # Use system's libevent + epatch "${FILESDIR}/${PN}-9.0-libevent.patch" + epatch "${FILESDIR}/${PN}-9.0-pflogd.patch" + epatch "${FILESDIR}/${PN}-9.0-bpf.patch" + epatch "${FILESDIR}/${PN}-9.0-getline.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 +} |