aboutsummaryrefslogtreecommitdiffstats
path: root/main/php
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-12 12:36:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-12 13:03:16 +0000
commite5ac16c4a7bc97a14b93bda11ee2758047eca780 (patch)
tree0cb602b362236b64917d82505597462881799d49 /main/php
parent0ca38d965d18ba8c5c0c1a4a9cd4b453cfed6f14 (diff)
downloadaports-e5ac16c4a7bc97a14b93bda11ee2758047eca780.tar.bz2
aports-e5ac16c4a7bc97a14b93bda11ee2758047eca780.tar.xz
main/php: update suhosin patch and fix extension_dir
ref #241
Diffstat (limited to 'main/php')
-rw-r--r--main/php/APKBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index e1a23d3921..00f5544f5b 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -2,8 +2,8 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php
pkgver=5.3.1
-_suhosinver=${pkgver}RC1-0.9.8
-pkgrel=1
+_suhosinver=${pkgver}-0.9.8
+pkgrel=2
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
license="PHP-3"
@@ -65,6 +65,8 @@ source="http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2
http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz
"
+_extdir="/usr/lib/php/20090626"
+
build() {
cd "$srcdir/$pkgname-$pkgver"
@@ -166,14 +168,14 @@ package() {
cd "$srcdir/$pkgname-$pkgver"
make -j1 INSTALL_ROOT="$pkgdir" install || return 1
install -D -m644 php.ini-production "$pkgdir"/etc/php/php.ini
+ sed -i -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" "$pkgdir"/etc/php/php.ini
}
_mv_mod() {
pkgdesc="$1 php extension"
depends="php"
- local d=usr/lib/php/20090626
- mkdir -p "$subpkgdir/$d"
- mv "$pkgdir/$d/${1}.so" "$subpkgdir/$d/" || return 1
+ mkdir -p "$subpkgdir/$_extdir"
+ mv "$pkgdir/$_extdir/${1}.so" "$subpkgdir/$_extdir/" || return 1
install -d "$subpkgdir"/etc/php/conf.d
echo "extension=${1}.so" > "$subpkgdir"/etc/php/conf.d/${1}.ini
return 0
@@ -234,4 +236,4 @@ dev() {
}
md5sums="63e97ad450f0f7259e785100b634c797 php-5.3.1.tar.bz2
-c3ff0cb5fa728420d56f8ed139446647 suhosin-patch-5.3.1RC1-0.9.8.patch.gz"
+bf75fe3a9bda8c7a041d86197d6da09a suhosin-patch-5.3.1-0.9.8.patch.gz"