From ffceca11a9acb11623d00829c993ca1022b4d164 Mon Sep 17 00:00:00 2001 From: jlam Date: Sun, 25 Nov 2001 18:59:45 +0000 Subject: PKG_SYSCONFDIR is where the configuration files for a package may be found. This value may be customized in various ways: PKG_SYSCONFBASE is the main config directory under which all package configuration files are to be found. PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the configuration files for a particular package may be found. PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a particular package. Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the default location of ${PREFIX}/etc. This obsoletes the use of CONFDIR, which was active for only 6 days, so no need to have a workaround to still accept old CONFDIR settings. --- www/apache/Makefile | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'www/apache') diff --git a/www/apache/Makefile b/www/apache/Makefile index 003131181f0..002a8e0c5cf 100644 --- a/www/apache/Makefile +++ b/www/apache/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.83 2001/11/21 15:44:23 jlam Exp $ +# $NetBSD: Makefile,v 1.84 2001/11/25 18:59:48 jlam Exp $ # # This pkg does not compile in mod_ssl, only the `mod_ssl EAPI' (a set of # code hooks that allow mod_ssl to be compiled separately later, if desired). @@ -39,9 +39,7 @@ CONFIGURE_ENV+= OPTIM="${APACHE_CUSTOM_CFLAGS}" .include "../../mk/bsd.prefs.mk" -APACHE_SYSCONFDIR?= ${CONFDIR}/httpd -BUILD_DEFS+= APACHE_SYSCONFDIR -FILES_SUBST+= APACHE_SYSCONFDIR=${APACHE_SYSCONFDIR} +PKG_SYSCONFSUBDIR?= httpd .if defined(APACHE_SUEXEC) && ${APACHE_SUEXEC} == YES APACHE_USER?= www @@ -101,17 +99,16 @@ BUILD_DEFS+= APACHE_SUEXEC EGDIR= ${PREFIX}/share/examples/httpd -CONF_FILES= ${EGDIR}/httpd.conf.default ${APACHE_SYSCONFDIR}/httpd.conf -SUPPORT_FILES= ${EGDIR}/magic.default ${APACHE_SYSCONFDIR}/magic -SUPPORT_FILES+= ${EGDIR}/mime.types.default ${APACHE_SYSCONFDIR}/mime.types +CONF_FILES= ${EGDIR}/httpd.conf.default ${PKG_SYSCONFDIR}/httpd.conf +SUPPORT_FILES= ${EGDIR}/magic.default ${PKG_SYSCONFDIR}/magic +SUPPORT_FILES+= ${EGDIR}/mime.types.default ${PKG_SYSCONFDIR}/mime.types RCD_SCRIPTS= apache -MAKE_DIRS= ${APACHE_SYSCONFDIR} -OWN_DIRS= ${APACHE_SYSCONFDIR}/ssl.crl -OWN_DIRS+= ${APACHE_SYSCONFDIR}/ssl.crt -OWN_DIRS+= ${APACHE_SYSCONFDIR}/ssl.csr -OWN_DIRS+= ${APACHE_SYSCONFDIR}/ssl.key -OWN_DIRS+= ${APACHE_SYSCONFDIR}/ssl.prm +OWN_DIRS= ${PKG_SYSCONFDIR}/ssl.crl +OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.crt +OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.csr +OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.key +OWN_DIRS+= ${PKG_SYSCONFDIR}/ssl.prm OWN_DIRS+= /var/log/httpd OWN_DIRS+= /var/spool/httpd OWN_DIRS_PERMS+= /var/spool/httpd/proxy nobody nobody 0755 @@ -156,9 +153,9 @@ post-install: .endif ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/httpd for file in httpd.conf magic mime.types; do \ - ${INSTALL_DATA} ${APACHE_SYSCONFDIR}/$${file}.default \ + ${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file}.default \ ${PREFIX}/share/examples/httpd; \ - ${RM} -f ${APACHE_SYSCONFDIR}/$${file}.default; \ + ${RM} -f ${PKG_SYSCONFDIR}/$${file}.default; \ done ${INSTALL_DATA} ${DISTDIR}/sitedrivenby.gif ${PREFIX}/share/httpd/htdocs ${INSTALL_SCRIPT} ${WRKDIR}/apache.sh ${PREFIX}/etc/rc.d/apache -- cgit v1.2.3