pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/apache2 Fix abs_srcdir definition as done in apach...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2740367a7a7
branches:  trunk
changeset: 544106:e2740367a7a7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jul 10 15:18:23 2008 +0000

description:
Fix abs_srcdir definition as done in apache22. Also install
mkdir.sh as expected e.g. by www/ap2-fcgid. Bump revision.

diffstat:

 www/apache2/Makefile |  15 +++++++++++++--
 www/apache2/PLIST    |   3 ++-
 2 files changed, 15 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r c9b57b0c600b -r e2740367a7a7 www/apache2/Makefile
--- a/www/apache2/Makefile      Thu Jul 10 15:11:53 2008 +0000
+++ b/www/apache2/Makefile      Thu Jul 10 15:18:23 2008 +0000
@@ -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|^\(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 @@
                ${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/${PKGMANDIR}/$$file; \
        done
 
+       ${INSTALL_SCRIPT} ${WRKSRC}/build/mkdir.sh ${PREFIX}/share/httpd/build
+
 .include "../../mk/bsd.pkg.mk"
diff -r c9b57b0c600b -r e2740367a7a7 www/apache2/PLIST
--- a/www/apache2/PLIST Thu Jul 10 15:11:53 2008 +0000
+++ b/www/apache2/PLIST Thu Jul 10 15:18:23 2008 +0000
@@ -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/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



Home | Main Index | Thread Index | Old Index