blob: 2cf7ff7e7fb9725750ce6a7c44922b964202fe53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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.7
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} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/CREDITS ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/RULES.SAMPLE ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/USAGE ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.rules ${DATADIR}
${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>
|