aboutsummaryrefslogtreecommitdiff
path: root/net/jwhois
diff options
context:
space:
mode:
authorFUJISHIMA Satsuki <sf@FreeBSD.org>2001-04-02 05:29:06 +0000
committerFUJISHIMA Satsuki <sf@FreeBSD.org>2001-04-02 05:29:06 +0000
commit8e0191fc0fbd35f99c1827280eb860b3b05dce9e (patch)
treecdf488ad1d69577ae28c5822552a6870d109a848 /net/jwhois
parent5eacaf6d657575ec875f6f7ecc8247c02200146d (diff)
downloadports-8e0191fc0fbd35f99c1827280eb860b3b05dce9e.tar.gz
ports-8e0191fc0fbd35f99c1827280eb860b3b05dce9e.zip
unbreak if jwhois.conf existed.
found by: # portupgrade jwhois
Notes
Notes: svn path=/head/; revision=40713
Diffstat (limited to 'net/jwhois')
-rw-r--r--net/jwhois/Makefile2
-rw-r--r--net/jwhois/pkg-plist2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile
index a7c1edf332be..6b528db882a8 100644
--- a/net/jwhois/Makefile
+++ b/net/jwhois/Makefile
@@ -29,6 +29,6 @@ post-install:
${CHOWN} :nogroup ${PREFIX}/var/jwhois
${CHMOD} g+w ${PREFIX}/var/jwhois
${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf ${PREFIX}/etc/jwhois.conf.sample
- [ ! -f ${PREFIX}/etc/jwhois.conf ] && ${INSTALL_DATA} ${PREFIX}/etc/jwhois.conf.sample ${PREFIX}/etc/jwhois.conf
+ if [ ! -f ${PREFIX}/etc/jwhois.conf ]; then ${INSTALL_DATA} ${PREFIX}/etc/jwhois.conf.sample ${PREFIX}/etc/jwhois.conf; fi
.include <bsd.port.mk>
diff --git a/net/jwhois/pkg-plist b/net/jwhois/pkg-plist
index 880923741bba..660fcce8671e 100644
--- a/net/jwhois/pkg-plist
+++ b/net/jwhois/pkg-plist
@@ -1,7 +1,7 @@
bin/jwhois
@unexec if cmp -s %D/etc/jwhois.conf %D/etc/jwhois.conf.sample; then rm -f %D/etc/jwhois.conf; fi
etc/jwhois.conf.sample
-@exec [ ! -f %B/jwhois.conf ] && cp %B/%f %B/jwhois.conf
+@exec if [ ! -f %B/jwhois.conf ]; then cp %B/%f %B/jwhois.conf; fi
@unexec install-info --delete %D/info/jwhois.info %D/info/dir
info/jwhois.info
@exec install-info %D/info/jwhois.info %D/info/dir