Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2005 09:30:14 +0100
From:      Lupe Christoph <lupe@lupe-christoph.de>
To:        FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/78777: Lexer collision with pcap library
Message-ID:  <20050317083014.GG26010@lupe-christoph.de>
In-Reply-To: <200503131240.j2DCe20E005403@freefall.freebsd.org>
References:  <20050313123603.6FC75A812@firewally.lupe-christoph.de> <200503131240.j2DCe20E005403@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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.                                 |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050317083014.GG26010>