summaryrefslogtreecommitdiff
path: root/www/apache
diff options
context:
space:
mode:
authorkim <kim>2001-04-14 19:42:53 +0000
committerkim <kim>2001-04-14 19:42:53 +0000
commitacf9280b566d0624580f3f6d18a98de6538334cd (patch)
tree550316fb6c9621b8a23bfe8eac7163324adc5bcc /www/apache
parent575494fbfc9b94d652bff14a6d64f712ffe071bd (diff)
downloadpkgsrc-acf9280b566d0624580f3f6d18a98de6538334cd.tar.gz
Use APACHE_SYSCONFDIR to set sysconfdir (the location of config files).
Diffstat (limited to 'www/apache')
-rw-r--r--www/apache/Makefile14
-rw-r--r--www/apache/files/config.layout4
-rw-r--r--www/apache/pkg/DEINSTALL6
-rw-r--r--www/apache/pkg/INSTALL6
-rw-r--r--www/apache/pkg/PLIST9
5 files changed, 26 insertions, 13 deletions
diff --git a/www/apache/Makefile b/www/apache/Makefile
index 287f4bc3d4e..f20bf7b2acc 100644
--- a/www/apache/Makefile
+++ b/www/apache/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.63 2001/03/13 20:52:26 jlam Exp $
+# $NetBSD: Makefile,v 1.64 2001/04/14 19:42:53 kim Exp $
#
# The fourth number in the PKGNAME version indicates a NetBSD pkg revision
# (to indicate changes in the shipped third party patches such as the mod_ssl
@@ -42,6 +42,9 @@ CONFIGURE_ENV+= OPTIM="${OPTIM}"
.include "../../mk/bsd.prefs.mk"
+APACHE_SYSCONFDIR?= ${LOCALBASE}/etc/httpd
+BUILD_DEFS+= APACHE_SYSCONFDIR
+
.if defined(APACHE_SUEXEC) && ${APACHE_SUEXEC} == YES
APACHE_USER?= www
SUEXEC_PATH= /bin:/usr/bin:${PREFIX}/bin:/usr/local/bin
@@ -108,6 +111,7 @@ pre-patch:
pre-configure:
${SED} -e "s|@PREFIX@|${PREFIX}|g" \
+ -e "s|@APACHE_SYSCONFDIR@|${APACHE_SYSCONFDIR}|g" \
${FILESDIR}/config.layout > ${WRKDIR}/config.layout
post-build:
@@ -120,18 +124,26 @@ pre-install:
-e "s|@RM@|${RM}|g" \
-e "s|@RMDIR@|${RMDIR}|g" \
-e "s|@TRUE@|${TRUE}|g" \
+ -e "s|@APACHE_SYSCONFDIR@|${APACHE_SYSCONFDIR}|g" \
${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} -e "s|@CAT@|${CAT}|g" \
-e "s|@CHMOD@|${CHMOD}|g" \
-e "s|@CHOWN@|${CHOWN}|g" \
-e "s|@CP@|${CP}|g" \
-e "s|@MKDIR@|${MKDIR}|g" \
+ -e "s|@APACHE_SYSCONFDIR@|${APACHE_SYSCONFDIR}|g" \
${PKGDIR}/INSTALL > ${INSTALL_FILE}
post-install:
.if !defined(NOPIC)
cd ${PREFIX}/lib/httpd; ${MV} libproxy.so mod_proxy.so
.endif
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/httpd
+ for i in httpd.conf magic mime.types; do \
+ ${INSTALL_DATA} ${APACHE_SYSCONFDIR}/$$i.default \
+ ${PREFIX}/share/examples/httpd; \
+ ${RM} -f ${APACHE_SYSCONFDIR}/$$i.default; \
+ done
${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs
${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
diff --git a/www/apache/files/config.layout b/www/apache/files/config.layout
index e74da5a03dd..f35b0b74bce 100644
--- a/www/apache/files/config.layout
+++ b/www/apache/files/config.layout
@@ -1,4 +1,4 @@
-# $NetBSD: config.layout,v 1.1 2001/03/13 20:52:27 jlam Exp $
+# $NetBSD: config.layout,v 1.2 2001/04/14 19:42:54 kim Exp $
<Layout pkgsrc>
prefix: @PREFIX@
@@ -7,7 +7,7 @@ bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
libexecdir: ${exec_prefix}/lib/httpd
mandir: ${prefix}/man
-sysconfdir: ${prefix}/etc/httpd
+sysconfdir: @APACHE_SYSCONFDIR@
datadir: ${prefix}/share/httpd
iconsdir: ${prefix}/share/httpd/icons
htdocsdir: ${prefix}/share/httpd/htdocs
diff --git a/www/apache/pkg/DEINSTALL b/www/apache/pkg/DEINSTALL
index 3235f808ba9..caf4bf2cd0d 100644
--- a/www/apache/pkg/DEINSTALL
+++ b/www/apache/pkg/DEINSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: DEINSTALL,v 1.5 2001/02/02 16:39:58 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.6 2001/04/14 19:42:54 kim Exp $
PKGNAME=$1
STAGE=$2
@@ -10,12 +10,12 @@ RM="@RM@"
RMDIR="@RMDIR@"
TRUE="@TRUE@"
-SERVERROOT=${PKG_PREFIX}/etc/httpd
+SERVERROOT="@APACHE_SYSCONFDIR@"
CGIBINDIR=${PKG_PREFIX}/libexec/cgi-bin
DATADIR=${PKG_PREFIX}/share/httpd
LOGDIR=/var/log/httpd
SPOOLDIR=/var/spool/httpd
-SAMPLECONFDIR=${SERVERROOT}
+SAMPLECONFDIR=${PKG_PREFIX}/share/examples/httpd
CONFDIR=${SERVERROOT}
CONFFILES="httpd.conf"
NONCONFFILES="magic mime.types"
diff --git a/www/apache/pkg/INSTALL b/www/apache/pkg/INSTALL
index 34ca76ad245..ca70726b155 100644
--- a/www/apache/pkg/INSTALL
+++ b/www/apache/pkg/INSTALL
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.4 2001/02/02 16:39:58 jlam Exp $
+# $NetBSD: INSTALL,v 1.5 2001/04/14 19:42:54 kim Exp $
PKGNAME=$1
STAGE=$2
@@ -11,10 +11,10 @@ CHOWN="@CHOWN@"
CP="@CP@"
MKDIR="@MKDIR@"
-SERVERROOT=${PKG_PREFIX}/etc/httpd
+SERVERROOT="@APACHE_SYSCONFDIR@"
LOGDIR=/var/log/httpd
SPOOLDIR=/var/spool/httpd
-SAMPLECONFDIR=${SERVERROOT}
+SAMPLECONFDIR=${PKG_PREFIX}/share/examples/httpd
CONFDIR=${SERVERROOT}
CONFFILES="httpd.conf"
NONCONFFILES="magic mime.types"
diff --git a/www/apache/pkg/PLIST b/www/apache/pkg/PLIST
index df260f703dd..f53ba492779 100644
--- a/www/apache/pkg/PLIST
+++ b/www/apache/pkg/PLIST
@@ -1,10 +1,7 @@
-@comment $NetBSD: PLIST,v 1.19 2001/03/13 20:52:28 jlam Exp $
+@comment $NetBSD: PLIST,v 1.20 2001/04/14 19:42:54 kim Exp $
bin/dbmmanage
bin/htdigest
bin/htpasswd
-etc/httpd/httpd.conf.default
-etc/httpd/magic.default
-etc/httpd/mime.types.default
etc/rc.d/apache
include/httpd/ap.h
include/httpd/ap_alloc.h
@@ -71,6 +68,9 @@ sbin/apxs
sbin/httpd
sbin/logresolve
sbin/rotatelogs
+share/examples/httpd/httpd.conf.default
+share/examples/httpd/magic.default
+share/examples/httpd/mime.types.default
share/httpd/htdocs/README.rus
share/httpd/htdocs/apache_pb.gif
share/httpd/htdocs/index.html.ca
@@ -411,6 +411,7 @@ share/httpd/icons/world2.gif
@dirrm share/httpd/htdocs/manual/images
@dirrm share/httpd/htdocs/manual/howto
@dirrm share/httpd/htdocs/manual
+@dirrm share/examples/httpd
@dirrm include/httpd/xml
@dirrm include/httpd
@unexec rmdir %D/libexec/cgi-bin 2>/dev/null || true