summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www')
-rw-r--r--net-www/apache/ChangeLog9
-rw-r--r--net-www/apache/Manifest20
-rw-r--r--net-www/apache/apache-1.3.33-r10.ebuild308
-rw-r--r--net-www/apache/apache-1.3.33-r5.ebuild252
-rw-r--r--net-www/apache/files/digest-apache-1.3.33-r104
-rw-r--r--net-www/apache/files/digest-apache-1.3.33-r53
6 files changed, 587 insertions, 9 deletions
diff --git a/net-www/apache/ChangeLog b/net-www/apache/ChangeLog
index d00e24744fe7..3bab8bf346ca 100644
--- a/net-www/apache/ChangeLog
+++ b/net-www/apache/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-www/apache
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.387 2005/07/11 20:20:14 hardave Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.388 2005/07/12 03:58:26 vericgar Exp $
+
+*apache-1.3.33-r10 (12 Jul 2005)
+*apache-1.3.33-r5 (12 Jul 2005)
+
+ 12 Jul 2005; Michael Stewart <vericgar@gentoo.org>
+ +apache-1.3.33-r5.ebuild, +apache-1.3.33-r10.ebuild:
+ Support systems that don't use PAM, fixes bug 75922
11 Jul 2005; Hardave Riar <hardave@gentoo.org> apache-2.0.54-r8.ebuild:
Stable on mips, bug #98358.
diff --git a/net-www/apache/Manifest b/net-www/apache/Manifest
index 3a01b5332919..95101c4d3770 100644
--- a/net-www/apache/Manifest
+++ b/net-www/apache/Manifest
@@ -1,4 +1,4 @@
-MD5 99f61858fdfdc683d59a1b4b530ec845 ChangeLog 65295
+MD5 36e24c6d930211fdb9cda10e8e73b8f9 ChangeLog 65524
MD5 b56779cb8460b101ad6912c8f45ff583 apache-1.3.29-r2.ebuild 7237
MD5 3e32afd7bbab740bdce0fc0cf45d5be3 apache-1.3.31-r1.ebuild 6816
MD5 a448a0e7566f85098cf55c54e4c6621f apache-1.3.31-r2.ebuild 6941
@@ -16,13 +16,15 @@ MD5 e89db5b90b1db0adeb25fc77840d4e4d apache-2.0.51-r1.ebuild 12864
MD5 ef3bd6fff8727f55a996d2ab32ee3f88 apache-2.0.51.ebuild 12855
MD5 2fd63d87bf209b47757a0267f98e914a apache-2.0.52-r1.ebuild 13208
MD5 996748170bc5ec8a2c230f8df8cff2f9 apache-2.0.52-r2.ebuild 12318
+MD5 b00063e0761934bb0da5cbf885b4b22d apache-2.0.54-r11.ebuild 12838
MD5 7ad73fb027e9bc2dcda86b448a76450d apache-2.0.52.ebuild 12887
+MD5 ae2dd998c7e6ad0550793ae3266e3f59 apache-2.0.54-r8.ebuild 12524
+MD5 ffd5d49ee6bef0486d4585d30c87776f apache-2.0.54-r12.ebuild 12840
MD5 87a8485d6da12611957ee2b4748ac201 apache-2.0.54-r10.ebuild 12840
-MD5 b00063e0761934bb0da5cbf885b4b22d apache-2.0.54-r11.ebuild 12838
-MD5 37f5ed6f2423381241b029e6685bcdd2 metadata.xml 493
MD5 4003f8561ac1d6abec33916647691263 apache-2.0.54-r7.ebuild 12518
-MD5 ffd5d49ee6bef0486d4585d30c87776f apache-2.0.54-r12.ebuild 12840
-MD5 ae2dd998c7e6ad0550793ae3266e3f59 apache-2.0.54-r8.ebuild 12524
+MD5 37ddd05acace2c33dc5591df77459542 apache-1.3.33-r10.ebuild 8695
+MD5 1b8e233a938a9f6b77c79f11be73bf9f apache-1.3.33-r5.ebuild 7104
+MD5 37f5ed6f2423381241b029e6685bcdd2 metadata.xml 493
MD5 8b12871dd74fcd3f4fdf451c9d8c259e files/00_apache_manual.conf 781
MD5 998b4b7df08eb15641e0b9132443b365 files/apache-1.3.27-apachectl.patch 1328
MD5 37d2c4ea8e1a6725deaca42b6aa22c69 files/apache-1.3.27_db4_gentoo.patch 1006
@@ -57,8 +59,12 @@ MD5 0eb9067bb4f2c2495069deaa9d7fce1b files/digest-apache-2.0.51-r1 140
MD5 baf37cd1bc61f76ac73edd301f52decb files/digest-apache-2.0.52 201
MD5 44fc8ddc9a05a056d8a08e6d843c997c files/digest-apache-2.0.52-r1 204
MD5 710e7291039a6cba132568e32daede8a files/digest-apache-2.0.52-r2 213
-MD5 f0386414da0ae14678d2875eb947d99d files/digest-apache-2.0.54-r10 151
MD5 326a59d4f3d30e34f7b61550f9466328 files/digest-apache-2.0.54-r11 151
+MD5 eb8a02a66654924ac00333c33066c8a5 files/digest-apache-2.0.54-r8 214
+MD5 73e93ac0164ffdfa564b6711a9ddd1bd files/digest-apache-2.0.54-r12 151
+MD5 b75d2bfc008916e050f1bafb8a04c944 files/digest-apache-1.3.33-r5 221
+MD5 ab172ba6840ad9da49c124113381084b files/digest-apache-1.3.33-r10 287
+MD5 f0386414da0ae14678d2875eb947d99d files/digest-apache-2.0.54-r10 151
MD5 4f6de1cd192882313d41650cf23eb26a files/digest-apache-2.0.54-r7 214
MD5 b9ff3534313dae1b8ac96df0e3e01373 files/httpd-2.0.48-ipv6.patch 865
MD5 d52999376f67a872ee48cbae72db0160 files/httpd-2.0.49-cgi.patch 10319
@@ -66,8 +72,6 @@ MD5 8cb4313e58d7bd5dc369eb92f75daa2b files/httpd-2.0.49-ipv6.patch 788
MD5 59a6ba7dcde461f5350af41e6aff92b1 files/robots.txt 342
MD5 d3626a1e31a675c60d066c111d552adf files/suexec.pam 59
MD5 161245c7aa1eb785db53b34d6a10be43 files/suexec_pam_gentoo.patch 2149
-MD5 73e93ac0164ffdfa564b6711a9ddd1bd files/digest-apache-2.0.54-r12 151
-MD5 eb8a02a66654924ac00333c33066c8a5 files/digest-apache-2.0.54-r8 214
MD5 3d94c56af17136b6c408f076c32e0362 files/2.0.49/40_mod_ssl.conf 3213
MD5 1d10cc98714a34ddc38525743c2989f9 files/2.0.49/41_mod_ssl.default-vhost.conf 8053
MD5 819ee444395cf42ccc8009529a94af37 files/2.0.49/45_mod_dav.conf 583
diff --git a/net-www/apache/apache-1.3.33-r10.ebuild b/net-www/apache/apache-1.3.33-r10.ebuild
new file mode 100644
index 000000000000..1450917aeeb2
--- /dev/null
+++ b/net-www/apache/apache-1.3.33-r10.ebuild
@@ -0,0 +1,308 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-1.3.33-r10.ebuild,v 1.1 2005/07/12 03:58:27 vericgar Exp $
+
+inherit eutils fixheadtails
+
+# latest gentoo apache files
+GENTOO_PATCHNAME="gentoo-apache-${PVR}"
+GENTOO_PATCHSTAMP="20050711"
+GENTOO_DEVSPACE="vericgar"
+GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}"
+
+# The mod_ssl archive is only for providing the EAPI patch in here.
+# You should install the net-www/mod_ssl package for the actual DSO.
+mod_ssl_ver=2.8.22
+lingerd_ver=0.94
+
+DESCRIPTION="The Apache Web Server"
+HOMEPAGE="http://httpd.apache.org"
+SRC_URI="mirror://apache/httpd/apache_${PV}.tar.gz
+ ssl? ( ftp://ftp.modssl.org/source/mod_ssl-${mod_ssl_ver}-${PV}.tar.gz )
+ lingerd? ( http://images.iagora.com/media/software/lingerd/lingerd-${lingerd_ver}.tar.gz )
+ http://dev.gentoo.org/~${GENTOO_DEVSPACE}/dist/apache/${GENTOO_PATCHNAME}-${GENTOO_PATCHSTAMP}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ia64 ~mips ~ppc64"
+IUSE="doc ssl pam lingerd no-suexec static-modules apache2 selinux"
+
+DEPEND="dev-lang/perl
+ >=sys-libs/db-1.85-r1
+ >=dev-libs/mm-1.1.3
+ >=sys-libs/gdbm-1.8
+ >=dev-libs/expat-1.95.2
+ net-www/gentoo-webroot-default
+ app-misc/mime-types
+ selinux? ( sec-policy/selinux-apache )
+ lingerd? ( =net-www/lingerd-${lingerd_ver} )"
+
+# so leave it out until it's available
+PDEPEND="ssl? ( =net-www/mod_ssl-${mod_ssl_ver}-r1 )"
+
+S=${WORKDIR}/${PN}_${PV}
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${S} || die
+
+ EPATCH_SUFFIX="patch"
+ epatch ${GENTOO_PATCHDIR}/patches/[0-2]*
+
+ # setup the filesystem layout config
+ cat ${GENTOO_PATCHDIR}/patches/config.layout >> config.layout
+ sed -i -e 's:version:${PF}:g' config.layout
+
+ if useq pam; then
+ epatch ${GENTOO_PATCHDIR}/patches/31_all_gentoo_suexec_pam.patch || die "pam patch failed"
+ fi
+
+ # fix obsolete 'head -1' and 'tail -1' calls
+ ht_fix_file src/Configure src/helpers/getuid.sh src/helpers/buildinfo.sh src/helpers/fmn.sh
+
+ # setup mod_ssl eapi
+ if useq ssl; then
+ local myssl
+ myssl=${WORKDIR}/mod_ssl-${mod_ssl_ver}-${PV}
+ cp ${myssl}/pkg.eapi/*.h src/include
+ cp ${myssl}/pkg.eapi/*.c src/ap
+ epatch ${myssl}/pkg.eapi/eapi.patch || die "failed to setup mod_ssl eapi"
+ fi
+
+ # set a reasonable MM_CORE_PATH location..
+ sed -i -e 's:logs/mm:/var/cache/apache-mm/mm:' src/include/httpd.h
+
+ if useq lingerd; then
+ local mylingerd=${WORKDIR}/lingerd-${lingerd_ver}
+ cp ${mylingerd}/apache-1.3/ap_lingerd.c ${mylingerd}/li_config.h src/main
+ cd src
+ if useq ssl; then
+ epatch ${mylingerd}/apache-1.3/aplinger-ssl.diff
+ else
+ epatch ${mylingerd}/apache-1.3/aplinger.diff
+ fi
+ cd ..
+ fi
+}
+
+src_compile() {
+ local myconf
+
+ setup_apache_vars
+
+ select_modules_config || die "determining modules"
+
+ if ! useq no-suexec; then
+ myconf="${myconf}
+ --enable-suexec
+ --suexec-uidmin=1000 \
+ --suexec-gidmin=100 \
+ --suexec-caller=apache \
+ --suexec-userdir=public_html \
+ --suexec-docroot=/var/www \
+ --suexec-safepath="/usr/local/bin:/usr/bin:/bin" \
+ --suexec-logfile=/var/log/apache/suexec_log"
+ fi
+
+ if useq ssl; then
+ myconf="${myconf} --enable-rule=EAPI"
+ fi
+
+ OPTIM="${MY_CFLAGS} -DHARD_SERVER_LIMIT=${HARD_SERVER_LIMIT:=512} \
+ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
+ LIBS="-ldb -lgdbm -lgdbm_compat -lpthread" \
+ EAPI_MM=SYSTEM \
+ ./configure \
+ --with-layout=Gentoo \
+ --target=apache \
+ --server-uid=apache \
+ --server-gid=apache \
+ --with-perl=/usr/bin/perl \
+ --enable-rule=SHARED_CHAIN \
+ ${MY_BUILTINS} ${myconf} || die "bad ./configure please submit bug report to bugs.gentoo.org. Include your config.layout and config.log"
+
+ emake || die "problem compiling apache"
+
+ # build ssl version of apache bench (ab-ssl)
+ if useq ssl; then
+ cd src/support
+ rm -f ab ab.o
+ make ab CFLAGS="${CFLAGS} -DUSE_SSL -lcrypto -lssl -I/usr/include/openssl -L/usr/lib" || die
+ mv ab ab-ssl
+ rm -f ab.o
+ make ab || die
+ fi
+}
+
+src_install() {
+ # setup apache user and group
+ enewgroup apache 81
+ enewuser apache 81 /bin/false /var/www apache
+
+ # general install
+ make install-quiet root=${D} || die
+ dodoc ABOUT_APACHE Announcement INSTALL 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/lib /usr/lib/apache/lib
+ dosym /var/log/apache /usr/lib/apache/logs
+ dosym /etc/apache /usr/lib/apache/conf
+
+ # nice support scripts
+ exeinto /usr/sbin
+ for i in apachelogserverstatus apachesplitlogfile; do
+ doexe ${GENTOO_PATCHDIR}/scripts/${i}
+ done
+
+ # some more scripts
+ for i in split-logfile logresolve.pl log_server_status; do
+ doexe ${S}/src/support/${i}
+ done
+
+ # the ssl version of apache bench
+ if useq ssl; then
+ doexe src/support/ab-ssl
+ fi
+
+ # drop in a convenient link to the manual
+ if useq doc; then
+ insinto /etc/apache/modules.d
+ doins ${GENTOO_PATCHDIR}/conf/modules.d/00_apache_manual.conf
+ sed -i -e "s:1.3.32:${PVR}:" ${D}/etc/apache/modules.d/00_apache_manual.conf
+ else
+ rm -rf ${D}/usr/share/doc/${PF}/manual
+ fi
+
+ # tidy up
+ cd ${D}
+ dodoc etc/apache/*.default
+ rm -f etc/apache/*.default
+ rm -f etc/apache/*.conf
+ rm -f etc/apache/mime.types
+
+ # we DEPEND on net-www/gentoo-webroot-default for sharing this by now
+ rm -rf var/www/localhost
+
+ # config files
+ insinto /etc/conf.d
+ newins ${GENTOO_PATCHDIR}/init/apache.confd apache
+
+ exeinto /etc/init.d
+ newexe ${GENTOO_PATCHDIR}/init/apache.initd apache
+
+ insinto /etc/apache
+ doins ${GENTOO_PATCHDIR}/conf/apache-builtin-mods
+ doins ${GENTOO_PATCHDIR}/conf/httpd.conf
+
+ keepdir /etc/apache/vhosts.d
+ keepdir /etc/apache/modules.d
+
+ # Added by Jason Wever <weeve@gentoo.org>
+ # A little sedfu to fix bug #7172 for sparc64s
+ if [ ${ARCH} = "sparc" ]; then
+ sed -i -e '15a\AcceptMutex fcntl' ${D}/etc/apache/httpd.conf
+ fi
+
+ if useq lingerd; then
+ sed -i 's:\(need net.*\):\1 lingerd:g' ${D}/etc/init.d/apache
+ fi
+
+ if useq pam; then
+ insinto /etc/pam.d
+ newins ${GENTOO_PATCHDIR}/patches/suexec.pam suexec
+ fi
+
+ # empty dirs
+ for i in /var/log/apache /var/cache/apache /var/cache/apache-mm; do
+ keepdir ${i}
+ fowners apache:apache ${i}
+ fperms 755 ${i}
+ done
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please remember to update your config files in /etc/apache"
+ einfo "as --datadir has been changed to ${DATADIR}, and ServerRoot"
+ einfo "has changed to /usr/lib/apache!"
+ einfo
+
+ # Check for obsolete symlinks
+ local list=""
+ for i in lib logs modules extramodules; do
+ local d="/etc/apache/${i}"
+ [ -s "${d}" ] && list="${list} ${d}"
+ done
+ [ -n "${list}" ] && einfo "You should delete these old symlinks: ${list}"
+
+ if has_version '<net-www/apache-1.3.33-r1' ; then
+ einfo "Configuration locations have changed, you will need to migrate"
+ einfo "your configuration from /etc/apache/conf/apache.conf and"
+ einfo "/etc/apache/conf/commonapache.conf to /etc/apache/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 "For more information, see"
+ einfo " http://dev.gentoo.org/~vericgar/doc/apache-package-refresh.html"
+ einfo
+ fi
+
+ if use apache2 ; then
+ ewarn "You have apache2 in USE. Any modules that you"
+ ewarn "install may depend on apache-2.* instead of"
+ ewarn "apache-1*. It's recommended that you remove"
+ ewarn "apache2 from USE."
+ fi
+
+
+}
+
+setup_apache_vars() {
+ MY_CFLAGS="${CFLAGS}"
+ unset CFLAGS
+ unset CXXFLAGS
+
+ # standard location for Gentoo Linux
+ DATADIR="${DATADIR:-/var/www/localhost}"
+ einfo "DATADIR is set to: ${DATADIR}"
+}
+
+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-module=$name"
+ name="" ; disable=""
+ elif [ $i == "static" ] || useq static-modules; then
+ MY_BUILTINS="${MY_BUILTINS} --enable-module=$name --disable-shared=$name"
+ name="" ; disable=""
+ elif [ $i == "shared" ]; then
+ MY_BUILTINS="${MY_BUILTINS} --enable-module=$name --enable-shared=$name"
+ name="" ; disable=""
+ fi
+ done
+
+ einfo "${1} options:\n${MY_BUILTINS}"
+}
+
+select_modules_config() {
+ parse_modules_config /etc/apache/apache-builtin-mods || \
+ parse_modules_config ${GENTOO_PATCHDIR}/conf/apache-builtin-mods || \
+ return 1
+}
+
+# vim:ts=4
diff --git a/net-www/apache/apache-1.3.33-r5.ebuild b/net-www/apache/apache-1.3.33-r5.ebuild
new file mode 100644
index 000000000000..9936c07ba428
--- /dev/null
+++ b/net-www/apache/apache-1.3.33-r5.ebuild
@@ -0,0 +1,252 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/apache/apache-1.3.33-r5.ebuild,v 1.1 2005/07/12 03:58:27 vericgar Exp $
+
+# Gentoo ARCH teams
+#
+# Do NOT mark this ebuild as stable unless the corresponding mod_ssl package
+# can also be marked as stable on your arch.
+#
+# Thanks,
+# stuart@gentoo.org
+
+inherit eutils fixheadtails
+
+IUSE="pam ssl selinux"
+
+mod_ssl_dep=2.8.22
+mod_ssl_ver=2.8.22-1.3.33
+
+S=${WORKDIR}/${PN}_${PV}
+DESCRIPTION="The Apache Web Server"
+HOMEPAGE="http://www.apache.org http://www.modssl.org"
+KEYWORDS="~alpha amd64 hppa ia64 ~mips ~ppc ppc64 sparc x86"
+SRC_URI="mirror://apache/httpd/apache_${PV}.tar.gz
+ ftp://ftp.modssl.org/source/mod_ssl-${mod_ssl_ver}.tar.gz
+ http://dev.gentoo.org/~vericgar/dist/apache/old/apache-patches-1.3.33-20050711.tar.bz2"
+
+
+# The mod_ssl archive is only for providing the EAPI patch in here.
+# You should install the net-www/mod_ssl package for the actual DSO.
+
+DEPEND="dev-lang/perl
+ <=sys-libs/db-4.1
+ >=dev-libs/mm-1.1.3
+ >=sys-libs/gdbm-1.8
+ >=dev-libs/expat-1.95.2
+ =sys-libs/db-1*
+ selinux? ( sec-policy/selinux-apache )
+ !dev-libs/apr
+ !dev-libs/apr-util"
+
+PDEPEND="ssl? ( =net-www/mod_ssl-${mod_ssl_dep} )"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+
+#Standard location for Gentoo Linux
+DATADIR="/var/www/localhost"
+
+src_unpack() {
+ local myssl
+ unpack ${A} || die
+ cd ${S} || die
+
+ EPATCH_SUFFIX="patch"
+ epatch ${WORKDIR}/apache-patches-1.3.33/[0-2]* || die
+
+ if useq pam; then
+ epatch ${WORKDIR}/apache-patches-1.3.33/31_all_gentoo_suexec_pam.patch || die "pam patch failed"
+ fi
+
+ #Obsolete 'head -1' and 'tail -1' calls.
+ ht_fix_file src/Configure src/helpers/getuid.sh \
+ src/helpers/fmn.sh src/helpers/buildinfo.sh
+
+ # setup eapi...
+ myssl=${WORKDIR}/mod_ssl-${mod_ssl_ver}
+ cp ${myssl}/pkg.eapi/*.h src/include
+ cp ${myssl}/pkg.eapi/*.c src/ap
+ epatch ${myssl}/pkg.eapi/eapi.patch || die "eapi"
+
+ # set a reasonable MM_CORE_PATH location..
+ sed -i -e 's:logs/mm:/var/cache/apache-mm/mm:' \
+ src/include/httpd.h
+}
+
+src_compile() {
+ local myconf mycflags
+ mycflags="${CFLAGS}"
+ unset CFLAGS ; unset CXXFLAGS
+
+ select_modules_config || die "determining modules"
+
+ #-DBUFFERED_LOGS
+ OPTIM="${mycflags} -DHARD_SERVER_LIMIT=${HARD_SERVER_LIMIT:=512} \
+ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
+ LIBS="-ldb -lgdbm -lgdbm_compat -lpthread" \
+ EAPI_MM=SYSTEM \
+ ./configure \
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --libexecdir=/usr/lib/apache \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc/apache/conf \
+ --datadir=${DATADIR} \
+ --cgidir=${DATADIR}/cgi-bin \
+ --iconsdir=${DATADIR}/icons \
+ --htdocsdir=${DATADIR}/htdocs \
+ --manualdir=/usr/share/doc/${PF}/manual \
+ --includedir=/usr/include/apache \
+ --localstatedir=/var \
+ --runtimedir=/var/run \
+ --logfiledir=/var/log/apache \
+ --proxycachedir=/var/cache/apache \
+ --serverroot=/etc/apache \
+ --target=apache \
+ --server-uid=apache \
+ --server-gid=apache \
+ --with-perl=/usr/bin/perl \
+ --enable-rule=EAPI \
+ --enable-rule=SHARED_CHAIN \
+ ${MY_BUILTINS} \
+ --enable-suexec \
+ --suexec-uidmin=1000 \
+ --suexec-gidmin=100 \
+ --suexec-caller=apache \
+ --suexec-userdir=public_html \
+ --suexec-docroot=/var/www \
+ --suexec-safepath="/bin:/usr/bin" \
+ --suexec-logfile=/var/log/apache/suexec_log \
+ \
+ ${myconf} || die "bad ./configure"
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ local myfile
+
+ GID=`id -g apache`
+ if [ -z "${GID}" ]; then
+ einfo "Using default GID of 81 for Apache"
+ GID=81
+ fi
+
+ make install-quiet root=${D} || die
+ dodoc ABOUT_APACHE Announcement INSTALL* LICENSE* README* WARNING* \
+ ${FILESDIR}/robots.txt
+
+ #protect the suexec binary
+ fowners root:${GID} /usr/sbin/suexec
+ fperms 4710 /usr/sbin/suexec
+
+ # nice support scripts..
+ for myfile in apacheaddmod apachedelmod \
+ apachelogserverstatus apachesplitlogfile
+ do
+ exeinto /usr/sbin
+ doexe ${FILESDIR}/$myfile
+ done
+
+ # setup links in /etc/apache..
+ cd ${D}/etc/apache
+ ln -sf ../../usr/lib/apache modules
+ # apxs needs this to pickup the right lib for install..
+ ln -sf ../../usr/lib lib
+ ln -sf ../../var/log/apache logs
+ ln -sf ../../usr/lib/apache-extramodules extramodules
+
+ # drop in a convenient link to the manual
+ dosym /usr/share/doc/${PF}/manual ${DATADIR}/htdocs/manual
+
+ # deprecated config files, empty dirs..
+ rm -f ${D}/etc/apache/conf/apache.conf.default
+ rm -f ${D}/etc/apache/conf/access.conf*
+ rm -f ${D}/etc/apache/conf/srm.conf*
+
+ # now the config files..
+ insinto /etc/apache/conf
+ doins ${FILESDIR}/conf/commonapache.conf
+ doins ${FILESDIR}/conf/apache.conf
+
+ # Added by Jason Wever <weeve@gentoo.org>
+ # A little sedfu to fix bug #7172 for sparc64s
+ if [ ${ARCH} = "sparc" ]
+ then
+ sed -i -e '15a\AcceptMutex fcntl' \
+ ${D}/etc/apache/conf/apache.conf
+ fi
+
+ insinto /etc/apache/conf/vhosts
+ doins ${FILESDIR}/conf/VirtualHomePages.conf
+ doins ${FILESDIR}/conf/DynamicVhosts.conf
+ doins ${FILESDIR}/conf/Vhosts.conf
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/apache.rc6 apache
+ insinto /etc/conf.d ; newins ${FILESDIR}/apache.confd apache
+ insinto /etc/apache ; doins ${FILESDIR}/apache-builtin-mods
+
+ if use pam; then
+ insinto /etc/pam.d ; newins ${FILESDIR}/suexec.pam suexec
+ fi
+
+ #empty dirs
+ keepdir /var/cache/apache /var/cache/apache-mm /usr/lib/apache-extramodules /etc/apache/conf/addon-modules /var/log/apache
+}
+
+pkg_postinst() {
+ # these are in baselayout now; it will not hurt to leave them here though
+ # moved to pkg_postinst by jnelson, moved to pkg_preinst by lostlogic
+ getent group apache >/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ groupadd -g 81 apache || die "problem adding group apache"
+ fi
+
+ # usermod returns 2 on user-exists-but-no-flags-given
+ #usermod apache &>/dev/null
+ #if [ $? != 2 ]; then
+ getent passwd apache >/dev/null 2>&1
+ if [ $? -ne 0 ]; then
+ useradd -u 81 -g apache -s /bin/false -d /var/www/localhost -c "apache" apache
+ assert "problem adding user apache"
+ fi
+
+ einfo
+ einfo "Please remember to update your config files in /etc/apache"
+ einfo "as --datadir has been changed to ${DATADIR}!"
+ einfo
+}
+
+parse_modules_config() {
+ local filename=$1
+ local name=""
+ local dso=""
+ local disable=""
+ [ -f ${filename} ] || return 1
+ einfo "Using ${filename} for builtins."
+ 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-module=$name"
+ name="" ; disable=""
+ elif [ $i == "static" ] ; then
+ MY_BUILTINS="${MY_BUILTINS} --enable-module=$name --disable-shared=$name"
+ name="" ; disable=""
+ elif [ $i == "shared" ] ; then
+ MY_BUILTINS="${MY_BUILTINS} --enable-module=$name --enable-shared=$name"
+ name="" ; disable=""
+ fi
+ done
+}
+
+select_modules_config() {
+ parse_modules_config /etc/apache/apache-builtin-mods || \
+ parse_modules_config ${FILESDIR}/apache-builtin-mods || \
+ return 1
+}
diff --git a/net-www/apache/files/digest-apache-1.3.33-r10 b/net-www/apache/files/digest-apache-1.3.33-r10
new file mode 100644
index 000000000000..8cae3eb1c50f
--- /dev/null
+++ b/net-www/apache/files/digest-apache-1.3.33-r10
@@ -0,0 +1,4 @@
+MD5 3dfd2c3778f37a2dfc22b97417a61407 apache_1.3.33.tar.gz 2468567
+MD5 cdfdf1f576f77768c90825b43b462405 mod_ssl-2.8.22-1.3.33.tar.gz 754606
+MD5 6401015bafad4f44fdf8a9a1795d9258 lingerd-0.94.tar.gz 33938
+MD5 47f30f75b5cfc381fbc87fab1a20c53d gentoo-apache-1.3.33-r10-20050711.tar.bz2 28324
diff --git a/net-www/apache/files/digest-apache-1.3.33-r5 b/net-www/apache/files/digest-apache-1.3.33-r5
new file mode 100644
index 000000000000..9756ebd450c5
--- /dev/null
+++ b/net-www/apache/files/digest-apache-1.3.33-r5
@@ -0,0 +1,3 @@
+MD5 3dfd2c3778f37a2dfc22b97417a61407 apache_1.3.33.tar.gz 2468567
+MD5 cdfdf1f576f77768c90825b43b462405 mod_ssl-2.8.22-1.3.33.tar.gz 754606
+MD5 e27f09389d8b8b8c5a75816d98329a72 apache-patches-1.3.33-20050711.tar.bz2 14272