Lines 22-27
Link Here
|
22 |
|
22 |
|
23 |
LIB_DEPENDS+= dnet:${PORTSDIR}/net/libdnet |
23 |
LIB_DEPENDS+= dnet:${PORTSDIR}/net/libdnet |
24 |
|
24 |
|
|
|
25 |
OPTIONS= MYSQL "With MySQL support" off \ |
26 |
ODBC "With ODBC support" off \ |
27 |
POSTGRESQL "With POSTGRESQL support" off \ |
28 |
FLEXRESP "With flexible responses (resp. w/packet resets)" off |
29 |
|
30 |
.include <bsd.port.pre.mk> |
31 |
|
25 |
.if defined(WITH_MYSQL) |
32 |
.if defined(WITH_MYSQL) |
26 |
USE_MYSQL= yes |
33 |
USE_MYSQL= yes |
27 |
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} |
34 |
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} |
Lines 47-52
Link Here
|
47 |
CONFIGURE_ARGS+= --with-postgresql=no |
54 |
CONFIGURE_ARGS+= --with-postgresql=no |
48 |
.endif |
55 |
.endif |
49 |
|
56 |
|
|
|
57 |
|
58 |
.if defined(WITH_FLEXRESP) |
59 |
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config |
60 |
|
61 |
.if exists(${LIBNET_CONFIG}) |
62 |
LIBNET_CFLAGS!= ${LIBNET_CONFIG} --cflags |
63 |
LIBNET_LIBS!= ${LIBNET_CONFIG} --libs |
64 |
LIBNET_INCDIR= ${LIBNET_CFLAGS:M-I*:S/-I//} |
65 |
LIBNET_LIBDIR= ${LIBNET_LIBS:M-L*:S/-L//} |
66 |
.endif |
67 |
|
68 |
BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 |
69 |
CONFIGURE_ARGS+= --enable-flexresp \ |
70 |
--with-libnet-includes=${LIBNET_INCDIR} \ |
71 |
--with-libnet-libraries=${LIBNET_LIBDIR} |
72 |
.endif |
73 |
|
50 |
MAN8= snort.8 snort_inline.8 |
74 |
MAN8= snort.8 snort_inline.8 |
51 |
DOCS= ChangeLog doc/AUTHORS doc/BUGS doc/CREDITS doc/faq* doc/NEWS \ |
75 |
DOCS= ChangeLog doc/AUTHORS doc/BUGS doc/CREDITS doc/faq* doc/NEWS \ |
52 |
doc/README* doc/TODO doc/USAGE doc/*.pdf |
76 |
doc/README* doc/TODO doc/USAGE doc/*.pdf |
Lines 61-72
Link Here
|
61 |
${REINPLACE_CMD} "s,$RULE_PATH/classification.config,${DATADIR}/classification.config," ${WRKSRC}/etc/snort_inline.conf |
85 |
${REINPLACE_CMD} "s,$RULE_PATH/classification.config,${DATADIR}/classification.config," ${WRKSRC}/etc/snort_inline.conf |
62 |
${REINPLACE_CMD} "s,$RULE_PATH/reference.config,${DATADIR}/reference.config," ${WRKSRC}/etc/snort_inline.conf |
86 |
${REINPLACE_CMD} "s,$RULE_PATH/reference.config,${DATADIR}/reference.config," ${WRKSRC}/etc/snort_inline.conf |
63 |
${REINPLACE_CMD} -e "s/^unicode.map/\/usr\/local\/share\/snort_inline\/unicode.map/" ${WRKSRC}/etc/snort_inline.conf |
87 |
${REINPLACE_CMD} -e "s/^unicode.map/\/usr\/local\/share\/snort_inline\/unicode.map/" ${WRKSRC}/etc/snort_inline.conf |
64 |
|
88 |
.if defined(WITH_FLEXRESP) |
65 |
pre-configure: |
89 |
${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|g' ${WRKSRC}/configure |
66 |
@${ECHO} "" |
90 |
.endif |
67 |
@${ECHO} "Set WITH_MYSQL, WITH_ODBC or WITH_POSTGRESQL" |
|
|
68 |
@${ECHO} "to get additional support." |
69 |
@${ECHO} "" |
70 |
|
91 |
|
71 |
post-install: |
92 |
post-install: |
72 |
@${MKDIR} ${DATADIR} |
93 |
@${MKDIR} ${DATADIR} |
Lines 97-100
Link Here
|
97 |
.endif |
118 |
.endif |
98 |
@${CAT} ${PKGMESSAGE} |
119 |
@${CAT} ${PKGMESSAGE} |
99 |
|
120 |
|
100 |
.include <bsd.port.mk> |
121 |
.include <bsd.port.post.mk> |