From 122e1119310bbd5d759b9ccfbd5b47e457d67306 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Mon, 28 Feb 2000 02:02:20 +0000 Subject: 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. --- www/php3/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 \ -- cgit v1.2.3