summaryrefslogtreecommitdiff
path: root/www-apache
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2006-11-03 02:46:55 +0100
committerBertrand Jacquin <beber@meleeweb.net>2006-11-03 02:46:55 +0100
commitee7540ba68007cdd985601f871f089b2d75e6a54 (patch)
treea0caafc33cb74f0de739e6e0652fac6b14623ecd /www-apache
parenttest3 (diff)
downloadportage-ee7540ba68007cdd985601f871f089b2d75e6a54.tar.xz
add deps for alphamail
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/libapreq2/ChangeLog91
-rw-r--r--www-apache/libapreq2/Manifest28
-rw-r--r--www-apache/libapreq2/files/76_mod_apreq.conf15
-rw-r--r--www-apache/libapreq2/files/digest-libapreq2-2.083
-rw-r--r--www-apache/libapreq2/files/libapreq2-2.0-binloc.patch65
-rw-r--r--www-apache/libapreq2/files/libapreq2-2.0-sandbox.patch33
-rw-r--r--www-apache/libapreq2/libapreq2-2.08.ebuild90
-rw-r--r--www-apache/libapreq2/metadata.xml10
-rw-r--r--www-apache/mod_perl2/Manifest48
-rw-r--r--www-apache/mod_perl2/files/1.29/75_mod_perl.conf6
-rw-r--r--www-apache/mod_perl2/files/2.0.1/75_mod_perl.conf56
-rw-r--r--www-apache/mod_perl2/files/2.0.1/apache2-mod_perl-startup.pl24
-rw-r--r--www-apache/mod_perl2/files/2.0.2/75_mod_perl.conf56
-rw-r--r--www-apache/mod_perl2/files/2.0.2/apache2-mod_perl-startup.pl24
-rw-r--r--www-apache/mod_perl2/files/75_mod_perl.conf11
-rw-r--r--www-apache/mod_perl2/files/apache2-mod_perl-startup.pl26
-rw-r--r--www-apache/mod_perl2/files/digest-mod_perl2-2.0.23
-rw-r--r--www-apache/mod_perl2/files/mod_perl-1.99.16-sneak-tmpdir.patch11
-rw-r--r--www-apache/mod_perl2/files/mod_perl-1.99.17-Apache2.pm48
-rw-r--r--www-apache/mod_perl2/files/mod_perl-2.0.1-sneak-tmpdir.patch11
-rw-r--r--www-apache/mod_perl2/mod_perl2-2.0.2.ebuild156
21 files changed, 815 insertions, 0 deletions
diff --git a/www-apache/libapreq2/ChangeLog b/www-apache/libapreq2/ChangeLog
new file mode 100644
index 00000000..783c4099
--- /dev/null
+++ b/www-apache/libapreq2/ChangeLog
@@ -0,0 +1,91 @@
+# ChangeLog for www-apache/libapreq2
+# Copyright 2003-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/libapreq2/ChangeLog,v 1.19 2006/10/20 19:45:32 kloeri Exp $
+
+ 20 Oct 2006; Bryan Østergaard <kloeri@gentoo.org> libapreq2-2.07.ebuild:
+ Stable on Alpha.
+
+*libapreq2-2.07-r1 (21 Aug 2006)
+
+ 21 Aug 2006; Yuval Yaari <yuval@gentoo.org> +libapreq2-2.07-r1.ebuild:
+ (Bug #129432) Revision-bump; removed un-needed dep (app-doc/doxygen -- only
+ needed when building apreq from svn)
+
+ 20 Aug 2006; Yuval Yaari <yuval@gentoo.org> -libapreq2-2.04.03.ebuild,
+ -libapreq2-2.06.ebuild:
+ security cleanup (bug #140543)
+
+ 02 Jul 2006; Michael Cummings <mcummings@gentoo.org>
+ libapreq2-2.07.ebuild:
+ Marking stable amd64
+
+ 04 Jun 2006; Michael Stewart <vericgar@gentoo.org> libapreq2-2.07.ebuild:
+ Address dependency issues caused by depend.apache. Refer to bug 107127.
+
+ 11 Apr 2006; <mcummings@gentoo.org> libapreq2-2.07.ebuild:
+ Marking sparc stable
+
+ 09 Apr 2006; <mcummings@gentoo.org> libapreq2-2.07.ebuild:
+ Syntax fixes, closes bug 77547
+
+ 08 Apr 2006; Bryan Østergaard <kloeri@gentoo.org libapreq2-2.07.ebuild:
+ Stable on x86, bug 128610.
+
+ 03 Apr 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ libapreq2-2.07.ebuild:
+ ppc stable, bug #128610
+
+ 11 Mar 2006; Michael Hanselmann <hansmi@gentoo.org> libapreq2-2.06.ebuild:
+ Stable on ppc.
+
+ 27 Feb 2006; <mcumming@gentoo.org> libapreq2-2.07.ebuild:
+ Removed doc from iuse - no longer do i use. ha.
+
+ 27 Feb 2006; <mcumming@gentoo.org> libapreq2-2.07.ebuild:
+ Trailing white space, oh the humanity (thanks rl03 for noticing both typos btw)
+
+ 27 Feb 2006; <mcumming@gentoo.org> libapreq2-2.07.ebuild:
+ doxygen is no longer optional; syntax in unpack
+
+*libapreq2-2.07 (26 Feb 2006)
+
+ 26 Feb 2006; Michael Cummings <mcummings@gentoo.org>
+ libapreq2-2.06.ebuild, +libapreq2-2.07.ebuild:
+ Marking 2.06 stable, adding 2.07
+
+ 14 Aug 2005; Fernando J. Pereda <ferdy@gentoo.org> libapreq2-2.06.ebuild:
+ keyworded ~alpha, wrt bug #102503
+
+ 14 Aug 2005; Michael Cummings <mcummings@gentoo.org>
+ libapreq2-2.06.ebuild:
+ Keywording sparc
+
+*libapreq2-2.06 (03 Aug 2005)
+
+ 03 Aug 2005; Michael Cummings <mcummings@gentoo.org>
+ +files/76_mod_apreq.conf, +libapreq2-2.06.ebuild:
+ Another product of rendhalver, tested and true, with some mods for
+ documentation by myself. With this commit I will be removing the
+ package.mask entry for this.
+
+*libapreq2-2.04.03 (10 May 2005)
+
+ 10 May 2005; Elfyn McBratney <beu@gentoo.org>
+ +files/libapreq2-2.0-binloc.patch, +files/libapreq2-2.0-sandbox.patch,
+ +metadata.xml, +libapreq2-2.04.03.ebuild:
+ dev-perl/libapreq{,2} -> www-apache
+
+ 09 May 2005; Elfyn McBratney <beu@gentoo.org> libapreq2-2.04.03.ebuild:
+ dev-perl/mod_perl -> www-apache/mod_perl
+
+ 11 Apr 2005; Christian Parpart <trapni@gentoo.org>
+ libapreq2-2.04.03.ebuild:
+ fixed licence item
+
+*libapreq2-2.04.03 (28 Sep 2004)
+
+ 28 Sep 2004; Robert Coie <rac@gentoo.org> +files/libapreq2-2.0-binloc.patch,
+ +files/libapreq2-2.0-sandbox.patch, +libapreq2-2.04.03.ebuild:
+ mod_perl 2 version of libapreq. tests are not perfect yet, and reliability is
+ suspect
+
diff --git a/www-apache/libapreq2/Manifest b/www-apache/libapreq2/Manifest
new file mode 100644
index 00000000..c1eeb81a
--- /dev/null
+++ b/www-apache/libapreq2/Manifest
@@ -0,0 +1,28 @@
+AUX 76_mod_apreq.conf 384 RMD160 9e2d4e0ffa5ab3d65becd958bdabc4cd149d291c SHA1 99e39336bf0f90790387c8d34859404ae738c67b SHA256 7d308028c10f8c5a5f665ae894b219282de6088bd68ab3a43b51b788878f4a4e
+MD5 72ff7fa68f0ab905336522c6398b4f17 files/76_mod_apreq.conf 384
+RMD160 9e2d4e0ffa5ab3d65becd958bdabc4cd149d291c files/76_mod_apreq.conf 384
+SHA256 7d308028c10f8c5a5f665ae894b219282de6088bd68ab3a43b51b788878f4a4e files/76_mod_apreq.conf 384
+AUX libapreq2-2.0-binloc.patch 3154 RMD160 d95215452341d4f37374ae33262e8930faf64e00 SHA1 d20c1c39c7e6c4c9850bfaa4c77eabc20e8beb78 SHA256 ce2be0098984f50eff8c03eb38eb1c42c938ec4ff4a4986a4283853facbd8cf7
+MD5 b6b2398e58512016392bd02a5bd2b548 files/libapreq2-2.0-binloc.patch 3154
+RMD160 d95215452341d4f37374ae33262e8930faf64e00 files/libapreq2-2.0-binloc.patch 3154
+SHA256 ce2be0098984f50eff8c03eb38eb1c42c938ec4ff4a4986a4283853facbd8cf7 files/libapreq2-2.0-binloc.patch 3154
+AUX libapreq2-2.0-sandbox.patch 1169 RMD160 877dbf70eba927c56e7295a3943979a575bb15df SHA1 f49c1f2c6689f4525ba90e23fa9b4f580e269e58 SHA256 e0647cc7cacf1e4e88e19834b08643117cbc233355f2a33d4bcb87c3021f63cd
+MD5 7e7f7ff87f41a04bb85b1bf4792eafd5 files/libapreq2-2.0-sandbox.patch 1169
+RMD160 877dbf70eba927c56e7295a3943979a575bb15df files/libapreq2-2.0-sandbox.patch 1169
+SHA256 e0647cc7cacf1e4e88e19834b08643117cbc233355f2a33d4bcb87c3021f63cd files/libapreq2-2.0-sandbox.patch 1169
+DIST libapreq2-2.08.tar.gz 847527 RMD160 f2084c709443424c7d749be732924b37d70dee96 SHA1 e2ac823724f4b54c000138d4c660d438e8fffe16 SHA256 8f8d71852ea3addab7690fa96fc50ea5f221f719156d50995f7f3e0a5a59e932
+EBUILD libapreq2-2.08.ebuild 2250 RMD160 71ef3a26b7b6497b9c4e7846cd9809582b7f6c37 SHA1 a743d61ef63d20c50cd7db4a175975fb00fc43df SHA256 8ac58f87f88249f7b05bd46f4d88030c265207646f2e9fb01c3e5d6ba2c287b1
+MD5 4f3280d00ab8c565ee59dc2560dcccfa libapreq2-2.08.ebuild 2250
+RMD160 71ef3a26b7b6497b9c4e7846cd9809582b7f6c37 libapreq2-2.08.ebuild 2250
+SHA256 8ac58f87f88249f7b05bd46f4d88030c265207646f2e9fb01c3e5d6ba2c287b1 libapreq2-2.08.ebuild 2250
+MISC ChangeLog 3194 RMD160 3f829805238189cae556ecebc6129a90394262a5 SHA1 612d5222a052a0b9853720ef7a0ce6c9ca5b4a71 SHA256 636b6a7f62efe5ce1fada25f653e89f900c942f4392eb83027a7c520a7f00af9
+MD5 b0f323fdfdaed60fb2ddf3c56546e82b ChangeLog 3194
+RMD160 3f829805238189cae556ecebc6129a90394262a5 ChangeLog 3194
+SHA256 636b6a7f62efe5ce1fada25f653e89f900c942f4392eb83027a7c520a7f00af9 ChangeLog 3194
+MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca
+MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305
+RMD160 647980838c590f54441a053916ea629e53e551c0 metadata.xml 305
+SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca metadata.xml 305
+MD5 3d2a029cfdc7669a6e46eee1c2060a15 files/digest-libapreq2-2.08 244
+RMD160 550819715d5252aad8e2a5a170d7c98297abda2d files/digest-libapreq2-2.08 244
+SHA256 f6c3ace6b6f1614b668431878e597b872ba8a33c6b98315a01b8fabf35f43f1e files/digest-libapreq2-2.08 244
diff --git a/www-apache/libapreq2/files/76_mod_apreq.conf b/www-apache/libapreq2/files/76_mod_apreq.conf
new file mode 100644
index 00000000..165dae81
--- /dev/null
+++ b/www-apache/libapreq2/files/76_mod_apreq.conf
@@ -0,0 +1,15 @@
+<IfDefine APREQ>
+ <IfModule !mod_apreq.c>
+ LoadModule apreq_module modules/mod_apreq2.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_apreq2.c>
+ # load the PerlModules modules
+ # uncomment the ones you require
+ #PerlModule APR::Request::Apache2
+ #PerlModule APR::Request::CGI
+ #PerlModule APR::Request::Cookie
+ #PerlModule Apache2::Cookie
+ #PerlModule Apache2::Request
+</ifModule>
diff --git a/www-apache/libapreq2/files/digest-libapreq2-2.08 b/www-apache/libapreq2/files/digest-libapreq2-2.08
new file mode 100644
index 00000000..a40f7d75
--- /dev/null
+++ b/www-apache/libapreq2/files/digest-libapreq2-2.08
@@ -0,0 +1,3 @@
+MD5 9fb3deec448f74c455d4ffc13846ea9f libapreq2-2.08.tar.gz 847527
+RMD160 f2084c709443424c7d749be732924b37d70dee96 libapreq2-2.08.tar.gz 847527
+SHA256 8f8d71852ea3addab7690fa96fc50ea5f221f719156d50995f7f3e0a5a59e932 libapreq2-2.08.tar.gz 847527
diff --git a/www-apache/libapreq2/files/libapreq2-2.0-binloc.patch b/www-apache/libapreq2/files/libapreq2-2.0-binloc.patch
new file mode 100644
index 00000000..dc27ca38
--- /dev/null
+++ b/www-apache/libapreq2/files/libapreq2-2.0-binloc.patch
@@ -0,0 +1,65 @@
+diff -burN libapreq2-2.04-dev.orig/Makefile.PL libapreq2-2.04-dev/Makefile.PL
+--- libapreq2-2.04-dev.orig/Makefile.PL 2004-08-29 16:30:15.000000000 -0700
++++ libapreq2-2.04-dev/Makefile.PL 2004-09-27 23:40:29.184738303 -0700
+@@ -23,7 +23,7 @@
+ system(@args) == 0 or die "system @args failed: $?";
+ }
+ else {
+- my @opts = qw(with-apache2-apxs with-apache2-src
++ my @opts = qw(with-apache2-apxs with-apache2-src with-apache2-httpd
+ with-apr-config with-apu-config apxs);
+
+ my @flags = qw/enable-maintainer-mode enable-perl-glue disable-perl-glue/;
+diff -burN libapreq2-2.04-dev.orig/acinclude.m4 libapreq2-2.04-dev/acinclude.m4
+--- libapreq2-2.04-dev.orig/acinclude.m4 2004-09-27 23:33:48.000000000 -0700
++++ libapreq2-2.04-dev/acinclude.m4 2004-09-27 23:37:03.659353161 -0700
+@@ -12,6 +12,9 @@
+ AC_ARG_WITH(apache2-apxs,
+ AC_HELP_STRING([--with-apache2-apxs],[path to apache2's apxs]),
+ [APACHE2_APXS=$withval],[APACHE2_APXS="apxs"])
++ AC_ARG_WITH(apache2-httpd,
++ AC_HELP_STRING([--with-apache2-httpd],[path to apache2 httpd binary]),
++ [APACHE2_HTTPD=$withval],[APACHE2_HTTPD=""])
+ AC_ARG_WITH(apache2-src,
+ AC_HELP_STRING([--with-apache2-src],[path to httpd-2 source]),
+ [APACHE2_SRC=$withval],[APACHE2_SRC=""])
+@@ -25,7 +28,9 @@
+ AC_MSG_ERROR([invalid Apache2 source directory]))
+
+ APACHE2_INCLUDES=-I$APACHE2_SRC/include
++ if test -z "${APACHE2_HTTPD}"; then
+ APACHE2_HTTPD=$APACHE2_SRC/httpd
++ fi
+ AC_ARG_WITH(apr-config,
+ AC_HELP_STRING([ --with-apr-config],[path to apr-config (requires --with-apache2-src)]),
+ [APR_CONFIG=$withval],[APR_CONFIG="$APACHE2_SRC/srclib/apr/apr-config"])
+@@ -35,7 +40,9 @@
+
+ else
+ APACHE2_INCLUDES=-I`$APACHE2_APXS -q INCLUDEDIR`
++ if test -z "${APACHE2_HTTPD}"; then
+ APACHE2_HTTPD=`$APACHE2_APXS -q SBINDIR`/httpd
++ fi
+ APR_MAJOR_VERSION=`$APACHE2_APXS -q APR_VERSION | cut -d. -f 1`
+ if test ${APR_MAJOR_VERSION:=0} -eq 0; then
+ APR_CONFIG=apr-config
+@@ -47,6 +54,7 @@
+ APR_CONFIG=`$APACHE2_APXS -q APR_BINDIR`/$APR_CONFIG
+ APU_CONFIG=`$APACHE2_APXS -q APU_BINDIR`/$APU_CONFIG
+
++ echo "checking with $APACHE2_HTTPD"
+ if test -z "`$prereq_check apache2 $APACHE2_HTTPD`"; then
+ AC_MSG_ERROR([Bad apache2 version])
+ fi
+diff -burN libapreq2-2.04-dev.orig/glue/Makefile.am libapreq2-2.04-dev/glue/Makefile.am
+--- libapreq2-2.04-dev.orig/glue/Makefile.am 2004-06-21 15:19:10.000000000 -0700
++++ libapreq2-2.04-dev/glue/Makefile.am 2004-09-28 00:00:08.547277068 -0700
+@@ -6,7 +6,7 @@
+ cd perl; @PERL@ ../../build/xsbuilder.pl run
+
+ perl/Makefile: perl/xsbuilder perl/Makefile.PL
+- cd perl; @PERL@ Makefile.PL -apxs @APACHE2_APXS@
++ cd perl; @PERL@ Makefile.PL INSTALLDIRS=vendor -apxs @APACHE2_APXS@
+
+ perl_glue: perl/Makefile
+ cd perl; $(MAKE)
diff --git a/www-apache/libapreq2/files/libapreq2-2.0-sandbox.patch b/www-apache/libapreq2/files/libapreq2-2.0-sandbox.patch
new file mode 100644
index 00000000..309cfc56
--- /dev/null
+++ b/www-apache/libapreq2/files/libapreq2-2.0-sandbox.patch
@@ -0,0 +1,33 @@
+*** env/Makefile.am.orig Fri Nov 7 10:55:14 2003
+--- env/Makefile.am Mon Apr 5 17:41:46 2004
+***************
+*** 3,8 ****
+--- 3,12 ----
+ TEST_CONFIG_SCRIPT = package Apache::TestMM; filter_args(); generate_script("t/TEST")
+ EXTRA_DIST = t c-modules
+
++ INSTDSO = $(shell $(APR_CONFIG) --installbuilddir)/instdso.sh
++ SHLIBTOOL = $(shell $(APR_CONFIG) --installbuilddir)/libtool
++ APACHE2MODS = /usr/lib/apache2/extramodules
++
+ check_PROGRAMS = test_cgi
+
+ if BUILD_HTTPD
+***************
+*** 31,37 ****
+ mod_apreq_la_LDFLAGS = -export-dynamic -module -avoid-version -rpath $(APACHE2_MODULES)
+
+ install-exec-local: mod_apreq.la
+! @APACHE2_APXS@ -i -a -n apreq mod_apreq.la
+
+ t/TEST : Makefile.am t/TEST.PL
+ @PERL@ -MApache::TestMM -e '$(TEST_CONFIG_SCRIPT)' -- -apxs @APACHE2_APXS@
+--- 35,42 ----
+ mod_apreq_la_LDFLAGS = -export-dynamic -module -avoid-version -rpath $(APACHE2_MODULES)
+
+ install-exec-local: mod_apreq.la
+! mkdir -p $(DESTDIR)$(APACHE2MODS)
+! $(INSTDSO) SH_LIBTOOL=$(SHLIBTOOL) mod_apreq.la $(DESTDIR)$(APACHE2MODS)
+
+ t/TEST : Makefile.am t/TEST.PL
+ @PERL@ -MApache::TestMM -e '$(TEST_CONFIG_SCRIPT)' -- -apxs @APACHE2_APXS@
diff --git a/www-apache/libapreq2/libapreq2-2.08.ebuild b/www-apache/libapreq2/libapreq2-2.08.ebuild
new file mode 100644
index 00000000..20621d41
--- /dev/null
+++ b/www-apache/libapreq2/libapreq2-2.08.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/libapreq2/libapreq2-2.07.ebuild,v 1.11 2006/10/20 19:45:32 kloeri Exp $
+
+inherit perl-module depend.apache
+
+IUSE=""
+
+DESCRIPTION="An Apache Request Perl Module"
+SRC_URI="mirror://cpan/authors/id/J/JO/JOESUF/${P}.tar.gz"
+HOMEPAGE="http://httpd.apache.org/apreq/"
+SLOT="2"
+LICENSE="Apache-2.0"
+KEYWORDS="alpha amd64 ppc sparc x86"
+
+DEPEND="${DEPEND}
+ >=dev-perl/ExtUtils-XSBuilder-0.23
+ app-doc/doxygen
+ >=www-apache/mod_perl-2"
+RDEPEND="${DEPEND}"
+
+mydoc="TODO README CHANGES INSTALL"
+myconf="--with-apache2-apxs=${APXS2}"
+SRC_TEST="skip"
+
+need_apache2
+
+src_unpack() {
+ unpack ${A}
+ sed -i -e "s/PERL \$PERL_OPTS/PERL/" ${S}/acinclude.m4
+ sed -i -e "s/PERL \$PERL_OPTS/PERL/" ${S}/aclocal.m4
+ sed -i -e "s/PERL \$PERL_OPTS/PERL/" ${S}/configure
+}
+src_test() {
+ if [ "${SRC_TEST}" == "do" ]; then
+ if [ "`id -u`" == '0' ]; then
+ chown nobody:nobody ${S}/module/t
+ chown nobody:nobody ${T}
+ GROUP="nobody" USER="nobody" \
+ APACHE_TEST_NO_STICKY_PREFERENCES=1 \
+ TMPDIR="${T}" HOME="${T}/" echo "" | emake test
+ else
+ APACHE_TEST_NO_STICKY_PREFERENCES=1 TMPDIR="${T}" HOME="${T}/" emake test
+ fi
+ fi
+}
+
+src_compile() {
+ cd ${S}
+ perl Makefile.PL ${myconf}
+}
+src_install() {
+
+ emake -j1 DESTDIR=${D} LT_LDFLAGS="-L${D}/usr/lib" install || die
+ make docs
+ rm -f ${S}/docs/man/man3/_*
+ for doc in `ls ${S}/docs/man/man3/*.3`; do
+ doman $doc
+ done
+ # install the html docs
+ dohtml ${S}/docs/html/*.html
+
+ insinto ${APACHE2_MODULES_CONFDIR}
+ doins ${FILESDIR}/76_mod_apreq.conf
+
+ fixlocalpod
+
+ for FILE in `find ${D} -type f |grep -v '.so'`; do
+ STAT=`file $FILE| grep -i " text"`
+ if [ "${STAT}x" != "x" ]; then
+ sed -i -e "s:${D}:/:g" ${FILE}
+ fi
+ done
+
+ for doc in Change* MANIFEST* README* ${mydoc}; do
+ [ -s "$doc" ] && dodoc $doc
+ done
+
+}
+
+pkg_postinst() {
+ einfo
+ einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache2 file and"
+ einfo "add '-D APREQ' to APACHE2_OPTS."
+ einfo "Configuration file installed as"
+ einfo " ${APACHE2_MODULES_CONFDIR}/76_mod_apreq.conf"
+ einfo "You may want to edit it before turning the module on in /etc/conf.d/apache2"
+ einfo
+
+}
diff --git a/www-apache/libapreq2/metadata.xml b/www-apache/libapreq2/metadata.xml
new file mode 100644
index 00000000..86672fe6
--- /dev/null
+++ b/www-apache/libapreq2/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>perl</herd>
+ <maintainer>
+ <email>perl@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <longdescription></longdescription>
+</pkgmetadata>
diff --git a/www-apache/mod_perl2/Manifest b/www-apache/mod_perl2/Manifest
new file mode 100644
index 00000000..c2027a72
--- /dev/null
+++ b/www-apache/mod_perl2/Manifest
@@ -0,0 +1,48 @@
+AUX 1.29/75_mod_perl.conf 114 RMD160 bbeddcaee1631c2de9e52c68f605f23a420a0ea5 SHA1 2467ae69ef9d66cff2d3d5fc26737d7414e0966b SHA256 111e612b16d4823f380b4b0a249f1157bcedbcde4bdddf0b0fdcbad0c72fd8b4
+MD5 69c875b495ad39b70b13342cf7381ca4 files/1.29/75_mod_perl.conf 114
+RMD160 bbeddcaee1631c2de9e52c68f605f23a420a0ea5 files/1.29/75_mod_perl.conf 114
+SHA256 111e612b16d4823f380b4b0a249f1157bcedbcde4bdddf0b0fdcbad0c72fd8b4 files/1.29/75_mod_perl.conf 114
+AUX 2.0.1/75_mod_perl.conf 1527 RMD160 004a033bff0767a6ac6bbca7a4e72b7aaf9c512b SHA1 932200f5ecbe5b509f3fc71d91a5ca227286115f SHA256 9a0daac395f370a2c1146db519f8ac9a99e716479a26c58ff794028f4660efd4
+MD5 4dcf07748f65bc0682e4d739ec14535d files/2.0.1/75_mod_perl.conf 1527
+RMD160 004a033bff0767a6ac6bbca7a4e72b7aaf9c512b files/2.0.1/75_mod_perl.conf 1527
+SHA256 9a0daac395f370a2c1146db519f8ac9a99e716479a26c58ff794028f4660efd4 files/2.0.1/75_mod_perl.conf 1527
+AUX 2.0.1/apache2-mod_perl-startup.pl 478 RMD160 ef12070dd5e5707286e3c714ec3aeae78ce5cfd4 SHA1 80ece64910771b6c36d7b2d30373287bc1bf4b87 SHA256 f77741fb3bb18928fb15f95c6908a17d8f06d7efbb6785e0732f201347e26544
+MD5 39bbf08146125b9be7559d5c2d16b400 files/2.0.1/apache2-mod_perl-startup.pl 478
+RMD160 ef12070dd5e5707286e3c714ec3aeae78ce5cfd4 files/2.0.1/apache2-mod_perl-startup.pl 478
+SHA256 f77741fb3bb18928fb15f95c6908a17d8f06d7efbb6785e0732f201347e26544 files/2.0.1/apache2-mod_perl-startup.pl 478
+AUX 2.0.2/75_mod_perl.conf 1527 RMD160 004a033bff0767a6ac6bbca7a4e72b7aaf9c512b SHA1 932200f5ecbe5b509f3fc71d91a5ca227286115f SHA256 9a0daac395f370a2c1146db519f8ac9a99e716479a26c58ff794028f4660efd4
+MD5 4dcf07748f65bc0682e4d739ec14535d files/2.0.2/75_mod_perl.conf 1527
+RMD160 004a033bff0767a6ac6bbca7a4e72b7aaf9c512b files/2.0.2/75_mod_perl.conf 1527
+SHA256 9a0daac395f370a2c1146db519f8ac9a99e716479a26c58ff794028f4660efd4 files/2.0.2/75_mod_perl.conf 1527
+AUX 2.0.2/apache2-mod_perl-startup.pl 478 RMD160 ef12070dd5e5707286e3c714ec3aeae78ce5cfd4 SHA1 80ece64910771b6c36d7b2d30373287bc1bf4b87 SHA256 f77741fb3bb18928fb15f95c6908a17d8f06d7efbb6785e0732f201347e26544
+MD5 39bbf08146125b9be7559d5c2d16b400 files/2.0.2/apache2-mod_perl-startup.pl 478
+RMD160 ef12070dd5e5707286e3c714ec3aeae78ce5cfd4 files/2.0.2/apache2-mod_perl-startup.pl 478
+SHA256 f77741fb3bb18928fb15f95c6908a17d8f06d7efbb6785e0732f201347e26544 files/2.0.2/apache2-mod_perl-startup.pl 478
+AUX 75_mod_perl.conf 247 RMD160 0f6b40d6073ce43ab807bd7efb2c7c61f6b5ddd7 SHA1 7be778d54ac6c37f77e9d6118414f5c76caa8a35 SHA256 d41bd8b379a7e936e35a4d475651d4778f542aa23ff2564ff46ebd772b08e6b1
+MD5 2415e6be73ba155382b34b5e2fad4951 files/75_mod_perl.conf 247
+RMD160 0f6b40d6073ce43ab807bd7efb2c7c61f6b5ddd7 files/75_mod_perl.conf 247
+SHA256 d41bd8b379a7e936e35a4d475651d4778f542aa23ff2564ff46ebd772b08e6b1 files/75_mod_perl.conf 247
+AUX apache2-mod_perl-startup.pl 485 RMD160 9bcfe312a3c76fac9fa89d4c6d26997e82b22f83 SHA1 71d4bde571f713cee328cd338453981842b94b98 SHA256 336c0c85ec9e1075b69c7b73e3ea2de1d7b091ce69bc1af75dd8e8302a6b84f7
+MD5 6dbf85f6df302959fc9decf11eb6e5f5 files/apache2-mod_perl-startup.pl 485
+RMD160 9bcfe312a3c76fac9fa89d4c6d26997e82b22f83 files/apache2-mod_perl-startup.pl 485
+SHA256 336c0c85ec9e1075b69c7b73e3ea2de1d7b091ce69bc1af75dd8e8302a6b84f7 files/apache2-mod_perl-startup.pl 485
+AUX mod_perl-1.99.16-sneak-tmpdir.patch 395 RMD160 60a7d4d21041ef0b3de237692c251b3fc819bbb4 SHA1 d05b1d1d066813f265c55537fc28ec8da5522e44 SHA256 ca4822241bfa97c65e7ec726c1a5b5029f79ac21d4672cf67277a19861a9f03a
+MD5 8c8ec63f03d3ffb51fa26b6df03a5710 files/mod_perl-1.99.16-sneak-tmpdir.patch 395
+RMD160 60a7d4d21041ef0b3de237692c251b3fc819bbb4 files/mod_perl-1.99.16-sneak-tmpdir.patch 395
+SHA256 ca4822241bfa97c65e7ec726c1a5b5029f79ac21d4672cf67277a19861a9f03a files/mod_perl-1.99.16-sneak-tmpdir.patch 395
+AUX mod_perl-1.99.17-Apache2.pm 1149 RMD160 30371def1cc7cfb184640736ac940087d27756f3 SHA1 583a4b30f6cc6fc9777674f9f7960401228f8e87 SHA256 f96d89b285e1018cdd20f6c80b7703030b42b1fd4329f4fce9107b427e3be633
+MD5 300bce7b1dad6fda0b18cfdbf592a828 files/mod_perl-1.99.17-Apache2.pm 1149
+RMD160 30371def1cc7cfb184640736ac940087d27756f3 files/mod_perl-1.99.17-Apache2.pm 1149
+SHA256 f96d89b285e1018cdd20f6c80b7703030b42b1fd4329f4fce9107b427e3be633 files/mod_perl-1.99.17-Apache2.pm 1149
+AUX mod_perl-2.0.1-sneak-tmpdir.patch 337 RMD160 56c6023dc46bb5531fa44730f52b68b8333155f0 SHA1 96b2a385e5934d99222de545836329ea359b8115 SHA256 1f319a15e3d12a349c46c0783c7ad840d81d01ed41adda55c47d4ac31595615d
+MD5 0729531d2489b4ef91e247076f46ed1e files/mod_perl-2.0.1-sneak-tmpdir.patch 337
+RMD160 56c6023dc46bb5531fa44730f52b68b8333155f0 files/mod_perl-2.0.1-sneak-tmpdir.patch 337
+SHA256 1f319a15e3d12a349c46c0783c7ad840d81d01ed41adda55c47d4ac31595615d files/mod_perl-2.0.1-sneak-tmpdir.patch 337
+DIST mod_perl-2.0.2.tar.gz 3692744 RMD160 8f58605283b78892e5e4fdac9d6da7d4e0b3b0b5 SHA1 aa2c8b24883d474a236c061a8d2c4eea621380d6 SHA256 64a3f54111c953c46ed7b1bafb4ebb034447ca6baba73a8657ad7a39ddeca906
+EBUILD mod_perl2-2.0.2.ebuild 5216 RMD160 4cdab4da74f725082b6a291418056e5dfd0e1d2e SHA1 18de1199d51b01ab3e4b1636384007851d6559aa SHA256 dea14c18d6934e782ac9f8f53f14637e63a7d7b10b36d028aedcbb9850b69e46
+MD5 b88fc06c57fd424e5f63f3684655972d mod_perl2-2.0.2.ebuild 5216
+RMD160 4cdab4da74f725082b6a291418056e5dfd0e1d2e mod_perl2-2.0.2.ebuild 5216
+SHA256 dea14c18d6934e782ac9f8f53f14637e63a7d7b10b36d028aedcbb9850b69e46 mod_perl2-2.0.2.ebuild 5216
+MD5 1d8a4a065f61782d1d7a6391572f7a2a files/digest-mod_perl2-2.0.2 247
+RMD160 bfb99bae5e4de09562fc79d164a55e9f799f0630 files/digest-mod_perl2-2.0.2 247
+SHA256 2891e5a85d9566e61ea1eef0f49ed3a867b67b9159f14792e6ca0a63e64ee585 files/digest-mod_perl2-2.0.2 247
diff --git a/www-apache/mod_perl2/files/1.29/75_mod_perl.conf b/www-apache/mod_perl2/files/1.29/75_mod_perl.conf
new file mode 100644
index 00000000..edf5a11b
--- /dev/null
+++ b/www-apache/mod_perl2/files/1.29/75_mod_perl.conf
@@ -0,0 +1,6 @@
+<IfDefine PERL>
+ <IfModule !mod_perl.c>
+ LoadModule perl_module modules/libperl.so
+ </IfModule>
+</IfDefine>
+
diff --git a/www-apache/mod_perl2/files/2.0.1/75_mod_perl.conf b/www-apache/mod_perl2/files/2.0.1/75_mod_perl.conf
new file mode 100644
index 00000000..96455b51
--- /dev/null
+++ b/www-apache/mod_perl2/files/2.0.1/75_mod_perl.conf
@@ -0,0 +1,56 @@
+<IfDefine PERL>
+ <IfModule !mod_perl.c>
+ LoadModule perl_module modules/mod_perl.so
+ </IfModule>
+</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_perl2/files/2.0.1/apache2-mod_perl-startup.pl b/www-apache/mod_perl2/files/2.0.1/apache2-mod_perl-startup.pl
new file mode 100644
index 00000000..afc048ac
--- /dev/null
+++ b/www-apache/mod_perl2/files/2.0.1/apache2-mod_perl-startup.pl
@@ -0,0 +1,24 @@
+use lib qw(/home/httpd/perl);
+
+# enable if the mod_perl 1.0 compatibility is needed
+#use Apache2::compat ();
+
+use ModPerl::Util (); #for CORE::GLOBAL::exit
+
+use Apache2::RequestRec ();
+use Apache2::RequestIO ();
+use Apache2::RequestUtil ();
+
+use Apache2::ServerRec ();
+use Apache2::ServerUtil ();
+use Apache2::Connection ();
+use Apache2::Log ();
+
+use APR::Table ();
+
+use ModPerl::Registry ();
+
+use Apache2::Const -compile => ':common';
+use APR::Const -compile => ':common';
+
+1;
diff --git a/www-apache/mod_perl2/files/2.0.2/75_mod_perl.conf b/www-apache/mod_perl2/files/2.0.2/75_mod_perl.conf
new file mode 100644
index 00000000..96455b51
--- /dev/null
+++ b/www-apache/mod_perl2/files/2.0.2/75_mod_perl.conf
@@ -0,0 +1,56 @@
+<IfDefine PERL>
+ <IfModule !mod_perl.c>
+ LoadModule perl_module modules/mod_perl.so
+ </IfModule>
+</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_perl2/files/2.0.2/apache2-mod_perl-startup.pl b/www-apache/mod_perl2/files/2.0.2/apache2-mod_perl-startup.pl
new file mode 100644
index 00000000..afc048ac
--- /dev/null
+++ b/www-apache/mod_perl2/files/2.0.2/apache2-mod_perl-startup.pl
@@ -0,0 +1,24 @@
+use lib qw(/home/httpd/perl);
+
+# enable if the mod_perl 1.0 compatibility is needed
+#use Apache2::compat ();
+
+use ModPerl::Util (); #for CORE::GLOBAL::exit
+
+use Apache2::RequestRec ();
+use Apache2::RequestIO ();
+use Apache2::RequestUtil ();
+
+use Apache2::ServerRec ();
+use Apache2::ServerUtil ();
+use Apache2::Connection ();
+use Apache2::Log ();
+
+use APR::Table ();
+
+use ModPerl::Registry ();
+
+use Apache2::Const -compile => ':common';
+use APR::Const -compile => ':common';
+
+1;
diff --git a/www-apache/mod_perl2/files/75_mod_perl.conf b/www-apache/mod_perl2/files/75_mod_perl.conf
new file mode 100644
index 00000000..4933e9af
--- /dev/null
+++ b/www-apache/mod_perl2/files/75_mod_perl.conf
@@ -0,0 +1,11 @@
+<IfDefine PERL>
+ <IfModule !mod_perl.c>
+ LoadModule perl_module extramodules/mod_perl.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_perl.c>
+ #PerlTrace all
+ PerlRequire "/etc/apache2/conf/modules.d/apache2-mod_perl-startup.pl"
+</ifModule>
+
diff --git a/www-apache/mod_perl2/files/apache2-mod_perl-startup.pl b/www-apache/mod_perl2/files/apache2-mod_perl-startup.pl
new file mode 100644
index 00000000..73740597
--- /dev/null
+++ b/www-apache/mod_perl2/files/apache2-mod_perl-startup.pl
@@ -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::Server ();
+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;
diff --git a/www-apache/mod_perl2/files/digest-mod_perl2-2.0.2 b/www-apache/mod_perl2/files/digest-mod_perl2-2.0.2
new file mode 100644
index 00000000..42a62065
--- /dev/null
+++ b/www-apache/mod_perl2/files/digest-mod_perl2-2.0.2
@@ -0,0 +1,3 @@
+MD5 ad0a509fd34e3b8452887d80a1d45dea mod_perl-2.0.2.tar.gz 3692744
+RMD160 8f58605283b78892e5e4fdac9d6da7d4e0b3b0b5 mod_perl-2.0.2.tar.gz 3692744
+SHA256 64a3f54111c953c46ed7b1bafb4ebb034447ca6baba73a8657ad7a39ddeca906 mod_perl-2.0.2.tar.gz 3692744
diff --git a/www-apache/mod_perl2/files/mod_perl-1.99.16-sneak-tmpdir.patch b/www-apache/mod_perl2/files/mod_perl-1.99.16-sneak-tmpdir.patch
new file mode 100644
index 00000000..a2fb226e
--- /dev/null
+++ b/www-apache/mod_perl2/files/mod_perl-1.99.16-sneak-tmpdir.patch
@@ -0,0 +1,11 @@
+--- t/conf/modperl_extra.pl.orig 2004-09-23 21:56:23.443749414 -0700
++++ t/conf/modperl_extra.pl 2004-09-23 21:55:22.149258138 -0700
+@@ -52,6 +52,8 @@
+
+ #see t/response/TestModperl/env.pm
+ $ENV{MODPERL_EXTRA_PL} = __FILE__;
++$ENV{TMPDIR} = __FILE__;
++$ENV{TMPDIR} =~ s,/work/.*,/temp,;
+
+ my $ap_mods = scalar grep { /^Apache/ } keys %INC;
+ my $apr_mods = scalar grep { /^APR/ } keys %INC;
diff --git a/www-apache/mod_perl2/files/mod_perl-1.99.17-Apache2.pm b/www-apache/mod_perl2/files/mod_perl-1.99.17-Apache2.pm
new file mode 100644
index 00000000..a06332a2
--- /dev/null
+++ b/www-apache/mod_perl2/files/mod_perl-1.99.17-Apache2.pm
@@ -0,0 +1,48 @@
+package Apache2;
+
+sub BEGIN {
+ use Config;
+
+ @inc = ( '/etc/perl',
+ $Config{sitearchexp},
+ $Config{sitelibexp},
+ $Config{vendorarchexp},
+ $Config{vendorlibexp},
+ $Config{archlibexp},
+ $Config{privlibexp},
+ );
+
+ my @sfxs = split( / /, $Config{inc_version_list} );
+
+ # this fails if we have numbers over 9. the goal is to get newer
+ # versions earlier in the list.
+ @sfxs = sort { $b cmp $a } @sfxs;
+
+ my $site_pfx = $Config{sitelib_stem};
+ my $vend_pfx = $Config{vendorlib_stem};
+ for my $sfx ( @sfxs ) {
+ push( @inc, "$site_pfx/$sfx", "$vend_pfx/$sfx" );
+ }
+
+ push( @inc,
+ "/usr/local/lib/site_perl",
+ "/usr/lib/apache2",
+ "/usr/lib/apache2/lib/perl",
+ );
+
+ # no . here because it doesn't make sense for us
+
+ # ok, now prepend Apache2 subdirectories of anything and take out
+ # nonexistent directories. a case could be made that leaving
+ # nonexistent directories on here would be a good idea, but i'm
+ # going to go with the "reduce clutter" goal for now.
+
+ @INC = ();
+ for my $cd ( @inc ) {
+ next unless -d $cd;
+ push( @INC, "$cd/Apache2" ) if -d "$cd/Apache2";
+ push( @INC, $cd );
+ }
+}
+
+1;
diff --git a/www-apache/mod_perl2/files/mod_perl-2.0.1-sneak-tmpdir.patch b/www-apache/mod_perl2/files/mod_perl-2.0.1-sneak-tmpdir.patch
new file mode 100644
index 00000000..0930278a
--- /dev/null
+++ b/www-apache/mod_perl2/files/mod_perl-2.0.1-sneak-tmpdir.patch
@@ -0,0 +1,11 @@
+--- t/conf/modperl_extra.pl.orig 2005-05-16 18:27:45.000000000 +1000
++++ t/conf/modperl_extra.pl 2005-05-16 18:34:46.000000000 +1000
+@@ -136,6 +136,8 @@
+ sub test_modperl_env {
+ # see t/response/TestModperl/env.pm
+ $ENV{MODPERL_EXTRA_PL} = __FILE__;
++ $ENV{TMPDIR} = __FILE__;
++ $ENV{TMPDIR} =~ s,/work/.*,/temp,;
+ }
+
+ 1;
diff --git a/www-apache/mod_perl2/mod_perl2-2.0.2.ebuild b/www-apache/mod_perl2/mod_perl2-2.0.2.ebuild
new file mode 100644
index 00000000..b84947b4
--- /dev/null
+++ b/www-apache/mod_perl2/mod_perl2-2.0.2.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+
+inherit apache-module perl-module eutils multilib
+DESCRIPTION="An embedded Perl interpreter for Apache2"
+SRC_URI="mirror://cpan/authors/id/P/PG/PGOLLUCCI/mod_perl-2.0.2.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_CONF="75_${PN}.conf apache2-mod_perl-startup.pl"
+DOCFILES="Changes INSTALL LICENSE README STATUS"
+APACHE2_MOD_DEFINE="PERL"
+
+S="${WORKDIR}/mod_perl-2.0.2"
+
+need_apache2
+
+src_unpack() {
+ INSTALLED_MPM="$(${ROOT}/usr/sbin/apxs2 -q MPM_NAME)"
+ eval `perl '-V:useithreads'`
+ ITHREADS="${useithreads}"
+ if [ "${INSTALLED_MPM}" != "prefork" ]; then
+ if [ "${ITHREADS}" == "undef" ]; then
+ ewarn "You cannot build mod_perl on a threaded apache"
+ ewarn "with an unthreaded perl. You must either emerge"
+ ewarn "perl with ithreads in your USE flags, or emerge"
+ ewarn "apache without threading support"
+ exit
+ fi
+ fi
+
+ 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.
+
+ # 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=/usr/sbin/apxs2 \
+ CCFLAGS="${CFLAGS} -fPIC" \
+ TMPDIR=${T} \
+ INSTALLDIRS=vendor </dev/null || die
+
+ # reported that parallel make is broken in bug 30257
+ emake -j1 || die
+
+ # mcummings - disabling tests right, there's a bug i haven't found an override for
+ # rendhalver - i seem to have fixed this so turning them back on again.
+ # yet that sets /tmp as your tmp dir
+ #hasq maketest $FEATURES && src_test
+}
+
+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() {
+ dodir /usr/$(get_libdir)/apache2/modules
+ make install \
+ MODPERL_AP_LIBEXECDIR=${D}/usr/$(get_libdir)/apache2/modules \
+ 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
+
+ # 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.
+
+ # this is not needed anymore because Apache2.pm no longer exists
+ #eval $(perl -V:vendorarch)
+ #cp ${FILESDIR}/${P}-Apache2.pm ${D}/${vendorarch}/Apache2.pm
+
+ insinto /etc/apache2/modules.d
+ doins ${FILESDIR}/${PV}/75_mod_perl.conf \
+ ${FILESDIR}/${PV}/apache2-mod_perl-startup.pl
+
+ dodoc ${FILESDIR}/${PV}/75_mod_perl.conf Changes \
+ INSTALL LICENSE README STATUS
+ cp -pPR docs ${D}/usr/share/doc/${PF}
+ cp -pPR todo ${D}/usr/share/doc/${PF}
+ for FILE in `grep -lr portage ${D}/*|grep -v ".so"`; do
+ sed -i -e "s:${D}:/:g" ${FILE}
+ done
+}