diff options
author | 2007-08-01 22:42:13 +0000 | |
---|---|---|
committer | 2007-08-01 22:42:13 +0000 | |
commit | dac85752c70c58bdb3e5f76fa29414c98c44b294 (patch) | |
tree | 9918f7e74198e3785b270c8bd9331b5b285509e0 /www-servers/apache | |
parent | Add patch to fix compilation with 2.6.22 kernels. See bug #182597. (diff) | |
download | historical-dac85752c70c58bdb3e5f76fa29414c98c44b294.tar.gz historical-dac85752c70c58bdb3e5f76fa29414c98c44b294.tar.bz2 historical-dac85752c70c58bdb3e5f76fa29414c98c44b294.zip |
fix #183552, #187258, #186475, #187302
Package-Manager: portage-2.1.3_rc9
Diffstat (limited to 'www-servers/apache')
-rw-r--r-- | www-servers/apache/ChangeLog | 9 | ||||
-rw-r--r-- | www-servers/apache/Manifest | 53 | ||||
-rw-r--r-- | www-servers/apache/apache-2.2.4-r11.ebuild (renamed from www-servers/apache/apache-2.2.4-r9.ebuild) | 72 | ||||
-rw-r--r-- | www-servers/apache/apache-2.2.4-r6.ebuild | 457 | ||||
-rw-r--r-- | www-servers/apache/apache-2.2.4-r7.ebuild | 467 | ||||
-rw-r--r-- | www-servers/apache/apache-2.2.4-r8.ebuild | 468 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.2.4-r11 | 6 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.2.4-r6 | 6 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.2.4-r7 | 6 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.2.4-r8 | 6 | ||||
-rw-r--r-- | www-servers/apache/files/digest-apache-2.2.4-r9 | 6 |
11 files changed, 65 insertions, 1491 deletions
diff --git a/www-servers/apache/ChangeLog b/www-servers/apache/ChangeLog index 9eeeb466a9c8..7a045f18526c 100644 --- a/www-servers/apache/ChangeLog +++ b/www-servers/apache/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-www/apache # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.2 2007/07/29 17:23:43 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.3 2007/08/01 22:42:13 hollow Exp $ + +*apache-2.2.4-r11 (01 Aug 2007) + + 01 Aug 2007; Benedikt Böhm <hollow@gentoo.org> -apache-2.2.4-r6.ebuild, + -apache-2.2.4-r7.ebuild, -apache-2.2.4-r8.ebuild, -apache-2.2.4-r9.ebuild, + +apache-2.2.4-r11.ebuild: + fix #183552, #187258, #186475, #187302 29 Jul 2007; Christian Heim <phreak@gentoo.org> apache-2.0.58-r2.ebuild, apache-2.0.59-r2.ebuild, apache-2.2.4-r6.ebuild, apache-2.2.4-r7.ebuild, diff --git a/www-servers/apache/Manifest b/www-servers/apache/Manifest index 5f6c71a6eef3..d698a62cf004 100644 --- a/www-servers/apache/Manifest +++ b/www-servers/apache/Manifest @@ -4,9 +4,7 @@ Hash: SHA1 DIST gentoo-apache-2.0.58-r2-20060726.tar.bz2 58758 RMD160 46c6da577db444a6553b60d3ae30c61ae3b741fa SHA1 5399c6076fbccc36b1d8a5ed783f77918c3398eb SHA256 b8e0356e87fdd7b55fcecbee804c9a41525b3e6fe8309f87f2509abd161c8e6b DIST gentoo-apache-2.0.59-r2-20061102.tar.bz2 58768 RMD160 d20d39e66e3cb52befeb697133172c8d494e2c78 SHA1 1f8543ecdba7cef911456757a0d12e9c15abe355 SHA256 c8de97abe4077e2f6d827726a5fb0b03f6e8bd9514d8f9b9ca2a35a1c9698518 DIST gentoo-apache-2.2.4-r10-20070712.tar.bz2 57172 RMD160 13da6d348d39ccd9a0fbe48e13e396236b38fa35 SHA1 5a8344af48dc3a3c8095882030ebf5578a899cab SHA256 9e57aa981f7b0e368b898471f92e2bb206c92d173169bcb0fa00dd037d9b36e7 -DIST gentoo-apache-2.2.4-r5-20070605.tar.bz2 57317 RMD160 d5ef8bddc1a470d0a5ef41b1d7d3423054c90626 SHA1 7ff6af17fe342fab96718b7b2fcd4db1c5af1d25 SHA256 507327d1a0029b7583c842b5f9d15a2be54226befe4fe1c32969d267de138363 -DIST gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 RMD160 973faaa7d64b6b8fc72218082ffdec408efe5e7a SHA1 9d56394d51e3aef09e57a6fe6405ffe688ebcd64 SHA256 307d499a6493cbd63ed85c6af3e79c380628dc7c34655ac2a0f0108851f1e13e -DIST gentoo-apache-2.2.4-r9-20070710.tar.bz2 57164 RMD160 d23cb1c572a0ebfaf17fe2061ac44334c1cd65ff SHA1 0c35df13b5d71ab4c9fd64d56c99a56caafa585b SHA256 90c54e2fb025fa4d7c85254b2fccc0a0000e85e7e2547de102eafa61ed46618a +DIST gentoo-apache-2.2.4-r11-20070802.tar.bz2 59461 RMD160 bd23851238656d83916e35c6b706f3e830b2763d SHA1 85d4033189c8c66c99f78abcb1c625b9b9615a7a SHA256 b529cf31fb67ebc10e15a52a04035503a4518429f6afa9ce018cd31df3550945 DIST httpd-2.0.58.tar.bz2 4704318 RMD160 2ff44b2254552db908f1defd09e3142527f9bf83 SHA1 697e1674f8efbbe05b9f6c1ba00cd28a37293229 SHA256 4f746715c408f4cac48099ea72560c50ef190568dfcfa8e0762bae66c0398029 DIST httpd-2.0.59.tar.bz2 4743549 RMD160 78b802354e338798a6978ece8b3568be97542174 SHA1 908209cd6e52f700d2a841a25de36e44d469c376 SHA256 bbac543ca9f80826f71eb16945610f8f90a36b346efc658be3b466ec0c990c0d DIST httpd-2.2.4.tar.bz2 4930375 RMD160 bb6e8a7447fa8e8f629010f30b548068de518523 SHA1 64ceae373434a986dc99b8ed953afa0d4fad85ce SHA256 08ab82eae6418e265d361730e7eadc7d6966dffdb66ee07bd4d9af3f2b28dfc8 @@ -22,26 +20,14 @@ EBUILD apache-2.2.4-r10.ebuild 15378 RMD160 3d6d96562f104a3df05f2fbc3adc18720ebb MD5 9f610208cdd05358a0c42a99d29796ae apache-2.2.4-r10.ebuild 15378 RMD160 3d6d96562f104a3df05f2fbc3adc18720ebb08c3 apache-2.2.4-r10.ebuild 15378 SHA256 cfa72f63d6893628588eb29f88ea71823d96ab1e724dce984f96e5bac639b15f apache-2.2.4-r10.ebuild 15378 -EBUILD apache-2.2.4-r6.ebuild 14905 RMD160 5ee4dd01ad19c6a9a2ddc5bae3bed3c1e63037e0 SHA1 d762790211a8031c32d9e5b73edcedbe2bb5f8ce SHA256 41edce908671be581684be63ec567298724a2998c7cb0896378546e13d7cecf9 -MD5 8b12a946d16c029f640e79eea687673a apache-2.2.4-r6.ebuild 14905 -RMD160 5ee4dd01ad19c6a9a2ddc5bae3bed3c1e63037e0 apache-2.2.4-r6.ebuild 14905 -SHA256 41edce908671be581684be63ec567298724a2998c7cb0896378546e13d7cecf9 apache-2.2.4-r6.ebuild 14905 -EBUILD apache-2.2.4-r7.ebuild 15258 RMD160 c419c7eb6856a48ce5ccbd74c90b55ed16ad8a89 SHA1 1651dfffdf51ea4fb60c7e978a95e6dda52edb30 SHA256 63e1c8a5149314abc205f76f478995648ebf26ed819238cc32ad1d034daa9eeb -MD5 5572b42deef242ab0a1dc5640a215a51 apache-2.2.4-r7.ebuild 15258 -RMD160 c419c7eb6856a48ce5ccbd74c90b55ed16ad8a89 apache-2.2.4-r7.ebuild 15258 -SHA256 63e1c8a5149314abc205f76f478995648ebf26ed819238cc32ad1d034daa9eeb apache-2.2.4-r7.ebuild 15258 -EBUILD apache-2.2.4-r8.ebuild 15369 RMD160 967e6fa1b1655792620bb9b29f193fe74cd88f6a SHA1 9d9ee9b4a1716fad23f8e4298d5c8423ef7489e4 SHA256 cd2ffdff3b1cba5b07e3e00d04ae0c5104be57d3ce48581836594da0cfcc6b14 -MD5 4ae182fae3a9852dcc31d7db9da835c2 apache-2.2.4-r8.ebuild 15369 -RMD160 967e6fa1b1655792620bb9b29f193fe74cd88f6a apache-2.2.4-r8.ebuild 15369 -SHA256 cd2ffdff3b1cba5b07e3e00d04ae0c5104be57d3ce48581836594da0cfcc6b14 apache-2.2.4-r8.ebuild 15369 -EBUILD apache-2.2.4-r9.ebuild 15533 RMD160 b95bcaa44f8826f96640a658470dd7c3b6ccd8f3 SHA1 8cc5bff9af553e62090e73567283504fed5f47c9 SHA256 5fc5e457fcd283893db884ce47762df20c35485b29a4dab7dc9bc57748da7e71 -MD5 af73b3a91de615b91e10381cf2246ddd apache-2.2.4-r9.ebuild 15533 -RMD160 b95bcaa44f8826f96640a658470dd7c3b6ccd8f3 apache-2.2.4-r9.ebuild 15533 -SHA256 5fc5e457fcd283893db884ce47762df20c35485b29a4dab7dc9bc57748da7e71 apache-2.2.4-r9.ebuild 15533 -MISC ChangeLog 93821 RMD160 98176bb73cdaf6e230c51ae6f42ee35bd64dae8c SHA1 068f6b3260139547c2a11761c01230065f1a115f SHA256 df3efc8729b7e5c2261218628fd1052a34fe958bcfbd53c31f39a4ad070b4059 -MD5 89a343dfb0674debd2855eeb6366b212 ChangeLog 93821 -RMD160 98176bb73cdaf6e230c51ae6f42ee35bd64dae8c ChangeLog 93821 -SHA256 df3efc8729b7e5c2261218628fd1052a34fe958bcfbd53c31f39a4ad070b4059 ChangeLog 93821 +EBUILD apache-2.2.4-r11.ebuild 15123 RMD160 8ad01cfdde7c88c9f60d6d5afce1d2743e47ec8c SHA1 ba0a7030b77ab1e44ee10656213cbb8aaa6c7fac SHA256 950542ca1e414a8f45e39834c8e6d9c739c6fc2cfd5b7bc2d6fd2eccb2404d8a +MD5 863556eeae1d9345e10e751937e0cd53 apache-2.2.4-r11.ebuild 15123 +RMD160 8ad01cfdde7c88c9f60d6d5afce1d2743e47ec8c apache-2.2.4-r11.ebuild 15123 +SHA256 950542ca1e414a8f45e39834c8e6d9c739c6fc2cfd5b7bc2d6fd2eccb2404d8a apache-2.2.4-r11.ebuild 15123 +MISC ChangeLog 94076 RMD160 5c763d4391c7fcf670f5bf072229e7d8ee2c9da6 SHA1 58de610a9f3757b4549bdaf0452a1633195a867a SHA256 4d8a4dd1afb1ff2ac9b814c426f54b8c666efaac046cbf85ff30b9a74e1501d6 +MD5 ae3bcc540f215dee02140eb8cd0c34de ChangeLog 94076 +RMD160 5c763d4391c7fcf670f5bf072229e7d8ee2c9da6 ChangeLog 94076 +SHA256 4d8a4dd1afb1ff2ac9b814c426f54b8c666efaac046cbf85ff30b9a74e1501d6 ChangeLog 94076 MISC metadata.xml 551 RMD160 1b31261c043e57cabc9bd8582f9b34c09d92d108 SHA1 68bb286a67452c3dae7525195c60b8637cca9b81 SHA256 646729a42ddffcbde3426dd6aa9a77fab923bc348c5b34c9d24083d86fbb15eb MD5 0f28752ee3545b3fd8e28ee656e62f4b metadata.xml 551 RMD160 1b31261c043e57cabc9bd8582f9b34c09d92d108 metadata.xml 551 @@ -55,22 +41,13 @@ SHA256 d3d9b85e6d0dc1610726f52d7f45f34e144351cf96d449bdabcd362482405cb5 files/di MD5 e5f5aa3b57426d2009745d7c936571a2 files/digest-apache-2.2.4-r10 539 RMD160 a878b175ef84ae8e958ba6cef858e82865750027 files/digest-apache-2.2.4-r10 539 SHA256 c2dff058f74b6cf185737201f79a0a1666ac43e9317b2b49998acd7720f2ebdc files/digest-apache-2.2.4-r10 539 -MD5 3685a5e5ea27be4a736dc1ce919ae3c6 files/digest-apache-2.2.4-r6 536 -RMD160 643d3dfa434f0f243edbfef1da50bd19fc80c3c1 files/digest-apache-2.2.4-r6 536 -SHA256 1c6148391d382b0c388801c54fd831c9172e4063d03dd0c4c9a5c8b2dff6d027 files/digest-apache-2.2.4-r6 536 -MD5 dabadb92943b5af0cda4248c84f45869 files/digest-apache-2.2.4-r7 536 -RMD160 143b01d363ab92a5676dc52599a4959886c1481e files/digest-apache-2.2.4-r7 536 -SHA256 7d24e0c773a201961123b6e407ac1d2b56edc0917dca464e44e79ce74475a4c7 files/digest-apache-2.2.4-r7 536 -MD5 dabadb92943b5af0cda4248c84f45869 files/digest-apache-2.2.4-r8 536 -RMD160 143b01d363ab92a5676dc52599a4959886c1481e files/digest-apache-2.2.4-r8 536 -SHA256 7d24e0c773a201961123b6e407ac1d2b56edc0917dca464e44e79ce74475a4c7 files/digest-apache-2.2.4-r8 536 -MD5 c6c86f6e5f68f762e9cef3a476ae2e2d files/digest-apache-2.2.4-r9 536 -RMD160 536d5403a7de4002d36c078d337a07ceb464bed0 files/digest-apache-2.2.4-r9 536 -SHA256 4837f60e7b96c75190dcc06fc9643c944a8a59827e777f8c2711924f3f089882 files/digest-apache-2.2.4-r9 536 +MD5 977b01a50ed8b902a2dc18680ad70bc1 files/digest-apache-2.2.4-r11 539 +RMD160 5a491e67ea0306b2c5874fb4b696119fc4b8b594 files/digest-apache-2.2.4-r11 539 +SHA256 4b4afb5714197f9cf564a263aeac66728e6370c804f98fe4f580048c24df8756 files/digest-apache-2.2.4-r11 539 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.5 (GNU/Linux) -iD8DBQFGrM0uyuNVb5qfaOYRAtfaAKCv9HNH+tv9IppJCvhMAfaaa3X9wgCgjuna -tWyxpkAes3MzKKTaVRkXB1c= -=dhAK +iD8DBQFGsQxPmPFBzbX68WERAqkqAKCOj/wgpotuk8xx0Ph8qQ5PNVxFMgCcDxgr +MtnRGdJ7AGnctk4r4aIQ1KQ= +=1L4H -----END PGP SIGNATURE----- diff --git a/www-servers/apache/apache-2.2.4-r9.ebuild b/www-servers/apache/apache-2.2.4-r11.ebuild index 63b1b42e3d95..3cedbd3b188a 100644 --- a/www-servers/apache/apache-2.2.4-r9.ebuild +++ b/www-servers/apache/apache-2.2.4-r11.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.4-r9.ebuild,v 1.2 2007/07/29 17:23:43 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.4-r11.ebuild,v 1.1 2007/08/01 22:42:13 hollow Exp $ inherit eutils flag-o-matic gnuconfig multilib autotools # latest gentoo apache files GENTOO_PATCHNAME="gentoo-${PF}" -GENTOO_PATCHSTAMP="20070710" -GENTOO_DEVSPACE="phreak" +GENTOO_PATCHSTAMP="20070802" +GENTOO_DEVSPACE="hollow" GENTOO_PATCHDIR="${WORKDIR}/${GENTOO_PATCHNAME}" DESCRIPTION="The Apache Web Server." @@ -17,7 +17,6 @@ SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2 # some helper scripts are apache-1.1, thus both are here LICENSE="Apache-2.0 Apache-1.1" - SLOT="2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" IUSE="debug doc ldap mpm-event mpm-itk mpm-peruser mpm-prefork mpm-worker no-suexec selinux ssl static-modules threads" @@ -117,19 +116,7 @@ src_unpack() { # 60-79 Version specific (60_all_${PV}_some-title.patch) # 80-99 Security patches (80_all_${PV}_cve-####-####.patch) - EPATCH_SUFFIX="patch" - epatch "${GENTOO_PATCHDIR}"/patches/[0-1]* - if $(ls "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* - fi - for uf in ${IUSE} ; do - if use ${uf} && $(ls "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* - fi - done - if $(ls "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* - fi + epatch "${GENTOO_PATCHDIR}"/patches/*.patch # setup the filesystem layout config cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \ @@ -149,6 +136,9 @@ src_compile() { # Thanks to Harald van Dijk append-ldflags -Wl,--no-as-needed + # peruser MPM debugging with -X is nearly impossible + use mpm-peruser && use debug && append-flags -DMPM_PERUSER_DEBUG + use static-modules && modtype="static" select_modules_config || die "determining modules failed" @@ -211,13 +201,27 @@ src_install () { # This is a mapping of module names to the -D options in APACHE2_OPTS # Used for creating optional LoadModule lines - mod_defines="info:INFO status:INFO - ldap:LDAP authnz_ldap:AUTH_LDAP - proxy:PROXY proxy_connect:PROXY proxy_http:PROXY - proxy_ajp:PROXY proxy_balancer:PROXY - ssl:SSL - suexec:SUEXEC - userdir:USERDIR" + mod_defines=" + authnz_ldap:AUTH_LDAP + cache:CACHE + dav:DAV + dav_fs:DAV + dav_lock:DAV + disk_cache:CACHE + file_cache:CACHE + info:INFO + ldap:LDAP + mem_cache:CACHE + proxy:PROXY + proxy_ajp:PROXY + proxy_balancer:PROXY + proxy_connect:PROXY + proxy_http:PROXY + ssl:SSL + status:INFO + suexec:SUEXEC + userdir:USERDIR + " # create our LoadModule lines if ! use static-modules ; then @@ -279,6 +283,7 @@ src_install () { # Install some documentation dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING + dodoc "${GENTOO_PATCHDIR}"/docs/* # drop in a convenient link to the manual if use doc ; then @@ -292,6 +297,7 @@ src_install () { ebegin "Installing default webroot to /usr/share/doc/${PF}" mv -f "${D}/var/www/localhost" "${D}/usr/share/doc/${PF}/webroot" eend $? + keepdir /var/www/localhost/htdocs if ! use no-suexec ; then # Set some sane permissions for suexec @@ -355,13 +361,15 @@ pkg_postinst() { done fi - # Note for new location of Listen + # Note the changes regarding DEFAULT_VHOST and SSL_DEFAULT_VHOST if has_version '<www-servers/apache-2.2.4-r7' ; then elog elog "Listen directives have been moved into the default virtual host" - elog "configuation. Therefore you have to enabled at least one of" - elog "DEFAULT_VHOST or SSL_DEFAULT_VHOST, otherwise no listening" - elog "sockets would be available." + elog "configuation. At least DEFAULT_VHOST has been enabled for you" + elog "(depending on your USE-flags." + elog + elog "If you disable DEFAULT_VHOST or SSL_DEFAULT_VHOST, there would" + elog "be no listening sockets available." elog fi @@ -399,12 +407,6 @@ pkg_postinst() { elog "and the upgrading guide at:" elog "http://httpd.apache.org/docs/2.2/upgrading.html" elog - elog "Some modules do not yet work with Apache 2.2." - elog "To keep from accidentally downgrading to Apache 2.0, you should" - elog "add the following to ${ROOT}/etc/portage/package.mask:" - elog - elog " <www-servers/apache-2.2.0" - elog fi # Cleanup the vim backup files, placed in /etc/apache2 by the last @@ -414,9 +416,7 @@ pkg_postinst() { 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:0 "${ROOT}"/var/www/localhost } parse_modules_config() { diff --git a/www-servers/apache/apache-2.2.4-r6.ebuild b/www-servers/apache/apache-2.2.4-r6.ebuild deleted file mode 100644 index 1f1b726196bf..000000000000 --- a/www-servers/apache/apache-2.2.4-r6.ebuild +++ /dev/null @@ -1,457 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.4-r6.ebuild,v 1.2 2007/07/29 17:23:43 phreak Exp $ - -inherit eutils flag-o-matic gnuconfig multilib autotools - -# latest gentoo apache files -GENTOO_PATCHNAME="gentoo-${P}-r5" -GENTOO_PATCHSTAMP="20070605" -GENTOO_DEVSPACE="phreak" -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" - -# some helper scripts are apache-1.1, thus both are here -LICENSE="Apache-2.0 Apache-1.1" - -SLOT="2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug doc ldap mpm-event mpm-itk mpm-peruser mpm-prefork mpm-worker no-suexec selinux ssl static-modules threads" - -DEPEND="dev-lang/perl - =dev-libs/apr-1* - =dev-libs/apr-util-1* - dev-libs/expat - dev-libs/libpcre - sys-libs/zlib - ldap? ( =net-nds/openldap-2* ) - selinux? ( sec-policy/selinux-apache ) - ssl? ( dev-libs/openssl ) - !=www-servers/apache-1* - !=app-admin/apache-tools-2.2.4-r2" - -RDEPEND="${DEPEND} - app-misc/mime-types" - -PDEPEND="~app-admin/apache-tools-${PV}" - -S="${WORKDIR}/httpd-${PV}" - -pkg_setup() { - 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 - - # Select the default MPM module - MPM_LIST="event itk peruser prefork worker" - for x in ${MPM_LIST} ; do - if use mpm-${x} ; then - if [[ "x${mpm}" == "x" ]] ; then - mpm=${x} - elog - elog "Selected MPM: ${mpm}" - elog - else - eerror "You have selected more then one mpm USE-flag." - eerror "Only one MPM is supported." - die "more then one mpm was specified" - fi - fi - done - - if [[ "x${mpm}" == "x" ]] ; then - if use threads ; then - mpm=worker - elog - elog "Selected default threaded MPM: ${mpm}"; - elog - else - mpm=prefork - elog - elog "Selected default MPM: ${mpm}"; - elog - fi - fi - - # setup apache user and group - enewgroup apache 81 - enewuser apache 81 -1 /var/www apache - - if ! use no-suexec ; then - elog - elog "You can manipulate several configure options of suexec" - elog "through the following environment variables:" - elog - elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: /var/log/apache2/suexec_log)" - elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)" - elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: /var/www)" - elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)" - elog " SUEXEC_MINGID: Minimum GID, which is allowed to run scripts via suexec (default: 100)" - elog " SUEXEC_USERDIR: User subdirectories (like /home/user/html) (default: public_html)" - elog " SUEXEC_UMASK: Umask for the suexec process (default: 077)" - elog - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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 "libdir sed failed" - - #### Patch Organization - # 00-19 Gentoo specific (00_all_some-title.patch) - # 20-39 Additional MPMs (20_all_${MPM}_some-title.patch) - # 40-59 USE-flag based (40_all_${USE}_some-title.patch) - # 60-79 Version specific (60_all_${PV}_some-title.patch) - # 80-99 Security patches (80_all_${PV}_cve-####-####.patch) - - EPATCH_SUFFIX="patch" - epatch "${GENTOO_PATCHDIR}"/patches/[0-1]* - if $(ls "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* - fi - for uf in ${IUSE} ; do - if use ${uf} && $(ls "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* - fi - done - if $(ls "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* - fi - - # setup the filesystem layout config - cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \ - die "Failed preparing config.layout!" - sed -i -e "s:version:${PF}:g" "${S}"/config.layout - - # patched-in MPMs need the build environment rebuilt - sed -i -e '/sinclude/d' configure.in - AT_GNUCONF_UPDATE=yes AT_M4DIR=build eautoreconf -} - -src_compile() { - local modtype="shared" myconf="" - cd "${S}" - - # Instead of filtering --as-needed (bug #128505), append --no-as-needed - # Thanks to Harald van Dijk - append-ldflags -Wl,--no-as-needed - - use static-modules && modtype="static" - select_modules_config || die "determining modules failed" - - if use ldap ; then - mods="${mods} ldap authnz_ldap" - myconf="${myconf} --enable-authnz-ldap=${modtype} --enable-ldap=${modtype}" - fi - - if use ssl; then - mods="${mods} ssl" - myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}" - fi - - # Only build suexec with USE=-no-suexec - if use no-suexec ; then - myconf="${myconf} --disable-suexec" - else - myconf="${myconf} --with-suexec-safepath='/usr/local/bin:/usr/bin:/bin'" - myconf="${myconf} --with-suexec-logfile=${SUEXEC_LOGFILE:-/var/log/apache2/suexec_log}" - myconf="${myconf} --with-suexec-bin=/usr/sbin/suexec" - myconf="${myconf} --with-suexec-userdir=${SUEXEC_USERDIR:-public_html}" - myconf="${myconf} --with-suexec-caller=${SUEXEC_CALLER:-apache}" - myconf="${myconf} --with-suexec-docroot=${SUEXEC_DOCROOT:-/var/www}" - myconf="${myconf} --with-suexec-uidmin=${SUEXEC_MINUID:-1000}" - myconf="${myconf} --with-suexec-gidmin=${SUEXEC_MINGID:-100}" - myconf="${myconf} --with-suexec-umask=${SUEXEC_UMASK:-077}" - myconf="${myconf} --enable-suexec=${modtype}" - mods="${mods} suexec" - fi - - # econf overwrites the stuff from config.layout, so we have to put them into - # our myconf line too - - econf \ - --includedir=/usr/include/apache2 \ - --libexecdir=/usr/$(get_libdir)/apache2/modules \ - --datadir=/var/www/localhost \ - --sysconfdir=/etc/apache2 \ - --localstatedir=/var \ - --with-mpm=${mpm} \ - --with-perl=/usr/bin/perl \ - --with-expat=/usr \ - --with-z=/usr \ - --with-apr=/usr \ - --with-apr-util=/usr \ - --with-pcre=/usr \ - --with-port=80 \ - --with-program-name=apache2 \ - --enable-layout=Gentoo \ - $( use_enable debug maintainer-mode ) \ - ${myconf} ${MY_BUILTINS} || die "econf failed!" - - sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h - - emake || die "emake failed" -} - -src_install () { - emake DESTDIR="${D}" install || die "emake install failed" - - # This is a mapping of module names to the -D options in APACHE2_OPTS - # Used for creating optional LoadModule lines - mod_defines="info:INFO status:INFO - ldap:LDAP authnz_ldap:AUTH_LDAP - proxy:PROXY proxy_connect:PROXY proxy_http:PROXY - proxy_ajp:PROXY proxy_balancer:PROXY - ssl:SSL - suexec:SUEXEC - userdir:USERDIR" - - # create our LoadModule lines - if ! use static-modules ; then - load_module="" - moddir="${D}/usr/$(get_libdir)/apache2/modules" - for m in ${mods} ; do - endid="no" - - if [[ -e "${moddir}/mod_${m}.so" ]] ; then - for def in ${mod_defines} ; do - if [[ "${m}" == "${def%:*}" ]] ; then - load_module="${load_module}\n<IfDefine ${def#*:}>" - endid="yes" - fi - done - load_module="${load_module}\nLoadModule ${m}_module modules/mod_${m}.so" - if [[ "${endid}" == "yes" ]] ; then - load_module="${load_module}\n</IfDefine>" - fi - fi - done - fi - sed -i -e "s:%%LOAD_MODULE%%:${load_module}:" \ - "${GENTOO_PATCHDIR}"/conf/httpd.conf || die "sed failed" - - # Install our configuration files - insinto /etc/apache2 - doins docs/conf/magic - doins -r "${GENTOO_PATCHDIR}"/conf/* - insinto /etc/logrotate.d - newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2 - - # generate a sane default APACHE2_OPTS - APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE" - use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL" - use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST" - use no-suexec || APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC" - - sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \ - "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed" - - newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2 - newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 - - # Link apache2ctl to the init script - dosym /etc/init.d/apache2 /usr/sbin/apache2ctl - - # provide symlinks for all the stuff we no longer rename, bug 177697 - for i in suexec apxs; do - dosym /usr/sbin/${i} /usr/sbin/${i}2 - done - - # Install some thirdparty scripts - exeinto /usr/sbin - for i in apache2logserverstatus apache2splitlogfile ; do - doexe "${GENTOO_PATCHDIR}"/scripts/${i} - done - use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh - - # Install some documentation - dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING - - # drop in a convenient link to the manual - if use doc ; then - sed -i -e "s:VERSION:${PVR}:" "${D}/etc/apache2/modules.d/00_apache_manual.conf" - else - rm -f "${D}/etc/apache2/modules.d/00_apache_manual.conf" - rm -Rf "${D}/usr/share/doc/${PF}/manual" - fi - - # the default webroot gets stored in /usr/share/doc - ebegin "Installing default webroot to /usr/share/doc/${PF}" - mv -f "${D}/var/www/localhost" "${D}/usr/share/doc/${PF}/webroot" - eend $? - - if ! use no-suexec ; then - # Set some sane permissions for suexec - fowners 0:apache /usr/sbin/suexec - fperms 4710 /usr/sbin/suexec - fi - - keepdir /etc/apache2/vhosts.d - keepdir /etc/apache2/modules.d - - # empty dirs - for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do - keepdir ${i} - fowners apache:apache ${i} - fperms 0755 ${i} - done - - # We'll be needing /etc/apache2/ssl if USE=ssl - use ssl && keepdir /etc/apache2/ssl -} - -pkg_postinst() { - # Automatically generate test certificates if ssl USE flag is being set - if use ssl && [[ ! -e "${ROOT}/etc/apache2/ssl/server.crt" ]] ; then - cd "${ROOT}"/etc/apache2/ssl - einfo - einfo "Generating self-signed test certificate in ${ROOT}/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 - elog "The default webroot has not been installed into" - elog "${ROOT}/var/www/localhost because the directory already exists" - elog "and we do not want to overwrite any files you have put there." - elog - elog "If you would like to install the latest webroot, please run" - elog "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:0 "${ROOT}"/var/www/localhost - fi - - # Previous installations of apache-2.2 installed the upstream configuration - # files, which shouldn't even have been installed! - if has_version '>=www-servers/apache-2.2.4' ; then - [ -f "${ROOT}"/etc/apache2/apache2.conf ] && \ - rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1 - - for i in extra original ; do - [ -d "${ROOT}"/etc/apache2/$i ] && \ - rm -rf "${ROOT}"/etc/apache2/$i >/dev/null 2>&1 - done - fi - - # Note the user of the config changes - if has_version '<www-servers/apache-2.2.4-r5' ; then - elog - elog "Please make sure that you update your /etc directory." - elog "Between the versions, we had to changes some config files" - elog "and move some stuff out of the main httpd.conf file to a seperate" - elog "modules.d entry." - elog - elog "Thus please update your /etc directory either via etc-update," - elog "dispatch-conf or conf-update !" - elog - fi - - # Check for dual/upgrade install - if has_version '<www-servers/apache-2.2.0' ; then - elog - elog "When upgrading from versions below 2.2.0 to this version, you" - elog "need to rebuild all your modules. Please do so for your modules" - elog "to continue working correctly." - elog - elog "Also note that some configuration directives have been" - elog "split into their own files under ${ROOT}/etc/apache2/modules.d/" - elog "and that some modules, foremost the authentication related ones," - elog "have been renamed." - elog - elog "Some examples:" - elog " - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf." - elog - elog "For more information on what you may need to change, please" - elog "see the overview of changes at:" - elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html" - elog "and the upgrading guide at:" - elog "http://httpd.apache.org/docs/2.2/upgrading.html" - elog - elog "Some modules do not yet work with Apache 2.2." - elog "To keep from accidentally downgrading to Apache 2.0, you should" - elog "add the following to ${ROOT}/etc/portage/package.mask:" - elog - elog " <www-servers/apache-2.2.0" - elog - fi -} - -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:0 "${ROOT}"/var/www/localhost -} - -parse_modules_config() { - local name="" - local disable="" - local version="undef" - MY_BUILTINS="" - mods="" - [[ -f "${1}" ]] || return 1 - - for i in $(sed 's/#.*//' < $1) ; do - if [[ "$i" == "VERSION:" ]] ; then - version="select" - elif [[ "${version}" == "select" ]] ; then - version="$i" - # start with - option for backwards compatibility only - elif [[ "$i" == "-" ]] ; then - disable="true" - elif [[ -z "${name}" ]] && [[ "$i" != "${i/mod_/}" ]] ; then - name="${i/mod_/}" - elif [[ -n "${disable}" ]] || [[ "$i" == "disabled" ]] ; then - MY_BUILTINS="${MY_BUILTINS} --disable-${name}" - name="" ; disable="" - elif [[ "$i" == "static" ]] || use static-modules ; then - MY_BUILTINS="${MY_BUILTINS} --enable-${name}=static" - name="" ; disable="" - elif [[ "$i" == "shared" ]] ; then - MY_BUILTINS="${MY_BUILTINS} --enable-${name}=shared" - mods="${mods} ${name}" - name="" ; disable="" - else - ewarn "Parse error in ${1} - unknown option: $i" - fi - done - - # reject the file if it's unversioned or doesn't match our - # package major.minor. This is to make upgrading work smoothly. - if [[ "${version}" != "${PV%.*}" ]] ; then - mods="" - MY_BUILTINS="" - return 1 - fi - - einfo "Using ${1}" - einfo "options: ${MY_BUILTINS}" - einfo "LoadModules: ${mods}" -} - -select_modules_config() { - parse_modules_config "${ROOT}"/etc/apache2/apache2-builtin-mods || \ - parse_modules_config "${GENTOO_PATCHDIR}"/conf/apache2-builtin-mods || \ - return 1 -} diff --git a/www-servers/apache/apache-2.2.4-r7.ebuild b/www-servers/apache/apache-2.2.4-r7.ebuild deleted file mode 100644 index 64ac711e0679..000000000000 --- a/www-servers/apache/apache-2.2.4-r7.ebuild +++ /dev/null @@ -1,467 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.4-r7.ebuild,v 1.2 2007/07/29 17:23:43 phreak Exp $ - -inherit eutils flag-o-matic gnuconfig multilib autotools - -# latest gentoo apache files -GENTOO_PATCHNAME="gentoo-${PF}" -GENTOO_PATCHSTAMP="20070615" -GENTOO_DEVSPACE="hollow" -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" - -# some helper scripts are apache-1.1, thus both are here -LICENSE="Apache-2.0 Apache-1.1" - -SLOT="2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug doc ldap mpm-event mpm-itk mpm-peruser mpm-prefork mpm-worker no-suexec selinux ssl static-modules threads" - -DEPEND="dev-lang/perl - =dev-libs/apr-1* - =dev-libs/apr-util-1* - dev-libs/expat - dev-libs/libpcre - sys-libs/zlib - ldap? ( =net-nds/openldap-2* ) - selinux? ( sec-policy/selinux-apache ) - ssl? ( dev-libs/openssl ) - !=www-servers/apache-1* - !=app-admin/apache-tools-2.2.4-r2" - -RDEPEND="${DEPEND} - app-misc/mime-types" - -PDEPEND="~app-admin/apache-tools-${PV}" - -S="${WORKDIR}/httpd-${PV}" - -pkg_setup() { - 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 - - # Select the default MPM module - MPM_LIST="event itk peruser prefork worker" - for x in ${MPM_LIST} ; do - if use mpm-${x} ; then - if [[ "x${mpm}" == "x" ]] ; then - mpm=${x} - elog - elog "Selected MPM: ${mpm}" - elog - else - eerror "You have selected more then one mpm USE-flag." - eerror "Only one MPM is supported." - die "more then one mpm was specified" - fi - fi - done - - if [[ "x${mpm}" == "x" ]] ; then - if use threads ; then - mpm=worker - elog - elog "Selected default threaded MPM: ${mpm}"; - elog - else - mpm=prefork - elog - elog "Selected default MPM: ${mpm}"; - elog - fi - fi - - # setup apache user and group - enewgroup apache 81 - enewuser apache 81 -1 /var/www apache - - if ! use no-suexec ; then - elog - elog "You can manipulate several configure options of suexec" - elog "through the following environment variables:" - elog - elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: /var/log/apache2/suexec_log)" - elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)" - elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: /var/www)" - elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)" - elog " SUEXEC_MINGID: Minimum GID, which is allowed to run scripts via suexec (default: 100)" - elog " SUEXEC_USERDIR: User subdirectories (like /home/user/html) (default: public_html)" - elog " SUEXEC_UMASK: Umask for the suexec process (default: 077)" - elog - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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 "libdir sed failed" - - #### Patch Organization - # 00-19 Gentoo specific (00_all_some-title.patch) - # 20-39 Additional MPMs (20_all_${MPM}_some-title.patch) - # 40-59 USE-flag based (40_all_${USE}_some-title.patch) - # 60-79 Version specific (60_all_${PV}_some-title.patch) - # 80-99 Security patches (80_all_${PV}_cve-####-####.patch) - - EPATCH_SUFFIX="patch" - epatch "${GENTOO_PATCHDIR}"/patches/[0-1]* - if $(ls "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* - fi - for uf in ${IUSE} ; do - if use ${uf} && $(ls "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* - fi - done - if $(ls "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* - fi - - # setup the filesystem layout config - cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \ - die "Failed preparing config.layout!" - sed -i -e "s:version:${PF}:g" "${S}"/config.layout - - # patched-in MPMs need the build environment rebuilt - sed -i -e '/sinclude/d' configure.in - AT_GNUCONF_UPDATE=yes AT_M4DIR=build eautoreconf -} - -src_compile() { - local modtype="shared" myconf="" - cd "${S}" - - # Instead of filtering --as-needed (bug #128505), append --no-as-needed - # Thanks to Harald van Dijk - append-ldflags -Wl,--no-as-needed - - use static-modules && modtype="static" - select_modules_config || die "determining modules failed" - - if use ldap ; then - mods="${mods} ldap authnz_ldap" - myconf="${myconf} --enable-authnz-ldap=${modtype} --enable-ldap=${modtype}" - fi - - if use ssl; then - mods="${mods} ssl" - myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}" - fi - - # Only build suexec with USE=-no-suexec - if use no-suexec ; then - myconf="${myconf} --disable-suexec" - else - myconf="${myconf} --with-suexec-safepath='/usr/local/bin:/usr/bin:/bin'" - myconf="${myconf} --with-suexec-logfile=${SUEXEC_LOGFILE:-/var/log/apache2/suexec_log}" - myconf="${myconf} --with-suexec-bin=/usr/sbin/suexec" - myconf="${myconf} --with-suexec-userdir=${SUEXEC_USERDIR:-public_html}" - myconf="${myconf} --with-suexec-caller=${SUEXEC_CALLER:-apache}" - myconf="${myconf} --with-suexec-docroot=${SUEXEC_DOCROOT:-/var/www}" - myconf="${myconf} --with-suexec-uidmin=${SUEXEC_MINUID:-1000}" - myconf="${myconf} --with-suexec-gidmin=${SUEXEC_MINGID:-100}" - myconf="${myconf} --with-suexec-umask=${SUEXEC_UMASK:-077}" - myconf="${myconf} --enable-suexec=${modtype}" - mods="${mods} suexec" - fi - - # econf overwrites the stuff from config.layout, so we have to put them into - # our myconf line too - - econf \ - --includedir=/usr/include/apache2 \ - --libexecdir=/usr/$(get_libdir)/apache2/modules \ - --datadir=/var/www/localhost \ - --sysconfdir=/etc/apache2 \ - --localstatedir=/var \ - --with-mpm=${mpm} \ - --with-perl=/usr/bin/perl \ - --with-expat=/usr \ - --with-z=/usr \ - --with-apr=/usr \ - --with-apr-util=/usr \ - --with-pcre=/usr \ - --with-port=80 \ - --with-program-name=apache2 \ - --enable-layout=Gentoo \ - $( use_enable debug maintainer-mode ) \ - ${myconf} ${MY_BUILTINS} || die "econf failed!" - - sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h - - emake || die "emake failed" -} - -src_install () { - emake DESTDIR="${D}" install || die "emake install failed" - - # This is a mapping of module names to the -D options in APACHE2_OPTS - # Used for creating optional LoadModule lines - mod_defines="info:INFO status:INFO - ldap:LDAP authnz_ldap:AUTH_LDAP - proxy:PROXY proxy_connect:PROXY proxy_http:PROXY - proxy_ajp:PROXY proxy_balancer:PROXY - ssl:SSL - suexec:SUEXEC - userdir:USERDIR" - - # create our LoadModule lines - if ! use static-modules ; then - load_module="" - moddir="${D}/usr/$(get_libdir)/apache2/modules" - for m in ${mods} ; do - endid="no" - - if [[ -e "${moddir}/mod_${m}.so" ]] ; then - for def in ${mod_defines} ; do - if [[ "${m}" == "${def%:*}" ]] ; then - load_module="${load_module}\n<IfDefine ${def#*:}>" - endid="yes" - fi - done - load_module="${load_module}\nLoadModule ${m}_module modules/mod_${m}.so" - if [[ "${endid}" == "yes" ]] ; then - load_module="${load_module}\n</IfDefine>" - fi - fi - done - fi - sed -i -e "s:%%LOAD_MODULE%%:${load_module}:" \ - "${GENTOO_PATCHDIR}"/conf/httpd.conf || die "sed failed" - - # Install our configuration files - insinto /etc/apache2 - doins docs/conf/magic - doins -r "${GENTOO_PATCHDIR}"/conf/* - insinto /etc/logrotate.d - newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2 - - # generate a sane default APACHE2_OPTS - APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE" - use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL" - use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST" - use no-suexec || APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC" - - sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \ - "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed" - - newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2 - newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 - - # Link apache2ctl to the init script - dosym /etc/init.d/apache2 /usr/sbin/apache2ctl - - # provide symlinks for all the stuff we no longer rename, bug 177697 - for i in suexec apxs; do - dosym /usr/sbin/${i} /usr/sbin/${i}2 - done - - # Install some thirdparty scripts - exeinto /usr/sbin - for i in apache2logserverstatus apache2splitlogfile ; do - doexe "${GENTOO_PATCHDIR}"/scripts/${i} - done - use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh - - # Install some documentation - dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING - - # drop in a convenient link to the manual - if use doc ; then - sed -i -e "s:VERSION:${PVR}:" "${D}/etc/apache2/modules.d/00_apache_manual.conf" - else - rm -f "${D}/etc/apache2/modules.d/00_apache_manual.conf" - rm -Rf "${D}/usr/share/doc/${PF}/manual" - fi - - # the default webroot gets stored in /usr/share/doc - ebegin "Installing default webroot to /usr/share/doc/${PF}" - mv -f "${D}/var/www/localhost" "${D}/usr/share/doc/${PF}/webroot" - eend $? - - if ! use no-suexec ; then - # Set some sane permissions for suexec - fowners 0:apache /usr/sbin/suexec - fperms 4710 /usr/sbin/suexec - fi - - keepdir /etc/apache2/vhosts.d - keepdir /etc/apache2/modules.d - - # empty dirs - for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do - keepdir ${i} - fowners apache:apache ${i} - fperms 0755 ${i} - done - - # We'll be needing /etc/apache2/ssl if USE=ssl - use ssl && keepdir /etc/apache2/ssl -} - -pkg_postinst() { - # Automatically generate test certificates if ssl USE flag is being set - if use ssl && [[ ! -e "${ROOT}/etc/apache2/ssl/server.crt" ]] ; then - cd "${ROOT}"/etc/apache2/ssl - einfo - einfo "Generating self-signed test certificate in ${ROOT}/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 - elog "The default webroot has not been installed into" - elog "${ROOT}/var/www/localhost because the directory already exists" - elog "and we do not want to overwrite any files you have put there." - elog - elog "If you would like to install the latest webroot, please run" - elog "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:0 "${ROOT}"/var/www/localhost - fi - - # Previous installations of apache-2.2 installed the upstream configuration - # files, which shouldn't even have been installed! - if has_version '>=www-servers/apache-2.2.4' ; then - [ -f "${ROOT}"/etc/apache2/apache2.conf ] && \ - rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1 - - for i in extra original ; do - [ -d "${ROOT}"/etc/apache2/$i ] && \ - rm -rf "${ROOT}"/etc/apache2/$i >/dev/null 2>&1 - done - fi - - # Note for new location of Listen - if has_version '<www-servers/apache-2.2.4-r7' ; then - elog - elog "Listen directives have been moved into the default virtual host" - elog "configuation. Therefore you have to enabled at least one of" - elog "DEFAULT_VHOST or SSL_DEFAULT_VHOST, otherwise no listening" - elog "sockets would be available." - elog - fi - - # Note the user of the config changes - if has_version '<www-servers/apache-2.2.4-r5' ; then - elog - elog "Please make sure that you update your /etc directory." - elog "Between the versions, we had to changes some config files" - elog "and move some stuff out of the main httpd.conf file to a seperate" - elog "modules.d entry." - elog - elog "Thus please update your /etc directory either via etc-update," - elog "dispatch-conf or conf-update !" - elog - fi - - # Check for dual/upgrade install - if has_version '<www-servers/apache-2.2.0' ; then - elog - elog "When upgrading from versions below 2.2.0 to this version, you" - elog "need to rebuild all your modules. Please do so for your modules" - elog "to continue working correctly." - elog - elog "Also note that some configuration directives have been" - elog "split into their own files under ${ROOT}/etc/apache2/modules.d/" - elog "and that some modules, foremost the authentication related ones," - elog "have been renamed." - elog - elog "Some examples:" - elog " - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf." - elog - elog "For more information on what you may need to change, please" - elog "see the overview of changes at:" - elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html" - elog "and the upgrading guide at:" - elog "http://httpd.apache.org/docs/2.2/upgrading.html" - elog - elog "Some modules do not yet work with Apache 2.2." - elog "To keep from accidentally downgrading to Apache 2.0, you should" - elog "add the following to ${ROOT}/etc/portage/package.mask:" - elog - elog " <www-servers/apache-2.2.0" - elog - fi -} - -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:0 "${ROOT}"/var/www/localhost -} - -parse_modules_config() { - local name="" - local disable="" - local version="undef" - MY_BUILTINS="" - mods="" - [[ -f "${1}" ]] || return 1 - - for i in $(sed 's/#.*//' < $1) ; do - if [[ "$i" == "VERSION:" ]] ; then - version="select" - elif [[ "${version}" == "select" ]] ; then - version="$i" - # start with - option for backwards compatibility only - elif [[ "$i" == "-" ]] ; then - disable="true" - elif [[ -z "${name}" ]] && [[ "$i" != "${i/mod_/}" ]] ; then - name="${i/mod_/}" - elif [[ -n "${disable}" ]] || [[ "$i" == "disabled" ]] ; then - MY_BUILTINS="${MY_BUILTINS} --disable-${name}" - name="" ; disable="" - elif [[ "$i" == "static" ]] || use static-modules ; then - MY_BUILTINS="${MY_BUILTINS} --enable-${name}=static" - name="" ; disable="" - elif [[ "$i" == "shared" ]] ; then - MY_BUILTINS="${MY_BUILTINS} --enable-${name}=shared" - mods="${mods} ${name}" - name="" ; disable="" - else - ewarn "Parse error in ${1} - unknown option: $i" - fi - done - - # reject the file if it's unversioned or doesn't match our - # package major.minor. This is to make upgrading work smoothly. - if [[ "${version}" != "${PV%.*}" ]] ; then - mods="" - MY_BUILTINS="" - return 1 - fi - - einfo "Using ${1}" - einfo "options: ${MY_BUILTINS}" - einfo "LoadModules: ${mods}" -} - -select_modules_config() { - parse_modules_config "${ROOT}"/etc/apache2/apache2-builtin-mods || \ - parse_modules_config "${GENTOO_PATCHDIR}"/conf/apache2-builtin-mods || \ - return 1 -} diff --git a/www-servers/apache/apache-2.2.4-r8.ebuild b/www-servers/apache/apache-2.2.4-r8.ebuild deleted file mode 100644 index 3a0619268a18..000000000000 --- a/www-servers/apache/apache-2.2.4-r8.ebuild +++ /dev/null @@ -1,468 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.2.4-r8.ebuild,v 1.2 2007/07/29 17:23:43 phreak Exp $ - -inherit eutils flag-o-matic gnuconfig multilib autotools - -# latest gentoo apache files -GENTOO_PATCHNAME="gentoo-${P}-r7" -GENTOO_PATCHSTAMP="20070615" -GENTOO_DEVSPACE="hollow" -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" - -# some helper scripts are apache-1.1, thus both are here -LICENSE="Apache-2.0 Apache-1.1" - -SLOT="2" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="debug doc ldap mpm-event mpm-itk mpm-peruser mpm-prefork mpm-worker no-suexec selinux ssl static-modules threads" - -DEPEND="dev-lang/perl - =dev-libs/apr-1* - =dev-libs/apr-util-1* - dev-libs/expat - dev-libs/libpcre - sys-libs/zlib - ldap? ( =net-nds/openldap-2* ) - selinux? ( sec-policy/selinux-apache ) - ssl? ( dev-libs/openssl ) - !=www-servers/apache-1* - !=app-admin/apache-tools-2.2.4-r2" - -RDEPEND="${DEPEND} - app-misc/mime-types" - -PDEPEND="~app-admin/apache-tools-${PV}" - -S="${WORKDIR}/httpd-${PV}" - -pkg_setup() { - 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 - - # Select the default MPM module - MPM_LIST="event itk peruser prefork worker" - for x in ${MPM_LIST} ; do - if use mpm-${x} ; then - if [[ "x${mpm}" == "x" ]] ; then - mpm=${x} - elog - elog "Selected MPM: ${mpm}" - elog - else - eerror "You have selected more then one mpm USE-flag." - eerror "Only one MPM is supported." - die "more then one mpm was specified" - fi - fi - done - - if [[ "x${mpm}" == "x" ]] ; then - if use threads ; then - mpm=worker - elog - elog "Selected default threaded MPM: ${mpm}"; - elog - else - mpm=prefork - elog - elog "Selected default MPM: ${mpm}"; - elog - fi - fi - - # setup apache user and group - enewgroup apache 81 - enewuser apache 81 -1 /var/www apache - - if ! use no-suexec ; then - elog - elog "You can manipulate several configure options of suexec" - elog "through the following environment variables:" - elog - elog " SUEXEC_SAFEPATH: Default PATH for suexec (default: /usr/local/bin:/usr/bin:/bin)" - elog " SUEXEC_LOGFILE: Path to the suexec logfile (default: /var/log/apache2/suexec_log)" - elog " SUEXEC_CALLER: Name of the user Apache is running as (default: apache)" - elog " SUEXEC_DOCROOT: Directory in which suexec will run scripts (default: /var/www)" - elog " SUEXEC_MINUID: Minimum UID, which is allowed to run scripts via suexec (default: 1000)" - elog " SUEXEC_MINGID: Minimum GID, which is allowed to run scripts via suexec (default: 100)" - elog " SUEXEC_USERDIR: User subdirectories (like /home/user/html) (default: public_html)" - elog " SUEXEC_UMASK: Umask for the suexec process (default: 077)" - elog - fi -} - -src_unpack() { - unpack ${A} - cd "${S}" - - # 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 "libdir sed failed" - - #### Patch Organization - # 00-19 Gentoo specific (00_all_some-title.patch) - # 20-39 Additional MPMs (20_all_${MPM}_some-title.patch) - # 40-59 USE-flag based (40_all_${USE}_some-title.patch) - # 60-79 Version specific (60_all_${PV}_some-title.patch) - # 80-99 Security patches (80_all_${PV}_cve-####-####.patch) - - EPATCH_SUFFIX="patch" - epatch "${GENTOO_PATCHDIR}"/patches/[0-1]* - if $(ls "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[2-3]?_*_${mpm}_* - fi - for uf in ${IUSE} ; do - if use ${uf} && $(ls "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[4-5]?_*_${uf}_* - fi - done - if $(ls "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* &>/dev/null) ; then - epatch "${GENTOO_PATCHDIR}"/patches/[6-9]?_*_${PV}_* - fi - - # setup the filesystem layout config - cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \ - die "Failed preparing config.layout!" - sed -i -e "s:version:${PF}:g" "${S}"/config.layout - - # patched-in MPMs need the build environment rebuilt - sed -i -e '/sinclude/d' configure.in - AT_GNUCONF_UPDATE=yes AT_M4DIR=build eautoreconf -} - -src_compile() { - local modtype="shared" myconf="" - cd "${S}" - - # Instead of filtering --as-needed (bug #128505), append --no-as-needed - # Thanks to Harald van Dijk - append-ldflags -Wl,--no-as-needed - - use static-modules && modtype="static" - select_modules_config || die "determining modules failed" - - if use ldap ; then - mods="${mods} ldap authnz_ldap" - myconf="${myconf} --enable-authnz-ldap=${modtype} --enable-ldap=${modtype}" - fi - - if use ssl; then - mods="${mods} ssl" - myconf="${myconf} --with-ssl=/usr --enable-ssl=${modtype}" - fi - - # Only build suexec with USE=-no-suexec - if use no-suexec ; then - myconf="${myconf} --disable-suexec" - else - myconf="${myconf} --with-suexec-safepath=${SUEXEC_SAFEPATH:-/usr/local/bin:/usr/bin:/bin}" - myconf="${myconf} --with-suexec-logfile=${SUEXEC_LOGFILE:-/var/log/apache2/suexec_log}" - myconf="${myconf} --with-suexec-bin=/usr/sbin/suexec" - myconf="${myconf} --with-suexec-userdir=${SUEXEC_USERDIR:-public_html}" - myconf="${myconf} --with-suexec-caller=${SUEXEC_CALLER:-apache}" - myconf="${myconf} --with-suexec-docroot=${SUEXEC_DOCROOT:-/var/www}" - myconf="${myconf} --with-suexec-uidmin=${SUEXEC_MINUID:-1000}" - myconf="${myconf} --with-suexec-gidmin=${SUEXEC_MINGID:-100}" - myconf="${myconf} --with-suexec-umask=${SUEXEC_UMASK:-077}" - myconf="${myconf} --enable-suexec=${modtype}" - mods="${mods} suexec" - fi - - # econf overwrites the stuff from config.layout, so we have to put them into - # our myconf line too - - econf \ - --includedir=/usr/include/apache2 \ - --libexecdir=/usr/$(get_libdir)/apache2/modules \ - --datadir=/var/www/localhost \ - --sysconfdir=/etc/apache2 \ - --localstatedir=/var \ - --with-mpm=${mpm} \ - --with-perl=/usr/bin/perl \ - --with-expat=/usr \ - --with-z=/usr \ - --with-apr=/usr \ - --with-apr-util=/usr \ - --with-pcre=/usr \ - --with-port=80 \ - --with-program-name=apache2 \ - --enable-layout=Gentoo \ - $( use_enable debug maintainer-mode ) \ - ${myconf} ${MY_BUILTINS} || die "econf failed!" - - sed -i -e 's:apache2\.conf:httpd.conf:' include/ap_config_auto.h - - emake || die "emake failed" -} - -src_install () { - emake DESTDIR="${D}" install || die "emake install failed" - - # This is a mapping of module names to the -D options in APACHE2_OPTS - # Used for creating optional LoadModule lines - mod_defines="info:INFO status:INFO - ldap:LDAP authnz_ldap:AUTH_LDAP - proxy:PROXY proxy_connect:PROXY proxy_http:PROXY - proxy_ajp:PROXY proxy_balancer:PROXY - ssl:SSL - suexec:SUEXEC - userdir:USERDIR" - - # create our LoadModule lines - if ! use static-modules ; then - load_module="" - moddir="${D}/usr/$(get_libdir)/apache2/modules" - for m in ${mods} ; do - endid="no" - - if [[ -e "${moddir}/mod_${m}.so" ]] ; then - for def in ${mod_defines} ; do - if [[ "${m}" == "${def%:*}" ]] ; then - load_module="${load_module}\n<IfDefine ${def#*:}>" - endid="yes" - fi - done - load_module="${load_module}\nLoadModule ${m}_module modules/mod_${m}.so" - if [[ "${endid}" == "yes" ]] ; then - load_module="${load_module}\n</IfDefine>" - fi - fi - done - fi - sed -i -e "s:%%LOAD_MODULE%%:${load_module}:" \ - "${GENTOO_PATCHDIR}"/conf/httpd.conf || die "sed failed" - - # Install our configuration files - insinto /etc/apache2 - doins docs/conf/magic - doins -r "${GENTOO_PATCHDIR}"/conf/* - insinto /etc/logrotate.d - newins "${GENTOO_PATCHDIR}"/scripts/apache2-logrotate apache2 - - # generate a sane default APACHE2_OPTS - APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE" - use doc && APACHE2_OPTS="${APACHE2_OPTS} -D MANUAL" - use ssl && APACHE2_OPTS="${APACHE2_OPTS} -D SSL -D SSL_DEFAULT_VHOST" - use no-suexec || APACHE2_OPTS="${APACHE2_OPTS} -D SUEXEC" - - sed -i -e "s:APACHE2_OPTS=\".*\":APACHE2_OPTS=\"${APACHE2_OPTS}\":" \ - "${GENTOO_PATCHDIR}"/init/apache2.confd || die "sed failed" - - newconfd "${GENTOO_PATCHDIR}"/init/apache2.confd apache2 - newinitd "${GENTOO_PATCHDIR}"/init/apache2.initd apache2 - - # Link apache2ctl to the init script - dosym /etc/init.d/apache2 /usr/sbin/apache2ctl - - # provide symlinks for all the stuff we no longer rename, bug 177697 - for i in suexec apxs; do - dosym /usr/sbin/${i} /usr/sbin/${i}2 - done - - # Install some thirdparty scripts - exeinto /usr/sbin - for i in apache2logserverstatus apache2splitlogfile ; do - doexe "${GENTOO_PATCHDIR}"/scripts/${i} - done - use ssl && doexe "${GENTOO_PATCHDIR}"/scripts/gentestcrt.sh - - # Install some documentation - dodoc ABOUT_APACHE CHANGES LAYOUT README README.platforms VERSIONING - - # drop in a convenient link to the manual - if use doc ; then - sed -i -e "s:VERSION:${PVR}:" "${D}/etc/apache2/modules.d/00_apache_manual.conf" - else - rm -f "${D}/etc/apache2/modules.d/00_apache_manual.conf" - rm -Rf "${D}/usr/share/doc/${PF}/manual" - fi - - # the default webroot gets stored in /usr/share/doc - ebegin "Installing default webroot to /usr/share/doc/${PF}" - mv -f "${D}/var/www/localhost" "${D}/usr/share/doc/${PF}/webroot" - eend $? - - if ! use no-suexec ; then - # Set some sane permissions for suexec - fowners 0:apache /usr/sbin/suexec - fperms 4710 /usr/sbin/suexec - fi - - keepdir /etc/apache2/vhosts.d - keepdir /etc/apache2/modules.d - - # empty dirs - for i in /var/lib/dav /var/log/apache2 /var/cache/apache2 ; do - keepdir ${i} - fowners apache:apache ${i} - fperms 0755 ${i} - done - - # We'll be needing /etc/apache2/ssl if USE=ssl - use ssl && keepdir /etc/apache2/ssl -} - -pkg_postinst() { - # Automatically generate test certificates if ssl USE flag is being set - if use ssl && [[ ! -e "${ROOT}/etc/apache2/ssl/server.crt" ]] ; then - cd "${ROOT}"/etc/apache2/ssl - einfo - einfo "Generating self-signed test certificate in ${ROOT}/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 - elog "The default webroot has not been installed into" - elog "${ROOT}/var/www/localhost because the directory already exists" - elog "and we do not want to overwrite any files you have put there." - elog - elog "If you would like to install the latest webroot, please run" - elog "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:0 "${ROOT}"/var/www/localhost - fi - - # Previous installations of apache-2.2 installed the upstream configuration - # files, which shouldn't even have been installed! - if has_version '>=www-servers/apache-2.2.4' ; then - [ -f "${ROOT}"/etc/apache2/apache2.conf ] && \ - rm -f "${ROOT}"/etc/apache2/apache2.conf >/dev/null 2>&1 - - for i in extra original ; do - [ -d "${ROOT}"/etc/apache2/$i ] && \ - rm -rf "${ROOT}"/etc/apache2/$i >/dev/null 2>&1 - done - fi - - # Note for new location of Listen - if has_version '<www-servers/apache-2.2.4-r7' ; then - elog - elog "Listen directives have been moved into the default virtual host" - elog "configuation. Therefore you have to enabled at least one of" - elog "DEFAULT_VHOST or SSL_DEFAULT_VHOST, otherwise no listening" - elog "sockets would be available." - elog - fi - - # Note the user of the config changes - if has_version '<www-servers/apache-2.2.4-r5' ; then - elog - elog "Please make sure that you update your /etc directory." - elog "Between the versions, we had to changes some config files" - elog "and move some stuff out of the main httpd.conf file to a seperate" - elog "modules.d entry." - elog - elog "Thus please update your /etc directory either via etc-update," - elog "dispatch-conf or conf-update !" - elog - fi - - # Check for dual/upgrade install - if has_version '<www-servers/apache-2.2.0' ; then - elog - elog "When upgrading from versions below 2.2.0 to this version, you" - elog "need to rebuild all your modules. Please do so for your modules" - elog "to continue working correctly." - elog - elog "Also note that some configuration directives have been" - elog "split into their own files under ${ROOT}/etc/apache2/modules.d/" - elog "and that some modules, foremost the authentication related ones," - elog "have been renamed." - elog - elog "Some examples:" - elog " - USERDIR is now configureable in ${ROOT}etc/apache2/modules.d/00_mod_userdir.conf." - elog - elog "For more information on what you may need to change, please" - elog "see the overview of changes at:" - elog "http://httpd.apache.org/docs/2.2/new_features_2_2.html" - elog "and the upgrading guide at:" - elog "http://httpd.apache.org/docs/2.2/upgrading.html" - elog - elog "Some modules do not yet work with Apache 2.2." - elog "To keep from accidentally downgrading to Apache 2.0, you should" - elog "add the following to ${ROOT}/etc/portage/package.mask:" - elog - elog " <www-servers/apache-2.2.0" - elog - fi -} - -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:0 "${ROOT}"/var/www/localhost -} - -parse_modules_config() { - local name="" - local disable="" - local version="undef" - MY_BUILTINS="" - mods="" - [[ -f "${1}" ]] || return 1 - - for i in $(sed 's/#.*//' < $1) ; do - if [[ "$i" == "VERSION:" ]] ; then - version="select" - elif [[ "${version}" == "select" ]] ; then - version="$i" - # start with - option for backwards compatibility only - elif [[ "$i" == "-" ]] ; then - disable="true" - elif [[ -z "${name}" ]] && [[ "$i" != "${i/mod_/}" ]] ; then - name="${i/mod_/}" - elif [[ -n "${disable}" ]] || [[ "$i" == "disabled" ]] ; then - MY_BUILTINS="${MY_BUILTINS} --disable-${name}" - name="" ; disable="" - elif [[ "$i" == "static" ]] || use static-modules ; then - MY_BUILTINS="${MY_BUILTINS} --enable-${name}=static" - name="" ; disable="" - elif [[ "$i" == "shared" ]] ; then - MY_BUILTINS="${MY_BUILTINS} --enable-${name}=shared" - mods="${mods} ${name}" - name="" ; disable="" - else - ewarn "Parse error in ${1} - unknown option: $i" - fi - done - - # reject the file if it's unversioned or doesn't match our - # package major.minor. This is to make upgrading work smoothly. - if [[ "${version}" != "${PV%.*}" ]] ; then - mods="" - MY_BUILTINS="" - return 1 - fi - - einfo "Using ${1}" - einfo "options: ${MY_BUILTINS}" - einfo "LoadModules: ${mods}" -} - -select_modules_config() { - parse_modules_config "${ROOT}"/etc/apache2/apache2-builtin-mods || \ - parse_modules_config "${GENTOO_PATCHDIR}"/conf/apache2-builtin-mods || \ - return 1 -} diff --git a/www-servers/apache/files/digest-apache-2.2.4-r11 b/www-servers/apache/files/digest-apache-2.2.4-r11 new file mode 100644 index 000000000000..f9830a5b8593 --- /dev/null +++ b/www-servers/apache/files/digest-apache-2.2.4-r11 @@ -0,0 +1,6 @@ +MD5 dd60f2d5d6021ddee4dd076097155b36 gentoo-apache-2.2.4-r11-20070802.tar.bz2 59461 +RMD160 bd23851238656d83916e35c6b706f3e830b2763d gentoo-apache-2.2.4-r11-20070802.tar.bz2 59461 +SHA256 b529cf31fb67ebc10e15a52a04035503a4518429f6afa9ce018cd31df3550945 gentoo-apache-2.2.4-r11-20070802.tar.bz2 59461 +MD5 536c86c7041515a25dd8bad3611da9a3 httpd-2.2.4.tar.bz2 4930375 +RMD160 bb6e8a7447fa8e8f629010f30b548068de518523 httpd-2.2.4.tar.bz2 4930375 +SHA256 08ab82eae6418e265d361730e7eadc7d6966dffdb66ee07bd4d9af3f2b28dfc8 httpd-2.2.4.tar.bz2 4930375 diff --git a/www-servers/apache/files/digest-apache-2.2.4-r6 b/www-servers/apache/files/digest-apache-2.2.4-r6 deleted file mode 100644 index 9f9a3b4d896b..000000000000 --- a/www-servers/apache/files/digest-apache-2.2.4-r6 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 b1df5f894ba9b0c8ce2235160037d68e gentoo-apache-2.2.4-r5-20070605.tar.bz2 57317 -RMD160 d5ef8bddc1a470d0a5ef41b1d7d3423054c90626 gentoo-apache-2.2.4-r5-20070605.tar.bz2 57317 -SHA256 507327d1a0029b7583c842b5f9d15a2be54226befe4fe1c32969d267de138363 gentoo-apache-2.2.4-r5-20070605.tar.bz2 57317 -MD5 536c86c7041515a25dd8bad3611da9a3 httpd-2.2.4.tar.bz2 4930375 -RMD160 bb6e8a7447fa8e8f629010f30b548068de518523 httpd-2.2.4.tar.bz2 4930375 -SHA256 08ab82eae6418e265d361730e7eadc7d6966dffdb66ee07bd4d9af3f2b28dfc8 httpd-2.2.4.tar.bz2 4930375 diff --git a/www-servers/apache/files/digest-apache-2.2.4-r7 b/www-servers/apache/files/digest-apache-2.2.4-r7 deleted file mode 100644 index 5987b78a7209..000000000000 --- a/www-servers/apache/files/digest-apache-2.2.4-r7 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 0be9d5c1475bb0631da7016651c17f23 gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 -RMD160 973faaa7d64b6b8fc72218082ffdec408efe5e7a gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 -SHA256 307d499a6493cbd63ed85c6af3e79c380628dc7c34655ac2a0f0108851f1e13e gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 -MD5 536c86c7041515a25dd8bad3611da9a3 httpd-2.2.4.tar.bz2 4930375 -RMD160 bb6e8a7447fa8e8f629010f30b548068de518523 httpd-2.2.4.tar.bz2 4930375 -SHA256 08ab82eae6418e265d361730e7eadc7d6966dffdb66ee07bd4d9af3f2b28dfc8 httpd-2.2.4.tar.bz2 4930375 diff --git a/www-servers/apache/files/digest-apache-2.2.4-r8 b/www-servers/apache/files/digest-apache-2.2.4-r8 deleted file mode 100644 index 5987b78a7209..000000000000 --- a/www-servers/apache/files/digest-apache-2.2.4-r8 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 0be9d5c1475bb0631da7016651c17f23 gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 -RMD160 973faaa7d64b6b8fc72218082ffdec408efe5e7a gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 -SHA256 307d499a6493cbd63ed85c6af3e79c380628dc7c34655ac2a0f0108851f1e13e gentoo-apache-2.2.4-r7-20070615.tar.bz2 57925 -MD5 536c86c7041515a25dd8bad3611da9a3 httpd-2.2.4.tar.bz2 4930375 -RMD160 bb6e8a7447fa8e8f629010f30b548068de518523 httpd-2.2.4.tar.bz2 4930375 -SHA256 08ab82eae6418e265d361730e7eadc7d6966dffdb66ee07bd4d9af3f2b28dfc8 httpd-2.2.4.tar.bz2 4930375 diff --git a/www-servers/apache/files/digest-apache-2.2.4-r9 b/www-servers/apache/files/digest-apache-2.2.4-r9 deleted file mode 100644 index 226a9495f954..000000000000 --- a/www-servers/apache/files/digest-apache-2.2.4-r9 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 d3c169793e47df0a033d3863049f7c94 gentoo-apache-2.2.4-r9-20070710.tar.bz2 57164 -RMD160 d23cb1c572a0ebfaf17fe2061ac44334c1cd65ff gentoo-apache-2.2.4-r9-20070710.tar.bz2 57164 -SHA256 90c54e2fb025fa4d7c85254b2fccc0a0000e85e7e2547de102eafa61ed46618a gentoo-apache-2.2.4-r9-20070710.tar.bz2 57164 -MD5 536c86c7041515a25dd8bad3611da9a3 httpd-2.2.4.tar.bz2 4930375 -RMD160 bb6e8a7447fa8e8f629010f30b548068de518523 httpd-2.2.4.tar.bz2 4930375 -SHA256 08ab82eae6418e265d361730e7eadc7d6966dffdb66ee07bd4d9af3f2b28dfc8 httpd-2.2.4.tar.bz2 4930375 |