summaryrefslogtreecommitdiff
path: root/www/php3
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2000-02-28 02:02:20 +0000
committerdmcmahill <dmcmahill>2000-02-28 02:02:20 +0000
commitde6d6b953623752c3db1034af5900529a1731fcc (patch)
tree88de9e93528b2850d2e08387247ae8e0ac41bf80 /www/php3
parenteb26f3c8e6787da383c9a3c71bae5bb5b25a2fd6 (diff)
downloadpkgsrc-de6d6b953623752c3db1034af5900529a1731fcc.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/php3')
-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 \