summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stewart <vericgar@gentoo.org>2006-04-01 02:59:31 +0000
committerMichael Stewart <vericgar@gentoo.org>2006-04-01 02:59:31 +0000
commit59d265751d2a8c72a3e0414aae53516cb96974f8 (patch)
treee95a97d8fda8e81847652fd21419359e78908d8f /net-www
parentAdd ~x86-fbsd keyword. (diff)
downloadhistorical-59d265751d2a8c72a3e0414aae53516cb96974f8.tar.gz
historical-59d265751d2a8c72a3e0414aae53516cb96974f8.tar.bz2
historical-59d265751d2a8c72a3e0414aae53516cb96974f8.zip
Replace the patch for AddDirectoryIndex with a rewritten one. This should fix the segfaults reported in bug 106808
Package-Manager: portage-2.1_pre6
Diffstat (limited to 'net-www')
-rw-r--r--net-www/apache/ChangeLog9
-rw-r--r--net-www/apache/Manifest22
-rw-r--r--net-www/apache/apache-2.0.55-r2.ebuild441
-rw-r--r--net-www/apache/files/digest-apache-2.0.55-r26
4 files changed, 464 insertions, 14 deletions
diff --git a/net-www/apache/ChangeLog b/net-www/apache/ChangeLog
index 491d20e817aa..0d1df7302fa6 100644
--- a/net-www/apache/ChangeLog
+++ b/net-www/apache/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-www/apache
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.469 2006/03/08 01:55:15 vericgar Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.470 2006/04/01 02:59:30 vericgar Exp $
+
+*apache-2.0.55-r2 (31 Mar 2006)
+
+ 31 Mar 2006; Michael Stewart <vericgar@gentoo.org>
+ +apache-2.0.55-r2.ebuild:
+ Replace the patch for AddDirectoryIndex with a rewritten one. This should
+ fix the segfaults reported in bug 106808
08 Mar 2006; Michael Stewart <vericgar@gentoo.org> apache-2.2.0-r2.ebuild:
Actually install apache2-builtin-mods to the location where we expect it.
diff --git a/net-www/apache/Manifest b/net-www/apache/Manifest
index 701274c1fe6a..ae9a996f0a43 100644
--- a/net-www/apache/Manifest
+++ b/net-www/apache/Manifest
@@ -1,9 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 5f509ed50a6ed98dcb26edadcc37242f ChangeLog 78109
-RMD160 8a3d53c927856eb8b988e7bad23e008bdaae380b ChangeLog 78109
-SHA256 667918872a37f7548701afadbe3964de13173f4702969276659669d4ea4bd082 ChangeLog 78109
+MD5 6e03b086b34c1c7987719b563979650a ChangeLog 78343
+RMD160 af10eb99e29187ad859deafbae803c0c8c959f3e ChangeLog 78343
+SHA256 f188f22bd32e761e99b4b00614c3bf49a131a45a59bdb83b2484aa965d78e2ef ChangeLog 78343
MD5 26a30fcfe2a6fbbf994b64756ed4f604 apache-1.3.32-r1.ebuild 6685
RMD160 bed06d46549aa916c55c4010abb6200250aab467 apache-1.3.32-r1.ebuild 6685
SHA256 960a79fc39624020599cb70dde4ed7c460ad924373755cfbffb0359f700f9c4d apache-1.3.32-r1.ebuild 6685
@@ -43,6 +40,9 @@ SHA256 ead56d4310f2920a7c8b0e57895cde1e1cbebaf14496c17a7a393d29ad0f7d68 apache-2
MD5 dd51c3afe05262ec8243d43b8f800d98 apache-2.0.55-r1.ebuild 13372
RMD160 b5c01391ee0a0e7d3e5e9c99b2ad8af3812176f2 apache-2.0.55-r1.ebuild 13372
SHA256 f2392d16809ced1641b3e4b74fc551e1e4cc24a6db776269ff27d6d7322a4b7c apache-2.0.55-r1.ebuild 13372
+MD5 88112e04a7efe7ccccd0dd29fa5ab877 apache-2.0.55-r2.ebuild 13385
+RMD160 c05b508fdd5c1c1aea00683aa0111d27509e898c apache-2.0.55-r2.ebuild 13385
+SHA256 a3826d6649134059db2235caabf4a76b0e6d63e4aa482cd1b9e4ecba8188733c apache-2.0.55-r2.ebuild 13385
MD5 2eef71adb67bd3ddf3f8c4743a5ebe6a apache-2.0.55.ebuild 13370
RMD160 621677a89b2efc48a78fab130594d871f8f74e1c apache-2.0.55.ebuild 13370
SHA256 b9048c96a2f8103c755b9640fb25993eddbb3cf49134ea7703cea0d2a58c4f5e apache-2.0.55.ebuild 13370
@@ -184,6 +184,9 @@ SHA256 08f9bd778fff1f0480864c99106c095cb7919943cdd9c1daa8c3d4aa143fa0a4 files/di
MD5 d505d0e0fb4d17095848855d54c6b0f1 files/digest-apache-2.0.55-r1 150
RMD160 6a44c9b3b1b54ae34f1ef3938b4512b24378c61a files/digest-apache-2.0.55-r1 150
SHA256 5f1294744eca94fff4fdc4104980b9b7864a752224873293f3517f5df0ebb711 files/digest-apache-2.0.55-r1 150
+MD5 76538254a65a61e8654166ce2bb73226 files/digest-apache-2.0.55-r2 542
+RMD160 aee5764730ed626930c1b3194ff1360a78339e2e files/digest-apache-2.0.55-r2 542
+SHA256 51ab077ab1e2adca8a62417c09f3c8870e1cd52946db2e8279396ea75813e1d1 files/digest-apache-2.0.55-r2 542
MD5 658a784ac412b6489bad9d6522ad214c files/digest-apache-2.2.0-r1 536
RMD160 250f73fa520dacab1f72303a2b78297311793c9b files/digest-apache-2.2.0-r1 536
SHA256 33e99840918bb5d10d5d4ecf2368b3246cd91a640e0c9a094256e4025ca0425b files/digest-apache-2.2.0-r1 536
@@ -226,10 +229,3 @@ SHA256 32618a274dd2433d5d3f6295c7047fc7caf16763ec4fa4a6234c92fe08d3b606 files/su
MD5 27c9cb37c510e08bb69df277229a03ea metadata.xml 566
RMD160 8aad2cbb313fa91b77c6f4891f8d3483d1460adc metadata.xml 566
SHA256 9826f38d29b803e954faa6fafffc4d6f197bfcb0e14cc76af891c41081d948e2 metadata.xml 566
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2.1 (GNU/Linux)
-
-iD8DBQFEDle5CRZPokWLroQRAmQBAJ9Ec6OrufBl3UMgoXDVgK7BYnWctgCfZR1Y
-8JZkwMfK78TQc8QvTQHba6Q=
-=Ocja
------END PGP SIGNATURE-----
diff --git a/net-www/apache/apache-2.0.55-r2.ebuild b/net-www/apache/apache-2.0.55-r2.ebuild
new file mode 100644
index 000000000000..26b1b7f382bc
--- /dev/null
+++ b/net-www/apache/apache-2.0.55-r2.ebuild
@@ -0,0 +1,441 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-2.0.55-r2.ebuild,v 1.1 2006/04/01 02:59:31 vericgar Exp $
+
+inherit eutils gnuconfig multilib
+
+# latest gentoo apache files
+GENTOO_PATCHNAME="gentoo-apache-${PVR}"
+GENTOO_PATCHSTAMP="20060331"
+GENTOO_DEVSPACE="vericgar"
+GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}"
+
+DESCRIPTION="The Apache Web Server"
+HOMEPAGE="http://httpd.apache.org/"
+SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2
+ http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="apache2 debug doc ldap mpm-leader mpm-peruser mpm-prefork mpm-threadpool mpm-worker no-suexec ssl static-modules threads selinux"
+
+RDEPEND="dev-lang/perl
+ ~dev-libs/apr-0.9.7
+ ~dev-libs/apr-util-0.9.7
+ dev-libs/expat
+ net-www/gentoo-webroot-default
+ app-misc/mime-types
+ sys-libs/zlib
+ ssl? ( dev-libs/openssl )
+ selinux? ( sec-policy/selinux-apache )
+ !mips? ( ldap? ( =net-nds/openldap-2* ) )"
+DEPEND="${RDEPEND}
+ >=sys-devel/autoconf-2.59-r4"
+
+S="${WORKDIR}/httpd-${PV}"
+
+big_fat_warnings() {
+
+ if use ldap && ! built_with_use 'dev-libs/apr-util' ldap; then
+ eerror "dev-libs/apr-util is missing LDAP support. For apache to have"
+ eerror "ldap support, apr-util must be built with the ldap USE-flag"
+ eerror "enabled."
+ die "ldap USE-flag enabled while not supported in apr-util"
+ fi
+
+ if use mpm-peruser; then
+ ewarn " -BIG- -FAT- -WARNING-"
+ ewarn ""
+ ewarn "The peruser (USE=mpm-peruser) MPM is considered highly experimental"
+ ewarn "and are not (yet) supported, nor are they recommended for production"
+ ewarn "use. You have been warned!"
+ ewarn
+ ewarn "Continuing in 5 seconds.."
+ sleep 5
+ fi
+
+ ewarn ""
+ ewarn "LFS support has been removed due to incompatibilites with other packages."
+ ewarn "You _will_ have to re-emerge any Apache modules you have installed, or"
+ ewarn "they will likely misbehave/segfault."
+ ewarn ""
+ ewarn ""
+ ewarn "Multiple MPM support has been disabled due to problems with external"
+ ewarn "modules. If you have relied on this functionality you will need"
+ ewarn "to find another solution. The Gentoo Apache team apologizes for"
+ ewarn "any inconvienence this may cause you."
+ ewarn ""
+}
+
+pkg_setup() {
+ big_fat_warnings
+ select_mpms
+}
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${S} || die
+
+ # Use correct multilib libdir in gentoo patches
+ sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" \
+ ${GENTOO_PATCHDIR}/{conf/httpd.conf,init/*,patches/config.layout} \
+ || die "sed failed"
+
+ EPATCH_SUFFIX="patch"
+ epatch ${GENTOO_PATCHDIR}/patches/[0-9]* || die "internal ebuild error"
+
+ # avoid utf-8 charset problems
+ export LC_CTYPE=C
+
+ # setup the filesystem layout config
+ cat ${GENTOO_PATCHDIR}/patches/config.layout >> config.layout
+ sed -i -e 's:version:${PF}:g' config.layout
+
+ # peruser need to build conf
+ WANT_AUTOCONF=2.5 ./buildconf || die "buildconf failed"
+}
+
+src_compile() {
+ setup_apache_vars
+
+ # Detect mips and uclibc systems properly
+ gnuconfig_update
+
+ local modtype
+ if useq static-modules; then
+ modtype="static"
+ else
+ modtype="shared"
+ fi
+
+ select_modules_config || die "determining modules"
+
+ local myconf
+ useq ldap && myconf="${myconf} --enable-auth-ldap=${modtype} --enable-ldap=${modtype}"
+ useq ssl && myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}"
+
+ # Fix for bug #24215 - robbat2@gentoo.org, 30 Oct 2003
+ # We pre-load the cache with the correct answer! This avoids
+ # it violating the sandbox. This may have to be changed for
+ # non-Linux systems or if sem_open changes on Linux. This
+ # hack is built around documentation in /usr/include/semaphore.h
+ # and the glibc (pthread) source
+ echo 'ac_cv_func_sem_open=${ac_cv_func_sem_open=no}' >> ${S}/config.cache
+
+ if useq no-suexec; then
+ myconf="${myconf} --disable-suexec"
+ else
+ myconf="${myconf}
+ --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=${USERDIR} \
+ --with-suexec-caller=apache \
+ --with-suexec-docroot=/var/www \
+ --with-suexec-uidmin=1000 \
+ --with-suexec-gidmin=100 \
+ --with-suexec-umask=077 \
+ --enable-suexec=shared"
+ fi
+
+ # common confopts
+ myconf="${myconf} \
+ --with-apr=/usr \
+ --with-apr-util=/usr \
+ --cache-file=${S}/config.cache \
+ --with-perl=/usr/bin/perl \
+ --with-expat=/usr \
+ --with-z=/usr \
+ --with-port=80 \
+ --enable-layout=Gentoo \
+ --with-program-name=apache2 \
+ --with-devrandom=/dev/urandom \
+ --host=${CHOST} ${MY_BUILTINS}"
+
+ # debugging support
+ if useq debug ; then
+ myconf="${myconf} --enable-maintainer-mode"
+ fi
+
+ ./configure --with-mpm=${mpm} ${myconf} || die "bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log"
+
+ # we don't want to try and recompile the ssl_expr_parse.c file, because
+ # the lex source is broken
+ touch modules/ssl/ssl_expr_scan.c
+
+ # as decided on IRC-AGENDA-10.2004, we use httpd.conf as standard config file name
+ sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h
+
+ emake || die "problem compiling apache2"
+
+ # build ssl version of apache bench (ab-ssl)
+ if useq ssl; then
+ 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/$(get_libdir)" || die
+ mv ab ab-ssl
+ rm -f ab.lo ab.o
+ make ab || die
+ fi
+}
+
+src_install () {
+ # setup apache user and group
+ enewgroup apache 81
+ enewuser apache 81 -1 /var/www apache
+
+ # general install
+ make DESTDIR=${D} install || die
+ dodoc ABOUT_APACHE CHANGES INSTALL LAYOUT LICENSE README* ${GENTOO_PATCHDIR}/docs/robots.txt
+
+ # protect the suexec binary
+ if ! useq no-suexec; then
+ fowners root:apache /usr/sbin/suexec
+ fperms 4710 /usr/sbin/suexec
+ fi
+
+ # apxs needs this to pickup the right lib for install
+ dosym /usr/$(get_libdir) /usr/$(get_libdir)/apache2/lib
+ dosym /var/log/apache2 /usr/$(get_libdir)/apache2/logs
+ dosym /etc/apache2 /usr/$(get_libdir)/apache2/conf
+
+ # 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 ${GENTOO_PATCHDIR}/scripts/${i}
+ done
+ # gentestcrt.sh only if USE=ssl
+ useq ssl && doexe ${GENTOO_PATCHDIR}/scripts/gentestcrt.sh
+
+ # some more scripts
+ 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
+ useq ssl && doexe support/ab-ssl
+
+ # install mpm bins
+ doexe ${S}/apache2
+
+ # modules.d config file snippets
+ insinto /etc/apache2/modules.d
+ doins ${GENTOO_PATCHDIR}/conf/modules.d/45_mod_dav.conf
+ useq ldap && doins ${GENTOO_PATCHDIR}/conf/modules.d/46_mod_ldap.conf
+ if useq ssl; then
+ doins ${GENTOO_PATCHDIR}/conf/modules.d/40_mod_ssl.conf
+ doins ${GENTOO_PATCHDIR}/conf/modules.d/41_mod_ssl.default-vhost.conf
+ fi
+
+ # drop in a convenient link to the manual
+ if useq doc; then
+ insinto /etc/apache2/modules.d
+ doins ${GENTOO_PATCHDIR}/conf/modules.d/00_apache_manual.conf
+ sed -i -e "s:2.0.49:${PVR}:" ${D}/etc/apache2/modules.d/00_apache_manual.conf
+ else
+ rm -rf ${D}/usr/share/doc/${PF}/manual
+ fi
+
+ # SLOT=2
+ cd ${D}
+ for i in htdigest htpasswd logresolve apxs ab rotatelogs dbmmanage checkgid split-logfile; do
+ mv -v usr/sbin/${i} usr/sbin/${i}2
+ done
+ mv -v usr/sbin/apachectl usr/sbin/apache2ctl
+ mv -v usr/sbin/list_hooks.pl usr/sbin/list_hooks2.pl
+ mv -v usr/sbin/logresolve.pl usr/sbin/logresolve2.pl
+ useq ssl && mv -v usr/sbin/ab-ssl usr/sbin/ab2-ssl
+ useq no-suexec || mv -v usr/sbin/suexec usr/sbin/suexec2
+
+ # do the man pages
+ for i in htdigest.1 htpasswd.1 dbmmanage.1; do
+ mv -v usr/share/man/man1/${i} usr/share/man/man1/${i/./2.}
+ done
+ for i in ab.8 apxs.8 logresolve.8 rotatelogs.8; do
+ mv -v usr/share/man/man8/${i} usr/share/man/man8/${i/./2.}
+ done
+ useq no-suexec || mv -v usr/share/man/man8/suexec.8 usr/share/man/man8/suexec2.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
+
+ # tidy up
+ mv usr/sbin/envvars* usr/$(get_libdir)/apache2/build
+ dodoc etc/apache2/*-std.conf
+ rm -f etc/apache2/*.conf
+ rm -f etc/apache2/mime.types
+ rm -rf var/run var/log
+
+ # we DEPEND on net-www/gentoo-webroot-default for sharing this by now
+ rm -rf var/www/localhost
+
+ # config files
+ newconfd ${GENTOO_PATCHDIR}/init/apache2.confd apache2
+ newinitd ${GENTOO_PATCHDIR}/init/apache2.initd apache2
+
+ insinto /etc/logrotate.d
+ newins ${GENTOO_PATCHDIR}/scripts/apache2-logrotate apache2
+
+ insinto /etc/apache2
+ doins ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods
+ doins ${GENTOO_PATCHDIR}/conf/httpd.conf
+
+ insinto /etc/apache2/vhosts.d
+ doins ${GENTOO_PATCHDIR}/conf/vhosts.d/00_default_vhost.conf
+
+ keepdir /etc/apache2/vhosts.d
+ keepdir /etc/apache2/modules.d
+
+ # fix bug 92348
+ fperms 755 /usr/sbin/apache2logserverstatus
+ fperms 755 /usr/sbin/apache2splitlogfile
+
+ # empty dirs
+ for i in /var/lib/dav /var/log/apache2 /var/cache/apache2; do
+ keepdir ${i}
+ fowners apache:apache ${i}
+ fperms 755 ${i}
+ done
+
+ # We'll be needing /etc/apache2/ssl if USE=ssl
+ useq ssl && keepdir /etc/apache2/ssl
+
+}
+
+pkg_postinst() {
+ # setup apache user and group
+ # we do this twice for binary packages
+ enewgroup apache 81
+ enewuser apache 81 -1 /var/www apache
+
+ # Automatically generate test ceritificates if ssl USE flag is being set
+ if useq ssl -a !-e ${ROOT}/etc/apache2/ssl/server.crt; then
+ cd ${ROOT}/etc/apache2/ssl
+ einfo
+ einfo "Generating self-signed test certificate in /etc/apache2/ssl..."
+ yes "" 2>/dev/null | \
+ ${ROOT}/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
+ die "gentestcrt.sh failed"
+ einfo
+ fi
+
+ # Check for dual/upgrade install
+ if has_version '=net-www/apache-1*' || ! use apache2 ; then
+ ewarn
+ ewarn "Please add the 'apache2' flag to your USE variable and (re)install"
+ ewarn "any additional DSO modules you may wish to use with Apache-2.x."
+ ewarn "Addon modules are configured in /etc/apache2/modules.d/"
+ ewarn
+ fi
+
+ # Check for obsolete symlinks
+ local list=""
+ for i in lib logs modules extramodules; do
+ local d="/etc/apache2/${i}"
+ [ -s "${d}" ] && list="${list} ${d}"
+ done
+ [ -n "${list}" ] && einfo "You should delete these old symlinks: ${list}"
+
+ if has_version '<net-www/apache-2.0.54-r30' && has_version '>=net-www/apache-2.0.0' ; then
+ einfo "Configuration locations have changed, you will need to migrate"
+ einfo "your configuration from /etc/apache2/conf/apache2.conf and"
+ einfo "/etc/apache2/conf/commonapache2.conf to /etc/apache2/httpd.conf."
+ einfo
+ einfo "Apache now checks for the old configuration and refuses to start"
+ einfo "if it exists. You must remove the old configuration first"
+ einfo
+ einfo "You should also at this time rebuild all your modules"
+ einfo
+ einfo "For more information, see"
+ einfo " http://www.gentoo.org/doc/en/apache-upgrading.xml"
+ einfo
+ fi
+
+ big_fat_warnings
+}
+
+setup_apache_vars() {
+ # actually we do not provide a very dynamic way of those vars
+ # however, you may predefine them in shell before emerging
+ # to override the official default locations
+
+ # standard location for Gentoo Linux
+ DATADIR="${DATADIR:-/var/www/localhost}"
+ USERDIR="${USERDIR:-public_html}"
+
+ einfo "DATADIR is set to: ${DATADIR}"
+ einfo "USERDIR is set to: ${USERDIR}"
+}
+
+mpm_die() {
+ eerror "You attempted to specify the MPM $1, but MPM $2 was already specified."
+ eerror "The apache ebuilds no longer support multiple MPM installations. Please choose"
+ eerror "one MPM and reinstall."
+ die "More than one MPM was specified."
+}
+
+try_mpm() {
+ local nmpm=$1
+
+ if [ -z "${nmpm}" ]; then
+ die "mpm to try not specified!"
+ fi
+
+ if [ "x${mpm}" != "x" -a "x${mpm}" != "x${nmpm}" ]; then
+ mpm_die ${nmpm} ${mpm}
+ fi
+
+ mpm="${nmpm}"
+}
+
+select_mpms() {
+ useq mpm-prefork && try_mpm prefork
+ useq mpm-worker && try_mpm worker
+ useq mpm-peruser && try_mpm peruser
+ useq mpm-threadpool && try_mpm threadpool
+ useq mpm-leader && try_mpm leader
+
+ if [ "x${mpm}" = "x" ]; then
+ if useq threads; then
+ einfo "Threads specified without a mpm-specification, using mpm-worker."
+ mpm="worker"
+ else
+ einfo "No MPM style was specified, defaulting to mpm-prefork."
+ mpm="prefork"
+ fi
+ fi
+}
+
+parse_modules_config() {
+ local name=""
+ local disable=""
+ [ -f ${1} ] || return 1
+
+ for i in `cat $1 | 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" ] || useq static-modules; 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 "${1} options:\n${MY_BUILTINS}"
+}
+
+select_modules_config() {
+ parse_modules_config /etc/apache2/apache2-builtin-mods || \
+ parse_modules_config ${GENTOO_PATCHDIR}/conf/apache2-builtin-mods || \
+ return 1
+}
+
+# vim:ts=4
diff --git a/net-www/apache/files/digest-apache-2.0.55-r2 b/net-www/apache/files/digest-apache-2.0.55-r2
new file mode 100644
index 000000000000..85f400a5b557
--- /dev/null
+++ b/net-www/apache/files/digest-apache-2.0.55-r2
@@ -0,0 +1,6 @@
+MD5 ca4c88f55c2dab9ec3ef24fe2010b33e gentoo-apache-2.0.55-r2-20060331.tar.bz2 51427
+RMD160 b0e86eff63f8fa98edcea14fccb583eb44615f6d gentoo-apache-2.0.55-r2-20060331.tar.bz2 51427
+SHA256 be37642bd1425bde8ae47bb968b015bb310c131f7ec91379841faef969a717ea gentoo-apache-2.0.55-r2-20060331.tar.bz2 51427
+MD5 f1b5b65c8661db9ffe38b5a4a865a0e2 httpd-2.0.55.tar.bz2 4745220
+RMD160 04749dcf9ea369152eddf9422e49bc0a77a443eb httpd-2.0.55.tar.bz2 4745220
+SHA256 764d12f9f3ca1b01218077681a9c08b43bc8239079ec7c2ca99c8a7fa47d3652 httpd-2.0.55.tar.bz2 4745220