aboutsummaryrefslogtreecommitdiff
path: root/sysutils/syslog-ng
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2012-09-04 18:27:59 +0000
committerCy Schubert <cy@FreeBSD.org>2012-09-04 18:27:59 +0000
commitde02d1d5a2e006cef1f13432b4c4d1042cd77636 (patch)
tree154d5dd50f8c16a20bdec0713694608fdd1fdd88 /sysutils/syslog-ng
parenta6e3ad55b266196aa0fe4523a9148d88396af5cd (diff)
downloadports-de02d1d5a2e006cef1f13432b4c4d1042cd77636.tar.gz
ports-de02d1d5a2e006cef1f13432b4c4d1042cd77636.zip
Notes
Diffstat (limited to 'sysutils/syslog-ng')
-rw-r--r--sysutils/syslog-ng/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile
index 52e1801d32ad..cc2f1e931757 100644
--- a/sysutils/syslog-ng/Makefile
+++ b/sysutils/syslog-ng/Makefile
@@ -7,7 +7,7 @@
PORTNAME= syslog-ng
PORTVERSION= 3.3.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/sources/$(PORTVERSION)/source/
DISTFILES= $(PORTNAME)_$(PORTVERSION).tar.gz
@@ -28,6 +28,7 @@ OPTIONS= SYS_SSL "Build with OpenSSL support (from system)" off \
PCRE "Build with PCRE support" on \
JSON_C "Build with JSON-C support" off \
JSON_GLIB "Build with JSON-GLIB support" off \
+ SYSLOG2NG "Install syslog2ng script" off
.include <bsd.port.options.mk>
@@ -125,14 +126,20 @@ CONFIGURE_ARGS+= --disable-json
CONFIGURE_ARGS+= --disable-linux-caps
.endif
+.if defined(WITH_SYSLOG2NG)
+PLIST_FILES+= sbin/syslog2ng
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's:libnet-config:libnet116-config:g' ${WRKSRC}/configure
@${LN} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist
post-install:
+.if defined(WITH_SYSLOG2NG)
+ ${INSTALL_SCRIPT} ${WRKSRC}/contrib/syslog2ng ${PREFIX}/sbin
+.endif
.if !defined(NOPORTDOCS)
${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \
- ${PREFIX}/share/doc/syslog-ng \
${PREFIX}/share/doc/syslog-ng
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/syslog-ng
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/syslog-ng