2022-02-22 23:14:30 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.112 2022/02/22 23:14:30 sthen 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
|
|
|
|
2022-02-22 23:14:30 +00:00
|
|
|
DISTNAME = snort-2.9.19
|
|
|
|
RULESV = 29190
|
2021-09-19 10:18:25 +00:00
|
|
|
SUBST_VARS = RULESV APPID_COMMENT
|
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
|
2019-07-12 20:48:23 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2012-09-28 19:30:54 +00:00
|
|
|
|
2021-09-19 10:18:25 +00:00
|
|
|
WANTLIB += c crypto daq dnet lzma m nghttp2 pcap pcre pthread z
|
|
|
|
|
|
|
|
FLAVORS = no_luajit
|
|
|
|
.if ${MACHINE_ARCH} == arm || \
|
|
|
|
${MACHINE_ARCH} == amd64 || \
|
|
|
|
${MACHINE_ARCH} == i386 || \
|
|
|
|
${MACHINE_ARCH} == powerpc
|
|
|
|
FLAVOR ?=
|
|
|
|
.else
|
|
|
|
FLAVOR = no_luajit
|
|
|
|
.endif
|
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
|
|
|
|
2020-05-27 02:32:10 +00:00
|
|
|
LIBTOOL_FLAGS = --tag=disable-static
|
|
|
|
|
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
|
|
|
|
2021-09-19 10:18:25 +00:00
|
|
|
.if ${FLAVOR:Mno_luajit}
|
|
|
|
CONFIGURE_ARGS += --disable-open-appid
|
|
|
|
APPID_COMMENT = "@comment "
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS += lang/luajit
|
|
|
|
WANTLIB += c++abi luajit-5.1
|
|
|
|
APPID_COMMENT =
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
2009-02-12 22:12:08 +00:00
|
|
|
pre-configure:
|
2019-02-12 22:19:52 +00:00
|
|
|
@cd ${WRKSRC}; ${SUBST_CMD} etc/snort.conf tools/appid_detector_builder.sh
|
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>
|