diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-01-06 21:02:11 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-01-06 21:02:11 +0000 |
commit | fd9ed808f4139d92df47d000dac58aea4f2b9f2d (patch) | |
tree | 48e9e43f9b2830128c75940e5f03e4d66685b1ad /www-apache | |
parent | Fix depends wrt #204546. Call xmkmf without -a since it's not needed. Drop fa... (diff) | |
download | historical-fd9ed808f4139d92df47d000dac58aea4f2b9f2d.tar.gz historical-fd9ed808f4139d92df47d000dac58aea4f2b9f2d.tar.bz2 historical-fd9ed808f4139d92df47d000dac58aea4f2b9f2d.zip |
fix #182235, #199183
Package-Manager: portage-2.1.4_rc11
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/mod_perl/ChangeLog | 10 | ||||
-rw-r--r-- | www-apache/mod_perl/Manifest | 33 | ||||
-rw-r--r-- | www-apache/mod_perl/files/2.0.3/75_mod_perl.conf | 100 | ||||
-rw-r--r-- | www-apache/mod_perl/files/digest-mod_perl-2.0.3-r2 | 3 | ||||
-rw-r--r-- | www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild | 137 |
5 files changed, 219 insertions, 64 deletions
diff --git a/www-apache/mod_perl/ChangeLog b/www-apache/mod_perl/ChangeLog index ed6a0cd9d27d..fb1d5346a546 100644 --- a/www-apache/mod_perl/ChangeLog +++ b/www-apache/mod_perl/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-apache/mod_perl -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.52 2007/06/13 12:49:28 chtekk Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/ChangeLog,v 1.53 2008/01/06 21:02:10 hollow Exp $ + +*mod_perl-2.0.3-r2 (06 Jan 2008) + + 06 Jan 2008; Benedikt Böhm <hollow@gentoo.org> + files/2.0.3/75_mod_perl.conf, +mod_perl-2.0.3-r2.ebuild: + fix #182235, #199183 13 Jun 2007; Luca Longinotti <chtekk@gentoo.org> -files/1.29/75_mod_perl.conf, -files/1.30/75_mod_perl.conf, diff --git a/www-apache/mod_perl/Manifest b/www-apache/mod_perl/Manifest index 6c50ad7d2eac..6f6af323763b 100644 --- a/www-apache/mod_perl/Manifest +++ b/www-apache/mod_perl/Manifest @@ -1,7 +1,10 @@ -AUX 2.0.3/75_mod_perl.conf 1527 RMD160 004a033bff0767a6ac6bbca7a4e72b7aaf9c512b SHA1 932200f5ecbe5b509f3fc71d91a5ca227286115f SHA256 9a0daac395f370a2c1146db519f8ac9a99e716479a26c58ff794028f4660efd4 -MD5 4dcf07748f65bc0682e4d739ec14535d files/2.0.3/75_mod_perl.conf 1527 -RMD160 004a033bff0767a6ac6bbca7a4e72b7aaf9c512b files/2.0.3/75_mod_perl.conf 1527 -SHA256 9a0daac395f370a2c1146db519f8ac9a99e716479a26c58ff794028f4660efd4 files/2.0.3/75_mod_perl.conf 1527 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 2.0.3/75_mod_perl.conf 1192 RMD160 5232def2ea41d7263da6c2adccd679ec295c7d73 SHA1 3e3f569b9440bb0ef398f8af716b15415836a104 SHA256 6831925bb284b9ce73c41aeb767b7673014f2a6148f389a28f29bb3aec07b734 +MD5 dfd7e0ee2ddf944950a4c297c300f873 files/2.0.3/75_mod_perl.conf 1192 +RMD160 5232def2ea41d7263da6c2adccd679ec295c7d73 files/2.0.3/75_mod_perl.conf 1192 +SHA256 6831925bb284b9ce73c41aeb767b7673014f2a6148f389a28f29bb3aec07b734 files/2.0.3/75_mod_perl.conf 1192 AUX 2.0.3/apache2-mod_perl-startup.pl 478 RMD160 ef12070dd5e5707286e3c714ec3aeae78ce5cfd4 SHA1 80ece64910771b6c36d7b2d30373287bc1bf4b87 SHA256 f77741fb3bb18928fb15f95c6908a17d8f06d7efbb6785e0732f201347e26544 MD5 39bbf08146125b9be7559d5c2d16b400 files/2.0.3/apache2-mod_perl-startup.pl 478 RMD160 ef12070dd5e5707286e3c714ec3aeae78ce5cfd4 files/2.0.3/apache2-mod_perl-startup.pl 478 @@ -19,10 +22,14 @@ EBUILD mod_perl-2.0.3-r1.ebuild 5297 RMD160 999a76d7bd87b18294fc8ee7e01abd54af8d MD5 2ff103c966c5e45d6171d7c4c49089d0 mod_perl-2.0.3-r1.ebuild 5297 RMD160 999a76d7bd87b18294fc8ee7e01abd54af8d08ae mod_perl-2.0.3-r1.ebuild 5297 SHA256 8a503f3f1f9c8458f164257b60a79b1118f1c649c7d6c8d265d677a2af91b924 mod_perl-2.0.3-r1.ebuild 5297 -MISC ChangeLog 17500 RMD160 1f4932df3773a145dde1752f24451d86e7d53a93 SHA1 87dc499fa2f93901a2346b255af4ba77287f6e00 SHA256 05934ab42340c79d9e76a5a89280b3e2cad8ceaaca3f5d0ffb05288bdb4bd6f6 -MD5 7fece466bcb7908ce104b4e5867cad84 ChangeLog 17500 -RMD160 1f4932df3773a145dde1752f24451d86e7d53a93 ChangeLog 17500 -SHA256 05934ab42340c79d9e76a5a89280b3e2cad8ceaaca3f5d0ffb05288bdb4bd6f6 ChangeLog 17500 +EBUILD mod_perl-2.0.3-r2.ebuild 4578 RMD160 0c05f086e7f59ae97dd9492102cf9505459c4ff6 SHA1 2a2d254fc0f93a8d7fc2b93dc13ea956f4e1e5e3 SHA256 f4ee54bb51271e603ac4989b474b42ea97591a9263ab5f13759e833806983b70 +MD5 3edb60ac2a5adc4f0024bb02942dc54e mod_perl-2.0.3-r2.ebuild 4578 +RMD160 0c05f086e7f59ae97dd9492102cf9505459c4ff6 mod_perl-2.0.3-r2.ebuild 4578 +SHA256 f4ee54bb51271e603ac4989b474b42ea97591a9263ab5f13759e833806983b70 mod_perl-2.0.3-r2.ebuild 4578 +MISC ChangeLog 17667 RMD160 846bce123fda9c9011a09ef102807d83793fbdc5 SHA1 bf7db362e62af6c10e88a39d822c22bce86a70a5 SHA256 187ea4cb583e617d2be70b6ea07cb78b24e026b8b24c29a32a9e45b9818bb7f1 +MD5 61934387df9e3dec8cbd32ba31220e12 ChangeLog 17667 +RMD160 846bce123fda9c9011a09ef102807d83793fbdc5 ChangeLog 17667 +SHA256 187ea4cb583e617d2be70b6ea07cb78b24e026b8b24c29a32a9e45b9818bb7f1 ChangeLog 17667 MISC metadata.xml 289 RMD160 490c4256f14e1d9f37d432f700d4daea64a76b7c SHA1 e17d9d05b33898dddf745543d699ccb7348afc0a SHA256 a6c8f7ccb9eed3ab8dc936a39b96af61d48b48734852c78b80d85979508a13ce MD5 842a29d05716f8b272ce39f7c4992d4b metadata.xml 289 RMD160 490c4256f14e1d9f37d432f700d4daea64a76b7c metadata.xml 289 @@ -30,3 +37,13 @@ SHA256 a6c8f7ccb9eed3ab8dc936a39b96af61d48b48734852c78b80d85979508a13ce metadata MD5 2cee3dc20b5fa45bf9b68d7c1d48ea0a files/digest-mod_perl-2.0.3-r1 247 RMD160 67aa385d26608262c1984a6d0e1049aad6100fa7 files/digest-mod_perl-2.0.3-r1 247 SHA256 8fa24b53fca491ae5c32d3ca402e74417c2d1cb21be10cbd73319ca869b154ba files/digest-mod_perl-2.0.3-r1 247 +MD5 2cee3dc20b5fa45bf9b68d7c1d48ea0a files/digest-mod_perl-2.0.3-r2 247 +RMD160 67aa385d26608262c1984a6d0e1049aad6100fa7 files/digest-mod_perl-2.0.3-r2 247 +SHA256 8fa24b53fca491ae5c32d3ca402e74417c2d1cb21be10cbd73319ca869b154ba files/digest-mod_perl-2.0.3-r2 247 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.8 (GNU/Linux) + +iEYEARECAAYFAkeBQdcACgkQmPFBzbX68WFW/gCfVji1iFioYrkobj558SDIYzw6 +D1wAoIgMBjLNRRgNQQipEmApk/h2W1zt +=KEbH +-----END PGP SIGNATURE----- diff --git a/www-apache/mod_perl/files/2.0.3/75_mod_perl.conf b/www-apache/mod_perl/files/2.0.3/75_mod_perl.conf index 96455b51e209..470bc45345ab 100644 --- a/www-apache/mod_perl/files/2.0.3/75_mod_perl.conf +++ b/www-apache/mod_perl/files/2.0.3/75_mod_perl.conf @@ -1,56 +1,48 @@ <IfDefine PERL> - <IfModule !mod_perl.c> - LoadModule perl_module modules/mod_perl.so - </IfModule> +LoadModule perl_module modules/mod_perl.so + +#PerlTrace all +PerlRequire "/etc/apache2/modules.d/apache2-mod_perl-startup.pl" +PerlModule ModPerl::Registry + +# Provide two aliases to the same cgi-bin directory, to see the effects of the +# 2 different mod_perl modes for Apache2::Registry Mode +Alias /perl/ /var/www/localhost/perl/ +# for Apache2::Perlrun Mode +Alias /cgi-perl/ /var/www/localhost/perl/ + +<Location /perl-status> + SetHandler perl-script + PerlResponseHandler Apache2::Status + Order deny,allow + Deny from all + Allow from 127.0.0.1 +</Location> + +<Directory /home/*/public_html/perl> + SetHandler perl-script + PerlResponseHandler ModPerl::PerlRun + Options -Indexes ExecCGI + PerlOptions +ParseHeaders +</Directory> + +# set Apache::Registry Mode for /perl Alias +<Location /perl/*.pl> + SetHandler perl-script + PerlResponseHandler ModPerl::Registry + Options -Indexes ExecCGI + PerlSendHeader On + Order allow,deny + Allow from all +</Location> + +# set Apache::PerlRun Mode for /cgi-perl Alias +<Location /cgi-perl/*.pl> + SetHandler perl-script + PerlResponseHandler ModPerl::PerlRun + Options -Indexes ExecCGI + PerlSendHeader On + Order allow,deny + Allow from all +</Location> </IfDefine> - -<IfModule mod_perl.c> - #PerlTrace all - PerlRequire "/etc/apache2/modules.d/apache2-mod_perl-startup.pl" - - #Provide two aliases to the same cgi-bin directory, - #to see the effects of the 2 different mod_perl modes - #for Apache2::Registry Mode - Alias /perl/ /var/www/localhost/perl/ - #for Apache2::Perlrun Mode - Alias /cgi-perl/ /var/www/localhost/perl/ - - <IfModule mod_access.c> - <Location /perl-status> - SetHandler perl-script - PerlResponseHandler Apache2::Status - Order deny,allow - Deny from all - Allow from 127.0.0.1 - </Location> - </IfModule> - - <Directory /home/*/public_html/perl> - SetHandler perl-script - PerlResponseHandler ModPerl::PerlRun - Options -Indexes ExecCGI - PerlOptions +ParseHeaders - </Directory> - - PerlModule ModPerl::Registry - #set Apache::Registry Mode for /perl Alias - # To set subdirectories to use perl set the following - # and comment the orignial: - # <Location ~ "^/perl/.*\.pl$"> - <Location "^/perl/*.pl> - SetHandler perl-script - PerlResponseHandler ModPerl::Registry - Options -Indexes ExecCGI - PerlSendHeader On - </Location> - - #set Apache::PerlRun Mode for /cgi-perl Alias - <Location /cgi-perl/*.pl> - SetHandler perl-script - PerlResponseHandler ModPerl::PerlRun - Options -Indexes ExecCGI - PerlSendHeader On - </Location> - -</ifModule> - diff --git a/www-apache/mod_perl/files/digest-mod_perl-2.0.3-r2 b/www-apache/mod_perl/files/digest-mod_perl-2.0.3-r2 new file mode 100644 index 000000000000..3678f6181c60 --- /dev/null +++ b/www-apache/mod_perl/files/digest-mod_perl-2.0.3-r2 @@ -0,0 +1,3 @@ +MD5 b40e2adf67c6be15a0041af1c67b6997 mod_perl-2.0.3.tar.gz 3714974 +RMD160 29662a131c1bef6e4adc551d4467d12931a4d919 mod_perl-2.0.3.tar.gz 3714974 +SHA256 df257f233ed6a5c9f8589d6e059563f816bf417f164fc3364a2a434de13045f2 mod_perl-2.0.3.tar.gz 3714974 diff --git a/www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild b/www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild new file mode 100644 index 000000000000..c367f6829c1d --- /dev/null +++ b/www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_perl/mod_perl-2.0.3-r2.ebuild,v 1.1 2008/01/06 21:02:10 hollow Exp $ + +inherit apache-module perl-module eutils multilib + +DESCRIPTION="An embedded Perl interpreter for Apache2" +SRC_URI="mirror://cpan/authors/id/P/PG/PGOLLUCCI/${P}.tar.gz" +HOMEPAGE="http://perl.apache.org/" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" +SLOT="1" + +# see bug 30087 for why sudo is in here +DEPEND=">=dev-perl/Apache-Test-1.27 + >=virtual/perl-CGI-3.08 + >=dev-perl/Compress-Zlib-1.09 + app-admin/sudo" +RDEPEND="${DEPEND}" + +APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so" +APACHE2_MOD_CONF="${PV}/75_${PN}" +APACHE2_MOD_DEFINE="PERL" + +DOCFILES="Changes INSTALL LICENSE README STATUS" + +need_apache2 + +pkg_setup() { + if built_with_use dev-lang/perl ithreads; then + APACHE2_SAFE_MPMS="event worker" + else + APACHE2_SAFE_MPMS="prefork itk peruser" + fi + apache-module_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # I am not entirely happy with this solution, but here's what's + # going on here if someone wants to take a stab at another + # approach. When userpriv compilation is off, then the make + # process drops to user "nobody" to run the test servers. This + # server is closed, and then the socket is rebound using + # SO_REUSEADDR. If the same user does this, there is no problem, + # and the socket may be rebound immediately. If a different user + # (yes, in my testing, even root) attempts to rebind, it fails. + # Since the "is the socket available yet" code and the + # second-batch bind call both run as root, this will fail. + + # The upstream settings on my test machine cause the second batch + # of tests to fail, believing the socket to still be in use. I + # tried patching various parts to make them run as the user + # specified in $config->{vars}{user} using getpwnam, but found + # this patch to be fairly intrusive, because the userid must be + # restored and the patch must be applied to multiple places. + + # For now, we will simply extend the timeout in hopes that in the + # non-userpriv case, the socket will clear from the kernel tables + # normally, and the tests will proceed. + + # If anybody is still having problems, then commenting out "make + # test" below should allow the software to build properly. + + # Robert Coie <rac@gentoo.org> 2003.05.06 + + sed -i -e "s/sleep \$_/sleep \$_ << 2/" "${S}"/Apache-Test/lib/Apache/TestServer.pm || die "problem editing TestServer.pm" + + # i wonder if this is the same sandbox issue, but TMPDIR is not + # getting through via SetEnv. sneak it through here. Bug 172676 + epatch "${FILESDIR}"/RegistryCooker.patch + + # rendhalver - this got redone for 2.0.1 and seems to fix the make test problems + epatch "${FILESDIR}"/mod_perl-2.0.1-sneak-tmpdir.patch +} + +src_compile() { + perl Makefile.PL \ + PREFIX="${D}"/usr \ + MP_TRACE=1 \ + MP_DEBUG=1 \ + MP_USE_DSO=1 \ + MP_APXS=${APXS2} \ + INSTALLDIRS=vendor </dev/null || die + + # reported that parallel make is broken in bug 30257 + emake -j1 || die +} + +src_test() { + # make test notes whether it is running as root, and drops + # privileges all the way to "nobody" if so, so we must adjust + # write permissions accordingly in this case. + + # IF YOU SUDO TO EMERGE AND HAVE !env_reset set testing will fail! + if [[ "$(id -u)" == "0" ]]; then + chown nobody:nobody "${WORKDIR}" + chown nobody:nobody "${T}" + fi + + # this does not || die because of bug 21325. kudos to smark for + # the idea of setting HOME. + TMPDIR="${T}" HOME="${T}/" make test +} + +src_install() { + apache-module_src_install + + dodir "${APACHE2_MODULESDIR}" + make install \ + MODPERL_AP_LIBEXECDIR="${D}${APACHE2_MODULESDIR}" \ + MODPERL_AP_INCLUDEDIR="${D}/usr/include/apache2" \ + MP_INST_APACHE2=1 \ + INSTALLDIRS=vendor || die + + # rendhalver - fix the perllocal.pod that gets installed + # it seems to me that this has been getting installed for ages + fixlocalpod + + insinto "${APACHE2_MODULES_CONFDIR}" + doins "${FILESDIR}"/${PV}/apache2-mod_perl-startup.pl + cp -pPR docs "${D}"/usr/share/doc/${PF} + cp -pPR todo "${D}"/usr/share/doc/${PF} + + # this is an attempt to get @INC in line with /usr/bin/perl. + # there is blib garbage in the mainstream one that can only be + # useful during internal testing, so we wait until here and then + # just go with a clean slate. should be much easier to see what's + # happening and revert if problematic. + for FILE in $(grep -lr portage "${D}"/*|grep -v ".so"); do + sed -i -e "s:${D}:/:g" ${FILE} + done +} |