summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-04 07:11:20 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-04-04 07:11:20 +0000
commit6bd69d4929c788df9b3279d42ce2b63a38040b44 (patch)
treefb55f763aa97bd3a644227f700c71ca862f66c44 /sys-freebsd/freebsd-pf
parentVersion bump. Wiped out previous release. (diff)
downloadgentoo-2-6bd69d4929c788df9b3279d42ce2b63a38040b44.tar.gz
gentoo-2-6bd69d4929c788df9b3279d42ce2b63a38040b44.tar.bz2
gentoo-2-6bd69d4929c788df9b3279d42ce2b63a38040b44.zip
Add patch to allow building using portage's libpcap, see bug #124759.
(Portage version: 2.1_pre7-r3)
Diffstat (limited to 'sys-freebsd/freebsd-pf')
-rw-r--r--sys-freebsd/freebsd-pf/ChangeLog6
-rw-r--r--sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch15
-rw-r--r--sys-freebsd/freebsd-pf/freebsd-pf-6.0.ebuild4
3 files changed, 23 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-pf/ChangeLog b/sys-freebsd/freebsd-pf/ChangeLog
index 12b9b14913b9..34d049f1ea60 100644
--- a/sys-freebsd/freebsd-pf/ChangeLog
+++ b/sys-freebsd/freebsd-pf/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-freebsd/freebsd-pf
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.1 2006/04/01 16:43:51 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/ChangeLog,v 1.2 2006/04/04 07:11:20 flameeyes Exp $
+
+ 04 Apr 2006; Diego Pettenò <flameeyes@gentoo.org>
+ +files/freebsd-pf-6.0-pcap.patch, freebsd-pf-6.0.ebuild:
+ Add patch to allow building using portage's libpcap, see bug #124759.
*freebsd-pf-6.0 (01 Apr 2006)
diff --git a/sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch b/sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch
new file mode 100644
index 000000000000..32f0605de985
--- /dev/null
+++ b/sys-freebsd/freebsd-pf/files/freebsd-pf-6.0-pcap.patch
@@ -0,0 +1,15 @@
+This patch includes net/bpf.h so that libpcap will use that instead of its own
+stripped down version, that doesnt't allow for pflogd to work correctly.
+
+Index: fbsd-6/contrib/pf/pflogd/pflogd.c
+===================================================================
+--- fbsd-6.orig/contrib/pf/pflogd/pflogd.c
++++ fbsd-6/contrib/pf/pflogd/pflogd.c
+@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD: src/contrib/pf/pflog
+ #include <sys/ioctl.h>
+ #include <sys/file.h>
+ #include <sys/stat.h>
++#include <net/bpf.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-6.0.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-6.0.ebuild
index dc75616ab15b..5b08d7917b69 100644
--- a/sys-freebsd/freebsd-pf/freebsd-pf-6.0.ebuild
+++ b/sys-freebsd/freebsd-pf/freebsd-pf-6.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 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.0.ebuild,v 1.1 2006/04/01 16:43:51 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-pf/freebsd-pf-6.0.ebuild,v 1.2 2006/04/04 07:11:20 flameeyes Exp $
inherit bsdmk freebsd flag-o-matic
@@ -27,6 +27,8 @@ S="${WORKDIR}"
SUBDIRS="libexec/ftp-proxy usr.sbin/authpf sbin/pfctl sbin/pflogd"
+PATCHES="${FILESDIR}/${PN}-${RV}-pcap.patch"
+
src_unpack() {
freebsd_src_unpack