diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2003-11-23 01:34:56 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2003-11-23 01:34:56 +0000 |
commit | 192bf0f2b481cc25832c7ff1b1c5197590a207f0 (patch) | |
tree | aa0b0bfcf0b7ff15b4cce6570fb82ed8cc3d8f5c /dev-php | |
parent | initial commit of php-cgi, initial ebuild by robbat2@gentoo.org, resolves bug... (diff) | |
download | gentoo-2-192bf0f2b481cc25832c7ff1b1c5197590a207f0.tar.gz gentoo-2-192bf0f2b481cc25832c7ff1b1c5197590a207f0.tar.bz2 gentoo-2-192bf0f2b481cc25832c7ff1b1c5197590a207f0.zip |
initial commit of php-cgi, initial ebuild by robbat2@gentoo.org, resolves bug 18640
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/php-cgi/ChangeLog | 11 | ||||
-rw-r--r-- | dev-php/php-cgi/Manifest | 16 | ||||
-rw-r--r-- | dev-php/php-cgi/files/digest-php-cgi-4.3.4 | 2 | ||||
-rw-r--r-- | dev-php/php-cgi/files/pear_config.diff | 12 | ||||
-rw-r--r-- | dev-php/php-cgi/metadata.xml | 10 | ||||
-rw-r--r-- | dev-php/php-cgi/php-cgi-4.3.4.ebuild | 55 |
6 files changed, 92 insertions, 14 deletions
diff --git a/dev-php/php-cgi/ChangeLog b/dev-php/php-cgi/ChangeLog new file mode 100644 index 000000000000..b0965926bec3 --- /dev/null +++ b/dev-php/php-cgi/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-php/php-cgi +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/php-cgi/ChangeLog,v 1.1 2003/11/23 01:34:54 robbat2 Exp $ + +*php-cgi-4.3.4 (22 Nov 2003) + + 22 Nov 2003; Robin H. Johnson <robbat2@gentoo.org> metadata.xml, + php-cgi-4.3.4.ebuild, files/pear_config.diff: + initial commit of php-cgi, initial ebuild by robbat2@gentoo.org, resolves bug + 18640 + diff --git a/dev-php/php-cgi/Manifest b/dev-php/php-cgi/Manifest index 8fae40b9ae3f..fd8f2b072b16 100644 --- a/dev-php/php-cgi/Manifest +++ b/dev-php/php-cgi/Manifest @@ -1,17 +1,5 @@ -MD5 e8a0789c0013541fba150136490d33d9 php-cgi-4.3.4.ebuild 1259 -MD5 eaf74ea0a1bd2abac7f96d1d0a456874 ChangeLog 10026 +MD5 578f9dd3cc1356ee830922be49df7c6f php-cgi-4.3.4.ebuild 1312 +MD5 d122743919778dad593dc3a5f307d50a ChangeLog 446 MD5 38fe937e954ab7109395cefa86fcd2d4 metadata.xml 384 -MD5 63f7765d77e10eeef4b306480cd5d200 files/digest-php-4.3.2-r1 137 -MD5 63f7765d77e10eeef4b306480cd5d200 files/digest-php-4.3.2-r2 137 -MD5 63f7765d77e10eeef4b306480cd5d200 files/digest-php-4.3.2-r3 137 -MD5 e007fc4a17373504abd024180c0d0b3f files/digest-php-4.3.3-r1 137 -MD5 e007fc4a17373504abd024180c0d0b3f files/digest-php-4.3.3-r2 137 -MD5 e007fc4a17373504abd024180c0d0b3f files/digest-php-4.3.3-r3 137 -MD5 5547bf31e6a425747226d5984cff04e9 files/digest-php-4.3.4-r1 137 MD5 5547bf31e6a425747226d5984cff04e9 files/digest-php-cgi-4.3.4 137 -MD5 2a7311fb659555c4711a4ed8b70e9594 files/digest-php-5.0_beta1-r1 65 MD5 663577b8f4b90d61f245bb6052629194 files/pear_config.diff 422 -MD5 63f7765d77e10eeef4b306480cd5d200 files/digest-php-4.3.2 137 -MD5 e007fc4a17373504abd024180c0d0b3f files/digest-php-4.3.3 137 -MD5 85d30f5e2707a53bd35b201a29371f05 files/digest-php-4.3.4 208 -MD5 2a7311fb659555c4711a4ed8b70e9594 files/digest-php-5.0_beta1 65 diff --git a/dev-php/php-cgi/files/digest-php-cgi-4.3.4 b/dev-php/php-cgi/files/digest-php-cgi-4.3.4 new file mode 100644 index 000000000000..d65ce9576341 --- /dev/null +++ b/dev-php/php-cgi/files/digest-php-cgi-4.3.4 @@ -0,0 +1,2 @@ +MD5 b9dd601863e08e52e3c4d5e02c2627cf php-4.3.4.tar.bz2 3774324 +MD5 912ff94309b762563d0542db5187315f php-4.3.2-fopen-url-secure.patch 416 diff --git a/dev-php/php-cgi/files/pear_config.diff b/dev-php/php-cgi/files/pear_config.diff new file mode 100644 index 000000000000..57761db6ac4a --- /dev/null +++ b/dev-php/php-cgi/files/pear_config.diff @@ -0,0 +1,12 @@ +--- pear/PEAR/Config.php 2002/12/22 01:43:20 1.35.2.2 ++++ pear/PEAR/Config.php 2003/01/07 23:12:06 1.41 + +@@ -142,7 +142,7 @@ if (isset($_ENV['PHP_PEAR_PREFERRED_STAT + if (isset($_ENV['PHP_PEAR_UMASK'])) { + define('PEAR_CONFIG_DEFAULT_UMASK', $_ENV['PHP_PEAR_UMASK']); + } else { +- define('PEAR_CONFIG_DEFAULT_UMASK', umask()); ++ define('PEAR_CONFIG_DEFAULT_UMASK', decoct(umask())); + } + + // Default for cache_ttl diff --git a/dev-php/php-cgi/metadata.xml b/dev-php/php-cgi/metadata.xml new file mode 100644 index 000000000000..f1ebb2203ac7 --- /dev/null +++ b/dev-php/php-cgi/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>php</herd> + <maintainer> + <email>robbat2@gentoo.org</email> + <name>Robin H. Johnson</name> + <description>Eclass author and primary maintainer (See the herd for other maintainers)</description> + </maintainer> +</pkgmetadata> diff --git a/dev-php/php-cgi/php-cgi-4.3.4.ebuild b/dev-php/php-cgi/php-cgi-4.3.4.ebuild new file mode 100644 index 000000000000..f97db34e66cd --- /dev/null +++ b/dev-php/php-cgi/php-cgi-4.3.4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/php-cgi/php-cgi-4.3.4.ebuild,v 1.1 2003/11/23 01:34:54 robbat2 Exp $ + +PHPSAPI="cgi" +inherit php-2 eutils + +IUSE="${IUSE} readline" + +DESCRIPTION="PHP CGI" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~hppa ~mips" + +DEPEND_EXTRA="readline? ( >=sys-libs/ncurses-5.1 >=sys-libs/readline-4.1 ) + ncurses? ( >=sys-libs/ncurses-5.1 )" +DEPEND="${DEPEND} ${DEPEND_EXTRA}" +RDEPEND="${RDEPEND} ${DEPEND_EXTRA}" +PDEPEND="${PDEPEND} ~dev-php/php-core-${PV}" +PROVIDE="virtual/php-4.3.4" + + +src_compile() { + myconf="${myconf} `use_with readline readline /usr`" + # Readline and Ncurses are CLI PHP only + # readline needs ncurses + use ncurses || use readline \ + && myconf="${myconf} --with-ncurses=/usr" \ + || myconf="${myconf} --without-ncurses" + + # CLI needed to build stuff + myconf="${myconf} \ + --enable-cgi \ + --enable-cli \ + --enable-fastcgi" + + php_src_compile +} + + +src_install() { + installtargets="${installtargets} install-cgi install-sapi" + php_src_install + + # php executable is located in ./sapi/cli/ + exeinto /usr/bin + newexe sapi/cgi/php php-cgi +} + +pkg_postinst() { + php_pkg_postinst + einfo "This is a CGI only build." +} +pkg_preinst() { + php_pkg_preinst +} |