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