openbsd-ports/net/snort/Makefile

58 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.15 2001/06/03 05:28:57 brad Exp $
COMMENT= "highly flexible sniffer/basic NIDS"
2001-02-11 18:51:12 -05:00
DISTNAME= snort-1.7
CATEGORIES= net security
NEED_VERSION= 1.402
2001-02-11 18:51:12 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= snort
HOMEPAGE= http://www.snort.org/
MAINTAINER= Brian Caswell <bmc@openbsd.org>
2000-04-22 23:34:40 -04:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
2001-02-11 18:51:12 -05:00
FLAVORS= postgresql mysql smbalert flexresp
FLAVOR?=
.if ${FLAVOR:L:Mflexresp}
LIB_DEPENDS+= net::net/libnet
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
2001-02-11 18:51:12 -05:00
CONFIGURE_ARGS+= --enable-flexresp
.endif
.if ${FLAVOR:L:Mpostgresql}
LIB_DEPENDS+= pq.2::databases/postgresql
CONFIGURE_ARGS+= --with-postgresql="${LOCALBASE}"
2001-02-11 18:51:12 -05:00
.else
CONFIGURE_ARGS+= --without-postgresql
.endif
.if ${FLAVOR:L:Mmysql}
LIB_DEPENDS+= mysqlclient.10:mysql-client-3.23.*:databases/mysql
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
2001-02-11 18:51:12 -05:00
.else
CONFIGURE_ARGS+= --without-mysql
.endif
.if ${FLAVOR:L:Msmbalert}
BUILD_DEPENDS+= smbclient::net/samba
RUN_DEPENDS+= smbclient::net/samba
2001-02-11 18:51:12 -05:00
CONFIGURE_ARGS+= --enable-smbalerts
.endif
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
.include <bsd.port.mk>