diff options
author | Michael Stewart <vericgar@gentoo.org> | 2006-05-16 02:51:48 +0000 |
---|---|---|
committer | Michael Stewart <vericgar@gentoo.org> | 2006-05-16 02:51:48 +0000 |
commit | 7d6de916e90f211ffe471580e83439baed854c7e (patch) | |
tree | 36f2b8d88089f879d08b4e57e19f7f8fbdbdb66a /net-www | |
parent | Fix issues with dri and missing assert.h. (Bug #130320, Bill Krueger) (diff) | |
download | historical-7d6de916e90f211ffe471580e83439baed854c7e.tar.gz historical-7d6de916e90f211ffe471580e83439baed854c7e.tar.bz2 historical-7d6de916e90f211ffe471580e83439baed854c7e.zip |
Version Bump. Resynced the configuration with upstream. Reworked /var/www/localhost handling and removed dependency on gentoo-webroot-default. Updated mpm-peruser to 0.2.0. This fixes several bugs: 90748, 105778, 107299, 110864, 117106, 124857, 125244, 130078, 132669
Package-Manager: portage-2.1_pre10-r5
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/apache/ChangeLog | 10 | ||||
-rw-r--r-- | net-www/apache/Manifest | 17 | ||||
-rw-r--r-- | net-www/apache/apache-2.0.58.ebuild | 449 | ||||
-rw-r--r-- | net-www/apache/files/digest-apache-2.0.58 | 6 |
4 files changed, 477 insertions, 5 deletions
diff --git a/net-www/apache/ChangeLog b/net-www/apache/ChangeLog index cf8429f3dac8..49f184d9a2fb 100644 --- a/net-www/apache/ChangeLog +++ b/net-www/apache/ChangeLog @@ -1,6 +1,14 @@ # 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.474 2006/04/27 22:20:37 antarus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-www/apache/ChangeLog,v 1.475 2006/05/16 02:51:48 vericgar Exp $ + +*apache-2.0.58 (16 May 2006) + + 16 May 2006; Michael Stewart <vericgar@gentoo.org> +apache-2.0.58.ebuild: + Version Bump. Resynced the configuration with upstream. Reworked + /var/www/localhost handling and removed dependency on + gentoo-webroot-default. Updated mpm-peruser to 0.2.0. This fixes several + bugs: 90748, 105778, 107299, 110864, 117106, 124857, 125244, 130078, 132669 27 Apr 2006; Alec Warner <antarus@gentoo.org> Manifest: Fixing SHA256 digest, pass four diff --git a/net-www/apache/Manifest b/net-www/apache/Manifest index e794aac9fdc8..6857b69f2800 100644 --- a/net-www/apache/Manifest +++ b/net-www/apache/Manifest @@ -183,10 +183,12 @@ DIST gentoo-apache-2.0.54-r31-20050918-02.tar.bz2 52990 RMD160 bc85ac9de56e017c0 DIST gentoo-apache-2.0.55-20051023.tar.bz2 51148 RMD160 ceca9fdc0adc8b249a35b435286245dd64e221c5 SHA256 9fcd2a6dc2e46e040cc55a8a66b37d08e27b46178914816c073ef3ec70c6f02e size 51148 DIST gentoo-apache-2.0.55-r1-20060115.tar.bz2 51735 RMD160 18902966bdce2cbe67ba15b6eb66e311657a8d6d SHA256 712fb5e292e87bdad0de984085837b5bb974ab57447e5e28356d0041cbb404e3 size 51735 DIST gentoo-apache-2.0.55-r2-20060331.tar.bz2 51427 RMD160 b0e86eff63f8fa98edcea14fccb583eb44615f6d SHA256 be37642bd1425bde8ae47bb968b015bb310c131f7ec91379841faef969a717ea size 51427 +DIST gentoo-apache-2.0.58-20060515.tar.bz2 51174 RMD160 e029caa8107e37b66999935d6c1e9ed2e95351f0 SHA256 3d11702d3fd6b5c143b1c238e9b4a0d4bed2b3c4b9834efa6a3436cca492c0e5 size 51174 DIST gentoo-apache-2.2.0-r1-20060227.tar.bz2 27114 RMD160 f51361add210ec0e3737c77c3b81e6b8657e3acb SHA256 89096d554838016e282b1374ea02719389f0b04a9b92bbded5cd2e5f5bcc816f size 27114 DIST gentoo-apache-2.2.0-r2-20060306.tar.bz2 48730 RMD160 adee915809097479cd0ed03012194351b7218732 SHA256 c6e054757a04d6d81b16e32caa2e88f9e9a61a68c560aa83654624b7c2fce068 size 48730 DIST httpd-2.0.54.tar.bz2 5566979 RMD160 c511cb2fa396ba04caf77bfc6ca03413df48ea08 SHA256 55a3d1c3fc4ff5ed5a4c4a20050ab68d98a10b2ab7d52f02a485da1a0fb060e3 size 5566979 DIST httpd-2.0.55.tar.bz2 4745220 RMD160 04749dcf9ea369152eddf9422e49bc0a77a443eb SHA256 764d12f9f3ca1b01218077681a9c08b43bc8239079ec7c2ca99c8a7fa47d3652 size 4745220 +DIST httpd-2.0.58.tar.bz2 4704318 RMD160 2ff44b2254552db908f1defd09e3142527f9bf83 SHA256 4f746715c408f4cac48099ea72560c50ef190568dfcfa8e0762bae66c0398029 size 4704318 DIST httpd-2.2.0.tar.bz2 4839151 RMD160 7ee7364d24881c68f2d4643089fb996888bba9c0 SHA256 bbf1a452889f9d502840e3b8dda4938b6bd633b94b888ab799ee9aa5845115f7 size 4839151 DIST lingerd-0.94.tar.gz 33938 RMD160 2d7363b763a68c0c7acdadc23779929f4d02153f SHA256 632030f9c1b9e8f817ee19bad74988f3dce7f6ec617677ad5a522e8d491382a0 size 33938 DIST mod_ssl-2.8.21-1.3.32.tar.gz 754629 RMD160 559124e89e51ebb362f2468103f4432439bf5a18 SHA256 1717eb96e9de60a24d73e9616fb7e6bcc9d47891c6e77cb26d4bf529c4382260 size 754629 @@ -256,6 +258,10 @@ EBUILD apache-2.0.55.ebuild 13449 RMD160 7704dd990a9d4edf05af1654fbb9b8ef429f76d MD5 7207a0ceb0c4bc61e8498bf82c7c52ae apache-2.0.55.ebuild 13449 RMD160 7704dd990a9d4edf05af1654fbb9b8ef429f76da apache-2.0.55.ebuild 13449 SHA256 9c43b4130e87cb597b8ecb59c82832d3f8e02e22a815fd69158e303b9458ebec apache-2.0.55.ebuild 13449 +EBUILD apache-2.0.58.ebuild 13685 RMD160 18f40681f7ab37178127a2e13842abd6fc8f973d SHA1 cec834e5d26448af57e089b31f1c755e341d7af2 SHA256 05c53a1de8c683cb45de476f967c04de591af4d3b5cc51c4a9830a1c0484e5a5 size 13685 +MD5 fd155bac9acff5b13ecca277db092d83 apache-2.0.58.ebuild 13685 +RMD160 18f40681f7ab37178127a2e13842abd6fc8f973d apache-2.0.58.ebuild 13685 +SHA256 05c53a1de8c683cb45de476f967c04de591af4d3b5cc51c4a9830a1c0484e5a5 apache-2.0.58.ebuild 13685 EBUILD apache-2.2.0-r1.ebuild 14091 RMD160 6eb4df70a19b8e9ec6d1d310cdacb802c202b935 SHA1 6e9ad59422fa8a96211dc5aed5d448ab7ecee40e SHA256 3d2e0c7caf27ad381daa7facb9a75a4e2a921f38ce89f00565be1992aad33469 size 14091 MD5 82e969f2c714a9142160268a90934609 apache-2.2.0-r1.ebuild 14091 RMD160 6eb4df70a19b8e9ec6d1d310cdacb802c202b935 apache-2.2.0-r1.ebuild 14091 @@ -264,10 +270,10 @@ EBUILD apache-2.2.0-r2.ebuild 14277 RMD160 4745f17a7eb04c6fc778372062234d6cd5863 MD5 7ff21571a31a5d1e6a836875da0ce532 apache-2.2.0-r2.ebuild 14277 RMD160 4745f17a7eb04c6fc778372062234d6cd58639b1 apache-2.2.0-r2.ebuild 14277 SHA256 1839d7f98648811a47fd6cf2cf6d02a5d64b05322a5fb59acdd18a4bbeb7faeb apache-2.2.0-r2.ebuild 14277 -MISC ChangeLog 79274 RMD160 6b3ac2ee6aa3508d80dc0f7ce44704153e8b1fc3 SHA1 3bb4d9078dcac2266fb28f2e6f902c33110821a5 SHA256 4e4e1859894a5adb8c6801931d2adae5c4a99046754e60a05e1707184f75c1fb size 79274 -MD5 faa2485d76d6f7720bf0806f7dc890a6 ChangeLog 79274 -RMD160 6b3ac2ee6aa3508d80dc0f7ce44704153e8b1fc3 ChangeLog 79274 -SHA256 4e4e1859894a5adb8c6801931d2adae5c4a99046754e60a05e1707184f75c1fb ChangeLog 79274 +MISC ChangeLog 79658 RMD160 18b526c75e39204df71c124db4975916294149a1 SHA1 e874dafc43ddb8ef52bb20dd499a1cf640f04f29 SHA256 55388e1c2e59fdd2c53630bdde840744e6c623c0fb24d6c82c79fb238ec98faf size 79658 +MD5 38fa4af0ac23f6d8f042a8c0660a5f0a ChangeLog 79658 +RMD160 18b526c75e39204df71c124db4975916294149a1 ChangeLog 79658 +SHA256 55388e1c2e59fdd2c53630bdde840744e6c623c0fb24d6c82c79fb238ec98faf ChangeLog 79658 MISC metadata.xml 566 RMD160 8aad2cbb313fa91b77c6f4891f8d3483d1460adc SHA1 cfaab8d65125c65cb5c66c37dd200f7b3586baf9 SHA256 9826f38d29b803e954faa6fafffc4d6f197bfcb0e14cc76af891c41081d948e2 size 566 MD5 27c9cb37c510e08bb69df277229a03ea metadata.xml 566 RMD160 8aad2cbb313fa91b77c6f4891f8d3483d1460adc metadata.xml 566 @@ -320,6 +326,9 @@ SHA256 3223af521a47cf5070058b5de2786c9728b3e73edcf66788063d9939c8611c5a files/di 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 94120ca6b923f693aef55ff4e4447af3 files/digest-apache-2.0.58 533 +RMD160 f6edd42fab09e51d82ed4c7b3c774e0d5ededece files/digest-apache-2.0.58 533 +SHA256 8c8a5e62f68298c10276419f3a8f791a600110fa2f0645495aa47eaa609a84a8 files/digest-apache-2.0.58 533 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 diff --git a/net-www/apache/apache-2.0.58.ebuild b/net-www/apache/apache-2.0.58.ebuild new file mode 100644 index 000000000000..6a23b4eb48fe --- /dev/null +++ b/net-www/apache/apache-2.0.58.ebuild @@ -0,0 +1,449 @@ +# 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.58.ebuild,v 1.1 2006/05/16 02:51:48 vericgar Exp $ + +inherit eutils gnuconfig multilib + +# latest gentoo apache files +GENTOO_PATCHNAME="gentoo-apache-${PVR}" +GENTOO_PATCHSTAMP="20060515" +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 ~x86-fbsd" +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.12 + ~dev-libs/apr-util-0.9.12 + dev-libs/expat + 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 + +} + +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() { + # 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 + USERDIR="${USERDIR:-public_html}" + + einfo "USERDIR is set to: ${USERDIR}" + + select_mpms + + # 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}" + useq ssl || myconf="${myconf} --disable-ssl" + + # 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 +} + +pkg_preinst() { + # setup apache user and group + enewgroup apache 81 + enewuser apache 81 -1 /var/www apache +} + +src_install () { + # 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 + + # the default webroot gets stored in /usr/share/doc + einfo "Installing default webroot to /usr/share/doc/${PF}" + mv ${D}/var/www/localhost ${D}/usr/share/doc/${PF}/webroot + + # 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 + + # we do this here because the default webroot is a copy of the files + # that exist elsewhere and we don't want them managed/removed by portage + # when apache is upgraded. + if [ -e "${ROOT}/var/www/localhost" ]; then + einfo "The default webroot has not been installed into" + einfo "${ROOT}/var/www/localhost because the directory already exists" + einfo "and we do not want to overwrite any files you have put there." + einfo + einfo "If you would like to install the latest webroot, please run" + einfo "emerge --config =${PF}" + else + einfo "Installing default webroot to ${ROOT}/var/www/localhost" + mkdir -p ${ROOT}/var/www/localhost + cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost + chown -R apache: ${ROOT}/var/www/localhost + 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 +} + +pkg_config() { + + einfo "Installing default webroot to ${ROOT}/var/www/localhost" + mkdir -p ${ROOT}/var/www/localhost + cp -r ${ROOT}/usr/share/doc/${PF}/webroot/* ${ROOT}/var/www/localhost + chown -R apache: ${ROOT}/var/www/localhost + +} + +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." +} + +select_mpms() { + + mpm="" + + for trympm in prefork worker peruser threadpool leader; do + if useq mpm-${trympm}; then + if [ "x${mpm}" = "x" ]; then + mpm=${trympm} + else + mpm_die ${trympm} ${mpm} + fi + fi + done + + 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.58 b/net-www/apache/files/digest-apache-2.0.58 new file mode 100644 index 000000000000..814eb92deac5 --- /dev/null +++ b/net-www/apache/files/digest-apache-2.0.58 @@ -0,0 +1,6 @@ +MD5 04066f6949eea2faa7a05d4d3e789ad4 gentoo-apache-2.0.58-20060515.tar.bz2 51174 +RMD160 e029caa8107e37b66999935d6c1e9ed2e95351f0 gentoo-apache-2.0.58-20060515.tar.bz2 51174 +SHA256 3d11702d3fd6b5c143b1c238e9b4a0d4bed2b3c4b9834efa6a3436cca492c0e5 gentoo-apache-2.0.58-20060515.tar.bz2 51174 +MD5 ac732a8b3ec5760baa582888f5dbad66 httpd-2.0.58.tar.bz2 4704318 +RMD160 2ff44b2254552db908f1defd09e3142527f9bf83 httpd-2.0.58.tar.bz2 4704318 +SHA256 4f746715c408f4cac48099ea72560c50ef190568dfcfa8e0762bae66c0398029 httpd-2.0.58.tar.bz2 4704318 |