aboutsummaryrefslogtreecommitdiffstats
path: root/main/php
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-02-11 15:52:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-02-11 15:52:58 +0000
commit11b27a2f090cd34e002f0d1fe1cbf85c5594dc8b (patch)
tree2d2b5680c734d19b269c8a13b6e5e36ee145c75a /main/php
parent02ce5a8212267299e8983385ee16db7f4e8d32cd (diff)
downloadaports-11b27a2f090cd34e002f0d1fe1cbf85c5594dc8b.tar.bz2
aports-11b27a2f090cd34e002f0d1fe1cbf85c5594dc8b.tar.xz
main/php: new subpackage: php-cli
fixes #272 The php modules no longer depend on php package so those needs to be maintained manually now
Diffstat (limited to 'main/php')
-rw-r--r--main/php/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index db39018418..25689cc242 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -3,7 +3,7 @@
pkgname=php
pkgver=5.3.1
_suhosinver=${pkgver}-0.9.8
-pkgrel=4
+pkgrel=5
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
license="PHP-3"
@@ -15,7 +15,7 @@ makedepends="pcre-dev libxml2-dev libiconv-dev openssl-dev zlib-dev bzip2-dev
gd-dev gmp-dev gettext-dev imap-dev aspell-dev
net-snmp-dev libxslt-dev cyrus-sasl-dev openldap-dev pkgconfig
libgcrypt-dev"
-subpackages="$pkgname-dev $pkgname-doc
+subpackages="$pkgname-dev $pkgname-doc $pkgname-cli
$pkgname-bcmath
$pkgname-bz2
$pkgname-calendar
@@ -152,7 +152,7 @@ build() {
--mandir=/usr/share/man \
--enable-fastcgi \
--enable-cgi \
- --disable-cli \
+ --enable-cli \
--enable-discard-path \
--enable-force-cgi-redirect \
--with-pic \
@@ -171,9 +171,14 @@ package() {
sed -i -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" "$pkgdir"/etc/php/php.ini
}
+cli() {
+ pkgdesc="PHP command line interface"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/php "$subpkgdir"/usr/bin/
+}
+
_mv_mod() {
pkgdesc="$1 php extension"
- depends="php"
mkdir -p "$subpkgdir/$_extdir"
mv "$pkgdir/$_extdir/${1}.so" "$subpkgdir/$_extdir/" || return 1
install -d "$subpkgdir"/etc/php/conf.d