aboutsummaryrefslogtreecommitdiffstats
path: root/main/php
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-01 08:17:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-01 08:17:49 +0000
commit7fd70a27f093598e4a0e9ea6769c182d047df7bb (patch)
treedc7b920d04fc46dffbdc8e62ac3e1758d8e044ac /main/php
parent1a961fc3177fa67ecc5cf81ed8016cccaa69f3b4 (diff)
downloadaports-7fd70a27f093598e4a0e9ea6769c182d047df7bb.tar.bz2
aports-7fd70a27f093598e4a0e9ea6769c182d047df7bb.tar.xz
main/php: upgrade to 5.3.0
Diffstat (limited to 'main/php')
-rw-r--r--main/php/APKBUILD15
-rw-r--r--main/php/php.post-upgrade11
2 files changed, 19 insertions, 7 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD
index f1a36a24e9..b50e8932b5 100644
--- a/main/php/APKBUILD
+++ b/main/php/APKBUILD
@@ -1,18 +1,19 @@
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php
-pkgver=5.2.10
+pkgver=5.3.0
pkgrel=0
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
license="PHP-3"
depends=
+install="$pkgname.post-upgrade"
makedepends="pcre-dev libxml2-dev libiconv-dev openssl-dev zlib-dev bzip2-dev
curl-dev libpng-dev jpeg-dev freetype-dev libmcrypt-dev mysql-dev
sqlite-dev libtool libltdl postgresql-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-bcmath $pkgname-bz2
$pkgname-calendar $pkgname-curl $pkgname-exif $pkgname-ftp $pkgname-gd
- $pkgname-iconv $pkgname-json $pkgname-mcrypt $pkgname-mime_magic
+ $pkgname-iconv $pkgname-json $pkgname-mcrypt
$pkgname-mysql $pkgname-mysqli $pkgname-openssl $pkgname-pdo
$pkgname-pdo_mysql $pkgname-pdo_sqlite $pkgname-posix $pkgname-session
$pkgname-shmop $pkgname-soap $pkgname-sockets $pkgname-sqlite
@@ -80,7 +81,7 @@ build() {
--with-xmlrpc=shared \
--enable-cgi \
--with-freetype-dir=shared,/usr \
- --with-mime-magic=shared \
+ --with-fileinfo=shared \
--enable-discard-path \
--enable-force-cgi-redirect \
--disable-cli \
@@ -90,11 +91,11 @@ build() {
make || return 1
make -j1 INSTALL_ROOT="$pkgdir" install || return 1
- install -D -m644 php.ini-recommended "$pkgdir"/etc/php/php.ini
+ install -D -m644 php.ini-production "$pkgdir"/etc/php/php.ini
}
_mv_mod() {
- local d=usr/lib/php/20060613
+ local d=usr/lib/php/20090626
mkdir -p "$subpkgdir/$d"
mv "$pkgdir/$d/${1}.so" "$subpkgdir/$d/" || return 1
# last one removed the dir
@@ -112,7 +113,7 @@ gd() { _mv_mod gd; }
iconv() { _mv_mod iconv; }
json() { _mv_mod json; }
mcrypt() { _mv_mod mcrypt; }
-mime_magic() { _mv_mod mime_magic; }
+# mime_magic() { _mv_mod mime_magic; }
mysql() { _mv_mod mysql; }
mysqli() { _mv_mod mysqli; }
openssl() { _mv_mod openssl; }
@@ -141,4 +142,4 @@ dev() {
mv "$pkgdir"/usr/lib/php/build "$subpkgdir"/usr/lib/php/
}
-md5sums="15c7b5a87f57332d6fc683528e28247b php-5.2.10.tar.bz2"
+md5sums="846760cd655c98dfd86d6d97c3d964b0 php-5.3.0.tar.bz2"
diff --git a/main/php/php.post-upgrade b/main/php/php.post-upgrade
new file mode 100644
index 0000000000..98c959958c
--- /dev/null
+++ b/main/php/php.post-upgrade
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+new=$1
+old=$2
+
+if [ "$(apk version -t $old 5.3)" = "<" ]; then
+ echo "*"
+ echo "* Please see migration notes here: http://php.net/migration53"
+ echo "*"
+fi
+