diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2013-10-14 00:15:06 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2013-10-14 00:15:06 +0000 |
commit | bc17d6806062b7c62a585b941bc1ddd426226d35 (patch) | |
tree | 1e9f8e397c2c2cc20d01036cdfdf77b5a4290583 /net/hsflowd/pkg-plist | |
parent | a7e52d9aca82e8dfa38a4a3ba6fe6982afc1908d (diff) |
Notes
Diffstat (limited to 'net/hsflowd/pkg-plist')
-rw-r--r-- | net/hsflowd/pkg-plist | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/hsflowd/pkg-plist b/net/hsflowd/pkg-plist index beefeb2203c3..a98d1227509e 100644 --- a/net/hsflowd/pkg-plist +++ b/net/hsflowd/pkg-plist @@ -1,6 +1,7 @@ @comment $FreeBSD$ -etc/hsflowd/hsflowd.conf.sample +@unexec if cmp -s %D/%%ETCDIR%%/hsflowd.conf %D/%%ETCDIR%%/hsflowd.conf.sample; then rm -f %D/%%ETCDIR%%/hsflowd.conf; fi +%%ETCDIR%%/hsflowd.conf.sample +@exec if [ ! -f %D/%%ETCDIR%%/hsflowd.conf ]; then cp -p %D/%F %B/hsflowd.conf; fi sbin/hsflowd -@dirrmtry etc/hsflowd -@unexec if cmp -s %D/etc/hsflowd/hsflowd.conf %D/etc/hsflowd.conf.sample; then rm -f %D/etc/hsflowd.conf; fi +@dirrmtry %%ETCDIR%% @unexec if [ -d %%ETCDIR%% ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf %%ETCDIR%%`` to remove any configuration files."; fi |