1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

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
This commit is contained in:
Sergey Matveychuk 2004-08-20 13:18:34 +00:00
parent 82f6a88cb4
commit 83905b9c96
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116761
3 changed files with 19 additions and 6 deletions

View File

@ -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

View File

@ -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)

View File

@ -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