- Update to 2.9.0.4

- Update snortsam checksum
- Fix LIBNET_CONFIG issue
- Pet portlint

Changes:	http://www.snort.org/downloads/740
PR:		ports/154668
Submitted by:	Dean Freeman <wfreeman@sourcefire.com> (maintainer)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2011-02-11 08:01:39 +00:00
parent f74346e6ec
commit 058c615405
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=268913
3 changed files with 21 additions and 18 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= snort
PORTVERSION= 2.9.0.3
PORTVERSION= 2.9.0.4
CATEGORIES= security
MASTER_SITES= SF/snort/snort
@ -60,16 +60,21 @@ PREPROC_RULES= decoder.rules preprocessor.rules sensitive-data.rules
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
.if exists(${LIBNET_CONFIG})
LIBNET_CFLAGS!= ${LIBNET_CONFIG} --cflags
LIBNET_LIBS!= ${LIBNET_CONFIG} --libs
.else
LIBNET_CFLAGS= -I${LOCALBASE}/include/libnet11
LIBNET_LIBS= -L${LOCALBASE}/lib/libnet11 -lnet
.endif
LIBNET_INCDIR= ${LIBNET_CFLAGS:M-I*:S/-I//}
LIBNET_LIBDIR= ${LIBNET_LIBS:M-L*:S/-L//}
CONFIGURE_ARGS+= --enable-dynamicplugin --enable-build-dynamic-examples \
--enable-reload --enable-reload-restart \
--disable-corefiles \
--with-dnet-includes=${LIBNET_INCDIR} \
--with-dnet-libraries=${LIBNET_LIBDIR}
CONFIGURE_ARGS= --enable-dynamicplugin --enable-build-dynamic-examples \
--enable-reload --enable-reload-restart \
--disable-corefiles \
--with-dnet-includes=${LIBNET_INCDIR} \
--with-dnet-libraries=${LIBNET_LIBDIR}
PLIST_SUB+= DYNAMIC=""
@ -149,9 +154,8 @@ CONFIGURE_ARGS+= --enable-react
.endif
.if defined(WITH_SNORTSAM)
USE_AUTOTOOLS+= automake
PATCH_SITES+= http://www.snortsam.net/files/snort-plugin/:snortsam \
http://www.secnap.com/downloads/:snortsam
USE_AUTOTOOLS+= automake
PATCH_SITES+= http://www.snortsam.net/files/snort-plugin/:snortsam
PATCHFILES+= snortsam-2.9.0.3.diff.gz:snortsam
.endif
@ -161,10 +165,8 @@ post-patch:
.endif
pre-configure:
${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
's|lib/snort_|lib/snort/|g'
${REINPLACE_CMD} "s,/etc/snort.conf,${CONFIG_DIR}/snort.conf," \
${WRKSRC}/src/snort.c ${WRKSRC}/snort.8
${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e 's|lib/snort_|lib/snort/|g'
${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
${REINPLACE_CMD} -e 's|^dynamicdetection|#dynamicdetection|' ${WRKSRC}/etc/snort.conf
${REINPLACE_CMD} -e '/var HOME_NET/s/any/[YOU_NEED_TO_SET_HOME_NET_IN_snort.conf]/' ${WRKSRC}/etc/snort.conf
@ -199,7 +201,7 @@ post-install:
@cd ${LOCALBASE}/lib && ${MV} snort_dynamicrules/* snort/dynamicrules
@cd ${LOCALBASE}/lib && ${MV} snort_dynamicengine/* snort/dynamicengine
@cd ${LOCALBASE}/lib && ${MV} snort_dynamicpreprocessor/* snort/dynamicpreprocessor
@cd ${LOCALBASE}/lib && ${${RMDIR} snort_dynamic*
@cd ${LOCALBASE}/lib && ${RMDIR} snort_dynamic*
@${MKDIR} ${LOCALBASE}/libdata/pkgconfig/ && ${MV} ${LOCALBASE}/lib/pkgconfig/snort.pc ${LOCALBASE}/libdata/pkgconfig/snort.pc
@${RMDIR} ${LOCALBASE}/lib/pkgconfig
.endif

View file

@ -1,4 +1,4 @@
SHA256 (snort-2.9.0.3.tar.gz) = 382768dc7a47bbf4e1a85cd765d8bf4f245643be2acfc740fda1cd3d24e32a48
SIZE (snort-2.9.0.3.tar.gz) = 5791144
SHA256 (snortsam-2.9.0.3.diff.gz) = f32baf0408e80c7aed3560ce46229d936d71b8e7a4180efdba04f8e0021e70bc
SIZE (snortsam-2.9.0.3.diff.gz) = 28890
SHA256 (snort-2.9.0.4.tar.gz) = 131f54b48005677b73c55a2c3d893ab3607562912272d0810fc9b85c63fc91e9
SIZE (snort-2.9.0.4.tar.gz) = 5862444
SHA256 (snortsam-2.9.0.3.diff.gz) = da0f9567f213c69e3682bfda4c6310090ce255b0495c02984b3f7e089b19e149
SIZE (snortsam-2.9.0.3.diff.gz) = 28889

View file

@ -161,6 +161,7 @@ etc/snort/preproc_rules/sensitive-data.rules-sample
%%PORTDOCS%%%%DOCSDIR%%/README.thresholding
%%PORTDOCS%%%%DOCSDIR%%/README.u2boat
%%PORTDOCS%%%%DOCSDIR%%/README.variables
%%PORTDOCS%%%%DOCSDIR%%/README.rzb_saac
%%PORTDOCS%%%%DOCSDIR%%/RELEASE.NOTES
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%%%DOCSDIR%%/USAGE