cope with new libnet port (flavours can run, but they can't hide)
ok pvalchev@ msf@
This commit is contained in:
parent
dc09212266
commit
4ffe61de6c
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.32 2004/12/16 00:31:25 alek Exp $
|
||||
# $OpenBSD: Makefile,v 1.33 2005/05/24 04:39:05 mjc Exp $
|
||||
|
||||
COMMENT= "highly flexible sniffer/NIDS"
|
||||
|
||||
@ -27,9 +27,11 @@ FLAVORS= postgresql mysql smbalert flexresp
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L:Mflexresp}
|
||||
LIB_DEPENDS+= net::net/libnet
|
||||
LIB_DEPENDS+= lib/libnet-1.0/net.=0:libnet-1.0*:net/libnet
|
||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS+= --enable-flexresp
|
||||
CONFIGURE_ARGS+= --enable-flexresp \
|
||||
--with-libnet-includes=${LOCALBASE}/include/libnet-1.0 \
|
||||
--with-libnet-libraries=${LOCALBASE}/lib/libnet-1.0
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mpostgresql}
|
||||
|
38
net/snort/patches/patch-configure
Normal file
38
net/snort/patches/patch-configure
Normal file
@ -0,0 +1,38 @@
|
||||
$OpenBSD: patch-configure,v 1.1 2005/05/24 04:39:05 mjc Exp $
|
||||
--- configure.orig Wed Mar 31 13:31:57 2004
|
||||
+++ configure Mon May 23 18:11:16 2005
|
||||
@@ -6575,20 +6575,20 @@ fi;
|
||||
# Check whether --enable-flexresp or --disable-flexresp was given.
|
||||
if test "${enable_flexresp+set}" = set; then
|
||||
enableval="$enable_flexresp"
|
||||
- CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`"
|
||||
+ CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config-1.0 --defines --cflags`" LDFLAGS="`libnet-config-1.0 --libs` ${LDFLAGS} "
|
||||
fi;
|
||||
|
||||
|
||||
if test "$enable_flexresp" != "no" -a "$enable_flexresp" = "yes"; then
|
||||
|
||||
- if test `libnet-config --cflags | wc -c` = "1"; then
|
||||
+ if test `libnet-config-1.0 --cflags | wc -c` = "1"; then
|
||||
CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
|
||||
LIBNET_CONFIG_BROKEN_CFLAGS=yes
|
||||
fi
|
||||
|
||||
- if test `libnet-config --libs | wc -c` = "1"; then
|
||||
- { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5
|
||||
-echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;}
|
||||
+ if test `libnet-config-1.0 --libs | wc -c` = "1"; then
|
||||
+ { echo "$as_me:$LINENO: WARNING: libnet-config-1.0 --libs is broken on your system. If you" >&5
|
||||
+echo "$as_me: WARNING: libnet-config-1.0 --libs is broken on your system. If you" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5
|
||||
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: maintainer." >&5
|
||||
@@ -6732,7 +6732,7 @@ echo $ECHO_N "checking for libnet versio
|
||||
libnet_dir="/usr/include /usr/local/include /sw/include"
|
||||
fi
|
||||
else
|
||||
- libnet_dir=`libnet-config --cflags | cut -dI -f2`
|
||||
+ libnet_dir=`libnet-config-1.0 --cflags | cut -dI -f2`
|
||||
fi
|
||||
|
||||
LIBNET_INC_DIR=""
|
Loading…
x
Reference in New Issue
Block a user