Index: Manifest =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-perl/mod_perl/Manifest,v --- Manifest 30 Dec 2004 19:03:36 -0000 1.43 +++ Manifest 27 Feb 2005 10:48:44 -0000 @@ -1,33 +1,40 @@ -MD5 a1141c430c0b7356ce812dd1bfd8854a mod_perl-1.99.08.ebuild 1237 -MD5 0525b089ad91f31dffd83c0d1300ffc4 mod_perl-1.99.11.ebuild 3783 -MD5 66a0226a2c0f697be1dabcaecac8adfa mod_perl-1.99.17.ebuild 3825 -MD5 8d2945f86f75caca1f479d2053b912ac mod_perl-1.99.16.ebuild 3813 -MD5 e48765f4129ef6e27824df62a47fd14a mod_perl-1.29.ebuild 2470 MD5 0013befe326225d2f22917b3e5d39e4f ChangeLog 6164 -MD5 883e4913a359e585ff84d4f53f629035 mod_perl-1.27-r4.ebuild 2179 -MD5 b101308b1017072f3d62def1ed834ab1 mod_perl-1.99.09.ebuild 3673 -MD5 8a0d2f0c7b7d8c36e2ddb832c504ed9f mod_perl-1.27-r2.ebuild 1817 -MD5 5ae689acb9f9ed419a3b1542bab72e5b mod_perl-1.99.17-r1.ebuild 4217 +MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305 MD5 bfb9cdc72acb74032ddf255b4d1a5a2e mod_perl-1.27-r1.ebuild 1423 +MD5 8a0d2f0c7b7d8c36e2ddb832c504ed9f mod_perl-1.27-r2.ebuild 1817 +MD5 883e4913a359e585ff84d4f53f629035 mod_perl-1.27-r4.ebuild 2179 MD5 c614eea076228afa05a30a7f0dbadf2a mod_perl-1.27.ebuild 1417 -MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305 +MD5 e48765f4129ef6e27824df62a47fd14a mod_perl-1.29.ebuild 2470 +MD5 a1141c430c0b7356ce812dd1bfd8854a mod_perl-1.99.08.ebuild 1237 +MD5 b101308b1017072f3d62def1ed834ab1 mod_perl-1.99.09.ebuild 3673 MD5 a366c1cb1f861c8f0041d9ce4e210698 mod_perl-1.99.10.ebuild 3824 -MD5 4869c6ea8e02d871a03455d28b6f6cfb files/digest-mod_perl-1.99.08 68 -MD5 2937c8efc4e2d9dd8fff843ab63f5c14 files/digest-mod_perl-1.99.17 69 +MD5 0525b089ad91f31dffd83c0d1300ffc4 mod_perl-1.99.11.ebuild 3783 +MD5 8d2945f86f75caca1f479d2053b912ac mod_perl-1.99.16.ebuild 3813 +MD5 5ae689acb9f9ed419a3b1542bab72e5b mod_perl-1.99.17-r1.ebuild 4217 +MD5 66a0226a2c0f697be1dabcaecac8adfa mod_perl-1.99.17.ebuild 3825 +MD5 620eaac080f7e6f22d18b9d73bb6f876 mod_perl-2.0.0_rc4.ebuild 3384 +MD5 460b2c916a67bd5cbbfd0eea978b6afe mod_perl-1.29-r1.ebuild 2044 +MD5 2415e6be73ba155382b34b5e2fad4951 files/75_mod_perl.conf 247 +MD5 39a4d91d1d90d32f90dea3c00a1680d7 files/apache2-mod_perl-startup.pl 483 +MD5 1e0341f9b7bd3c3f74c25e60eb3188c8 files/mod_perl-1.27-ipv6.patch 1207 MD5 1e0341f9b7bd3c3f74c25e60eb3188c8 files/mod_perl-1.29-ipv6.patch 1207 MD5 e749acb150e339917257be38febb568e files/mod_perl-1.99.10-nonukes.patch 777 -MD5 39a4d91d1d90d32f90dea3c00a1680d7 files/apache2-mod_perl-startup.pl 483 -MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27 65 -MD5 2937c8efc4e2d9dd8fff843ab63f5c14 files/digest-mod_perl-1.99.17-r1 69 +MD5 8c8ec63f03d3ffb51fa26b6df03a5710 files/mod_perl-1.99.16-sneak-tmpdir.patch 395 MD5 300bce7b1dad6fda0b18cfdbf592a828 files/mod_perl-1.99.17-Apache2.pm 1149 -MD5 5ff16293368688eefecc4a6066eb8914 files/digest-mod_perl-1.99.10 69 -MD5 1e0341f9b7bd3c3f74c25e60eb3188c8 files/mod_perl-1.27-ipv6.patch 1207 -MD5 5fb9123a821e261a210c5fca0ff94976 files/digest-mod_perl-1.99.09 68 -MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27-r2 65 MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27-r1 65 +MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27-r2 65 +MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27-r4 65 +MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27 65 +MD5 33270eaaa2c9bc9cef3a4a45afaeca34 files/digest-mod_perl-1.29-r1 65 MD5 33270eaaa2c9bc9cef3a4a45afaeca34 files/digest-mod_perl-1.29 65 -MD5 2415e6be73ba155382b34b5e2fad4951 files/75_mod_perl.conf 247 -MD5 13d314750ba5772dc7de4d9023d137ad files/digest-mod_perl-1.99.16 69 -MD5 8c8ec63f03d3ffb51fa26b6df03a5710 files/mod_perl-1.99.16-sneak-tmpdir.patch 395 +MD5 4869c6ea8e02d871a03455d28b6f6cfb files/digest-mod_perl-1.99.08 68 +MD5 5fb9123a821e261a210c5fca0ff94976 files/digest-mod_perl-1.99.09 68 +MD5 5ff16293368688eefecc4a6066eb8914 files/digest-mod_perl-1.99.10 69 MD5 278c6266498d8bef49b54f30774aa305 files/digest-mod_perl-1.99.11 69 -MD5 05455750ba5b64e18dbcfd113193e7cd files/digest-mod_perl-1.27-r4 65 +MD5 13d314750ba5772dc7de4d9023d137ad files/digest-mod_perl-1.99.16 69 +MD5 2937c8efc4e2d9dd8fff843ab63f5c14 files/digest-mod_perl-1.99.17-r1 69 +MD5 2937c8efc4e2d9dd8fff843ab63f5c14 files/digest-mod_perl-1.99.17 69 +MD5 474fcc8181b63d8ef9b8baa3de1c4622 files/digest-mod_perl-2.0.0_rc4 71 +MD5 021468d364eaa007ab27fd2351f5374e files/2.0.0/75_mod_perl.conf 224 +MD5 aa43b5a8a5cc777a979de6b8956eeeaa files/2.0.0/apache2-mod_perl-startup.pl 486 +MD5 b3fcafd0b6d40149efa9127fd3023924 files/1.29/75_mod_perl.conf 113 Index: mod_perl-1.29-r1.ebuild =================================================================== RCS file: mod_perl-1.29-r1.ebuild --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ mod_perl-1.29-r1.ebuild 27 Feb 2005 10:48:44 -0000 @@ -0,0 +1,70 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mod_perl/mod_perl-1.29.ebuild,v 1.7 2004/07/14 19:39:45 agriffis Exp $ + +inherit eutils fixheadtails apache-module + +DESCRIPTION="A Perl Module for Apache" +SRC_URI="http://perl.apache.org/dist/${P}.tar.gz" +HOMEPAGE="http://perl.apache.org" + +SLOT="0" +LICENSE="Apache-1.1" +KEYWORDS="~x86 ~amd64 ~ppc ~sparc alpha ia64" +IUSE="ipv6" + +DEPEND="dev-lang/perl dev-perl/libwww-perl >=sys-apps/sed-4" + +APACHE1_MOD_FILE="${S}/apaci/libperl.so" +APACHE1_MOD_CONF="1.29/75_${PN}" +APACHE1_MOD_DEFINE="PERL" + +DOCFILES="Changes CREDITS MANIFEST README SUPPORT ToDo" + +need_apache1 + +src_unpack() { + unpack ${A} || die "unpack failed" + cd ${S} || die "cd to \$S failed" + + if has_version '>=apache-1.3.27-r4' && useq ipv6; then + # This patch originally came from + # http://pasky.ji.cz/~pasky/dev/apache/mod_perl-1.27+ipv6.patch. + # It allows mod_perl to correctly build with an IPv6-enabled + # Apache (bug #6986). + # Robert Coie 2002.02.19 + epatch ${FILESDIR}/${P}-ipv6.patch + fi + + ht_fix_file apaci/mod_perl.config.sh + ht_fix_file apaci/libperl.module +} + +src_compile() { + perl Makefile.PL INSTALLDIRS=vendor USE_APXS=1 \ + WITH_APXS=${APXS1} EVERYTHING=1 || die "configure failed" + emake || die "make failed" +} + +src_install () { + eval `perl '-V:installvendorarch'` + eval `perl '-V:installvendorlib'` + + make PREFIX=${D}/usr \ + INSTALLVENDORARCH=${D}/${installvendorarch} \ + INSTALLVENDORLIB=${D}/${installvendorlib} \ + INSTALLVENDORMAN1DIR=${D}/usr/share/man/man1 \ + INSTALLVENDORMAN3DIR=${D}/usr/share/man/man3 \ + pure_vendor_install || die "make instal failed" + + dohtml -r ./ + + # The following kludge is from the perl-module eclass to correct + # the packlist file. packlist is used by other apps to determine + # where to find parts of mod-perl + for FILE in `find ${D} -type f -name "*.html" -o -name ".packlist"`; do + sed -i -e "s:${D}:/:g" ${FILE} + done + + apache-module_src_install +} Index: mod_perl-2.0.0_rc4.ebuild =================================================================== RCS file: mod_perl-2.0.0_rc4.ebuild --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ mod_perl-2.0.0_rc4.ebuild 27 Feb 2005 10:48:44 -0000 @@ -0,0 +1,109 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/mod_perl/mod_perl-1.99.17-r1.ebuild,v 1.1 2004/11/14 02:10:02 rac Exp $ + +inherit eutils apache-module + +DESCRIPTION="An embedded Perl interpreter for Apache2" +SRC_URI="http://perl.apache.org/dist/${P/_rc/-RC}.tar.gz" +HOMEPAGE="http://perl.apache.org/" + +LICENSE="Apache-2.0" +KEYWORDS="~x86" +IUSE="" +SLOT="1" + +S=${WORKDIR}/${P/_rc/-RC} + +APACHE2_MOD_FILE="${S}/src/modules/perl/mod_perl.so" +APACHE2_MOD_CONF="2.0.0/75_${PN}" +APACHE2_MOD_DEFINE="PERL" + +DOCFILES="Changes INSTALL LICENSE README STATUS" + +# see bug 30087 for why sudo is in here +DEPEND="dev-lang/perl + >=dev-perl/CGI-2.93 + >=sys-apps/sed-4 + app-admin/sudo" + +need_apache2 + +src_unpack() { + unpack ${A} || die "unpack failed" + cd ${S} || die "cd failed" + + # 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 2003.05.06 + + sed -i -e "s/sleep \$_/sleep \$_ << 2/" ${S}/Apache-Test/lib/Apache/TestServer.pm || die "problem editing TestServer.pm" +} + +src_compile() { + perl Makefile.PL \ + PREFIX=${D}/usr \ + MP_TRACE=1 \ + MP_DEBUG=1 \ + MP_USE_DSO=3 \ + MP_INST_APACHE2=1 \ + MP_APXS=${APXS2} \ + CCFLAGS="${CFLAGS} -fPIC" \ + INSTALLDIRS=vendor + + LoadModule perl_module modules/libperl.so + + Index: files/2.0.0/75_mod_perl.conf =================================================================== RCS file: files/2.0.0/75_mod_perl.conf --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/2.0.0/75_mod_perl.conf 27 Feb 2005 10:48:44 -0000 @@ -0,0 +1,11 @@ + + + LoadModule perl_module modules/mod_perl.so + + + + + #PerlTrace all + PerlRequire conf/modules.d/apache2-mod_perl-startup.pl + + Index: files/2.0.0/apache2-mod_perl-startup.pl =================================================================== RCS file: files/2.0.0/apache2-mod_perl-startup.pl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/2.0.0/apache2-mod_perl-startup.pl 27 Feb 2005 10:48:44 -0000 @@ -0,0 +1,26 @@ +use Apache2 (); + +use lib qw(/home/httpd/perl); + +# enable if the mod_perl 1.0 compatibility is needed +#use Apache::compat (); + +use ModPerl::Util (); #for CORE::GLOBAL::exit + +use Apache::RequestRec (); +use Apache::RequestIO (); +use Apache::RequestUtil (); + +use Apache::ServerRec (); +use Apache::ServerUtil (); +use Apache::Connection (); +use Apache::Log (); + +use APR::Table (); + +use ModPerl::Registry (); + +use Apache::Const -compile => ':common'; +use APR::Const -compile => ':common'; + +1;