42572a3821
from maintainer Brian Caswell <bmc at openbsd.org>, tweaks by yours truly
63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.31 2004/04/12 14:56:31 sturm Exp $
|
|
|
|
COMMENT= "highly flexible sniffer/NIDS"
|
|
|
|
DISTNAME= snort-2.1.2
|
|
PKGNAME= ${DISTNAME}
|
|
CATEGORIES= net security
|
|
MASTER_SITES= ${HOMEPAGE}/dl/
|
|
|
|
HOMEPAGE= http://www.snort.org/
|
|
|
|
MAINTAINER= Brian Caswell <bmc@openbsd.org>
|
|
|
|
# License: GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
LIB_DEPENDS= pcre::devel/pcre
|
|
|
|
FLAVORS= postgresql mysql smbalert flexresp
|
|
FLAVOR?=
|
|
|
|
.if ${FLAVOR:L:Mflexresp}
|
|
LIB_DEPENDS+= net::net/libnet
|
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS+= --enable-flexresp
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
LIB_DEPENDS+= pq.2::databases/postgresql
|
|
CONFIGURE_ARGS+= --with-postgresql="${LOCALBASE}"
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
|
|
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Msmbalert}
|
|
BUILD_DEPENDS+= :samba-*:net/samba
|
|
RUN_DEPENDS+= :samba-*:net/samba
|
|
CONFIGURE_ARGS+= --enable-smbalerts
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/etc/snort.conf ${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/etc/threshold.conf ${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/etc/unicode.map ${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/etc/sid-msg.map ${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/etc/classification.config \
|
|
${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/etc/reference.config \
|
|
${PREFIX}/share/examples/snort
|
|
${INSTALL_DATA} ${WRKSRC}/rules/*.rules ${PREFIX}/share/examples/snort
|
|
|
|
.include <bsd.port.mk>
|