summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2003-05-28 21:45:15 +0000
committerDonny Davies <woodchip@gentoo.org>2003-05-28 21:45:15 +0000
commit4f30e02dd6dd886336fa27a9cb82900552d0daed (patch)
tree2138570426c4d4c784361d0db9498d2d87ad7c43 /net-www
parentversion bump (diff)
downloadhistorical-4f30e02dd6dd886336fa27a9cb82900552d0daed.tar.gz
historical-4f30e02dd6dd886336fa27a9cb82900552d0daed.tar.bz2
historical-4f30e02dd6dd886336fa27a9cb82900552d0daed.zip
Update to Apache 2.0.46 cuz noreply@freshmeat.net told me to.
Diffstat (limited to 'net-www')
-rw-r--r--net-www/apache/ChangeLog8
-rw-r--r--net-www/apache/Manifest55
-rw-r--r--net-www/apache/apache-2.0.46.ebuild322
-rw-r--r--net-www/apache/files/apache-2.0.46-gentoo.diff120
-rw-r--r--net-www/apache/files/digest-apache-2.0.461
5 files changed, 505 insertions, 1 deletions
diff --git a/net-www/apache/ChangeLog b/net-www/apache/ChangeLog
index a788047de744..c9879dc65b84 100644
--- a/net-www/apache/ChangeLog
+++ b/net-www/apache/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-www/apache
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.51 2003/05/22 23:24:02 woodchip Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.52 2003/05/28 21:45:15 woodchip Exp $
+
+*apache-2.0.46 (28 May 2003)
+
+ 28 May 2003; Donny Davies <woodchip@gentoo.org> Manifest, apache-2.0.46.ebuild,
+ files/apache-2.0.46-gentoo.diff:
+ Chase latest release; re-diff the patch.
*apache-2.0.45 (06 Apr 2003)
diff --git a/net-www/apache/Manifest b/net-www/apache/Manifest
new file mode 100644
index 000000000000..1488de0ce7b6
--- /dev/null
+++ b/net-www/apache/Manifest
@@ -0,0 +1,55 @@
+MD5 21612edc47a4856367e269687587cb28 apache-1.3.27-r1.ebuild 7684
+MD5 e4c89cfcf1223c75beeacec2e0746c29 apache-1.3.27-r3.ebuild 7684
+MD5 8df3983c53028854b58c32b4a3338a31 apache-2.0.45.ebuild 10329
+MD5 c93896f4268e681a335c92a01f22eddd apache-1.3.27.ebuild 8540
+MD5 293d43996b56379dd46d9bda26776f96 apache-1.3.27-r2.ebuild 8156
+MD5 043a7cbb495f4c01245aa1447fcc7acf apache-2.0.44.ebuild 9269
+MD5 f7939a6b9a12d7ab751135b10f7a1969 ChangeLog 10499
+MD5 5d479711c8cb50f187cab034b226cdbb apache-1.3.27-r4.ebuild 8180
+MD5 699afb8516a48340fd61912aa9b7d964 apache-2.0.46.ebuild 10338
+MD5 db01dbe8b200d4abfb604b8af8c648cf apache-2.0.43-r1.ebuild 9296
+MD5 161245c7aa1eb785db53b34d6a10be43 files/suexec_pam_gentoo.patch 2149
+MD5 97c7a2efed7a3fd05614167426c495d9 files/apache-builtin-mods 2465
+MD5 2175ea02f251282a97195106f2f5219b files/digest-apache-1.3.27-r1 211
+MD5 eaa0622f3960a9d382d2e4d8a725eadd files/digest-apache-1.3.27-r2 303
+MD5 10be9409287dd5848fd675c1d96d0f7c files/digest-apache-1.3.27-r3 211
+MD5 21c6ed7e53ea9fc80f4634cbf37b2bc6 files/digest-apache-1.3.27-r4 303
+MD5 d3626a1e31a675c60d066c111d552adf files/suexec.pam 59
+MD5 92bd3cfcb69c493fd69fa92a4e96102c files/digest-apache-2.0.43-r1 137
+MD5 f2c60b199c12729b25716ed451a24e38 files/apache-2.0.44-gentoo.diff 4895
+MD5 de4bb52edc581b44224e7006846aff43 files/apache.rc6 1021
+MD5 8d790bf68c47c08951c761815cd66a1c files/apachelogserverstatus 4763
+MD5 df54361aa8754197cf3bafe99d32c7ec files/robots.txt 340
+MD5 02db12f0d91e1f89e0b173fea6c5151d files/apacheaddmod 5977
+MD5 bae4b9d941cd38a32943533e958aa1b3 files/apachedelmod 3185
+MD5 9dc40e1918a2d30a578ebf1653f7182c files/apache-2.0.45-gentoo.diff 5448
+MD5 dd96d3259d2749da4e3dddc9b946581d files/digest-apache-1.3.27 208
+MD5 a90bef6fb0fb6d05f74c36eaf26285d6 files/apachesplitlogfile 4959
+MD5 61c95a857c02f476eb289a56cdaa3e01 files/digest-apache-2.0.44 65
+MD5 7142976d3aababdfc272c5ed2cbbd049 files/digest-apache-2.0.45 2595
+MD5 b1b73cd67ed116ce0f9c973eeff9fbdf files/digest-apache-2.0.46 65
+MD5 c8c70224d0f41de7f02387f13911e539 files/apache-2.0.46-gentoo.diff 3963
+MD5 df1290566bb25603dbe5a649daec5185 files/apache.confd 1012
+MD5 f440f0a32308bc9dc9d9acd041c8b6c5 files/conf/apache.conf 7247
+MD5 e68da4777c0641e3bc5b284ee7f6fcf2 files/conf/commonapache.conf 22140
+MD5 c774e0c7ddc6d55bddc164a9b5af0cb6 files/conf/VirtualHomePages.conf 907
+MD5 f820076adb31912c060052154d08eecb files/conf/Vhosts.conf 1909
+MD5 fd9b211c5078739d4aadbe6b3e53aead files/conf/DynamicVhosts.conf 963
+MD5 14aebf386646fe7ab2623dad993a32fa files/2.0.40/40_mod_ssl.conf 3420
+MD5 819ee444395cf42ccc8009529a94af37 files/2.0.40/45_mod_dav.conf 583
+MD5 50b76a8df795c79378c02f1edea750a4 files/2.0.40/46_mod_ldap.conf 902
+MD5 b610d37fd521de1f8fc782069e165969 files/2.0.40/apache2logserverstatus 4652
+MD5 a14d8565fd5ca2b5753799477a85b1af files/2.0.40/apache2splitlogfile 4844
+MD5 e14a1f0add1f5400e97cc6df5ad84429 files/2.0.40/apache2-builtin-mods 2230
+MD5 b335411e582a8fd58aacf2f35e75291f files/2.0.40/gentestcrt.sh 8805
+MD5 9375735d739344987fe4b2a3990de273 files/2.0.40/highperformance.conf 1959
+MD5 5c47dec8c730edf1cb755b581327bd49 files/2.0.40/httpd.conf 35481
+MD5 0055923f696c9ba3be7eeb5518603d40 files/2.0.40/ssl.conf 11082
+MD5 8ce666f3b8ad3ed00c081dc29e19fe90 files/2.0.40/41_mod_ssl.default-vhost.conf 8039
+MD5 03d826c12a0676b8d909ee78a89d57ef files/2.0.40/commonapache2.conf 30923
+MD5 4f46808418e644590002e78e98d88f21 files/2.0.40/apache2.confd 776
+MD5 09193d080ece4f5db9944e17bb13eb5a files/2.0.40/apache2.initd 1121
+MD5 8203712c2d827475922d031ffb4061d4 files/2.0.40/apache2.conf 7643
+MD5 548304216950e0192bf40ae0f5ace370 files/2.0.40/vhosts.conf 1683
+MD5 b69bf7c3126e471a2abff013e716367f files/2.0.40/virtual-homepages.conf 780
+MD5 23416b00cbdc46b67e672f272e49ba40 files/2.0.40/dynamic-vhosts.conf 840
diff --git a/net-www/apache/apache-2.0.46.ebuild b/net-www/apache/apache-2.0.46.ebuild
new file mode 100644
index 000000000000..4ca92978b3d7
--- /dev/null
+++ b/net-www/apache/apache-2.0.46.ebuild
@@ -0,0 +1,322 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-2.0.46.ebuild,v 1.1 2003/05/28 21:45:15 woodchip Exp $
+
+inherit eutils
+
+DESCRIPTION="Apache Web Server, Version 2.0.x"
+HOMEPAGE="http://www.apache.org/"
+
+S="${WORKDIR}/httpd-${PV}"
+SRC_URI="http://www.apache.org/dist/httpd/httpd-${PV}.tar.gz"
+KEYWORDS="~x86 ~ppc ~alpha ~hppa ~mips ~sparc"
+LICENSE="Apache-1.1"
+SLOT="2"
+
+DEPEND="dev-util/yacc
+ dev-lang/perl
+ sys-libs/zlib
+ dev-libs/expat
+ dev-libs/openssl
+ berkdb? sys-libs/db
+ gdbm? sys-libs/gdbm
+ ldap? =net-nds/openldap-2*"
+IUSE="berkdb gdbm ldap"
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${S} || die
+ epatch ${FILESDIR}/${P}-gentoo.diff
+
+ #give it the stamp
+ perl -pi -e 's|" PLATFORM "|Gentoo/Linux|;' server/core.c
+ #fix perl with perl!
+ find -type f | xargs perl -pi -e \
+ "s|/usr/local/bin/perl|/usr/bin/perl|g; \
+ s|/usr/local/bin/perl5|/usr/bin/perl|g; \
+ s|/path/to/bin/perl|/usr/bin/perl|g;"
+ #dont want this cruft in /usr/bin
+ perl -pi -e 's|\@exp_bindir\@(/envvars)|\@exp_installbuilddir\@\1|;' \
+ support/apachectl.in
+
+ #allow users to customize their data directory by setting the
+ #home directory of the 'apache' user elsewhere.
+ local datadir=`grep ^apache: /etc/passwd | cut -d: -f6`
+ if [ -z "$datadir" ]
+ then
+ datadir="/home/httpd"
+ eerror "Please create the apache user and set his home"
+ eerror "directory to your desired datadir location."
+ eerror "Defaulting to \"/home/httpd\"."
+ else
+ einfo "$datadir is your Apache2 data directory ..."
+ fi
+
+ #setup the filesystem layout config
+ local prefix=/usr
+ cat >>config.layout <<-EOF
+ <Layout Gentoo>
+ prefix: ${prefix}
+ exec_prefix: ${prefix}
+ bindir: ${prefix}/bin
+ sbindir: ${prefix}/sbin
+ libdir: ${prefix}/lib
+ libexecdir: ${prefix}/lib/apache2
+ mandir: ${prefix}/share/man
+ infodir: ${prefix}/share/info
+ includedir: ${prefix}/include/apache2
+ installbuilddir: ${prefix}/lib/apache2/build
+ datadir: ${datadir}
+ errordir: ${datadir}/error
+ iconsdir: ${datadir}/icons
+ htdocsdir: ${datadir}/htdocs
+ cgidir: ${datadir}/cgi-bin
+ manualdir: /usr/share/doc/${PF}/manual
+ sysconfdir: /etc/apache2/conf
+ localstatedir: /var
+ runtimedir: /var/run
+ logfiledir: /var/log/apache2
+ proxycachedir: /var/cache/apache2
+ </Layout>
+ EOF
+
+ #gotta do these next two as well :\
+ cat >>srclib/apr/config.layout <<-EOF
+ <Layout Gentoo>
+ prefix: ${prefix}
+ exec_prefix: ${prefix}
+ bindir: ${prefix}/bin
+ sbindir: ${prefix}/sbin
+ libdir: ${prefix}/lib
+ libexecdir: ${prefix}/lib/apache2
+ mandir: ${prefix}/share/man
+ sysconfdir: /etc/apache2/conf
+ datadir: ${datadir}
+ installbuilddir: ${prefix}/lib/apache2/build
+ includedir: ${prefix}/include/apache2
+ localstatedir: /var
+ libsuffix: -\${APR_MAJOR_VERSION}
+ </Layout>
+ EOF
+
+ cat >>srclib/apr-util/config.layout <<-EOF
+ <Layout Gentoo>
+ prefix: ${prefix}
+ exec_prefix: ${prefix}
+ bindir: ${prefix}/bin
+ sbindir: ${prefix}/sbin
+ libdir: ${prefix}/lib
+ libexecdir: ${prefix}/lib/apache2
+ mandir: ${prefix}/share/man
+ sysconfdir: /etc/apache2/conf
+ datadir: ${datadir}
+ installbuilddir: ${prefix}/lib/apache2/build
+ includedir: ${prefix}/include/apache2
+ localstatedir: /var
+ libsuffix: -\${APRUTIL_MAJOR_VERSION}
+ </Layout>
+ EOF
+
+ ./buildconf || die "buildconf failed"
+}
+
+src_compile() {
+ local myconf
+ use ldap && \
+ myconf="--with-ldap --enable-auth-ldap=shared --enable-ldap=shared"
+
+ select_modules_config || die "determining modules"
+
+ SSL_BASE="SYSTEM" \
+ ./configure \
+ --with-suexec-safepath="/usr/local/bin:/usr/bin:/bin" \
+ --with-suexec-logfile=/var/log/apache2/suexec_log \
+ --with-suexec-bin=/usr/sbin/suexec2 \
+ --with-suexec-userdir=public_html \
+ --with-suexec-caller=apache \
+ --with-suexec-docroot=/home \
+ --with-suexec-uidmin=1000 \
+ --with-suexec-gidmin=100 \
+ --with-suexec-umask=077 \
+ --enable-suexec=shared \
+ \
+ ${MY_BUILTINS} \
+ \
+ --with-perl=/usr/bin/perl \
+ --with-expat=/usr \
+ --with-ssl=/usr \
+ --with-z=/usr \
+ --with-port=80 \
+ --with-mpm=${MPM:=prefork} \
+ --enable-layout=Gentoo \
+ --with-program-name=apache2 \
+ --host=${CHOST} ${myconf} || die "bad ./configure"
+ #--with-mpm={worker|prefork|perchild|leader|threadpool}
+
+ emake || die "problem compiling Apache2 :("
+
+ #build ssl version of apache bench (ab-ssl)
+ cd support; rm -f ab .libs/ab ab.lo ab.o
+ make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl \
+ -I/usr/include/openssl -L/usr/lib" || die
+ mv ab ab-ssl; mv .libs/ab .libs/ab-ssl; rm -f ab.lo ab.o
+ make ab || die
+}
+
+src_install () {
+ local i
+ make DESTDIR=${D} install || die
+ dodoc ABOUT_APACHE CHANGES INSTALL LAYOUT \
+ LICENSE README* ${FILESDIR}/robots.txt
+
+ #bogus values pointing at /var/tmp/portage
+ perl -pi -e "s/(APR_SOURCE_DIR=).*/\1\"\"/" ${D}/usr/bin/apr-config
+ perl -pi -e "s/(APU_SOURCE_DIR=).*/\1\"\"/" ${D}/usr/bin/apu-config
+ perl -pi -e "s/(APU_BUILD_DIR=).*/\1\"\"/" ${D}/usr/bin/apu-config
+
+ #protect the suexec binary
+ local gid=`grep ^apache: /etc/group |cut -d: -f3`
+ [ -z "${gid}" ] && gid=81
+ fowners root.${gid} /usr/sbin/suexec
+ fperms 4710 /usr/sbin/suexec
+
+ #setup links in /etc/apache2
+ cd ${D}/etc/apache2
+ ln -sf ../../usr/lib/apache2 modules
+ #apxs needs this to pickup the right lib for install
+ ln -sf ../../usr/lib lib
+ ln -sf ../../var/log/apache2 logs
+ ln -sf ../../usr/lib/apache2-extramodules extramodules
+ cd ${S}
+
+ #credits to advx.org people for these scripts. Heck, thanks for
+ #the nice layout and everything else ;-)
+ exeinto /usr/sbin
+ for i in apache2logserverstatus apache2splitlogfile
+ do
+ doexe ${FILESDIR}/2.0.40/$i
+ done
+ exeinto /usr/lib/ssl/apache2-mod_ssl
+ doexe ${FILESDIR}/2.0.40/gentestcrt.sh
+
+ #some more scripts
+ exeinto /usr/sbin
+ for i in split-logfile list_hooks.pl logresolve.pl log_server_status
+ do
+ doexe ${S}/support/$i
+ done
+ #the ssl version of apache bench
+ doexe support/.libs/ab-ssl
+
+ #move some mods to extramodules
+ dodir /usr/lib/apache2-extramodules
+ for i in mod_ssl.so mod_ldap.so mod_auth_ldap.so
+ do
+ [ -x ${D}/usr/lib/apache2/$i ] && \
+ mv ${D}/usr/lib/apache2/$i ${D}/usr/lib/apache2-extramodules
+ done
+
+ #modules.d config file snippets
+ insinto /etc/apache2/conf/modules.d
+ for i in 40_mod_ssl.conf 41_mod_ssl.default-vhost.conf 45_mod_dav.conf
+ do
+ doins ${FILESDIR}/2.0.40/$i
+ done
+ use ldap && doins ${FILESDIR}/2.0.40/46_mod_ldap.conf
+
+ #drop in a convenient link to the manual
+ local datadir=`grep ^apache: /etc/passwd | cut -d: -f6`
+ [ -z "$datadir" ] && datadir="/home/httpd"
+ dosym /usr/share/doc/${PF}/manual ${datadir}/htdocs/manual
+
+ #SLOT=2!!!
+ cd ${D}
+ mv -v usr/sbin/apachectl usr/sbin/apache2ctl
+ mv -v usr/sbin/htdigest usr/sbin/htdigest2
+ mv -v usr/sbin/htpasswd usr/sbin/htpasswd2
+ mv -v usr/sbin/logresolve usr/sbin/logresolve2
+ mv -v usr/sbin/apxs usr/sbin/apxs2
+ mv -v usr/sbin/ab usr/sbin/ab2
+ mv -v usr/sbin/ab-ssl usr/sbin/ab2-ssl
+ mv -v usr/sbin/suexec usr/sbin/suexec2
+ mv -v usr/sbin/rotatelogs usr/sbin/rotatelogs2
+ mv -v usr/sbin/dbmmanage usr/sbin/dbmmanage2
+ mv -v usr/sbin/checkgid usr/sbin/checkgid2
+ mv -v usr/sbin/split-logfile usr/sbin/split-logfile2
+ mv -v usr/sbin/list_hooks.pl usr/sbin/list_hooks2.pl
+ mv -v usr/sbin/logresolve.pl usr/sbin/logresolve2.pl
+ mv -v usr/sbin/log_server_status usr/sbin/log_server_status2
+ mv -v usr/share/man/man1/htdigest.1 usr/share/man/man1/htdigest2.1
+ mv -v usr/share/man/man1/htpasswd.1 usr/share/man/man1/htpasswd2.1
+ mv -v usr/share/man/man1/dbmmanage.1 usr/share/man/man1/dbmmanage2.1
+ mv -v usr/share/man/man8/ab.8 usr/share/man/man8/ab2.8
+ mv -v usr/share/man/man8/apxs.8 usr/share/man/man8/apxs2.8
+ mv -v usr/share/man/man8/apachectl.8 usr/share/man/man8/apache2ctl.8
+ mv -v usr/share/man/man8/httpd.8 usr/share/man/man8/apache2.8
+ mv -v usr/share/man/man8/logresolve.8 usr/share/man/man8/logresolve2.8
+ mv -v usr/share/man/man8/rotatelogs.8 usr/share/man/man8/rotatelogs2.8
+ mv -v usr/share/man/man8/suexec.8 usr/share/man/man8/suexec2.8
+
+ #tidy up
+ mv ${D}/usr/sbin/envvars* ${D}/usr/lib/apache2/build
+ dodoc ${D}/etc/apache2/conf/*-std.conf
+ rm -f ${D}/etc/apache2/conf/*.conf
+ rm -rf ${D}/var/run ${D}/var/log
+
+ #config files
+ insinto /etc/conf.d; newins ${FILESDIR}/2.0.40/apache2.confd apache2
+ exeinto /etc/init.d; newexe ${FILESDIR}/2.0.40/apache2.initd apache2
+ insinto /etc/apache2; doins ${FILESDIR}/2.0.40/apache2-builtin-mods
+ insinto /etc/apache2/conf
+ doins ${FILESDIR}/2.0.40/commonapache2.conf
+ doins ${FILESDIR}/2.0.40/apache2.conf
+ insinto /etc/apache2/conf/vhosts
+ doins ${FILESDIR}/2.0.40/virtual-homepages.conf
+ doins ${FILESDIR}/2.0.40/dynamic-vhosts.conf
+ doins ${FILESDIR}/2.0.40/vhosts.conf
+}
+
+parse_modules_config() {
+ local filename=$1
+ local name=""
+ local dso=""
+ local disable=""
+ [ -f ${filename} ] || return 1
+ for i in `cat $filename | sed "s/^#.*//"` ; do
+ if [ $i == "-" ] ; then
+ disable="true"
+ elif [ -z "$name" ] && [ ! -z "`echo $i | grep "mod_"`" ] ; then
+ name=`echo $i | sed "s/mod_//"`
+ elif [ "$disable" ] && ( [ $i == "static" ] || [ $i == "shared" ] ) ; then
+ MY_BUILTINS="${MY_BUILTINS} --disable-$name"
+ name="" ; disable=""
+ elif [ $i == "static" ] ; then
+ MY_BUILTINS="${MY_BUILTINS} --enable-$name=yes"
+ name="" ; disable=""
+ elif [ $i == "shared" ] ; then
+ MY_BUILTINS="${MY_BUILTINS} --enable-$name=shared"
+ name="" ; disable=""
+ fi
+ done
+ einfo "${filename} options:\n${MY_BUILTINS}"
+}
+
+select_modules_config() {
+ parse_modules_config /etc/apache2/apache2-builtin-mods || \
+ parse_modules_config ${FILESDIR}/2.0.40/apache2-builtin-mods || \
+ return 1
+}
+
+pkg_postinst() {
+ #empty dirs...
+ install -d -m0755 -o apache -g apache ${ROOT}/var/lib/dav
+ install -d -m0755 -o root -g root ${ROOT}/var/log/apache2
+ install -d -m0755 -o root -g root ${ROOT}/var/cache/apache2
+ install -d -m0755 -o root -g root ${ROOT}/etc/apache2/conf/ssl
+
+ cd ${ROOT}/etc/apache2/conf/ssl
+ einfo "Generating self-signed test certificate in /etc/apache2/conf/ssl..."
+ einfo "(Ignore any message from the yes command below)"
+ yes "" | ${ROOT}/usr/lib/ssl/apache2-mod_ssl/gentestcrt.sh >/dev/null 2>&1
+ einfo
+}
diff --git a/net-www/apache/files/apache-2.0.46-gentoo.diff b/net-www/apache/files/apache-2.0.46-gentoo.diff
new file mode 100644
index 000000000000..76749fc93eb8
--- /dev/null
+++ b/net-www/apache/files/apache-2.0.46-gentoo.diff
@@ -0,0 +1,120 @@
+diff -uNr httpd-2.0.46/acinclude.m4 httpd-2.0.46-woodchip/acinclude.m4
+--- httpd-2.0.46/acinclude.m4 2002-11-29 06:05:57.000000000 -0500
++++ httpd-2.0.46-woodchip/acinclude.m4 2003-05-28 19:43:56.000000000 -0400
+@@ -60,6 +60,7 @@
+ APACHE_SUBST(HTTPD_LDFLAGS)
+ APACHE_SUBST(UTIL_LDFLAGS)
+ APACHE_SUBST(LIBS)
++ APACHE_SUBST(SSL_LIBS)
+ APACHE_SUBST(DEFS)
+ APACHE_SUBST(INCLUDES)
+ APACHE_SUBST(NOTEST_CPPFLAGS)
+@@ -190,7 +191,7 @@
+ ])dnl
+
+ dnl
+-dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
++dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config[, libs]]]]])
+ dnl
+ dnl default is one of:
+ dnl yes -- enabled by default. user must explicitly disable.
+@@ -266,7 +267,7 @@
+ fi
+ shared="";;
+ esac
+- APACHE_MODPATH_ADD($1, $shared, $3)
++ APACHE_MODPATH_ADD($1, $shared, $3,, $7)
+ fi
+ ])dnl
+
+@@ -488,7 +489,7 @@
+ APR_ADDTO(LDFLAGS, [$ap_platform_runtime_link_flag$ap_ssltk_libdir])
+ fi
+ fi
+- APR_ADDTO(LIBS, [-lssl -lcrypto])
++ APR_ADDTO(SSL_LIBS, [-lssl -lcrypto])
+ ap_cv_ssltk="$ap_ssltk_base"
+ fi
+ ])
+diff -uNr httpd-2.0.46/modules/ssl/config.m4 httpd-2.0.46-woodchip/modules/ssl/config.m4
+--- httpd-2.0.46/modules/ssl/config.m4 2002-03-29 02:36:01.000000000 -0500
++++ httpd-2.0.46-woodchip/modules/ssl/config.m4 2003-05-28 19:43:56.000000000 -0400
+@@ -79,7 +79,7 @@
+ APACHE_CHECK_SSL_TOOLKIT
+ AC_CHECK_FUNCS(SSL_set_state)
+ AC_CHECK_FUNCS(SSL_set_cert_store)
+-])
++], [\$(SSL_LIBS)])
+
+ dnl # end of module specific part
+ APACHE_MODPATH_FINISH
+diff -uNr httpd-2.0.46/os/unix/unixd.c httpd-2.0.46-woodchip/os/unix/unixd.c
+--- httpd-2.0.46/os/unix/unixd.c 2003-05-15 16:28:18.000000000 -0400
++++ httpd-2.0.46-woodchip/os/unix/unixd.c 2003-05-28 19:43:56.000000000 -0400
+@@ -243,23 +243,20 @@
+
+ AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp)
+ {
+- apr_finfo_t wrapper;
++ struct stat wrapper;
+
+ unixd_config.user_name = DEFAULT_USER;
+ unixd_config.user_id = ap_uname2id(DEFAULT_USER);
+ unixd_config.group_id = ap_gname2id(DEFAULT_GROUP);
+
+ /* Check for suexec */
+- unixd_config.suexec_enabled = 0;
+- if ((apr_stat(&wrapper, SUEXEC_BIN,
+- APR_FINFO_NORM, ptemp)) != APR_SUCCESS) {
+- return;
+- }
+-
+- /* XXX - apr_stat is incapable of checking suid bits (grumble) */
+- /* if ((wrapper.filetype & S_ISUID) && wrapper.user == 0) { */
++ if (stat(SUEXEC_BIN, &wrapper) == 0 &&
++ (wrapper.st_mode & S_ISUID) && wrapper.st_uid == 0) {
+ unixd_config.suexec_enabled = 1;
+- /* } */
++ } else {
++ unixd_config.suexec_enabled = 0;
++ }
++
+ }
+
+
+diff -uNr httpd-2.0.46/support/apachectl.in httpd-2.0.46-woodchip/support/apachectl.in
+--- httpd-2.0.46/support/apachectl.in 2003-02-03 12:32:08.000000000 -0500
++++ httpd-2.0.46-woodchip/support/apachectl.in 2003-05-28 19:43:56.000000000 -0400
+@@ -28,7 +28,8 @@
+ # -------------------- --------------------
+ #
+ # the path to your httpd binary, including options if necessary
+-HTTPD='@exp_sbindir@/@progname@'
++. /etc/conf.d/apache2
++HTTPD="@exp_sbindir@/@progname@ ${APACHE2_OPTS}"
+ #
+ # pick up any necessary environment variables
+ if test -f @exp_bindir@/envvars; then
+diff -uNr httpd-2.0.46/support/apxs.in httpd-2.0.46-woodchip/support/apxs.in
+--- httpd-2.0.46/support/apxs.in 2003-05-21 07:39:52.000000000 -0400
++++ httpd-2.0.46-woodchip/support/apxs.in 2003-05-28 19:43:56.000000000 -0400
+@@ -237,19 +237,6 @@
+ ($httpd = $0) =~ s:support/apxs$::;
+ }
+
+-unless (-x "$httpd") {
+- error("$httpd not found or not executable");
+- exit 1;
+-}
+-
+-unless (grep /mod_so/, `. $envvars && $httpd -l`) {
+- error("Sorry, no shared object support for Apache");
+- error("available under your platform. Make sure");
+- error("the Apache module mod_so is compiled into");
+- error("your server binary `$httpd'.");
+- exit 1;
+-}
+-
+ sub get_config_vars{
+ my ($file, $rh_config) = @_;
+
diff --git a/net-www/apache/files/digest-apache-2.0.46 b/net-www/apache/files/digest-apache-2.0.46
new file mode 100644
index 000000000000..bc7e696a095e
--- /dev/null
+++ b/net-www/apache/files/digest-apache-2.0.46
@@ -0,0 +1 @@
+MD5 ff682f82f0808eb01df60824d959ebe8 httpd-2.0.46.tar.gz 6031023