2003-03-03 17:00:20 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.27 2003/03/03 22:00:20 pvalchev Exp $
|
2001-04-12 11:59:15 -04:00
|
|
|
|
2002-04-26 08:51:39 -04:00
|
|
|
COMMENT= "highly flexible sniffer/NIDS"
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2003-03-03 17:00:20 -05:00
|
|
|
DISTNAME= snort-1.9.1
|
2000-02-02 22:58:54 -05:00
|
|
|
CATEGORIES= net security
|
2002-04-26 08:51:39 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/dl/
|
2000-05-29 03:31:38 -04:00
|
|
|
|
2001-11-19 07:39:25 -05:00
|
|
|
HOMEPAGE= http://www.snort.org
|
2001-02-28 09:32:08 -05:00
|
|
|
|
2001-04-12 11:59:15 -04:00
|
|
|
MAINTAINER= Brian Caswell <bmc@openbsd.org>
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2002-04-26 08:51:39 -04:00
|
|
|
# License: GPL
|
2000-04-22 23:34:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2000-07-24 03:57:51 -04:00
|
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
CONFIGURE_STYLE= gnu
|
2000-03-12 22:21:05 -05:00
|
|
|
|
2001-02-11 18:51:12 -05:00
|
|
|
FLAVORS= postgresql mysql smbalert flexresp
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mflexresp}
|
2001-02-28 09:32:08 -05:00
|
|
|
LIB_DEPENDS+= net::net/libnet
|
2001-06-24 11:16:15 -04:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
2001-02-11 18:51:12 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-flexresp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
2001-06-03 01:28:57 -04:00
|
|
|
LIB_DEPENDS+= pq.2::databases/postgresql
|
2001-03-12 16:46:20 -05:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql="${LOCALBASE}"
|
2001-02-11 18:51:12 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
2001-12-13 11:25:05 -05:00
|
|
|
LIB_DEPENDS+= lib/mysql/mysqlclient.10:mysql-client-3.23.*:databases/mysql
|
2001-03-12 16:46:20 -05:00
|
|
|
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
|
2001-02-11 18:51:12 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msmbalert}
|
2002-06-09 01:31:40 -04:00
|
|
|
BUILD_DEPENDS+= :samba-*:net/samba
|
|
|
|
RUN_DEPENDS+= :samba-*:net/samba
|
2001-02-11 18:51:12 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-smbalerts
|
|
|
|
.endif
|
|
|
|
|
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
|
2003-02-03 16:21:00 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/snort.conf ${PREFIX}/share/examples/snort
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/sid-msg.map ${PREFIX}/share/examples/snort
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/classification.config \
|
2001-07-29 15:56:52 -04:00
|
|
|
${PREFIX}/share/examples/snort
|
2003-02-03 16:21:00 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/reference.config \
|
|
|
|
${PREFIX}/share/examples/snort
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/rules/*.rules ${PREFIX}/share/examples/snort
|
2000-02-02 22:58:54 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|