2018-09-04 12:46:09 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.100 2018/09/04 12:46:18 espie Exp $
|
2001-04-12 15:59:15 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
COMMENT = highly flexible sniffer/NIDS
|
2000-02-03 03:58:54 +00:00
|
|
|
|
2018-01-28 03:09:12 +00:00
|
|
|
VERSION = 2.9.11.1
|
2013-08-21 02:28:42 +00:00
|
|
|
DISTNAME = snort-${VERSION}
|
2010-07-12 19:38:40 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
CATEGORIES = net security
|
2000-05-29 07:31:38 +00:00
|
|
|
|
2018-01-28 03:09:12 +00:00
|
|
|
HOMEPAGE = https://www.snort.org/
|
2001-02-28 14:32:08 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
MAINTAINER = Markus Lude <markus.lude@gmx.de>
|
2008-02-12 14:13:32 +00:00
|
|
|
|
|
|
|
# GPLv2
|
2012-09-28 19:30:54 +00:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2017-01-23 11:22:58 +00:00
|
|
|
WANTLIB = c crypto daq dnet lzma m nghttp2 pcap pcre pthread z
|
2009-02-12 22:12:08 +00:00
|
|
|
|
2014-08-19 04:22:53 +00:00
|
|
|
MASTER_SITES = https://www.snort.org/downloads/snort/
|
2012-09-28 19:30:54 +00:00
|
|
|
|
2012-03-29 13:38:12 +00:00
|
|
|
SEPARATE_BUILD = Yes
|
2012-10-25 19:52:16 +00:00
|
|
|
CONFIGURE_STYLE = gnu
|
2016-03-11 20:28:21 +00:00
|
|
|
CONFIGURE_ARGS += --disable-static-daq \
|
2013-08-21 02:28:42 +00:00
|
|
|
--enable-non-ether-decoders
|
2009-02-12 22:12:08 +00:00
|
|
|
|
2015-05-29 03:28:18 +00:00
|
|
|
LIB_DEPENDS = archivers/xz \
|
|
|
|
devel/pcre \
|
2017-01-23 11:22:58 +00:00
|
|
|
net/daq \
|
2012-09-26 02:11:05 +00:00
|
|
|
net/libdnet \
|
2017-01-23 11:22:58 +00:00
|
|
|
www/nghttp2
|
2001-02-11 23:51:12 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
CONFIGS = classification.config gen-msg.map reference.config \
|
2012-09-26 02:11:05 +00:00
|
|
|
snort.conf threshold.conf unicode.map
|
2008-02-12 14:13:32 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
PREPROC = decoder.rules preprocessor.rules
|
2006-02-04 13:15:42 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
DOCS = AUTHORS CREDITS README README.* *.pdf TODO USAGE \
|
|
|
|
WISHLIST
|
2008-02-12 14:13:32 +00:00
|
|
|
|
2012-10-11 02:40:48 +00:00
|
|
|
V = ${VERSION:S/.//g}
|
|
|
|
SUBST_VARS += V
|
2018-09-04 12:46:09 +00:00
|
|
|
REVISION = 0
|
2012-10-11 02:40:48 +00:00
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
pre-configure:
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/etc/snort.conf
|
2006-10-10 13:33:17 +00:00
|
|
|
|
2000-05-29 07:31:38 +00:00
|
|
|
post-install:
|
2001-02-11 23:51:12 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snort
|
2006-02-04 13:15:42 +00:00
|
|
|
.for i in ${CONFIGS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${i} ${PREFIX}/share/examples/snort
|
|
|
|
.endfor
|
2008-02-12 14:13:32 +00: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-03 03:58:54 +00:00
|
|
|
|
2006-10-10 13:33:17 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
|
2009-02-12 22:12:08 +00:00
|
|
|
.for i in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/snort
|
|
|
|
.endfor
|
2006-10-10 13:33:17 +00:00
|
|
|
|
2013-03-11 11:35:43 +00:00
|
|
|
NO_TEST = Yes
|
2008-02-12 14:13:32 +00:00
|
|
|
|
2000-02-03 03:58:54 +00:00
|
|
|
.include <bsd.port.mk>
|