diff options
author | Cy Schubert <cy@FreeBSD.org> | 2010-12-15 20:18:11 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2010-12-15 20:18:11 +0000 |
commit | 8e51a0d5e65b9c04dfb41761041ae6c594fc0a29 (patch) | |
tree | 1065397a897f0f85351f244c374d0f1486fe1026 /sysutils | |
parent | Update ocamlgraph to 1.6 (diff) |
If syslog-ng.conf has been customised by the user, do not remove it
during pkg_deinstall.
Notes
Notes:
svn path=/head/; revision=266368
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 |