aboutsummaryrefslogtreecommitdiff
path: root/security/snort
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-02-07 01:36:47 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-02-07 01:36:47 +0000
commit00406c3e2478e7c221ead2d19f6657125f0edc36 (patch)
treef8ef5ee4dc531203cf9e3b9e5e242150b5fb6136 /security/snort
parent02c3f942a3bb63c33fc575fca8936d1fd6e61fb1 (diff)
downloadports-00406c3e2478e7c221ead2d19f6657125f0edc36.tar.gz
ports-00406c3e2478e7c221ead2d19f6657125f0edc36.zip
Notes
Diffstat (limited to 'security/snort')
-rw-r--r--security/snort/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/security/snort/Makefile b/security/snort/Makefile
index 46bd022e9671..b30412e7f637 100644
--- a/security/snort/Makefile
+++ b/security/snort/Makefile
@@ -7,7 +7,7 @@
PORTNAME= snort
PORTVERSION= 2.6.1.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.snort.org/dl/current/
@@ -59,7 +59,7 @@ LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
LIBNET_CFLAGS!= ${LIBNET_CONFIG} --cflags
LIBNET_LIBS!= ${LIBNET_CONFIG} --libs
LIBNET_INCDIR= ${LIBNET_CFLAGS:M-I*:S/-I//}
-LIBNET_LIBDIR= ${LIBNET_CFLAGS:M-L*:S/-L//}
+LIBNET_LIBDIR= ${LIBNET_LIBS:M-L*:S/-L//}
.endif
.if !defined(WITHOUT_DYNAMIC)
@@ -132,6 +132,9 @@ post-patch:
${REINPLACE_CMD} "s,/etc/snort.conf,${CONFIG_DIR}/snort.conf," \
${WRKSRC}/src/snort.c ${WRKSRC}/snort.8
${REINPLACE_CMD} -e 's|lib/snort_|lib/snort/|g' ${WRKSRC}/etc/snort.conf
+.if exists(${LIBNET_CONFIG})
+ ${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|g' ${WRKSRC}/configure
+.endif
.if defined(WITHOUT_DYNAMIC)
${REINPLACE_CMD} -e "s,-am: install-libLTLIBRARIES,-am:," \
${WRKSRC}/src/dynamic-plugins/sf_engine/Makefile.in