summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2010-12-15 20:18:11 +0000
committerCy Schubert <cy@FreeBSD.org>2010-12-15 20:18:11 +0000
commit8e51a0d5e65b9c04dfb41761041ae6c594fc0a29 (patch)
tree1065397a897f0f85351f244c374d0f1486fe1026 /sysutils
parentUpdate 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/Makefile1
-rw-r--r--sysutils/syslog-ng3/pkg-plist2
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