summaryrefslogtreecommitdiff
path: root/testing/php
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-01 00:01:20 +0000
committerroot <root@rshg054.dnsready.net>2012-05-01 00:01:20 +0000
commit752015395fc8b95cc4a86b68189cb747fe9a8499 (patch)
tree3e64f1f739447b52eab8498bf13bcbc9410cde8e /testing/php
parentb7cd4b184f75d3d2b54b356e08f296df3a9afb38 (diff)
Tue May 1 00:01:20 UTC 2012
Diffstat (limited to 'testing/php')
-rw-r--r--testing/php/PKGBUILD70
-rw-r--r--testing/php/php-fpm.conf.in.patch4
-rw-r--r--testing/php/php.ini.patch16
3 files changed, 30 insertions, 60 deletions
diff --git a/testing/php/PKGBUILD b/testing/php/PKGBUILD
index fe09f5643..3c2202bb3 100644
--- a/testing/php/PKGBUILD
+++ b/testing/php/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 155941 2012-04-09 13:41:06Z andyrtr $
+# $Id: PKGBUILD 157757 2012-04-29 06:41:37Z pierre $
# Maintainer: Pierre Schmitz <pierre@archlinux.de>
pkgbase=php
@@ -21,44 +21,35 @@ pkgname=('php'
'php-sqlite'
'php-tidy'
'php-xsl')
-pkgver=5.3.10
-_suhosinver=5.3.9-0.9.10
-pkgrel=5
+pkgver=5.4.1
+pkgrel=2
arch=('i686' 'x86_64')
license=('PHP')
url='http://www.php.net'
-makedepends=('apache' 'imap' 'postgresql-libs' 'libldap' 'postfix'
- 'sqlite3' 'unixodbc' 'net-snmp' 'libzip' 'enchant' 'file' 'freetds'
+makedepends=('apache' 'imap' 'postgresql-libs' 'libldap' 'postfix' 'libvpx'
+ 'sqlite' 'unixodbc' 'net-snmp' 'libzip' 'enchant' 'file' 'freetds'
'libmcrypt' 'tidyhtml' 'aspell' 'libltdl' 'libpng' 'libjpeg' 'icu'
'curl' 'libxslt' 'openssl' 'bzip2' 'db' 'gmp' 'freetype2')
source=("http://www.php.net/distributions/${pkgbase}-${pkgver}.tar.bz2"
- "http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz"
- "http://download.suhosin.org/suhosin-patch-${_suhosinver}.patch.gz.sig"
'php.ini.patch' 'apache.conf' 'rc.d.php-fpm' 'php-fpm.conf.in.patch'
- 'logrotate.d.php-fpm' 'pcre_info.patch')
-md5sums=('816259e5ca7d0a7e943e56a3bb32b17f'
- 'c099b3d7eac95018ababd41ded7f3066'
- 'c15d18f846be1d69144a5d0056ee6506'
- 'ffc338e8ce2a990f6f2a486355bbab65'
+ 'logrotate.d.php-fpm')
+md5sums=('5b9529ed89dbc48c498e9693d1af3caf'
+ '0b0bc7a917fc592bdf11dcd3c5c255e9'
'dec2cbaad64e3abf4f0ec70e1de4e8e9'
'b01be5f816988fcee7e78225836e5e27'
- '740ec5fe2ecfd9d7febd4081c90ec65b'
- '07c4e412909ac65a44ec90e7a2c4bade'
- '8d3806bbb19e390f9b32ccf21611d937')
+ '59b3a25f9eb3afc02f1adf9ee699808c'
+ '07c4e412909ac65a44ec90e7a2c4bade')
build() {
phpconfig="--srcdir=../${pkgbase}-${pkgver} \
+ --config-cache \
--prefix=/usr \
--sysconfdir=/etc/php \
--localstatedir=/var \
--with-layout=GNU \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
- --enable-inline-optimization \
- --disable-debug \
--disable-rpath \
- --disable-static \
- --enable-shared \
--mandir=/usr/share/man \
--without-pear \
"
@@ -70,36 +61,31 @@ build() {
--enable-ftp=shared \
--enable-gd-native-ttf \
--enable-intl=shared \
- --enable-json=shared \
- --enable-mbregex \
--enable-mbstring \
- --enable-pdo \
--enable-phar=shared \
--enable-posix=shared \
- --enable-session \
--enable-shmop=shared \
--enable-soap=shared \
--enable-sockets=shared \
- --enable-sqlite-utf8 \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
- --enable-xml \
--enable-zip=shared \
--with-bz2=shared \
--with-curl=shared \
--with-db4=/usr \
--with-enchant=shared,/usr \
- --with-freetype-dir=shared,/usr \
+ --with-freetype-dir=/usr \
--with-gd=shared \
- --with-gdbm=shared \
+ --with-gdbm \
--with-gettext=shared \
--with-gmp=shared \
--with-iconv=shared \
--with-icu-dir=/usr \
- --with-imap-ssl=shared \
+ --with-imap-ssl \
--with-imap=shared \
- --with-jpeg-dir=shared,/usr \
+ --with-jpeg-dir=/usr \
+ --with-vpx-dir=/usr \
--with-ldap=shared \
--with-ldap-sasl \
--with-mcrypt=shared \
@@ -115,19 +101,15 @@ build() {
--with-pdo-pgsql=shared \
--with-pdo-sqlite=shared,/usr \
--with-pgsql=shared \
- --with-png-dir=shared,/usr \
+ --with-png-dir=/usr \
--with-pspell=shared \
- --with-regex=php \
--with-snmp=shared \
--with-sqlite3=shared,/usr \
- --with-sqlite=shared \
--with-tidy=shared \
--with-unixODBC=shared,/usr \
--with-xmlrpc=shared \
--with-xsl=shared \
--with-zlib \
- --without-db2 \
- --without-db3 \
"
EXTENSION_DIR=/usr/lib/php/modules
@@ -137,11 +119,6 @@ build() {
cd ${srcdir}/${pkgbase}-${pkgver}
- patch -p1 -i ${srcdir}/pcre_info.patch
-
- # apply suhosin patch
- patch -p1 -i ${srcdir}/suhosin-patch-${_suhosinver}.patch
-
# adjust paths
patch -p0 -i ${srcdir}/php.ini.patch
patch -p0 -i ${srcdir}/php-fpm.conf.in.patch
@@ -279,11 +256,8 @@ package_php-pear() {
backup=('etc/php/pear.conf')
cd ${srcdir}/build-pear
- make -j1 install-pear INSTALL_ROOT=${pkgdir}
- local i
- while read i; do
- [ ! -e "$i" ] || rm -rf "$i"
- done < <(find ${pkgdir} -name '.*')
+ make install-pear INSTALL_ROOT=${pkgdir}
+ rm -rf ${pkgdir}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
}
package_php-enchant() {
@@ -293,7 +267,7 @@ package_php-enchant() {
}
package_php-gd() {
- depends=('php' 'libpng' 'libjpeg' 'freetype2')
+ depends=('php' 'libpng' 'libjpeg' 'freetype2' 'libvpx')
pkgdesc='gd module for PHP'
install -D -m755 ${srcdir}/build-php/modules/gd.so ${pkgdir}/usr/lib/php/modules/gd.so
}
@@ -349,8 +323,8 @@ package_php-snmp() {
}
package_php-sqlite() {
- depends=('php' 'sqlite3')
- pkgdesc='sqlite3 module for PHP'
+ depends=('php' 'sqlite')
+ pkgdesc='sqlite module for PHP'
install -D -m755 ${srcdir}/build-php/modules/sqlite3.so ${pkgdir}/usr/lib/php/modules/sqlite3.so
install -D -m755 ${srcdir}/build-php/modules/pdo_sqlite.so ${pkgdir}/usr/lib/php/modules/pdo_sqlite.so
}
diff --git a/testing/php/php-fpm.conf.in.patch b/testing/php/php-fpm.conf.in.patch
index b923edb38..4e0f4a888 100644
--- a/testing/php/php-fpm.conf.in.patch
+++ b/testing/php/php-fpm.conf.in.patch
@@ -1,5 +1,5 @@
--- sapi/fpm/php-fpm.conf.in 2011-10-08 23:04:10.000000000 +0200
-+++ sapi/fpm/php-fpm.conf.in 2012-01-11 10:50:14.905161442 +0100
++++ sapi/fpm/php-fpm.conf.in 2012-03-01 19:50:48.549947258 +0100
@@ -12,7 +12,7 @@
; Relative path can also be used. They will be prefixed by:
; - the global prefix if it's been set (-p arguement)
@@ -26,7 +26,7 @@
+;listen = 127.0.0.1:9000
+listen = /var/run/php-fpm/php-fpm.sock
- ; Set listen(2) backlog. A value of '-1' means unlimited.
+ ; Set listen(2) backlog.
; Default Value: 128 (-1 on FreeBSD and OpenBSD)
@@ -151,9 +152,9 @@
; BSD-derived systems allow connections regardless of permissions.
diff --git a/testing/php/php.ini.patch b/testing/php/php.ini.patch
index 3dc5b6560..bbaae2152 100644
--- a/testing/php/php.ini.patch
+++ b/testing/php/php.ini.patch
@@ -1,6 +1,6 @@
---- php.ini-production 2011-12-15 11:31:02.000000000 +0100
-+++ php.ini-production 2012-01-11 10:43:02.069936043 +0100
-@@ -376,7 +376,7 @@
+--- php.ini-production 2012-03-29 06:17:59.000000000 +0200
++++ php.ini-production 2012-03-30 10:46:21.181340861 +0200
+@@ -305,7 +305,7 @@
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
; http://php.net/open-basedir
@@ -9,7 +9,7 @@
; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
-@@ -793,7 +793,7 @@
+@@ -702,7 +702,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
@@ -18,7 +18,7 @@
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
-@@ -816,7 +816,7 @@
+@@ -725,7 +725,7 @@
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
@@ -27,7 +27,7 @@
; On windows:
; extension_dir = "ext"
-@@ -950,53 +950,49 @@
+@@ -859,51 +859,47 @@
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
@@ -55,7 +55,6 @@
-;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client
-;extension=php_openssl.dll
-;extension=php_pdo_firebird.dll
--;extension=php_pdo_mssql.dll
-;extension=php_pdo_mysql.dll
-;extension=php_pdo_oci.dll
-;extension=php_pdo_odbc.dll
@@ -71,7 +70,6 @@
-
-;extension=php_soap.dll
-;extension=php_sockets.dll
--;extension=php_sqlite.dll
-;extension=php_sqlite3.dll
-;extension=php_sybase_ct.dll
-;extension=php_tidy.dll
@@ -92,7 +90,6 @@
+;extension=iconv.so
+;extension=imap.so
+;extension=intl.so
-+extension=json.so
+;extension=ldap.so
+;extension=mcrypt.so
+;extension=mssql.so
@@ -113,7 +110,6 @@
+;extension=soap.so
+;extension=sockets.so
+;extension=sqlite3.so
-+;extension=sqlite.so
+;extension=sysvmsg.so
+;extension=sysvsem.so
+;extension=sysvshm.so