From 217887b9c2bd360c52cd6d43fdbf393b7a7c3867 Mon Sep 17 00:00:00 2001 From: shaun Date: Wed, 24 Jan 2007 15:17:32 +0000 Subject: Ensure the sample config. removal line in pkg-plist succeeds if portscout.conf has been modified. PR: ports/108290 Submitted by: Alexander Logvinov --- sysutils/portscout/pkg-plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysutils') diff --git a/sysutils/portscout/pkg-plist b/sysutils/portscout/pkg-plist index 657e79ea12bd..055b6d4e18fe 100644 --- a/sysutils/portscout/pkg-plist +++ b/sysutils/portscout/pkg-plist @@ -1,5 +1,5 @@ bin/portscout -@unexec cmp -s %D/etc/portscout.conf.sample %D/etc/portscout.conf && rm -f %D/etc/portscout.conf +@unexec if cmp -s %D/etc/portscout.conf.sample %D/etc/portscout.conf; then rm -f %D/etc/portscout.conf; fi @exec [ ! -f %D/etc/portscout.conf ] && cp -p %D/etc/portscout.conf.sample %D/etc/portscout.conf etc/portscout.conf.sample %%DATADIR%%/templates/index.html -- cgit