diff options
author | Ole Markus With <olemarkus@gentoo.org> | 2011-03-06 10:59:47 +0000 |
---|---|---|
committer | Ole Markus With <olemarkus@gentoo.org> | 2011-03-06 10:59:47 +0000 |
commit | b57ac32a0c9ab519b0af7be609829cbb2a5d58ec (patch) | |
tree | 99ea0f785e9a12b6045c252e21ce628f3589f5c9 /dev-php | |
parent | Move to new python stuff, removed old (diff) | |
download | gentoo-2-b57ac32a0c9ab519b0af7be609829cbb2a5d58ec.tar.gz gentoo-2-b57ac32a0c9ab519b0af7be609829cbb2a5d58ec.tar.bz2 gentoo-2-b57ac32a0c9ab519b0af7be609829cbb2a5d58ec.zip |
Removed older versions affected by security bug #356893
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/PEAR-PEAR/ChangeLog | 8 | ||||
-rw-r--r-- | dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2-r1.ebuild | 141 | ||||
-rw-r--r-- | dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild | 99 | ||||
-rw-r--r-- | dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r1.ebuild | 96 | ||||
-rw-r--r-- | dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r2.ebuild | 103 | ||||
-rw-r--r-- | dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r3.ebuild | 103 |
6 files changed, 7 insertions, 543 deletions
diff --git a/dev-php/PEAR-PEAR/ChangeLog b/dev-php/PEAR-PEAR/ChangeLog index 560b02ef4e44..f34595454c21 100644 --- a/dev-php/PEAR-PEAR/ChangeLog +++ b/dev-php/PEAR-PEAR/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-php/PEAR-PEAR # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.134 2011/03/05 12:09:43 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.135 2011/03/06 10:59:47 olemarkus Exp $ + + 06 Mar 2011; Ole Markus With <olemarkus@gentoo.org> + -PEAR-PEAR-1.6.2-r1.ebuild, -PEAR-PEAR-1.9.0.ebuild, + -PEAR-PEAR-1.9.1-r1.ebuild, -PEAR-PEAR-1.9.1-r2.ebuild, + -PEAR-PEAR-1.9.1-r3.ebuild: + Removed older versions affected by security bug #356893 05 Mar 2011; Raúl Porcel <armin76@gentoo.org> PEAR-PEAR-1.9.2.ebuild: alpha/arm/ia64/s390/sh/sparc stable wrt #356893 diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2-r1.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2-r1.ebuild deleted file mode 100644 index 60d5260a069d..000000000000 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2-r1.ebuild +++ /dev/null @@ -1,141 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.6.2-r1.ebuild,v 1.10 2009/09/23 02:41:50 beandog Exp $ - -inherit depend.php - -ARCHIVE_TAR="1.3.2" -CONSOLE_GETOPT="1.2.3" -STRUCTURES_GRAPH="1.0.2" -XML_RPC="1.5.1" -PEAR="${PV}" - -[[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear" - -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86" - -DESCRIPTION="PEAR Base System (PEAR, Archive_Tar, Console_Getopt, Structures_Graph, XML_RPC)." -HOMEPAGE="http://pear.php.net/" -SRC_URI="http://pear.php.net/get/Archive_Tar-${ARCHIVE_TAR}.tgz - http://pear.php.net/get/Console_Getopt-${CONSOLE_GETOPT}.tgz - http://pear.php.net/get/Structures_Graph-${STRUCTURES_GRAPH}.tgz - http://pear.php.net/get/XML_RPC-${XML_RPC}.tgz - http://pear.php.net/get/PEAR-${PEAR}.tgz" -LICENSE="LGPL-2.1 PHP-2.02 PHP-3 PHP-3.01 MIT" -SLOT="0" -IUSE="" - -# we depend on a recent sandbox version to mitigate problems users -# have been experiencing -DEPEND="dev-lang/php - >=sys-apps/sandbox-1.2.17 - !dev-php/pear - !dev-php/PEAR-Archive_Tar - !dev-php/PEAR-Console_Getopt - !dev-php/PEAR-Structures_Graph - !dev-php/PEAR-XML_RPC" -RDEPEND="dev-lang/php" - -S=${WORKDIR} - -pkg_setup() { - has_php - - # we check that PHP was compiled with the correct USE flags - if [[ ${PHP_VERSION} == "4" ]] ; then - require_php_with_use cli pcre expat zlib - else - require_php_with_use cli pcre xml zlib - fi -} - -src_unpack() { - unpack ${A} - cd "${WORKDIR}"/PEAR-${PV} - epatch "${FILESDIR}"/${PV}-accept-encoding-bug_12116.patch # PEAR bug #12116 -} - -src_install() { - require_php_cli - - # Prevent SNMP related sandbox violoation. - addpredict /usr/share/snmp/mibs/.index - addpredict /var/lib/net-snmp/ - - mkdir -p PEAR/XML/RPC - - # Install PEAR Package. - cp -r PEAR-${PEAR}/OS PEAR/ - cp -r PEAR-${PEAR}/PEAR PEAR/ - cp PEAR-${PEAR}/PEAR.php PEAR/PEAR.php - cp PEAR-${PEAR}/System.php PEAR/System.php - - # Prepare /usr/bin/pear script. - cp PEAR-${PEAR}/scripts/pearcmd.php PEAR/pearcmd.php - sed -i "s:@pear_version@:${PEAR}:g" PEAR/pearcmd.php || die "sed failed" - cp PEAR-${PEAR}/scripts/pear.sh PEAR/pear - sed -i -e "s:@php_bin@:${PHPCLI}:g" \ - -e "s:@bin_dir@:/usr/bin:g" \ - -e "s:@php_dir@:/usr/share/php:g" \ - -e "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" PEAR/pear || die "sed failed" - - # Prepare /usr/bin/peardev script. - cp PEAR-${PEAR}/scripts/peardev.sh PEAR/peardev - sed -i -e "s:@php_bin@:${PHPCLI}:g" \ - -e "s:@bin_dir@:/usr/bin:g" \ - -e "s:@php_dir@:/usr/share/php:g" PEAR/peardev || die "sed failed" - - # Prepare /usr/bin/pecl script. - cp PEAR-${PEAR}/scripts/peclcmd.php PEAR/peclcmd.php - sed -i "s:@pear_version@:${PEAR}:g" PEAR/peclcmd.php || die "sed failed" - cp PEAR-${PEAR}/scripts/pecl.sh PEAR/pecl - sed -i -e "s:@php_bin@:${PHPCLI}:g" \ - -e "s:@bin_dir@:/usr/bin:g" \ - -e "s:@php_dir@:/usr/share/php:g" PEAR/pecl || die "sed failed" - - # Prepare PEAR/Dependency2.php. - sed -i "s:@PEAR-VER@:${PEAR}:g" PEAR/PEAR/Dependency2.php || die "sed failed" - - # Install Archive_Tar Package. - cp -r Archive_Tar-${ARCHIVE_TAR}/Archive PEAR/ - - # Install Console_Getopt Package. - cp -r Console_Getopt-${CONSOLE_GETOPT}/Console PEAR/ - - # Install Structures_Graph Package. - cp -r Structures_Graph-${STRUCTURES_GRAPH}/Structures PEAR/ - - # Install XML_RPC Package. - cp XML_RPC-${XML_RPC}/RPC.php PEAR/XML/RPC.php - cp XML_RPC-${XML_RPC}/Server.php PEAR/XML/RPC/Server.php - - # Finalize installation. - cd PEAR - insinto /usr/share/php - doins -r Archive Console OS PEAR Structures XML *.php - dobin pear peardev pecl - - insinto /etc - doins "${FILESDIR}/pear.conf" - sed -i -e "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" \ - -e "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" "${D}/etc/pear.conf" || die "sed failed" - - keepdir "${PEAR_CACHEDIR}" - fperms 755 "${PEAR_CACHEDIR}" -} - -pkg_preinst() { - rm -f "${ROOT}/etc/pear.conf" -} - -pkg_postinst() { - pear clear-cache - - # Update PEAR/PECL channels as needed, add new ones to the list if needed - pearchans="pear.php.net pecl.php.net components.ez.no pear.phpdb.org pear.phing.info pear.symfony-project.com pear.phpunit.de pear.php-baustelle.de pear.zeronotice.org pear.phpontrax.com pear.agavi.org" - - for chan in ${pearchans} ; do - pear channel-discover ${chan} - pear channel-update ${chan} - done -} diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild deleted file mode 100644 index 8201863aff48..000000000000 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild +++ /dev/null @@ -1,99 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.0.ebuild,v 1.7 2010/10/01 01:01:28 ranger Exp $ - -inherit depend.php - -PEAR="${PV}" - -KEYWORDS="alpha amd64 arm ~hppa ia64 ppc ppc64 s390 sh sparc x86" - -DESCRIPTION="PEAR Base System" -HOMEPAGE="http://pear.php.net/package/PEAR" -SRC_URI="http://pear.php.net/get/PEAR-${PEAR}.tgz" -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="dev-lang/php" - -S="${WORKDIR}" - -pkg_setup() { - has_php - - # we check that PHP was compiled with the correct USE flags - if [[ ${PHP_VERSION} == "4" ]] ; then - require_php_with_use cli pcre expat zlib - else - require_php_with_use cli pcre xml zlib - fi - - [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear" - [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="/var/tmp/pear" - [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="/tmp" - - elog - elog "cache_dir is set to: ${PEAR_CACHEDIR}" - elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" - elog "temp_dir is set to: ${PEAR_TEMPDIR}" - elog - elog "If you want to change the above values, you need to set" - elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" - elog "accordingly in /etc/make.conf and re-emerge ${PN}." - elog -} - -src_install() { - # Prevent SNMP related sandbox violoation. - addpredict /usr/share/snmp/mibs/.index - addpredict /var/lib/net-snmp/ - - # install PEAR package - cd "${S}"/PEAR-${PEAR} - - insinto /usr/share/php - doins -r PEAR/ - doins -r OS/ - doins PEAR.php PEAR5.php System.php - doins scripts/pearcmd.php - doins scripts/peclcmd.php - - newbin scripts/pear.sh pear - newbin scripts/peardev.sh peardev - newbin scripts/pecl.sh pecl - - # adjust some scripts for current version - for i in pearcmd.php peclcmd.php ; do - dosed "s:@pear_version@:${PEAR}:g" /usr/share/php/${i} - done - - for i in pear peardev pecl ; do - dosed "s:@php_bin@:${PHPCLI}:g" /usr/bin/${i} - dosed "s:@bin_dir@:/usr/bin:g" /usr/bin/${i} - dosed "s:@php_dir@:/usr/share/php:g" /usr/bin/${i} - done - dosed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" /usr/bin/pear - - dosed "s:@package_version@:${PEAR}:g" /usr/share/php/PEAR/Command/Package.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/Dependency2.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v1.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v2.php - - # finalize install - insinto /etc - newins "${FILESDIR}"/pear.conf-r1 pear.conf - dosed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" /etc/pear.conf - dosed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" /etc/pear.conf - dosed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" /etc/pear.conf - dosed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" /etc/pear.conf - - [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR}" - keepdir "${PEAR_CACHEDIR}" - diropts -m1777 - keepdir "${PEAR_DOWNLOADDIR}" -} - -pkg_preinst() { - rm -f "${ROOT}/etc/pear.conf" -} diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r1.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r1.ebuild deleted file mode 100644 index 9438ac3fc98c..000000000000 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r1.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r1.ebuild,v 1.4 2010/11/05 04:18:21 jer Exp $ - -EAPI="2" - -inherit depend.php - -PEAR="${PV}" - -KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86" - -DESCRIPTION="PEAR Base System" -HOMEPAGE="http://pear.php.net/package/PEAR" -SRC_URI="http://pear.php.net/get/PEAR-${PEAR}.tgz" -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND=" - || ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 ) - dev-lang/php[cli,xml,zlib]" - -S="${WORKDIR}" - -pkg_setup() { - has_php - - [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear" - [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="/var/tmp/pear" - [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="/tmp" - - elog - elog "cache_dir is set to: ${PEAR_CACHEDIR}" - elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" - elog "temp_dir is set to: ${PEAR_TEMPDIR}" - elog - elog "If you want to change the above values, you need to set" - elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" - elog "accordingly in /etc/make.conf and re-emerge ${PN}." - elog -} - -src_install() { - # Prevent SNMP related sandbox violoation. - addpredict /usr/share/snmp/mibs/.index - addpredict /var/lib/net-snmp/ - - # install PEAR package - cd "${S}"/PEAR-${PEAR} - - insinto /usr/share/php - doins -r PEAR/ - doins -r OS/ - doins PEAR.php PEAR5.php System.php - doins scripts/pearcmd.php - doins scripts/peclcmd.php - - newbin scripts/pear.sh pear - newbin scripts/peardev.sh peardev - newbin scripts/pecl.sh pecl - - # adjust some scripts for current version - for i in pearcmd.php peclcmd.php ; do - dosed "s:@pear_version@:${PEAR}:g" /usr/share/php/${i} - done - - for i in pear peardev pecl ; do - dosed "s:@php_bin@:${PHPCLI}:g" /usr/bin/${i} - dosed "s:@bin_dir@:/usr/bin:g" /usr/bin/${i} - dosed "s:@php_dir@:/usr/share/php:g" /usr/bin/${i} - done - dosed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" /usr/bin/pear - - dosed "s:@package_version@:${PEAR}:g" /usr/share/php/PEAR/Command/Package.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/Dependency2.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v1.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v2.php - - # finalize install - insinto /etc - newins "${FILESDIR}"/pear.conf-r1 pear.conf - dosed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" /etc/pear.conf - dosed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" /etc/pear.conf - dosed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" /etc/pear.conf - dosed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" /etc/pear.conf - - [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR}" - keepdir "${PEAR_CACHEDIR}" - diropts -m1777 - keepdir "${PEAR_DOWNLOADDIR}" -} - -pkg_preinst() { - rm -f "${ROOT}/etc/pear.conf" -} diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r2.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r2.ebuild deleted file mode 100644 index 94df0fe30080..000000000000 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r2.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r2.ebuild,v 1.1 2010/10/23 06:57:50 olemarkus Exp $ - -EAPI="3" - -inherit depend.php - -PEAR="${PV}" - -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" - -DESCRIPTION="PEAR Base System" -HOMEPAGE="http://pear.php.net/package/PEAR" -SRC_URI="http://pear.php.net/get/PEAR-${PEAR}.tgz" -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="|| ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 ) - dev-lang/php[cli,xml,zlib]" - -RDEPEND="${DEPEND}" - -S="${WORKDIR}" - -pkg_setup() { - has_php - - [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="${EPREFIX}/var/cache/pear" - [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="${EPREFIX}/var/tmp/pear" - [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="${EPREFIX}/tmp" - - elog - elog "cache_dir is set to: ${PEAR_CACHEDIR}" - elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" - elog "temp_dir is set to: ${PEAR_TEMPDIR}" - elog - elog "If you want to change the above values, you need to set" - elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" - elog "accordingly in /etc/make.conf and re-emerge ${PN}." - elog -} - -src_install() { - # Prevent SNMP related sandbox violoation. - addpredict /usr/share/snmp/mibs/.index - addpredict /var/lib/net-snmp/ - - # install PEAR package - cd "${S}"/PEAR-${PEAR} - - insinto /usr/share/php - doins -r PEAR/ - doins -r OS/ - doins PEAR.php PEAR5.php System.php - doins scripts/pearcmd.php - doins scripts/peclcmd.php - - newbin scripts/pear.sh pear - newbin scripts/peardev.sh peardev - newbin scripts/pecl.sh pecl - - # adjust some scripts for current version - for i in pearcmd.php peclcmd.php ; do - dosed "s:@pear_version@:${PEAR}:g" /usr/share/php/${i} - done - - for i in pear peardev pecl ; do - dosed "s:@bin_dir@:${EPREFIX}/usr/bin:g" /usr/bin/${i} - dosed "s:@php_dir@:${EPREFIX}/usr/share/php:g" /usr/bin/${i} - done - dosed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" /usr/bin/pear - - dosed "s:@package_version@:${PEAR}:g" /usr/share/php/PEAR/Command/Package.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/Dependency2.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v1.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v2.php - - # finalize install - insinto /etc - newins "${FILESDIR}"/pear.conf-r1 pear.conf - dosed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" /etc/pear.conf - dosed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" /etc/pear.conf - dosed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" /etc/pear.conf - dosed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" /etc/pear.conf - - # Change the paths for eprefix! - dosed "s|s:19:\"/usr/share/php/docs\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/docs\"|g" /etc/pear.conf - dosed "s|s:19:\"/usr/share/php/data\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/data\"|g" /etc/pear.conf - dosed "s|s:20:\"/usr/share/php/tests\"|s:$(( ${#EPREFIX}+20 )):\"${EPREFIX}/usr/share/php/tests\"|g" /etc/pear.conf - dosed "s|s:14:\"/usr/share/php\"|s:$(( ${#EPREFIX}+14 )):\"${EPREFIX}/usr/share/php\"|g" /etc/pear.conf - dosed "s|s:8:\"/usr/bin\"|s:$(( ${#EPREFIX}+8 )):\"${EPREFIX}/usr/bin\"|g" /etc/pear.conf - - [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR#${EPREFIX}}" - keepdir "${PEAR_CACHEDIR#${EPREFIX}}" - diropts -m1777 - keepdir "${PEAR_DOWNLOADDIR#${EPREFIX}}" -} - -pkg_preinst() { - rm -f "${EROOT}/etc/pear.conf" -} diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r3.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r3.ebuild deleted file mode 100644 index 07da6b610b14..000000000000 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r3.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.9.1-r3.ebuild,v 1.6 2011/01/10 18:07:33 xarthisius Exp $ - -EAPI="3" - -inherit depend.php - -PEAR="${PV}" - -KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos" - -DESCRIPTION="PEAR Base System" -HOMEPAGE="http://pear.php.net/package/PEAR" -SRC_URI="http://pear.php.net/get/PEAR-${PEAR}.tgz" -LICENSE="MIT" -SLOT="0" -IUSE="" - -DEPEND="|| ( <dev-lang/php-5.3[pcre] >=dev-lang/php-5.3 ) - dev-lang/php[cli,xml,zlib]" - -RDEPEND="${DEPEND}" - -S="${WORKDIR}" - -pkg_setup() { - has_php - - [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="${EPREFIX}/var/cache/pear" - [[ -z "${PEAR_DOWNLOADDIR}" ]] && PEAR_DOWNLOADDIR="${EPREFIX}/var/tmp/pear" - [[ -z "${PEAR_TEMPDIR}" ]] && PEAR_TEMPDIR="${EPREFIX}/tmp" - - elog - elog "cache_dir is set to: ${PEAR_CACHEDIR}" - elog "download_dir is set to: ${PEAR_DOWNLOADDIR}" - elog "temp_dir is set to: ${PEAR_TEMPDIR}" - elog - elog "If you want to change the above values, you need to set" - elog "PEAR_CACHEDIR, PEAR_DOWNLOADDIR and PEAR_TEMPDIR variable(s)" - elog "accordingly in /etc/make.conf and re-emerge ${PN}." - elog -} - -src_install() { - # Prevent SNMP related sandbox violoation. - addpredict /usr/share/snmp/mibs/.index - addpredict /var/lib/net-snmp/ - - # install PEAR package - cd "${S}"/PEAR-${PEAR} - - insinto /usr/share/php - doins -r PEAR/ - doins -r OS/ - doins PEAR.php PEAR5.php System.php - doins scripts/pearcmd.php - doins scripts/peclcmd.php - - newbin scripts/pear.sh pear - newbin scripts/peardev.sh peardev - newbin scripts/pecl.sh pecl - - # adjust some scripts for current version - for i in pearcmd.php peclcmd.php ; do - dosed "s:@pear_version@:${PEAR}:g" /usr/share/php/${i} - done - - for i in pear peardev pecl ; do - dosed "s:@bin_dir@:${EPREFIX}/usr/bin:g" /usr/bin/${i} - dosed "s:@php_dir@:${EPREFIX}/usr/share/php:g" /usr/bin/${i} - done - dosed "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" /usr/bin/pear - - dosed "s:@package_version@:${PEAR}:g" /usr/share/php/PEAR/Command/Package.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/Dependency2.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v1.php - dosed "s:@PEAR-VER@:${PEAR}:g" /usr/share/php/PEAR/PackageFile/Parser/v2.php - - # finalize install - insinto /etc - newins "${FILESDIR}"/pear.conf-r2 pear.conf - dosed "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" /etc/pear.conf - dosed "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" /etc/pear.conf - dosed "s|s:DOWNLOADDIRLEN:\"DOWNLOADDIR\"|s:${#PEAR_DOWNLOADDIR}:\"${PEAR_DOWNLOADDIR}\"|g" /etc/pear.conf - dosed "s|s:TEMPDIRLEN:\"TEMPDIR\"|s:${#PEAR_TEMPDIR}:\"${PEAR_TEMPDIR}\"|g" /etc/pear.conf - - # Change the paths for eprefix! - dosed "s|s:19:\"/usr/share/php/docs\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/docs\"|g" /etc/pear.conf - dosed "s|s:19:\"/usr/share/php/data\"|s:$(( ${#EPREFIX}+19 )):\"${EPREFIX}/usr/share/php/data\"|g" /etc/pear.conf - dosed "s|s:20:\"/usr/share/php/tests\"|s:$(( ${#EPREFIX}+20 )):\"${EPREFIX}/usr/share/php/tests\"|g" /etc/pear.conf - dosed "s|s:14:\"/usr/share/php\"|s:$(( ${#EPREFIX}+14 )):\"${EPREFIX}/usr/share/php\"|g" /etc/pear.conf - dosed "s|s:8:\"/usr/bin\"|s:$(( ${#EPREFIX}+8 )):\"${EPREFIX}/usr/bin\"|g" /etc/pear.conf - - [[ "${PEAR_TEMPDIR}" != "/tmp" ]] && keepdir "${PEAR_TEMPDIR#${EPREFIX}}" - keepdir "${PEAR_CACHEDIR#${EPREFIX}}" - diropts -m1777 - keepdir "${PEAR_DOWNLOADDIR#${EPREFIX}}" -} - -pkg_preinst() { - rm -f "${EROOT}/etc/pear.conf" -} |