aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2012-03-11 00:48:22 +0800
committerzi <zi@FreeBSD.org>2012-03-11 00:48:22 +0800
commit3334bcaf6a1cb3c629c082fa50d8794becc0c00a (patch)
treeb8d6e1d773ccfb76bc72b077765881a8d4be948c
parent942192e6c026ba9415761ac685d3838ee1760129 (diff)
downloadfreebsd-ports-gnome-3334bcaf6a1cb3c629c082fa50d8794becc0c00a.tar.gz
freebsd-ports-gnome-3334bcaf6a1cb3c629c082fa50d8794becc0c00a.tar.zst
freebsd-ports-gnome-3334bcaf6a1cb3c629c082fa50d8794becc0c00a.zip
- Do not install examples whenever NOPORTEXAMPLES is defined [1]
- Do not install duplicate sample config files - Do not bump PORTREVISION PR: ports/165800 [1] Submitted by: Michael Scheidell <scheidell@FreeBSD.org> [1] Feature safe: yes
-rw-r--r--security/snort/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/security/snort/Makefile b/security/snort/Makefile
index 7b578cd61d5f..9e4fab3a140c 100644
--- a/security/snort/Makefile
+++ b/security/snort/Makefile
@@ -227,17 +227,18 @@ pre-install:
post-install:
@${LIBTOOL} --finish ${LOCALBASE}/lib/snort/dynamicpreprocessor
[ -d ${CONFIG_DIR} ] || ${MKDIR} ${CONFIG_DIR}
- [ -d ${EXAMPLESDIR} ] || ${MKDIR} ${EXAMPLESDIR}
[ -d ${RULES_DIR} ] || ${MKDIR} ${RULES_DIR}
[ -d ${LOGS_DIR} ] || ${MKDIR} ${LOGS_DIR}
+.if !defined(NOPORTEXAMPLES)
+ [ -d ${EXAMPLESDIR} ] || ${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/schemas/create* ${EXAMPLESDIR}
+.endif
.for f in ${CONFIG_FILES}
${INSTALL_DATA} ${WRKSRC}/etc/${f} ${CONFIG_DIR}/${f}-sample
- ${INSTALL_DATA} ${WRKSRC}/etc/${f} ${EXAMPLESDIR}/${f}-sample
@if [ ! -f ${CONFIG_DIR}/${f} ]; then \
${CP} -p ${CONFIG_DIR}/${f}-sample ${CONFIG_DIR}/${f} ; \
fi
.endfor
- ${INSTALL_DATA} ${WRKSRC}/schemas/create* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}