diff options
author | Michael Cummings <mcummings@gentoo.org> | 2005-08-08 12:51:39 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2005-08-08 12:51:39 +0000 |
commit | a8af5aa7655396fa535addfe8f7709b831393d0b (patch) | |
tree | 12b4783c3a8ddcf75841042596c93d62119e22ad /www-apache | |
parent | Tested on a ppc, dep for embperl (diff) | |
download | historical-a8af5aa7655396fa535addfe8f7709b831393d0b.tar.gz historical-a8af5aa7655396fa535addfe8f7709b831393d0b.tar.bz2 historical-a8af5aa7655396fa535addfe8f7709b831393d0b.zip |
Bug 5234, rebuild by rendhalver
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'www-apache')
-rw-r--r-- | www-apache/Embperl/ChangeLog | 10 | ||||
-rw-r--r-- | www-apache/Embperl/Embperl-2.0_rc4.ebuild | 81 | ||||
-rw-r--r-- | www-apache/Embperl/Manifest | 16 | ||||
-rw-r--r-- | www-apache/Embperl/files/78_mod_embperl.conf | 29 | ||||
-rw-r--r-- | www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch | 32 | ||||
-rw-r--r-- | www-apache/Embperl/files/digest-Embperl-2.0_rc4 | 1 | ||||
-rw-r--r-- | www-apache/Embperl/metadata.xml | 10 |
7 files changed, 179 insertions, 0 deletions
diff --git a/www-apache/Embperl/ChangeLog b/www-apache/Embperl/ChangeLog new file mode 100644 index 000000000000..82358d809378 --- /dev/null +++ b/www-apache/Embperl/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for www-apache/Embperl +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/Embperl/ChangeLog,v 1.1 2005/08/08 12:51:39 mcummings Exp $ + +*Embperl-2.0_rc4 (08 Aug 2005) + + 08 Aug 2005; Michael Cummings <mcummings@gentoo.org> +metadata.xml, + +Embperl-2.0_rc4.ebuild: + Bug 5234, ebuild by rendhalver + diff --git a/www-apache/Embperl/Embperl-2.0_rc4.ebuild b/www-apache/Embperl/Embperl-2.0_rc4.ebuild new file mode 100644 index 000000000000..74fa528c475a --- /dev/null +++ b/www-apache/Embperl/Embperl-2.0_rc4.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apache/Embperl/Embperl-2.0_rc4.ebuild,v 1.1 2005/08/08 12:51:39 mcummings Exp $ + +inherit perl-module eutils + +MY_P=${P/_/} +S=${WORKDIR}/${MY_P} +DESCRIPTION="Framework for building websites with Perl." +SRC_URI="mirror://cpan/authors/id/G/GR/GRICHTER/${MY_P}.tar.gz" +HOMEPAGE="http://perl.apache.org/embperl/" + +IUSE="session apache2 modperl" +#xalan session +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="~ppc ~x86" +# tests bork at the moment but it seems to run +#SRC_TEST="do" + +DEPEND="${DEPEND} + modperl? ( apache2? ( >=www-apache/mod_perl-2.0.1 ) ) + dev-perl/libwww-perl + session? ( >=dev-perl/Apache-Session-1.60 + dev-perl/Apache-SessionX ) + dev-perl/HTML-Parser + perl-core/CGI + dev-libs/libxml2 + >=dev-libs/libxslt-1.0.4" + # Leftout until xalan is keyworded + # xalan? ( dev-libs/xalan-c ) + + +src_unpack() { + + unpack ${A} + + # patch the Makefile.PL to stop it asking questions + cd ${S}; epatch ${FILESDIR}/${P}-Makefile.PL.patch +} + +perl-module_src_prep() { + + perlinfo + + export PERL_MM_USE_DEFAULT=1 + +# if use xalan; then +# XALANPATH="" +# else +# XALANPATH="." +# fi + + SRC_PREP="yes" + einfo "Using ExtUtils::MakeMaker" + XALANPATH="." EPHTTPD="/usr/sbin/apache2" perl Makefile.PL ${myconf} \ + PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} +} + +src_install () { + # first run the perl install function + perl-module_src_install + + # add a symlink for Embperl.so to make loading it easier + dodir /usr/lib/apache2/modules + dosym ${VENDOR_ARCH}/auto/${PN}/${PN}.so /usr/lib/apache2/modules/mod_embperl.so + insinto /etc/apache2/modules.d + doins ${FILESDIR}/78_mod_embperl.conf + +} + +pkg_postinst() { + einfo + einfo "To enable ${PN}, you need to edit your /etc/conf.d/apache2 file and" + einfo "add '-D EMBPERL' to APACHE2_OPTS." + einfo "Configuration file installed as" + einfo " /etc/apache2/modules.d/78_mod_embperl.conf" + einfo "You may want to edit it before turning the module on in /etc/conf.d/apache2" + einfo + +} diff --git a/www-apache/Embperl/Manifest b/www-apache/Embperl/Manifest new file mode 100644 index 000000000000..facbafbe757f --- /dev/null +++ b/www-apache/Embperl/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 ec4f9e1649d511735f3c50275cf40df5 Embperl-2.0_rc4.ebuild 2052 +MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305 +MD5 5f7f54409f028dad41e2ca9365eca710 ChangeLog 375 +MD5 82d8871b5c822fe921775f3ea65c8686 files/digest-Embperl-2.0_rc4 66 +MD5 4c7ce26a3b5030b2f1386e5cc57c2562 files/78_mod_embperl.conf 685 +MD5 22136f2c88c432c9e2a284531451d2b7 files/Embperl-2.0_rc4-Makefile.PL.patch 1012 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.0 (GNU/Linux) + +iD8DBQFC91VvtG5z4I8BtQoRAlacAJ4pxULDnffL99+bv4CpUjEgdNINXgCZAYGS +s/P0GX3YkBEijCdh4p4AJiE= +=ERRM +-----END PGP SIGNATURE----- diff --git a/www-apache/Embperl/files/78_mod_embperl.conf b/www-apache/Embperl/files/78_mod_embperl.conf new file mode 100644 index 000000000000..6d27d85dfa8f --- /dev/null +++ b/www-apache/Embperl/files/78_mod_embperl.conf @@ -0,0 +1,29 @@ +<IfDefine EMBPERL> + <IfModule !mod_embperl.c> + LoadModule embperl_module modules/mod_embperl.so + </IfModule> +</IfDefine> + +<IfModule mod_embperl.c> + PerlModule Embperl + + AddType text/html .epl + + <Files *.epl> + SetHandler perl-script + PerlHandler Embperl + Options ExecCGI + </files> + + # please edit this section below to suit your requirements + #PerlModule Embperl::Object + #<Location /Embperl> + #Embperl_AppName Test-App + #Embperl_Object_Base base.htm + #Embperl_UriMatch "\.htm.?|\.epl$" + #SetHandler perl-script + #PerlHandler Embperl::Object + #Options ExecCGI + #</Location> + +</ifModule> diff --git a/www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch b/www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch new file mode 100644 index 000000000000..076d725fedb7 --- /dev/null +++ b/www-apache/Embperl/files/Embperl-2.0_rc4-Makefile.PL.patch @@ -0,0 +1,32 @@ +--- Makefile.PL.orig 2005-07-30 20:57:42.000000000 +1000 ++++ Makefile.PL 2005-07-30 21:31:49.000000000 +1000 +@@ -619,7 +619,8 @@ + $base = $ENV{'ProgramFiles'} if ($win32) ; + + +-$apache = GetYesNo ("Build with support for Apache mod_perl?", 'y') if (!$apache) ; ++#$apache = GetYesNo ("Build with support for Apache mod_perl?", 'y') if (!$apache) ; ++$apache = 1; + + if ($apache && $apache_src ne '') + { +@@ -634,7 +635,8 @@ + + if (-e "$apache_src/httpd.h" || -e "$apache_src/main/httpd.h" || -e "$apache_src/include/httpd.h") + { +- $b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ #$b = GetYesNo ("Use $apache_src as Apache source", 'y') if (!$b) ; ++ $b = 1; + } + } + +@@ -652,7 +654,8 @@ + + if (-e "$src_dir/httpd.h" || -e "$src_dir/main/httpd.h" || -e "$src_dir/include/httpd.h") + { +- $b = GetYesNo ("Use $src_dir as Apache source", 'y') ; ++ #$b = GetYesNo ("Use $src_dir as Apache source", 'y') ; ++ $b = 1; + if ($b) + { + $apache_src = $src_dir ; diff --git a/www-apache/Embperl/files/digest-Embperl-2.0_rc4 b/www-apache/Embperl/files/digest-Embperl-2.0_rc4 new file mode 100644 index 000000000000..ebd32e4d9e71 --- /dev/null +++ b/www-apache/Embperl/files/digest-Embperl-2.0_rc4 @@ -0,0 +1 @@ +MD5 631fcaf865348ed4b9e9bf69d4d7ac47 Embperl-2.0rc4.tar.gz 653673 diff --git a/www-apache/Embperl/metadata.xml b/www-apache/Embperl/metadata.xml new file mode 100644 index 000000000000..86672fe64c10 --- /dev/null +++ b/www-apache/Embperl/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> |