ports/78777: Lexer collision with pcap library
Lupe Christoph
lupe at lupe-christoph.de
Thu Mar 17 08:30:27 UTC 2005
This is fixed by installing the net/libpcap port. security/doorman should
require that port on FreeBSD 4 platforms. Always requiring it should not
hurt and simplify the situation. This patch implements the more
complicated FreeBSD 4-only way:
--- Makefile.orig Thu Aug 12 19:27:31 2004
+++ Makefile Thu Mar 17 09:19:50 2005
@@ -23,6 +23,8 @@
# Default to db4
WITH_BDB_VER?= 4
+.include <bsd.port.pre.mk>
+
.if ${WITH_BDB_VER} == 2
LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db2
.elif ${WITH_BDB_VER} == 3
@@ -37,6 +39,11 @@
.error WITH_BDB_VER must be one between 2, 3, 4, 41 and 42
.endif
+# doormand does not work with the FReeBSD 4.x version of libpcap.
+.if ${OSVERSION} < 500000
+BUILD_DEPENDS= ${LOCALBASE}/lib/libpcap.a:${PORTSDIR}/net/libpcap
+.endif
+
MAN1= knock.1
MAN5= knockcf.5 doormand.cf.5 guestlist.5
MAN8= doormand.8
@@ -59,4 +66,4 @@
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Lupe Christoph
PS: This does *not* make doormand work on FreeBSD. I have sent a patch
for doormand.c to the original author, along with two scripts for
IPFilter that implement rule merging.
--
| lupe at lupe-christoph.de | http://www.lupe-christoph.de/ |
| Ask not what your computer can do for you |
| ask what you can do for your computer. |
More information about the freebsd-ports-bugs
mailing list