2012-10-10 22:40:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.70 2012/10/11 02:40:48 lteo Exp $
|
2009-08-16 09:31:27 -04:00
|
|
|
|
2012-09-28 15:30:54 -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
|
|
|
|
2012-10-10 22:40:48 -04:00
|
|
|
VERSION = 2.9.3.1
|
|
|
|
DISTNAME = snort-${VERSION}
|
|
|
|
REVISION = 0
|
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
|
2012-09-28 15:30:54 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
2009-02-12 17:12:08 -05:00
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
2012-09-28 15:30:54 -04:00
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2012-09-25 22:11:05 -04:00
|
|
|
WANTLIB = c daq dnet m pcap pcre pthread z
|
2009-02-12 17:12:08 -05:00
|
|
|
|
2012-09-28 15:30:54 -04:00
|
|
|
MASTER_SITES = http://www.snort.org/dl/snort-current/
|
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
USE_LIBTOOL = Yes
|
2010-11-11 12:20:27 -05:00
|
|
|
USE_GROFF = Yes
|
2009-02-12 17:12:08 -05:00
|
|
|
|
2012-03-29 09:38:12 -04:00
|
|
|
SEPARATE_BUILD = Yes
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGURE_STYLE = simple
|
|
|
|
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
|
2012-09-25 22:11:05 -04:00
|
|
|
--disable-static-daq
|
2009-02-12 17:12:08 -05:00
|
|
|
|
|
|
|
MAKE_FLAGS = mandir=${TRUEPREFIX}/man
|
|
|
|
|
2012-09-25 22:11:05 -04:00
|
|
|
LIB_DEPENDS = devel/pcre \
|
|
|
|
net/libdnet \
|
|
|
|
net/daq
|
2001-02-11 18:51:12 -05:00
|
|
|
|
2009-02-12 17:12:08 -05:00
|
|
|
CONFIGS = classification.config gen-msg.map reference.config \
|
2012-09-25 22:11:05 -04:00
|
|
|
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
|
|
|
|
2012-10-10 22:40:48 -04:00
|
|
|
V = ${VERSION:S/.//g}
|
|
|
|
SUBST_VARS += V
|
|
|
|
|
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
|
2006-10-10 09:33:17 -04:00
|
|
|
|
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>
|