- Switch to options helpers
- Only install docs when requested - Update WWW Approved by: portmgr blanket
This commit is contained in:
parent
65d468404d
commit
a8dcd3dd9e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557047
@ -81,8 +81,6 @@ APPID_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
|
||||
APPID_CONFIGURE_ENV+= luajit_CFLAGS="-I${LOCALBASE}/include/luajit-2.0" \
|
||||
luajit_LIBS="-L${LOCALBASE}/lib -lluajit-5.1"
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
CONFIG_FILES= classification.config gen-msg.map reference.config \
|
||||
snort.conf threshold.conf unicode.map file_magic.conf
|
||||
|
||||
@ -104,19 +102,18 @@ post-patch:
|
||||
-e '/^# include .PREPROC_RULE/s/# include/include/' \
|
||||
${WRKSRC}/etc/snort.conf
|
||||
|
||||
post-patch-IPV6-off:
|
||||
# IPv6 is no longer a ./configure option!
|
||||
.if ! ${PORT_OPTIONS:MIPV6}
|
||||
@${REINPLACE_CMD} -e '/normalize_ip6/s/^preprocessor/#preprocessor/' \
|
||||
-e '/normalize_icmp6/s/^preprocessor/#preprocessor/' \
|
||||
${WRKSRC}/etc/snort.conf
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
@${FIND} ${WRKSRC}/src -name '*.0' -type f -exec ${STRIP_CMD} {} \;
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${RULES_DIR} ${STAGEDIR}${LOGS_DIR} \
|
||||
${STAGEDIR}${PREPROC_RULE_DIR} ${STAGEDIR}${DOCSDIR}
|
||||
${STAGEDIR}${PREPROC_RULE_DIR}
|
||||
|
||||
.for f in ${CONFIG_FILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${STAGEDIR}${ETCDIR}/${f}-sample
|
||||
@ -125,6 +122,9 @@ post-install:
|
||||
.for f in ${PREPROC_RULES}
|
||||
${INSTALL_DATA} ${WRKSRC}/preproc_rules/${f} ${STAGEDIR}${PREPROC_RULE_DIR}/${f}-sample
|
||||
.endfor
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${PREPROC_RULE_DIR} ${STAGEDIR}${DOCSDIR}
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -18,4 +18,4 @@ Stuff(TM) about your packets (as I see it anyway). The code is pretty easy
|
||||
to modify to provide more complete packet decoding, so feel free to make
|
||||
suggestions.
|
||||
|
||||
WWW: http://www.snort.org/
|
||||
WWW: https://www.snort.org/
|
||||
|
Loading…
Reference in New Issue
Block a user