summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-07-10 15:18:23 +0000
committerjoerg <joerg@pkgsrc.org>2008-07-10 15:18:23 +0000
commit0f8c0087f2cea3ff12d15dba9d6ad848f0cc4f93 (patch)
treee5148a91c23f601aa2005cab1e7ce23160e994b3 /www
parente1a6feb45eb878b1305db734d2fe20d00b047f05 (diff)
downloadpkgsrc-0f8c0087f2cea3ff12d15dba9d6ad848f0cc4f93.tar.gz
Fix abs_srcdir definition as done in apache22. Also install
mkdir.sh as expected e.g. by www/ap2-fcgid. Bump revision.
Diffstat (limited to 'www')
-rw-r--r--www/apache2/Makefile15
-rw-r--r--www/apache2/PLIST3
2 files changed, 15 insertions, 3 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile
index 878656e911e..187c1320a28 100644
--- a/www/apache2/Makefile
+++ b/www/apache2/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.124 2008/06/22 23:01:19 he Exp $
+# $NetBSD: Makefile,v 1.125 2008/07/10 15:18:23 joerg Exp $
.include "Makefile.common"
PKGNAME= apache-${APACHE_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
HOMEPAGE= http://httpd.apache.org/
@@ -152,6 +152,15 @@ SUBST_SED.confs+= -e 's|/var/log/httpd/foo\.log|logs/foo.log/|g'
SUBST_SED.confs+= -e 's|^\(User[ ]\).*|\1${APACHE_USER}|g'
SUBST_SED.confs+= -e 's|^\(Group[ ]\).*|\1${APACHE_GROUP}|g'
+# abs_srcdir in config_vars.mk is used during install so needs to reference
+# the work dir path, and by other packages such as ap2-fastcgi after install,
+# so we fix after install to reference the installed path
+SUBST_CLASSES+= abs_srcdir
+SUBST_STAGE.abs_srcdir= post-install
+SUBST_FILES.abs_srcdir= ${PREFIX}/share/httpd/build/config_vars.mk
+SUBST_SED.abs_srcdir= -e 's|^\(abs_srcdir =\) .*|\1 ${PREFIX}/share/httpd|'
+SUBST_MESSAGE.abs_srcdir= Fixing abs_srcdir
+
REPLACE_PERL= docs/cgi-examples/printenv
.include "options.mk"
@@ -236,4 +245,6 @@ post-install:
${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/${PKGMANDIR}/$$file; \
done
+ ${INSTALL_SCRIPT} ${WRKSRC}/build/mkdir.sh ${PREFIX}/share/httpd/build
+
.include "../../mk/bsd.pkg.mk"
diff --git a/www/apache2/PLIST b/www/apache2/PLIST
index e4eaa59e828..85e87702bc1 100644
--- a/www/apache2/PLIST
+++ b/www/apache2/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.36 2008/04/12 22:43:13 jlam Exp $
+@comment $NetBSD: PLIST,v 1.37 2008/07/10 15:18:23 joerg Exp $
include/httpd/ap_compat.h
include/httpd/ap_config.h
include/httpd/ap_config_auto.h
@@ -92,6 +92,7 @@ share/httpd/build/instdso.sh
share/httpd/build/library.mk
share/httpd/build/libtool
share/httpd/build/ltlib.mk
+share/httpd/build/mkdir.sh
share/httpd/build/program.mk
share/httpd/build/rules.mk
share/httpd/build/special.mk