2001-02-11 18:51:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2001/02/11 23:51:12 jeremy Exp $
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2001-02-11 18:51:12 -05:00
|
|
|
DISTNAME= snort-1.7
|
|
|
|
HOMEPAGE= http://www.snort.org/
|
2000-02-02 22:58:54 -05:00
|
|
|
CATEGORIES= net security
|
2001-02-11 18:51:12 -05:00
|
|
|
NEED_VERSION= 1.348
|
2000-02-02 22:58:54 -05:00
|
|
|
|
2001-02-11 18:51:12 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= snort
|
2000-05-29 03:31:38 -04:00
|
|
|
|
2001-02-11 18:51:12 -05:00
|
|
|
MAINTAINER= Brian Caswell <bmc@mitre.org>
|
2000-02-02 22:58:54 -05:00
|
|
|
|
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}
|
|
|
|
BUILD_DEPENDS+= ${PREFIX}/lib/libnet.a::net/libnet
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS+= --enable-flexresp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mpostgresql}
|
|
|
|
LIB_DEPENDS+= pg::databases/postgresql
|
|
|
|
CONFIGURE_ARGS+= --with-postgresql=${PREFIX}/pgsql
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-postgresql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
LIB_DEPENDS+=mysqlclient.6::databases/mysql
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${PREFIX}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msmbalert}
|
|
|
|
BUILD_DEPENDS+= smbclient::net/samba
|
|
|
|
RUN_DEPENDS+= smbclient::net/samba
|
|
|
|
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
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/snort.conf ${PREFIX}/share/examples/snort
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*-lib ${PREFIX}/share/examples/snort
|
2000-02-02 22:58:54 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|