summaryrefslogtreecommitdiff
path: root/net/pfflowd
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-08-20 13:18:34 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-08-20 13:18:34 +0000
commit83905b9c96910db3826ff601060958640a6770b0 (patch)
treec9918adabc6b36f016d5dca069a34995582aeee6 /net/pfflowd
parentUpdate to 1.2 (diff)
The latest pf in current has a different pfsync interface, imported 16 June
from OpenBSD 3.5. Make build aware of this by making -DOLD_PFSYNC conditional. PR: ports/70654 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=116761
Diffstat (limited to 'net/pfflowd')
-rw-r--r--net/pfflowd/Makefile4
-rw-r--r--net/pfflowd/files/patch-Makefile10
-rw-r--r--net/pfflowd/files/pf34-Makefile11
3 files changed, 19 insertions, 6 deletions
diff --git a/net/pfflowd/Makefile b/net/pfflowd/Makefile
index 3708a79e1a7d..3231b1bd97d9 100644
--- a/net/pfflowd/Makefile
+++ b/net/pfflowd/Makefile
@@ -24,6 +24,10 @@ PLIST_FILES= sbin/pfflowd \
IGNORE= "Only for 5.0 and above"
.endif
+.if ${OSVERSION} < 502119
+EXTRA_PATCHES+= ${FILESDIR}/pf34-Makefile
+.endif
+
.if ${OSVERSION} < 502106
BUILD_DEPENDS= ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf
RUN_DEPENDS= ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf
diff --git a/net/pfflowd/files/patch-Makefile b/net/pfflowd/files/patch-Makefile
index 8bbd654c6dfb..9eb368b14f92 100644
--- a/net/pfflowd/files/patch-Makefile
+++ b/net/pfflowd/files/patch-Makefile
@@ -1,6 +1,6 @@
--- Makefile Mon Feb 16 16:30:46 2004
-+++ Makefile Wed Feb 25 16:39:29 2004
-@@ -7,17 +7,17 @@
++++ Makefile Thu Aug 19 22:08:28 2004
+@@ -7,7 +7,7 @@
LIBS=-lpcap -lutil #-lefence
LDFLAGS=-g
@@ -8,10 +8,8 @@
+CFLAGS=-g -O -I /usr/local/include/pf
# Uncomment this if you are using pfflowd on OpenBSD <=3.4
--#CFLAGS+=-DOLD_PFSYNC
-+CFLAGS+=-DOLD_PFSYNC
-
- TARGETS=pfflowd
+ #CFLAGS+=-DOLD_PFSYNC
+@@ -16,8 +16,8 @@
all: $(TARGETS)
diff --git a/net/pfflowd/files/pf34-Makefile b/net/pfflowd/files/pf34-Makefile
new file mode 100644
index 000000000000..8ff334de49d6
--- /dev/null
+++ b/net/pfflowd/files/pf34-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Thu Aug 19 22:10:22 2004
++++ Makefile Thu Aug 19 22:10:29 2004
+@@ -10,7 +10,7 @@
+ CFLAGS=-g -O -I /usr/local/include/pf
+
+ # Uncomment this if you are using pfflowd on OpenBSD <=3.4
+-#CFLAGS+=-DOLD_PFSYNC
++CFLAGS+=-DOLD_PFSYNC
+
+ TARGETS=pfflowd
+