diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/php/APKBUILD | 13 |
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 |