summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsf <sf@FreeBSD.org>2001-04-02 05:29:06 +0000
committersf <sf@FreeBSD.org>2001-04-02 05:29:06 +0000
commit7d748f3efc7abe07feed42631b073081088d1382 (patch)
treeff86a96c18411fa88bb5d49b0ff9dc39de200e94 /net
parent6ae08f0dabf569395287d694f36a45c0298967e2 (diff)
downloadFreeBSD-ports-7d748f3efc7abe07feed42631b073081088d1382.zip
FreeBSD-ports-7d748f3efc7abe07feed42631b073081088d1382.tar.gz
unbreak if jwhois.conf existed.
found by: # portupgrade jwhois
Diffstat (limited to 'net')
-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 a7c1edf..6b528db 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 8809237..660fcce 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
OpenPOWER on IntegriCloud