openbsd-ports/net/snort/Makefile

59 lines
1.5 KiB
Makefile
Raw Normal View History

2004-01-01 23:56:24 -05:00
# $OpenBSD: Makefile,v 1.30 2004/01/02 04:56:24 brad Exp $
COMMENT= "highly flexible sniffer/NIDS"
DISTNAME= snort-2.0.0
PKGNAME= ${DISTNAME}p1
CATEGORIES= net security
MASTER_SITES= ${HOMEPAGE}/dl/
2001-11-19 07:39:25 -05:00
HOMEPAGE= http://www.snort.org
MAINTAINER= Brian Caswell <bmc@openbsd.org>
# 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
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="-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
.endif
.if ${FLAVOR:L:Mmysql}
2004-01-01 23:56:24 -05:00
LIB_DEPENDS+= lib/mysql/mysqlclient.10::databases/mysql
CONFIGURE_ARGS+= --with-mysql="${LOCALBASE}"
2001-02-11 18:51:12 -05:00
.endif
.if ${FLAVOR:L:Msmbalert}
BUILD_DEPENDS+= :samba-*:net/samba
RUN_DEPENDS+= :samba-*: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}/etc/snort.conf ${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>