diff options
author | cy <cy@FreeBSD.org> | 2011-01-21 13:45:17 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2011-01-21 13:45:17 +0800 |
commit | d756e0c1eff4c2c3874fad9a37ab64dbf356f930 (patch) | |
tree | 52f42c432ca0f51a5e01b1fdff2b21ef298ca49c /sysutils | |
parent | f2da81535226b9403493d3c495e6b7c87b2e6fa8 (diff) | |
download | freebsd-ports-gnome-d756e0c1eff4c2c3874fad9a37ab64dbf356f930.tar.gz freebsd-ports-gnome-d756e0c1eff4c2c3874fad9a37ab64dbf356f930.tar.zst freebsd-ports-gnome-d756e0c1eff4c2c3874fad9a37ab64dbf356f930.zip |
Fix a pkg-plist issue whereby the upline installer conditionally installed
syslog-ng.conf. It is now installed as syslog-ng.conf.dist. The user may
choose either this file or syslog-ng.conf.sample as a template for a new
syslog-ng.conf. By default syslog-ng.conf is copied from syslog-ng.conf.sample.
Feature safe: yes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/syslog-ng3/Makefile | 5 | ||||
-rw-r--r-- | sysutils/syslog-ng3/files/patch-scl-Makefile.in | 11 | ||||
-rw-r--r-- | sysutils/syslog-ng3/pkg-plist | 2 |
3 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/syslog-ng3/Makefile b/sysutils/syslog-ng3/Makefile index c60b27b6b033..4f074ea78357 100644 --- a/sysutils/syslog-ng3/Makefile +++ b/sysutils/syslog-ng3/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 3.2.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/sources/$(PORTVERSION)/source/ PKGNAMESUFFIX= 3 @@ -103,6 +104,7 @@ CONFIGURE_ARGS+= --disable-sql post-patch: @${REINPLACE_CMD} -e 's:libnet-config:libnet115-config:g' ${WRKSRC}/configure + @${MV} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist .if ${OSVERSION} >= 900007 @${REINPLACE_CMD} \ -e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \ @@ -125,6 +127,9 @@ post-install: @if [ ! -f ${PREFIX}/etc/syslog-ng.conf.sample ]; then \ ${INSTALL_DATA} ${FILESDIR}/syslog-ng.conf.sample ${PREFIX}/etc; \ fi + @if [ ! -f ${PREFIX}/etc/syslog-ng.conf ]; then \ + ${CP} ${PREFIX}/etc/syslog-ng.conf.sample ${PREFIX}/etc/syslog-ng.conf; \ + fi @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/sysutils/syslog-ng3/files/patch-scl-Makefile.in b/sysutils/syslog-ng3/files/patch-scl-Makefile.in new file mode 100644 index 000000000000..567af03179e4 --- /dev/null +++ b/sysutils/syslog-ng3/files/patch-scl-Makefile.in @@ -0,0 +1,11 @@ +--- scl/Makefile.in.orig 2011-01-15 08:15:10.000000000 -0800 ++++ scl/Makefile.in 2011-01-20 21:16:20.000000000 -0800 +@@ -200,7 +200,7 @@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + SCL_SUBDIRS = system pacct syslogconf +-SCL_CONFIGS = scl.conf modules.conf syslog-ng.conf ++SCL_CONFIGS = scl.conf modules.conf syslog-ng.conf.dist + EXTRA_DIST = $(SCL_CONFIGS) $(SCL_SUBDIRS) + scldir = $(datadir)/include/scl + all: all-am diff --git a/sysutils/syslog-ng3/pkg-plist b/sysutils/syslog-ng3/pkg-plist index 921398208695..f0a02e31b298 100644 --- a/sysutils/syslog-ng3/pkg-plist +++ b/sysutils/syslog-ng3/pkg-plist @@ -1,7 +1,9 @@ @unexec %D/etc/rc.d/syslog-ng.sh stop > /dev/null 2>&1 || true etc/modules.conf etc/scl.conf +@exec test -f %D/etc/syslog-ng.conf || cp -p %D/etc/syslog-ng.conf.sample %D/etc/syslog-ng.conf @unexec if cmp -s %D/etc/syslog-ng.conf %D/etc/syslog-ng.conf.sample; then rm -f %D/etc/syslog-ng.conf; fi +etc/syslog-ng.conf.dist etc/syslog-ng.conf.sample bin/update-patterndb bin/loggen |