diff options
author | dirk <dirk@FreeBSD.org> | 2000-12-31 23:07:49 +0800 |
---|---|---|
committer | dirk <dirk@FreeBSD.org> | 2000-12-31 23:07:49 +0800 |
commit | 18a0fb67cee921ed9e84ae156179542b3d031a73 (patch) | |
tree | 06e81c52bd249cae70401d8bb23830d7fbbf5f2f /security/snort | |
parent | fb1b0e209ea207e782d95dbac052e6017159d050 (diff) | |
download | freebsd-ports-gnome-18a0fb67cee921ed9e84ae156179542b3d031a73.tar.gz freebsd-ports-gnome-18a0fb67cee921ed9e84ae156179542b3d031a73.tar.zst freebsd-ports-gnome-18a0fb67cee921ed9e84ae156179542b3d031a73.zip |
Add additional options (WITH_FLEXRESP, WITH_MYSQL, WITH_ODBC
and WITH_POSTGRES).
PR: ports/20156
Diffstat (limited to 'security/snort')
-rw-r--r-- | security/snort/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/security/snort/Makefile b/security/snort/Makefile index b829892c1694..25d3443c1609 100644 --- a/security/snort/Makefile +++ b/security/snort/Makefile @@ -16,6 +16,43 @@ MAINTAINER= dirk@FreeBSD.org GNU_CONFIGURE= yes MAN8= snort.8 +.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) +LIB_DEPENDS+= mysqlclient.6:${PORTSDIR}/databases/mysql322-client +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} "" + post-install: ${MKDIR} ${PREFIX}/share/snort .for i in CREDITS RULES.SAMPLE USAGE backdoor-lib ddos-lib finger-lib ftp-lib \ |