aboutsummaryrefslogtreecommitdiffstats
path: root/net/jwhois
diff options
context:
space:
mode:
authorsf <sf@FreeBSD.org>2001-04-02 13:29:06 +0800
committersf <sf@FreeBSD.org>2001-04-02 13:29:06 +0800
commit7d748f3efc7abe07feed42631b073081088d1382 (patch)
treeff86a96c18411fa88bb5d49b0ff9dc39de200e94 /net/jwhois
parent6ae08f0dabf569395287d694f36a45c0298967e2 (diff)
downloadfreebsd-ports-gnome-7d748f3efc7abe07feed42631b073081088d1382.tar.gz
freebsd-ports-gnome-7d748f3efc7abe07feed42631b073081088d1382.tar.zst
freebsd-ports-gnome-7d748f3efc7abe07feed42631b073081088d1382.zip
unbreak if jwhois.conf existed.
found by: # portupgrade jwhois
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