summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-02-28 02:02:20 +0000
committerdmcmahill <dmcmahill>2000-02-28 02:02:20 +0000
commit122e1119310bbd5d759b9ccfbd5b47e457d67306 (patch)
tree88de9e93528b2850d2e08387247ae8e0ac41bf80 /www
parent31e136128dbc82e5a792542d3a083039ea6e44d8 (diff)
downloadpkgsrc-122e1119310bbd5d759b9ccfbd5b47e457d67306.tar.gz
check to see if one of the install dirs exists. If not, then create the
directory. This fixes a bug where the pkg won't install if PREFIX/libexec/cgi-bin doesn't exist.
Diffstat (limited to 'www')
-rw-r--r--www/php3/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/php3/Makefile b/www/php3/Makefile
index b21d98a1bc9..e9df7622a05 100644
--- a/www/php3/Makefile
+++ b/www/php3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2000/02/05 14:18:30 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2000/02/28 02:02:20 dmcmahill Exp $
#
DISTNAME= php-${PHP_VERSION}
@@ -49,6 +49,8 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/php ${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/convertor/convertor \
${PREFIX}/bin/php2convert
+ if [ ! -d ${PREFIX}/libexec/cgi-bin} ]; then \
+ ${MKDIR} ${PREFIX}/libexec/cgi-bin ; fi
${LN} -sf ${PREFIX}/bin/php ${PREFIX}/libexec/cgi-bin/php
cd ${WRKSRC}/dbase && \
${INSTALL_PROGRAM} dbfadd dbfcreat dbfdel dbfget dbflst \