Commit 9e720ba7 authored by Natanael Copa's avatar Natanael Copa

main/php: fix extension dir in php.ini

fixes #241
parent 4c4e1029
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
pkgname=php pkgname=php
pkgver=5.2.11 pkgver=5.2.11
_suhosinver=${pkgver}-0.9.7 _suhosinver=${pkgver}-0.9.7
pkgrel=0 pkgrel=1
pkgdesc="The PHP language runtime engine" pkgdesc="The PHP language runtime engine"
url="http://www.php.net/" url="http://www.php.net/"
license="PHP-3" license="PHP-3"
...@@ -62,6 +62,7 @@ subpackages="$pkgname-dev $pkgname-doc ...@@ -62,6 +62,7 @@ subpackages="$pkgname-dev $pkgname-doc
source="http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2 source="http://www.php.net/distributions/${pkgname}-${pkgver}.tar.bz2
http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz
" "
_extdir="/usr/lib/php/20060613"
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
...@@ -161,13 +162,14 @@ build() { ...@@ -161,13 +162,14 @@ build() {
make || return 1 make || return 1
make -j1 INSTALL_ROOT="$pkgdir" install || return 1 make -j1 INSTALL_ROOT="$pkgdir" install || return 1
# fix the extension_dir # fix the extension_dir
sed -i -e 's/^extension_dir/\;extension_dir/' php.ini-recommended sed -i -e "s:^extension_dir.*:extension_dir = \"$_extdir\":" \
php.ini-recommended
install -D -m644 php.ini-recommended "$pkgdir"/etc/php/php.ini install -D -m644 php.ini-recommended "$pkgdir"/etc/php/php.ini
} }
_mv_mod() { _mv_mod() {
pkgdesc="$1 php extension" pkgdesc="$1 php extension"
local d=usr/lib/php/20060613 local d="$_extdir"
mkdir -p "$subpkgdir/$d" mkdir -p "$subpkgdir/$d"
mv "$pkgdir/$d/${1}.so" "$subpkgdir/$d/" || return 1 mv "$pkgdir/$d/${1}.so" "$subpkgdir/$d/" || return 1
install -d "$subpkgdir"/etc/php/conf.d install -d "$subpkgdir"/etc/php/conf.d
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment