1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Ensure the sample config. removal line in pkg-plist succeeds if

portscout.conf has been modified.

PR:		ports/108290
Submitted by:	Alexander Logvinov <ports@logvinov.com>
This commit is contained in:
Shaun Amott 2007-01-24 15:17:32 +00:00
parent 93151efd17
commit 2dd8cf06bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183170
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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