summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Redaelli <drizzt@gentoo.org>2007-01-15 21:37:43 +0000
committerTimothy Redaelli <drizzt@gentoo.org>2007-01-15 21:37:43 +0000
commitd5237bc4e41bc943636c979882f8fe3d64608085 (patch)
treeec67d6ad426d5f89b59179be75b66021733d472f /sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild
parentBump to 6.2 and remove old version. (diff)
downloadgentoo-2-d5237bc4e41bc943636c979882f8fe3d64608085.tar.gz
gentoo-2-d5237bc4e41bc943636c979882f8fe3d64608085.tar.bz2
gentoo-2-d5237bc4e41bc943636c979882f8fe3d64608085.zip
Bump to 6.2 and remove old version.
(Portage 2.1.2_rc4-r6/CVS)
Diffstat (limited to 'sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild')
-rw-r--r--sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild
new file mode 100644
index 000000000000..1f5002f1f06f
--- /dev/null
+++ b/sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-6.2.ebuild,v 1.1 2007/01/15 21:37:43 drizzt 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}
+ sys-freebsd/freebsd-mk-defs
+ =sys-freebsd/freebsd-sources-${RV}*"
+
+S="${WORKDIR}"
+
+SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd"
+
+PATCHES="${FILESDIR}/${PN}-6.0-pcap.patch"
+
+pkg_setup() {
+ enewgroup authpf 63
+}
+
+src_unpack() {
+ freebsd_src_unpack
+
+ 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
+
+ newinitd "${FILESDIR}/pf.initd" pf
+ newconfd "${FILESDIR}/pf.confd" pf
+}