From 8e0191fc0fbd35f99c1827280eb860b3b05dce9e Mon Sep 17 00:00:00 2001 From: FUJISHIMA Satsuki Date: Mon, 2 Apr 2001 05:29:06 +0000 Subject: unbreak if jwhois.conf existed. found by: # portupgrade jwhois --- net/jwhois/Makefile | 2 +- net/jwhois/pkg-plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'net') 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 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 -- cgit v1.2.3