diff options
author | cy <cy@FreeBSD.org> | 2010-12-16 04:18:11 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2010-12-16 04:18:11 +0800 |
commit | 7ca0864f8b90d46667fcde2cca3188148b2f1015 (patch) | |
tree | 58c68751a7c295f10f277b79885bd5b3ca5dfd05 /sysutils | |
parent | 8a0b26f21fea139d6e68e69a9426f54e851330b9 (diff) | |
download | freebsd-ports-gnome-7ca0864f8b90d46667fcde2cca3188148b2f1015.tar.gz freebsd-ports-gnome-7ca0864f8b90d46667fcde2cca3188148b2f1015.tar.zst freebsd-ports-gnome-7ca0864f8b90d46667fcde2cca3188148b2f1015.zip |
If syslog-ng.conf has been customised by the user, do not remove it
during pkg_deinstall.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/syslog-ng3/Makefile | 1 | ||||
-rw-r--r-- | sysutils/syslog-ng3/pkg-plist | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sysutils/syslog-ng3/Makefile b/sysutils/syslog-ng3/Makefile index 114d2b80a768..87cba0b3df2a 100644 --- a/sysutils/syslog-ng3/Makefile +++ b/sysutils/syslog-ng3/Makefile @@ -7,6 +7,7 @@ PORTNAME= syslog-ng PORTVERSION= 3.2.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.balabit.com/downloads/files/syslog-ng/sources/$(PORTVERSION)/source/ PKGNAMESUFFIX= 3 diff --git a/sysutils/syslog-ng3/pkg-plist b/sysutils/syslog-ng3/pkg-plist index 0dc0c288463d..b9e9336ecc53 100644 --- a/sysutils/syslog-ng3/pkg-plist +++ b/sysutils/syslog-ng3/pkg-plist @@ -1,7 +1,7 @@ @unexec %D/etc/rc.d/syslog-ng.sh stop > /dev/null 2>&1 || true etc/modules.conf etc/scl.conf -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.sample bin/update-patterndb bin/loggen |