1999-08-02 10:14:11 +00:00
|
|
|
# New ports collection makefile for: snort
|
|
|
|
# Date created: Mon Aug 2 12:04:08 CEST 1999
|
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1999-08-02 10:14:11 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= snort
|
2001-01-27 07:55:06 +00:00
|
|
|
PORTVERSION= 1.7
|
2000-06-02 03:18:54 +00:00
|
|
|
CATEGORIES= security
|
2000-07-10 13:35:52 +00:00
|
|
|
MASTER_SITES= http://www.snort.org/Files/ \
|
1999-08-02 10:14:11 +00:00
|
|
|
http://www.physik.TU-Berlin.DE/~ibex/ports/distfiles/
|
|
|
|
|
|
|
|
MAINTAINER= dirk@FreeBSD.org
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2001-01-27 07:53:36 +00:00
|
|
|
CONFIGURE_ARGS= --with-mysql=no --with-odbc=no --with-postgresql=no
|
2000-01-29 14:26:12 +00:00
|
|
|
MAN8= snort.8
|
1999-08-02 10:14:11 +00:00
|
|
|
|
2000-12-31 15:07:49 +00:00
|
|
|
.if defined(WITH_FLEXRESP)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet
|
|
|
|
CONFIGURE_ARGS+=--enable-flexresp
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
LDFLAGS+= "-L${LOCALBASE}/lib"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQL)
|
2001-01-21 15:40:47 +00:00
|
|
|
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
2000-12-31 15:07:49 +00:00
|
|
|
CONFIGURE_ARGS+=--with-mysql-includes=${LOCALBASE}/include/mysql \
|
|
|
|
--with-mysql-libraries=${LOCALBASE}/lib/mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ODBC)
|
|
|
|
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
|
|
|
CONFIGURE_ARGS+=--with-unixodbc-includes=${LOCALBASE}/include \
|
|
|
|
--with-unixodbc-libraries=${LOCALBASE}/lib
|
|
|
|
LDFLAGS+= -pthread
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_POSTGRES)
|
|
|
|
LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql
|
|
|
|
CONFIGURE_ARGS+=--with-libpq-includes=${LOCALBASE}/pgsql/include \
|
|
|
|
--with-libpq-libraries=${LOCALBASE}/pgsql/lib
|
|
|
|
.if exists(/usr/lib/libssl.a) && exists(/usr/lib/libcrypto.a)
|
|
|
|
LDFLAGS+= -lssl -lcrypto
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "Set WITH_FLEXRESP, WITH_MYSQL, WITH_ODBC or WITH_POSTGRES"
|
|
|
|
@${ECHO} "to get additional support."
|
|
|
|
@${ECHO} ""
|
|
|
|
|
1999-08-02 10:14:11 +00:00
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/snort
|
2000-07-10 13:35:52 +00:00
|
|
|
.for i in CREDITS RULES.SAMPLE USAGE backdoor-lib ddos-lib finger-lib ftp-lib \
|
|
|
|
misc-lib netbios-lib overflow-lib ping-lib rpc-lib scan-lib smtp-lib \
|
2001-01-27 07:55:06 +00:00
|
|
|
telnet-lib web-lib webcf-lib webcgi-lib webfp-lib webiis-lib webmisc-lib
|
1999-08-02 10:14:11 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/snort
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|