2011-11-15 19:20:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.63 2011/11/16 00:20:09 sthen Exp $
|
2009-08-16 09:31:27 -04:00
|
|
|
|
|
|
|
SHARED_ONLY = Yes
|
2001-04-12 11:59:15 -04:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
COMMENT = highly flexible sniffer/NIDS
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2010-07-12 15:38:40 -04:00
|
|
|
# Original URL http://dl.snort.org/downloads/14 redirects to a
|
|
|
|
# time-limited Amazon S3 url. This would mean a bad distfile name.
|
|
|
|
# The following hack allows it to work but XXX if updating, the
|
|
|
|
# MASTER_SITES URL will need to be adjusted, not just DISTNAME.
|
|
|
|
DISTNAME = snort-2.8.6
|
2011-11-15 19:20:08 -05:00
|
|
|
REVISION= 1
|
2010-10-28 16:49:01 -04:00
|
|
|
MASTER_SITES = http://dl.snort.org/downloads/14?/ \
|
|
|
|
http://distfiles.nl/
|
2010-07-12 15:38:40 -04:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
CATEGORIES = net security
|
2000-05-29 03:31:38 -04:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
HOMEPAGE = http://www.snort.org/
|
2001-02-28 09:32:08 -05:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
MAINTAINER = Markus Lude <markus.lude@gmx.de>
|
2008-02-12 09:13:32 -05:00
|
|
|
|
|
|
|
# GPLv2
|
2009-02-12 17:12:08 -05:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
WANTLIB = c m pcap
|
|
|
|
|
|
|
|
USE_LIBTOOL = Yes
|
2010-11-11 12:20:27 -05:00
|
|
|
USE_GROFF = Yes
|
2009-02-12 17:12:08 -05:00
|
|
|
|
|
|
|
SEPARATE_BUILD = concurrent
|
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
|
2010-07-12 15:38:40 -04:00
|
|
|
--enable-dynamicplugin \
|
|
|
|
--enable-ipv6
|
2009-02-12 17:12:08 -05:00
|
|
|
|
|
|
|
MAKE_FLAGS = mandir=${TRUEPREFIX}/man
|
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS = devel/pcre
|
2010-11-11 12:20:27 -05:00
|
|
|
WANTLIB += pcre
|
2004-04-12 10:56:31 -04:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
FLAVORS = postgresql mysql flexresp prelude
|
|
|
|
FLAVOR ?=
|
2001-02-11 18:51:12 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mflexresp}
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS += net/libdnet
|
|
|
|
WANTLIB += dnet=1
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGURE_ARGS += --enable-flexresp2
|
2001-02-11 18:51:12 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS += databases/postgresql
|
|
|
|
WANTLIB += pq>=2
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGURE_ARGS += --with-postgresql="${LOCALBASE}"
|
2001-02-11 18:51:12 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS += databases/mysql
|
|
|
|
WANTLIB += lib/mysql/mysqlclient>=10
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGURE_ARGS += --with-mysql-libraries="${LOCALBASE}/lib" \
|
|
|
|
--with-mysql-includes="${LOCALBASE}/include"
|
|
|
|
WANTLIB += z
|
2001-02-11 18:51:12 -05:00
|
|
|
.endif
|
|
|
|
|
2006-06-28 15:27:42 -04:00
|
|
|
.if ${FLAVOR:L:Mprelude}
|
2009-02-12 17:12:08 -05:00
|
|
|
MODULES = devel/gettext
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS += security/prelude/libprelude
|
|
|
|
WANTLIB += gcrypt gnutls gpg-error pthread tasn1 z prelude>=8
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGURE_ARGS += --enable-prelude
|
|
|
|
MESSAGE = ${PKGDIR}/MESSAGE-prelude
|
2006-06-28 15:27:42 -04:00
|
|
|
.endif
|
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGS = classification.config gen-msg.map reference.config \
|
|
|
|
sid-msg.map snort.conf threshold.conf unicode.map
|
2008-02-12 09:13:32 -05:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
PREPROC = decoder.rules preprocessor.rules
|
2006-02-04 08:15:42 -05:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
DOCS = AUTHORS CREDITS README README.* *.pdf TODO USAGE \
|
|
|
|
WISHLIST
|
2008-02-12 09:13:32 -05:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
SCHEMAS = create_db2 create_mssql create_mysql \
|
|
|
|
create_oracle.sql create_postgresql
|
2006-10-10 09:33:17 -04:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
pre-configure:
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/etc/snort.conf
|
2006-10-10 09:33:17 -04:00
|
|
|
|
2000-05-29 03:31:38 -04:00
|
|
|
post-install:
|
2001-02-11 18:51:12 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snort
|
2006-02-04 08:15:42 -05:00
|
|
|
.for i in ${CONFIGS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${i} ${PREFIX}/share/examples/snort
|
|
|
|
.endfor
|
2008-02-12 09:13:32 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/generators ${PREFIX}/share/examples/snort
|
|
|
|
|
|
|
|
.for i in ${PREPROC}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/preproc_rules/${i} ${PREFIX}/share/examples/snort
|
|
|
|
.endfor
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2006-10-10 09:33:17 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
|
2009-02-12 17:12:08 -05:00
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/snort
|
|
|
|
.endfor
|
|
|
|
.for i in ${SCHEMAS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/schemas/${i} ${PREFIX}/share/doc/snort
|
2006-10-10 09:33:17 -04:00
|
|
|
.endfor
|
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
NO_REGRESS = Yes
|
2008-02-12 09:13:32 -05:00
|
|
|
|
2000-02-02 22:58:54 -05:00
|
|
|
.include <bsd.port.mk>
|