openbsd-ports/net/snort/Makefile
lteo 53898bf3e1 Make various improvements to the Snort port:
* Add an rc.d script.

* In snort.conf, provide the URL to the official Snort rules so that
  users know where to get them.

* In snort.conf, provide the URL to the Emerging Threats rules along
  with a commented include line to allow users to easily load the
  Emerging Threats rules if they wish.

* Revise pkg/README with details on where to obtain Snort rules, the
  differences between the official Snort rules and Emerging Threats
  rules, how to download them, and provide some guidance on setting up
  Snort.

snort.conf and README changes OK Markus Lude (maintainer), sthen@
rc.d script OK sthen@
2012-10-11 02:40:48 +00:00

74 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.70 2012/10/11 02:40:48 lteo Exp $
SHARED_ONLY = Yes
COMMENT = highly flexible sniffer/NIDS
VERSION = 2.9.3.1
DISTNAME = snort-${VERSION}
REVISION = 0
CATEGORIES = net security
HOMEPAGE = http://www.snort.org/
MAINTAINER = Markus Lude <markus.lude@gmx.de>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c daq dnet m pcap pcre pthread z
MASTER_SITES = http://www.snort.org/dl/snort-current/
USE_LIBTOOL = Yes
USE_GROFF = Yes
SEPARATE_BUILD = Yes
CONFIGURE_STYLE = simple
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--disable-static-daq
MAKE_FLAGS = mandir=${TRUEPREFIX}/man
LIB_DEPENDS = devel/pcre \
net/libdnet \
net/daq
CONFIGS = classification.config gen-msg.map reference.config \
snort.conf threshold.conf unicode.map
PREPROC = decoder.rules preprocessor.rules
DOCS = AUTHORS CREDITS README README.* *.pdf TODO USAGE \
WISHLIST
V = ${VERSION:S/.//g}
SUBST_VARS += V
pre-configure:
@${SUBST_CMD} ${WRKSRC}/etc/snort.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snort
.for i in ${CONFIGS}
${INSTALL_DATA} ${WRKSRC}/etc/${i} ${PREFIX}/share/examples/snort
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/generators ${PREFIX}/share/examples/snort
.for i in ${PREPROC}
${INSTALL_DATA} ${WRKSRC}/preproc_rules/${i} ${PREFIX}/share/examples/snort
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snort
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/snort
.endfor
NO_REGRESS = Yes
.include <bsd.port.mk>