aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2012-09-05 02:27:59 +0800
committercy <cy@FreeBSD.org>2012-09-05 02:27:59 +0800
commitdb8bfe277b67bddbcba49f588b882c8760e38b12 (patch)
tree154d5dd50f8c16a20bdec0713694608fdd1fdd88 /sysutils
parentc30cdcd308f83d517066b789047478635393296e (diff)
downloadfreebsd-ports-gnome-db8bfe277b67bddbcba49f588b882c8760e38b12.tar.gz
freebsd-ports-gnome-db8bfe277b67bddbcba49f588b882c8760e38b12.tar.zst
freebsd-ports-gnome-db8bfe277b67bddbcba49f588b882c8760e38b12.zip
Install syslog2ng script.
Fix error introduced in r299609.
Diffstat (limited to 'sysutils')
-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