1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
# $Id: packages,v 1.9 2004/11/23 11:19:45 dexter Exp $
# If the debian/rules or debian/control file is missing, rebuild the file:
#
# $ yada rebuild control
# $ yada rebuild rules
Source: php-pear
Section: interpreters
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://pear.php.net/package/PEAR/>
Home-Page: <URL:http://pear.php.net/>
Description: PEAR Base System
Copyright: .
// +--------------------------------------------------------------------+
// | PEAR, the PHP Extension and Application Repository |
// +--------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +--------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.php.net/license/3_0.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +--------------------------------------------------------------------+
// | Authors: Sterling Hughes <sterling@php.net> |
// | Stig Bakken <ssb@php.net> |
// | Tomas V.V.Cox <cox@idecnet.com> |
// +--------------------------------------------------------------------+
Build-Depends-Indep: php4-cli | php5-cli
Build-Depends-Indep: pear | php4-pear | php5-pear
Build: sh
PHP=${PHP_PEAR_PHP_BIN:-php}
rm -rf build || true
mkdir build
cd build
tar zxvf ../*.tgz
for p in ../debian/patches/*.diff; do
test -f $p && patch -p0 < $p
done
cd */
ln -s ../package.xml .
$PHP -C -q -d include_path=$(pwd):/usr/share/php \
scripts/pearcmd.php \
-v \
-c $(pwd)/.pearrc \
-d bin_dir=/usr/bin \
-d doc_dir=/usr/share/php/docs \
-d php_dir=/usr/share/php \
-d data_dir=/usr/share/php/data \
-d php_bin=/usr/bin/php \
-d test_dir=/usr/share/php/tests \
-d include_path=/usr/share/php \
install --installroot=$(pwd)/tmp --force --nodeps package.xml
name=$($PHP -C -q -d include_path=$(pwd):/usr/share/php \
scripts/pearcmd.php \
-c $(pwd)/.pearrc \
info package.xml \
| grep ^Package | tee | sed 's/^Package[[:space:]]*//')
test -n "$name"
$PHP -C -q -d include_path=$(pwd):/usr/share/php \
scripts/pearcmd.php \
-c $(pwd)/.pearrc \
info package.xml \
> ../$name.txt
cat << END | while read key val; do
bin_dir /usr/local/bin
doc_dir /usr/local/share/php/docs
ext_dir /usr/local/lib/php
php_dir /usr/local/share/php
cache_dir /var/cache/pear
data_dir /usr/local/share/php/data
php_bin /usr/bin/php
test_dir /usr/local/share/php/data
sig_keydir /etc/pear
END
$PHP -C -q -d include_path=$(pwd):/usr/share/php \
scripts/pearcmd.php \
-c $(pwd)/pear.conf \
config-set $key $val
done
Clean: sh
rm -rf build || true
Package: php-pear
Architecture: all
Depends: php4-common (>= 4.2) | php5-common
Depends: php4-common | php5-xml
Depends: php-archive-tar (>= 1.1)
Depends: php-console-getopt (>= 1.2)
Depends: php-xml-rpc (>= 1.0.4)
Conflicts: php4-pear, php5-pear
Provides: php4-pear, php5-pear
Replaces: php4-pear, php5-pear
Description: PEAR Base System classes
The PEAR package contains:
* the alpha-quality PEAR_Exception PHP5 error handling mechanism
* the beta-quality PEAR_ErrorStack advanced error handling mechanism
* the PEAR_Error error handling mechanism
* the OS_Guess class for retrieving info about the OS
where PHP is running on
* the System class for quick handling of common operations
with files and directories
* the PEAR base class
Install: sh
mkdir -p $ROOT/usr/share/doc/$PACKAGE
cp -a build/*/tmp/* $ROOT
test -d $ROOT/usr/share/php/docs && mkdir $ROOT/usr/share/doc/$PACKAGE/docs
test -d $ROOT/usr/share/php/docs/*/docs && cp -a $ROOT/usr/share/php/docs/*/docs $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/docs/*/docs
test -d $ROOT/usr/share/php/docs/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs/* && cp -a $ROOT/usr/share/php/docs/*/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs && cp -a $ROOT/usr/share/php/docs/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs
test -d $ROOT/usr/share/php/tests && mkdir $ROOT/usr/share/doc/$PACKAGE/tests
test -d $ROOT/usr/share/php/tests/*/tests && cp -a $ROOT/usr/share/php/tests/*/tests $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/tests/*/tests
test -d $ROOT/usr/share/php/tests/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests/* && cp -a $ROOT/usr/share/php/tests/*/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests && cp -a $ROOT/usr/share/php/tests/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests
cp -a build/*.txt $ROOT/usr/share/doc/$PACKAGE
find $ROOT -name '.*' -print0 | xargs -0 -r rm -rf
.
yada install -doc debian/doc/*
yada remove -script pear
.
yada install -dir /var/cache/pear
yada install -conf -subdir pear build/*/pear.conf
Postrm: sh
if [ "$1" = "purge" ]; then
find /var/cache/pear -maxdepth 1 -name 'xmlrpc_cache_*' -print0 | xargs -r -0 rm -f || true
rmdir --ignore-fail-on-non-empty /var/cache/pear || true
fi
Package: pear
Architecture: all
Depends: php4-cli (>= 4.2) | php5-cli
Pre-Depends: php-pear
Description: PEAR Base System installer
The PEAR installer, for creating, distributing and installing packages.
Doc-Depends: php-pear
Install: sh
yada install -script debian/scripts/pear
yada undocumented pear.1
|