mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
4a9bf56335
buggy and short-lived; hopefully this one is better.
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
# New ports collection makefile for: snort
|
|
# Date created: Mon Aug 2 12:04:08 CEST 1999
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= snort
|
|
PORTVERSION= 1.8.6
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.snort.org/dl/
|
|
|
|
MAINTAINER= kris@FreeBSD.org
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-mysql=no --with-odbc=no --with-postgresql=no
|
|
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.10:${PORTSDIR}/databases/mysql323-client
|
|
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
|
|
.endif
|
|
|
|
.if defined(WITH_ODBC)
|
|
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
|
CONFIGURE_ARGS+=--with-odbc=${LOCALBASE}
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
.endif
|
|
|
|
.if defined(WITH_POSTGRES)
|
|
LIB_DEPENDS+= pq.2:${PORTSDIR}/databases/postgresql7
|
|
CONFIGURE_ARGS+=--with-postgresql=${LOCALBASE}/pgsql
|
|
.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 attack-responses.rules backdoor.rules \
|
|
bad-traffic.rules ddos.rules dns.rules dos.rules exploit.rules \
|
|
finger.rules ftp.rules icmp.rules icmp-info.rules info.rules local.rules \
|
|
misc.rules netbios.rules policy.rules porn.rules rpc.rules rservices.rules \
|
|
scan.rules shellcode.rules smtp.rules sql.rules telnet.rules tftp.rules \
|
|
virus.rules web-attacks.rules web-cgi.rules web-coldfusion.rules \
|
|
web-frontpage.rules web-iis.rules web-misc.rules x11.rules
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/snort
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/classification.config ${PREFIX}/etc/classification.config-sample
|
|
${INSTALL_DATA} ${WRKSRC}/snort.conf ${PREFIX}/etc/snort.conf-sample
|
|
@${SED} -e 's#/usr/local#${PREFIX}#g' ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|