From 0f9a4c71d6d9d937dc150d75d20bc5641a740b78 Mon Sep 17 00:00:00 2001 From: Luca Longinotti Date: Tue, 20 Mar 2007 19:22:59 +0000 Subject: [PATCH] Vbump. Package-Manager: portage-2.1.2.2 --- dev-php/PEAR-PEAR/ChangeLog | 10 +- dev-php/PEAR-PEAR/Manifest | 28 +++- dev-php/PEAR-PEAR/PEAR-PEAR-1.4.11.ebuild | 35 ++--- dev-php/PEAR-PEAR/PEAR-PEAR-1.5.1.ebuild | 146 ++++++++++++++++++ .../PEAR-PEAR/files/digest-PEAR-PEAR-1.5.1 | 15 ++ 5 files changed, 206 insertions(+), 28 deletions(-) create mode 100644 dev-php/PEAR-PEAR/PEAR-PEAR-1.5.1.ebuild create mode 100644 dev-php/PEAR-PEAR/files/digest-PEAR-PEAR-1.5.1 diff --git a/dev-php/PEAR-PEAR/ChangeLog b/dev-php/PEAR-PEAR/ChangeLog index 27d7f2812972..53c1031fe357 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-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.85 2006/12/04 21:35:50 chtekk Exp $ +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/ChangeLog,v 1.86 2007/03/20 19:22:59 chtekk Exp $ + +*PEAR-PEAR-1.5.1 (20 Mar 2007) + + 20 Mar 2007; Luca Longinotti PEAR-PEAR-1.4.11.ebuild, + +PEAR-PEAR-1.5.1.ebuild: + Version bump, cleanup. 04 Dec 2006; Luca Longinotti PEAR-PEAR-1.4.11.ebuild: Add sandbox depend to avoid lots of bugreports due to users still having old diff --git a/dev-php/PEAR-PEAR/Manifest b/dev-php/PEAR-PEAR/Manifest index 9372133b696e..3862addd5f10 100644 --- a/dev-php/PEAR-PEAR/Manifest +++ b/dev-php/PEAR-PEAR/Manifest @@ -3,17 +3,26 @@ MD5 d9fcfb5558f62993d1e38157bc7b2002 files/pear.conf 291 RMD160 311e624d97640448754aa2f3e643aa53501f9c25 files/pear.conf 291 SHA256 cbe9363c760952d00b90070d4a41e88a175e12c65f99668fbe16d8158f5fa7ab files/pear.conf 291 DIST Archive_Tar-1.3.1.tgz 15102 RMD160 e4d94299018d49835c9adb5d0d0bb7a4f3ee7fac SHA1 b1eb763a5fba1289686cf1355f90f0fe9149fa6d SHA256 f128b58b249d4f182bdf846c6762462468dbfda045ccb332858e62934d655bf6 +DIST Archive_Tar-1.3.2.tgz 17150 RMD160 cec105d1cdefd502f209c24c217645cec723d7a2 SHA1 40a16c6fe6cee12d9fd87d487785db2949ffa9ff SHA256 952820c055a770a6d1ecdff487b3de0ff0617a1baca084dac443a6d5f7cde53c +DIST Console_Getopt-1.2.2.tgz 4252 RMD160 fb8a955ef2c41618305e03c9a4164c3a465c5e86 SHA1 3158237f6cd8ed34a269c67cbe546156c03cff0b SHA256 880bcaf960b8ce085709b749e9b4f523bbc9bbe9a9e9dd908e06e5f55a113336 DIST Console_Getopt-1.2.tgz 3370 RMD160 d9bebe03b52a59b35a4d0fd0825da069037aa000 SHA1 706a9fb1724ef97ee333dadcda95cc7cc50c0c43 SHA256 90bc64b35832af79625ccd7a1cd981ae26adbe58e1296a052cc3947d9c959e0c DIST PEAR-1.4.11.tgz 283272 RMD160 bb047d4fb64691e2518ccdba0ced30eb6dd502cd SHA1 dbf2f31166efbe7cddc296f5a821806850772b27 SHA256 2ea2f7d0364db443fea39dc9bc96adebfce9fa45ffb035dbfc7b6a1cc5325600 +DIST PEAR-1.5.1.tgz 290252 RMD160 b1c7dc5d89d63a5d90e38527caca8a4bca93770c SHA1 89c279df27fef57859532224c17e4695ad94b0b6 SHA256 0d1c448225f449289c77cda87052f105efb711ccf7757df94d85f6a7c8c36a93 +DIST Structures_Graph-1.0.2.tgz 30947 RMD160 8eb53f6da109b90bab5d8101e99183a1ae116404 SHA1 300aa0a2effb0b39c4fa8a63a834748ae99c2855 SHA256 d30e72fcb888d17d01d211dd0cdc8bdde8c87554fc4d7de438a4cf0b490a8697 DIST XML_RPC-1.5.0.tgz 31619 RMD160 866d2edcb68d6bb400d5a0364852ac62e267a3c4 SHA1 0c8de819abaebc37a77546b21499430147bfaf6b SHA256 d1e42d0e11a649cd0ca5cd3bbb3ced2f0984cdcde263d9c45ce6737405258edf -EBUILD PEAR-PEAR-1.4.11.ebuild 4896 RMD160 a669eea6933e20ca248bfeb0c3161321b7d72f79 SHA1 bcf5618663681ae47520786014ba304aff1533f5 SHA256 83cbd08dc4413b797cbeed5e4fe73e200fc0b87d8c2277a65a9726a941b31013 -MD5 3ca0b546e3282f272e17d8e21865986c PEAR-PEAR-1.4.11.ebuild 4896 -RMD160 a669eea6933e20ca248bfeb0c3161321b7d72f79 PEAR-PEAR-1.4.11.ebuild 4896 -SHA256 83cbd08dc4413b797cbeed5e4fe73e200fc0b87d8c2277a65a9726a941b31013 PEAR-PEAR-1.4.11.ebuild 4896 -MISC ChangeLog 11975 RMD160 a9a45ea0b0e8ffc5e0dc1272c5c636ab96c377aa SHA1 3d72f04561edfcc7ccba3b25513a6314c99f41be SHA256 dce95adb4423b965a1999c4dfd0b656389101008acae4fa15bd13c417a015356 -MD5 51aa6900d30dd88f52277b8d3c7f1fe4 ChangeLog 11975 -RMD160 a9a45ea0b0e8ffc5e0dc1272c5c636ab96c377aa ChangeLog 11975 -SHA256 dce95adb4423b965a1999c4dfd0b656389101008acae4fa15bd13c417a015356 ChangeLog 11975 +DIST XML_RPC-1.5.1.tgz 32215 RMD160 6e8b9f4698285609d9c9d4450c59c16083607ee8 SHA1 d28fd6d3139aa247d22428ec6b50e20a3cdaa4b4 SHA256 a5b517eef799df148d6c85ab19e188715a22c069f4507dcb792e5efb7d0f117e +EBUILD PEAR-PEAR-1.4.11.ebuild 5098 RMD160 7548e4ceb74895f7606240374b237c5b9391d661 SHA1 35181fedbdb8988176145d3652683ae0f9319975 SHA256 6f8760e737f9295151e6388ebb0aabb4e395f55fb703aa8f4d35dc0ae3d34c7a +MD5 d628981a004a8fc8147f98da6d98698f PEAR-PEAR-1.4.11.ebuild 5098 +RMD160 7548e4ceb74895f7606240374b237c5b9391d661 PEAR-PEAR-1.4.11.ebuild 5098 +SHA256 6f8760e737f9295151e6388ebb0aabb4e395f55fb703aa8f4d35dc0ae3d34c7a PEAR-PEAR-1.4.11.ebuild 5098 +EBUILD PEAR-PEAR-1.5.1.ebuild 5434 RMD160 ff19062c626bb9c9cdb0c9b57b24ceec73d947e2 SHA1 4a62d15c22d0175fe586b5e2a26764d4b17ec0b8 SHA256 3755e3acb493cd134ad8514a44d9c8149816ba5bb52be460f28794acba2cfb20 +MD5 19e138a680a6a70d058a4245afae0f37 PEAR-PEAR-1.5.1.ebuild 5434 +RMD160 ff19062c626bb9c9cdb0c9b57b24ceec73d947e2 PEAR-PEAR-1.5.1.ebuild 5434 +SHA256 3755e3acb493cd134ad8514a44d9c8149816ba5bb52be460f28794acba2cfb20 PEAR-PEAR-1.5.1.ebuild 5434 +MISC ChangeLog 12136 RMD160 4824f96d6f96d9e7c6bb582a213732b8ec68e295 SHA1 e76cc60ecceb1e05b7efcf2d52598b3f53a4b505 SHA256 ff2d71ccf924b26cb1071932b6558a99af43891f8ff433159aa4c54326861c09 +MD5 3093cec3fd1811a13885646509d2f4c9 ChangeLog 12136 +RMD160 4824f96d6f96d9e7c6bb582a213732b8ec68e295 ChangeLog 12136 +SHA256 ff2d71ccf924b26cb1071932b6558a99af43891f8ff433159aa4c54326861c09 ChangeLog 12136 MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 MD5 c58d07ca1c1235bbad9bccaec96fc062 metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a metadata.xml 157 @@ -21,3 +30,6 @@ SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1 metadata MD5 4ced704349b38271103540dd322ee073 files/digest-PEAR-PEAR-1.4.11 937 RMD160 ba186287a1fbb622b5401be37853d001b9f58db5 files/digest-PEAR-PEAR-1.4.11 937 SHA256 e2f7990987f8332ae69a8d052b79298c04f5cb0c8a154023956724f272278c48 files/digest-PEAR-PEAR-1.4.11 937 +MD5 91042e7fd684cd96409a9bea5c12a33a files/digest-PEAR-PEAR-1.5.1 1196 +RMD160 5e1ff06f43accc00414d9a80469755ac98ce3d10 files/digest-PEAR-PEAR-1.5.1 1196 +SHA256 43dedc607457443e764ef9b92766be077c6addb82cef4f22b486cbd5d861de7c files/digest-PEAR-PEAR-1.5.1 1196 diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.4.11.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.4.11.ebuild index 8da646b1dfdf..33860d8df8da 100644 --- a/dev-php/PEAR-PEAR/PEAR-PEAR-1.4.11.ebuild +++ b/dev-php/PEAR-PEAR/PEAR-PEAR-1.4.11.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 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.4.11.ebuild,v 1.14 2006/12/04 21:35:50 chtekk Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php/PEAR-PEAR/PEAR-PEAR-1.4.11.ebuild,v 1.15 2007/03/20 19:22:59 chtekk Exp $ inherit depend.php ARCHIVE_TAR="1.3.1" CONSOLE_GETOPT="1.2" -PEAR="1.4.11" XML_RPC="1.5.0" +PEAR="1.4.11" [[ -z "${PEAR_CACHEDIR}" ]] && PEAR_CACHEDIR="/var/cache/pear" @@ -19,7 +19,6 @@ 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/XML_RPC-${XML_RPC}.tgz http://pear.php.net/get/PEAR-${PEAR}.tgz" - LICENSE="PHP" SLOT="0" IUSE="" @@ -71,28 +70,28 @@ src_install() { # Prepare /usr/bin/pear script. cp "${WORKDIR}/PEAR-${PEAR}/scripts/pearcmd.php" "${WORKDIR}/PEAR/pearcmd.php" - sed -i "s:@pear_version@:${PEAR}:g" "${WORKDIR}/PEAR/pearcmd.php" + sed -i "s:@pear_version@:${PEAR}:g" "${WORKDIR}/PEAR/pearcmd.php" || die "sed failed" cp "${WORKDIR}/PEAR-${PEAR}/scripts/pear.sh" "${WORKDIR}/PEAR/pear" - sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/pear" || die - sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/pear" || die - sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/pear" || die - sed -i "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=16M:g" "${WORKDIR}/PEAR/pear" || die + sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + sed -i "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=16M:g" "${WORKDIR}/PEAR/pear" || die "sed failed" # Prepare /usr/bin/peardev script. cp "${WORKDIR}/PEAR-${PEAR}/scripts/peardev.sh" "${WORKDIR}/PEAR/peardev" - sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/peardev" || die - sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/peardev" || die - sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/peardev" || die + sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/peardev" || die "sed failed" + sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/peardev" || die "sed failed" + sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/peardev" || die "sed failed" # Prepare /usr/bin/pecl script. cp "${WORKDIR}/PEAR-${PEAR}/scripts/peclcmd.php" "${WORKDIR}/PEAR/peclcmd.php" cp "${WORKDIR}/PEAR-${PEAR}/scripts/pecl.sh" "${WORKDIR}/PEAR/pecl" - sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/pecl" || die - sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/pecl" || die - sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/pecl" || die + sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/pecl" || die "sed failed" + sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/pecl" || die "sed failed" + sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/pecl" || die "sed failed" # Prepare PEAR/Dependency2.php. - sed -i "s:@PEAR-VER@:${PEAR}:g" "${WORKDIR}/PEAR/PEAR/Dependency2.php" || die + sed -i "s:@PEAR-VER@:${PEAR}:g" "${WORKDIR}/PEAR/PEAR/Dependency2.php" || die "sed failed" # Install Archive_Tar Package. cp -r "${WORKDIR}/Archive_Tar-${ARCHIVE_TAR}/Archive" "${WORKDIR}/PEAR/Archive" @@ -112,8 +111,8 @@ src_install() { insinto /etc doins "${FILESDIR}/pear.conf" - sed -e "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" -i "${D}/etc/pear.conf" - sed -e "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" -i "${D}/etc/pear.conf" + sed -e "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" -i "${D}/etc/pear.conf" || die "sed failed" + sed -e "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" -i "${D}/etc/pear.conf" || die "sed failed" keepdir "${PEAR_CACHEDIR}" fperms 755 "${PEAR_CACHEDIR}" diff --git a/dev-php/PEAR-PEAR/PEAR-PEAR-1.5.1.ebuild b/dev-php/PEAR-PEAR/PEAR-PEAR-1.5.1.ebuild new file mode 100644 index 000000000000..00160081d74f --- /dev/null +++ b/dev-php/PEAR-PEAR/PEAR-PEAR-1.5.1.ebuild @@ -0,0 +1,146 @@ +# Copyright 1999-2007 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.5.1.ebuild,v 1.1 2007/03/20 19:22:59 chtekk Exp $ + +inherit depend.php + +ARCHIVE_TAR="1.3.2" +CONSOLE_GETOPT="1.2.2" +STRUCTURES_GRAPH="1.0.2" +XML_RPC="1.5.1" +PEAR="1.5.1" + +[[ -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="PHP" +SLOT="0" +IUSE="" + +# we deliberately force people to remove their old PEAR installations, +# and any package which may have put an old-style PEAR installation onto +# their box +# we also depend on a recent sandbox version to mitigate problems users +# have been experiencing + +DEPEND="dev-lang/php + !dev-php/php + !dev-php/php-cgi + !dev-php/mod_php + !=sys-apps/sandbox-1.2.17" +RDEPEND="${DEPEND}" + +pkg_setup() { + # we call this here, to ensure that the eclass picks the right + # version of php for the job + require_php_cli + + # 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_install() { + require_php_cli + + # Prevent SNMP related sandbox violoation. + addpredict /usr/share/snmp/mibs/.index + addpredict /var/lib/net-snmp/ + + mkdir -p "${WORKDIR}/PEAR/XML/RPC" + + # Install PEAR Package. + cp -r "${WORKDIR}/PEAR-${PEAR}/OS" "${WORKDIR}/PEAR/" + cp -r "${WORKDIR}/PEAR-${PEAR}/PEAR" "${WORKDIR}/PEAR/" + cp "${WORKDIR}/PEAR-${PEAR}/PEAR.php" "${WORKDIR}/PEAR/PEAR.php" + cp "${WORKDIR}/PEAR-${PEAR}/System.php" "${WORKDIR}/PEAR/System.php" + + # Prepare /usr/bin/pear script. + cp "${WORKDIR}/PEAR-${PEAR}/scripts/pearcmd.php" "${WORKDIR}/PEAR/pearcmd.php" + sed -i "s:@pear_version@:${PEAR}:g" "${WORKDIR}/PEAR/pearcmd.php" || die "sed failed" + cp "${WORKDIR}/PEAR-${PEAR}/scripts/pear.sh" "${WORKDIR}/PEAR/pear" + sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + sed -i "s:-d output_buffering=1:-d output_buffering=1 -d memory_limit=32M:g" "${WORKDIR}/PEAR/pear" || die "sed failed" + + # Prepare /usr/bin/peardev script. + cp "${WORKDIR}/PEAR-${PEAR}/scripts/peardev.sh" "${WORKDIR}/PEAR/peardev" + sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/peardev" || die "sed failed" + sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/peardev" || die "sed failed" + sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/peardev" || die "sed failed" + + # Prepare /usr/bin/pecl script. + cp "${WORKDIR}/PEAR-${PEAR}/scripts/peclcmd.php" "${WORKDIR}/PEAR/peclcmd.php" + sed -i "s:@pear_version@:${PEAR}:g" "${WORKDIR}/PEAR/peclcmd.php" || die "sed failed" + cp "${WORKDIR}/PEAR-${PEAR}/scripts/pecl.sh" "${WORKDIR}/PEAR/pecl" + sed -i "s:@php_bin@:${PHPCLI}:g" "${WORKDIR}/PEAR/pecl" || die "sed failed" + sed -i "s:@bin_dir@:/usr/bin:g" "${WORKDIR}/PEAR/pecl" || die "sed failed" + sed -i "s:@php_dir@:/usr/share/php:g" "${WORKDIR}/PEAR/pecl" || die "sed failed" + + # Prepare PEAR/Dependency2.php. + sed -i "s:@PEAR-VER@:${PEAR}:g" "${WORKDIR}/PEAR/PEAR/Dependency2.php" || die "sed failed" + + # Install Archive_Tar Package. + cp -r "${WORKDIR}/Archive_Tar-${ARCHIVE_TAR}/Archive" "${WORKDIR}/PEAR/" + + # Install Console_Getopt Package. + cp -r "${WORKDIR}/Console_Getopt-${CONSOLE_GETOPT}/Console" "${WORKDIR}/PEAR/" + + # Install Structures_Graph Package. + cp -r "${WORKDIR}/Structures_Graph-${STRUCTURES_GRAPH}/Structures" "${WORKDIR}/PEAR/" + + # Install XML_RPC Package. + cp "${WORKDIR}/XML_RPC-${XML_RPC}/RPC.php" "${WORKDIR}/PEAR/XML/RPC.php" + cp "${WORKDIR}/XML_RPC-${XML_RPC}/Server.php" "${WORKDIR}/PEAR/XML/RPC/Server.php" + + # Finalize installation. + cd "${WORKDIR}/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 -e "s|s:PHPCLILEN:\"PHPCLI\"|s:${#PHPCLI}:\"${PHPCLI}\"|g" -i "${D}/etc/pear.conf" || die "sed failed" + sed -e "s|s:CACHEDIRLEN:\"CACHEDIR\"|s:${#PEAR_CACHEDIR}:\"${PEAR_CACHEDIR}\"|g" -i "${D}/etc/pear.conf" || die "sed failed" + + keepdir "${PEAR_CACHEDIR}" + fperms 755 "${PEAR_CACHEDIR}" +} + +pkg_preinst() { + rm -f "${ROOT}/etc/pear.conf" +} + +pkg_postinst() { + if has_version "