Subject: solaris Makefile problem

From: Kenji Miyake <[email-masked]>
Date: Wed, 07 Apr 1999 07:34:54 +0900

Hello,

 I'm installing to wu-ftpd-2.4.2-vr17 but install was fail because
solaris's /bin/sh doesn't recognize '-e' option.

--- makefiles/Makefile.sol.org	Wed Apr  7 03:50:39 1999
+++ makefiles/Makefile.sol	Wed Apr  7 07:12:25 1999
@@ -20,10 +20,10 @@
 
 install: bin/ftpd bin/ftpcount bin/ftpshut
 	@echo installing binaries.
-	@if [ ! -e ${BINDIR} ]; then \
+	@if [ ! -d ${BINDIR} ]; then \
 		${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${BINDIR} ; \
 	fi
-	@if [ ! -e ${SBINDIR} ]; then \
+	@if [ ! -d ${SBINDIR} ]; then \
 		${INSTALL} -o ${SBINOWN} -g ${SBINGRP} -m 755 -d ${SBINDIR} ; \
 	fi
 	${INSTALL} -c -o ${SBINOWN} -g ${SBINGRP} -m 110 bin/ftpd           ${SBINDIR}/in.ftpd
@@ -31,19 +31,19 @@
 	${INSTALL} -c -o ${BINOWN}  -g ${BINGRP}  -m 111 bin/ftpcount       ${BINDIR}/ftpcount
 	${INSTALL} -c -o ${BINOWN}  -g ${BINGRP}  -m 111 bin/ftpwho         ${BINDIR}/ftpwho
 	@echo installing manpages.
-	@if [ ! -e ${MANDIR}/man1 ]; then \
+	@if [ ! -d ${MANDIR}/man1 ]; then \
 		${INSTALL} -o ${MANOWN} -g ${MANGRP} -m 755 -d ${MANDIR}/man1 ; \
 	fi
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/ftpcount.1       ${MANDIR}/man1/ftpcount.1
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/ftpwho.1         ${MANDIR}/man1/ftpwho.1
-	@if [ ! -e ${MANDIR}/man5 ]; then \
+	@if [ ! -d ${MANDIR}/man5 ]; then \
 		${INSTALL} -o ${MANOWN} -g ${MANGRP} -m 755 -d ${MANDIR}/man5 ; \
 	fi
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/ftpaccess.5      ${MANDIR}/man5/ftpaccess.5
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/ftpconversions.5 ${MANDIR}/man5/ftpconversions.5
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/ftphosts.5       ${MANDIR}/man5/ftphosts.5
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/xferlog.5        ${MANDIR}/man5/xferlog.5
-	@if [ ! -e ${MANDIR}/man1m ]; then \
+	@if [ ! -d ${MANDIR}/man1m ]; then \
 		${INSTALL} -o ${MANOWN} -g ${MANGRP} -m 755 -d ${MANDIR}/man1m ; \
 	fi
 	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m 444 doc/ftpd.8           ${MANDIR}/man1m/ftpd.1m