summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickaël Thomas2016-01-03 22:24:55 +0100
committerMickaël Thomas2016-01-03 22:27:43 +0100
commitdc59ffcdf118e4884ef70599d3937839e5e5749e (patch)
treebb65886b14b4ab5b790c9b2eaf9fbc2bcefa936e
downloadaur-dc59ffcdf118e4884ef70599d3937839e5e5749e.tar.gz
Initial commmit
-rw-r--r--.SRCINFO199
-rw-r--r--PKGBUILD455
-rw-r--r--apache.conf13
-rw-r--r--logrotate.d.php-fpm8
-rw-r--r--php-5.6.16.tar.xz.asc11
-rw-r--r--php-fpm.conf.in.patch52
-rw-r--r--php-fpm.install9
-rw-r--r--php-fpm.service13
-rw-r--r--php-fpm.tmpfiles1
-rw-r--r--php.ini.patch120
10 files changed, 881 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..32152e0271c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,199 @@
+# Generated by mksrcinfo v8
+# Sun Jan 3 21:23:01 UTC 2016
+pkgbase = php56
+ pkgver = 5.6.16
+ pkgrel = 1
+ url = http://www.php.net
+ arch = i686
+ arch = x86_64
+ license = PHP
+ makedepends = apache
+ makedepends = c-client
+ makedepends = postgresql-libs
+ makedepends = libldap
+ makedepends = postfix
+ makedepends = sqlite
+ makedepends = unixodbc
+ makedepends = net-snmp
+ makedepends = libzip
+ makedepends = enchant
+ makedepends = file
+ makedepends = freetds
+ makedepends = libmcrypt
+ makedepends = tidyhtml
+ makedepends = aspell
+ makedepends = libltdl
+ makedepends = gd
+ makedepends = icu
+ makedepends = curl
+ makedepends = libxslt
+ makedepends = openssl
+ makedepends = db
+ makedepends = gmp
+ makedepends = systemd
+ source = http://www.php.net/distributions/php-5.6.16.tar.xz
+ source = http://www.php.net/distributions/php-5.6.16.tar.xz.asc
+ source = php.ini.patch
+ source = apache.conf
+ source = php-fpm.conf.in.patch
+ source = logrotate.d.php-fpm
+ source = php-fpm.service
+ source = php-fpm.tmpfiles
+ md5sums = 3f1d999ed1f9cb5713c9a0161c557f2f
+ md5sums = SKIP
+ md5sums = 39eff6cc99dae4ec3b52125e6229de7e
+ md5sums = dec2cbaad64e3abf4f0ec70e1de4e8e9
+ md5sums = 16b5e2e4da59f15bea4c2db78a7bc8dc
+ md5sums = 25bc67ad828e8147a817410b68d8016c
+ md5sums = cc2940f5312ba42e7aa1ddfab74b84c4
+ md5sums = c60343df74f8e1afb13b084d5c0e47ed
+
+pkgname = php56
+ pkgdesc = An HTML-embedded scripting language
+ depends = pcre
+ depends = libxml2
+ depends = curl
+ depends = libzip
+ backup = etc/php/php.ini
+
+pkgname = php56-cgi
+ pkgdesc = CGI and FCGI SAPI for PHP
+ depends = php56
+ provides = php-cgi
+ conflicts = php-cgi
+
+pkgname = php56-apache
+ pkgdesc = Apache SAPI for PHP
+ depends = php56
+ depends = apache
+ provides = php-apache
+ conflicts = php-apache
+ backup = etc/httpd/conf/extra/php5_module.conf
+
+pkgname = php56-fpm
+ pkgdesc = FastCGI Process Manager for PHP
+ install = php-fpm.install
+ depends = php56
+ depends = systemd
+ provides = php-fpm
+ conflicts = php-fpm
+ backup = etc/php/php-fpm.conf
+
+pkgname = php56-embed
+ pkgdesc = Embedded PHP SAPI library
+ depends = php56
+ provides = php-embed
+ conflicts = php-embed
+
+pkgname = php56-phpdbg
+ pkgdesc = Interactive PHP debugger
+ depends = php56
+ provides = php-phpdbg
+ conflicts = php-phpdbg
+
+pkgname = php56-pear
+ pkgdesc = PHP Extension and Application Repository
+ depends = php56
+ provides = php-pear
+ conflicts = php-pear
+ backup = etc/php/pear.conf
+
+pkgname = php56-enchant
+ pkgdesc = enchant module for PHP
+ depends = php56
+ depends = enchant
+ provides = php-enchant
+ conflicts = php-enchant
+
+pkgname = php56-gd
+ pkgdesc = gd module for PHP
+ depends = php56
+ depends = gd
+ provides = php-gd
+ conflicts = php-gd
+
+pkgname = php56-imap
+ pkgdesc = imap module for PHP
+ depends = php56
+ depends = c-client
+ provides = php-imap
+ conflicts = php-imap
+
+pkgname = php56-intl
+ pkgdesc = intl module for PHP
+ depends = php56
+ depends = icu
+ provides = php-intl
+ conflicts = php-intl
+
+pkgname = php56-ldap
+ pkgdesc = ldap module for PHP
+ depends = php56
+ depends = libldap
+ provides = php-ldap
+ conflicts = php-ldap
+
+pkgname = php56-mcrypt
+ pkgdesc = mcrypt module for PHP
+ depends = php56
+ depends = libmcrypt
+ depends = libltdl
+ provides = php-mcrypt
+ conflicts = php-mcrypt
+
+pkgname = php56-mssql
+ pkgdesc = mssql module for PHP
+ depends = php56
+ depends = freetds
+ provides = php-mssql
+ conflicts = php-mssql
+
+pkgname = php56-odbc
+ pkgdesc = ODBC modules for PHP
+ depends = php56
+ depends = unixodbc
+ provides = php-odbc
+ conflicts = php-odbc
+
+pkgname = php56-pgsql
+ pkgdesc = PostgreSQL modules for PHP
+ depends = php56
+ depends = postgresql-libs
+ provides = php-pgsql
+ conflicts = php-pgsql
+
+pkgname = php56-pspell
+ pkgdesc = pspell module for PHP
+ depends = php56
+ depends = aspell
+ provides = php-pspell
+ conflicts = php-pspell
+
+pkgname = php56-snmp
+ pkgdesc = snmp module for PHP
+ depends = php56
+ depends = net-snmp
+ provides = php-snmp
+ conflicts = php-snmp
+
+pkgname = php56-sqlite
+ pkgdesc = sqlite module for PHP
+ depends = php56
+ depends = sqlite
+ provides = php-sqlite
+ conflicts = php-sqlite
+
+pkgname = php56-tidy
+ pkgdesc = tidy module for PHP
+ depends = php56
+ depends = tidyhtml
+ provides = php-tidy
+ conflicts = php-tidy
+
+pkgname = php56-xsl
+ pkgdesc = xsl module for PHP
+ depends = php56
+ depends = libxslt
+ provides = php-xsl
+ conflicts = php-xsl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..10e4ffd277e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,455 @@
+# Maintainer: mickael9 <mickael9 at gmail.com>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+pkgbase=php56
+_pkgbase=${pkgbase%56}
+pkgname=("${pkgbase}"
+ "${pkgbase}-cgi"
+ "${pkgbase}-apache"
+ "${pkgbase}-fpm"
+ "${pkgbase}-embed"
+ "${pkgbase}-phpdbg"
+ "${pkgbase}-pear"
+ "${pkgbase}-enchant"
+ "${pkgbase}-gd"
+ "${pkgbase}-imap"
+ "${pkgbase}-intl"
+ "${pkgbase}-ldap"
+ "${pkgbase}-mcrypt"
+ "${pkgbase}-mssql"
+ "${pkgbase}-odbc"
+ "${pkgbase}-pgsql"
+ "${pkgbase}-pspell"
+ "${pkgbase}-snmp"
+ "${pkgbase}-sqlite"
+ "${pkgbase}-tidy"
+ "${pkgbase}-xsl")
+pkgver=5.6.16
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('PHP')
+url='http://www.php.net'
+makedepends=('apache' 'c-client' 'postgresql-libs' 'libldap' 'postfix'
+ 'sqlite' 'unixodbc' 'net-snmp' 'libzip' 'enchant' 'file' 'freetds'
+ 'libmcrypt' 'tidyhtml' 'aspell' 'libltdl' 'gd' 'icu'
+ 'curl' 'libxslt' 'openssl' 'db' 'gmp' 'systemd')
+#checkdepends=('procps-ng')
+source=("http://www.php.net/distributions/${_pkgbase}-${pkgver}.tar.xz"
+ "http://www.php.net/distributions/${_pkgbase}-${pkgver}.tar.xz.asc"
+ 'php.ini.patch' 'apache.conf' 'php-fpm.conf.in.patch'
+ 'logrotate.d.php-fpm' 'php-fpm.service' 'php-fpm.tmpfiles')
+md5sums=('3f1d999ed1f9cb5713c9a0161c557f2f'
+ 'SKIP'
+ '39eff6cc99dae4ec3b52125e6229de7e'
+ 'dec2cbaad64e3abf4f0ec70e1de4e8e9'
+ '16b5e2e4da59f15bea4c2db78a7bc8dc'
+ '25bc67ad828e8147a817410b68d8016c'
+ 'cc2940f5312ba42e7aa1ddfab74b84c4'
+ 'c60343df74f8e1afb13b084d5c0e47ed')
+validpgpkeys=('6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3'
+ '0BD78B5F97500D450838F95DFE857D9A90D90EC1')
+
+prepare() {
+ cd ${srcdir}/${_pkgbase}-${pkgver}
+
+ patch -p0 -i ${srcdir}/php.ini.patch
+ patch -p0 -i ${srcdir}/php-fpm.conf.in.patch
+ # Just because our Apache 2.4 is configured with a threaded MPM by default does not mean we want to build a ZTS PHP.
+ # Let's supress this behaviour and build a SAPI that works fine with the prefork MPM.
+ sed '/APACHE_THREADED_MPM=/d' -i sapi/apache2handler/config.m4 -i configure
+}
+
+build() {
+ local _phpconfig="--srcdir=../${_pkgbase}-${pkgver} \
+ --config-cache \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc/php \
+ --localstatedir=/var \
+ --with-layout=GNU \
+ --with-config-file-path=/etc/php \
+ --with-config-file-scan-dir=/etc/php/conf.d \
+ --disable-rpath \
+ --mandir=/usr/share/man \
+ --without-pear \
+ "
+
+ local _phpextensions="--enable-bcmath=shared \
+ --enable-calendar=shared \
+ --enable-dba=shared \
+ --enable-exif=shared \
+ --enable-ftp=shared \
+ --enable-gd-native-ttf \
+ --enable-intl=shared \
+ --enable-mbstring \
+ --enable-opcache \
+ --enable-phar=shared \
+ --enable-posix=shared \
+ --enable-shmop=shared \
+ --enable-soap=shared \
+ --enable-sockets=shared \
+ --enable-sysvmsg=shared \
+ --enable-sysvsem=shared \
+ --enable-sysvshm=shared \
+ --enable-zip=shared \
+ --with-bz2=shared \
+ --with-curl=shared \
+ --with-db4=/usr \
+ --with-enchant=shared,/usr \
+ --with-fpm-systemd \
+ --with-freetype-dir=/usr \
+ --with-xpm-dir=/usr \
+ --with-gd=shared,/usr \
+ --with-gdbm \
+ --with-gettext=shared \
+ --with-gmp=shared \
+ --with-iconv=shared \
+ --with-icu-dir=/usr \
+ --with-imap-ssl \
+ --with-imap=shared \
+ --with-kerberos=/usr \
+ --with-jpeg-dir=/usr \
+ --with-vpx-dir=/usr \
+ --with-ldap=shared \
+ --with-ldap-sasl \
+ --with-libzip \
+ --with-mcrypt=shared \
+ --with-mhash \
+ --with-mssql=shared \
+ --with-mysql-sock=/run/mysqld/mysqld.sock \
+ --with-mysql=shared,mysqlnd \
+ --with-mysqli=shared,mysqlnd \
+ --with-openssl=shared \
+ --with-pcre-regex=/usr \
+ --with-pdo-mysql=shared,mysqlnd \
+ --with-pdo-odbc=shared,unixODBC,/usr \
+ --with-pdo-pgsql=shared \
+ --with-pdo-sqlite=shared,/usr \
+ --with-pgsql=shared \
+ --with-png-dir=/usr \
+ --with-pspell=shared \
+ --with-snmp=shared \
+ --with-sqlite3=shared,/usr \
+ --with-tidy=shared \
+ --with-unixODBC=shared,/usr \
+ --with-xmlrpc=shared \
+ --with-xsl=shared \
+ --with-zlib \
+ "
+
+ EXTENSION_DIR=/usr/lib/php/modules
+ export EXTENSION_DIR
+ PEAR_INSTALLDIR=/usr/share/pear
+ export PEAR_INSTALLDIR
+
+ cd ${srcdir}/${_pkgbase}-${pkgver}
+
+ # php
+ mkdir ${srcdir}/build-php
+ cd ${srcdir}/build-php
+ ln -s ../${_pkgbase}-${pkgver}/configure
+ ./configure ${_phpconfig} \
+ --disable-cgi \
+ --with-readline \
+ --enable-pcntl \
+ ${_phpextensions}
+ make
+
+ # cgi and fcgi
+ # reuse the previous run; this will save us a lot of time
+ cp -a ${srcdir}/build-php ${srcdir}/build-cgi
+ cd ${srcdir}/build-cgi
+ ./configure ${_phpconfig} \
+ --disable-cli \
+ --enable-cgi \
+ ${_phpextensions}
+ make
+
+ # apache
+ cp -a ${srcdir}/build-php ${srcdir}/build-apache
+ cd ${srcdir}/build-apache
+ ./configure ${_phpconfig} \
+ --disable-cli \
+ --with-apxs2 \
+ ${_phpextensions}
+ make
+
+ # fpm
+ cp -a ${srcdir}/build-php ${srcdir}/build-fpm
+ cd ${srcdir}/build-fpm
+ ./configure ${_phpconfig} \
+ --disable-cli \
+ --enable-fpm \
+ --with-fpm-user=http \
+ --with-fpm-group=http \
+ ${_phpextensions}
+ make
+
+ # embed
+ cp -a ${srcdir}/build-php ${srcdir}/build-embed
+ cd ${srcdir}/build-embed
+ ./configure ${_phpconfig} \
+ --disable-cli \
+ --enable-embed=shared \
+ ${_phpextensions}
+ make
+
+ # phpdbg
+ cp -a ${srcdir}/build-php ${srcdir}/build-phpdbg
+ cd ${srcdir}/build-phpdbg
+ ./configure ${_phpconfig} \
+ --disable-cli \
+ --disable-cgi \
+ --with-readline \
+ --enable-phpdbg \
+ ${_phpextensions}
+ make
+
+ # pear
+ cp -a ${srcdir}/build-php ${srcdir}/build-pear
+ cd ${srcdir}/build-pear
+ ./configure ${_phpconfig} \
+ --disable-cgi \
+ --with-readline \
+ --enable-pcntl \
+ --with-pear \
+ ${_phpextensions}
+ make
+}
+
+#check() {
+# cd ${srcdir}/${_pkgbase}-${pkgver}
+#
+# # tests on i686 fail
+# [[ $CARCH == 'i686' ]] && return
+# # a couple of tests fail in btrfs-backed chroots
+# [[ $(stat -f -c %T .) == btrfs ]] && return
+#
+# export REPORT_EXIT_STATUS=1
+# export NO_INTERACTION=1
+# export SKIP_ONLINE_TESTS=1
+# export SKIP_SLOW_TESTS=1
+#
+# ${srcdir}/build-php/sapi/cli/php -n \
+# run-tests.php -n -P \
+# {tests,Zend,ext/{spl,standard},sapi/cli}
+#}
+
+package_php56() {
+ pkgdesc='An HTML-embedded scripting language'
+ depends=('pcre' 'libxml2' 'curl' 'libzip')
+ backup=('etc/php/php.ini')
+
+ cd ${srcdir}/build-php
+ make -j1 INSTALL_ROOT=${pkgdir} install
+ install -d -m755 ${pkgdir}/usr/share/pear
+ # install php.ini
+ install -D -m644 ${srcdir}/${_pkgbase}-${pkgver}/php.ini-production ${pkgdir}/etc/php/php.ini
+ install -d -m755 ${pkgdir}/etc/php/conf.d/
+
+ # remove static modules
+ rm -f ${pkgdir}/usr/lib/php/modules/*.a
+ # remove modules provided by sub packages
+ rm -f ${pkgdir}/usr/lib/php/modules/{enchant,gd,imap,intl,ldap,mcrypt,mssql,odbc,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl}.so
+ # remove empty directory
+ rmdir ${pkgdir}/usr/include/php/include
+ # fix broken link
+ ln -sf phar.phar ${pkgdir}/usr/bin/phar
+}
+
+package_php56-cgi() {
+ pkgdesc='CGI and FCGI SAPI for PHP'
+ depends=("${pkgbase}")
+ provides=('php-cgi')
+ conflicts=('php-cgi')
+
+ install -D -m755 ${srcdir}/build-cgi/sapi/cgi/php-cgi ${pkgdir}/usr/bin/php-cgi
+}
+
+package_php56-apache() {
+ pkgdesc='Apache SAPI for PHP'
+ depends=("${pkgbase}" 'apache')
+ provides=('php-apache')
+ conflicts=('php-apache')
+ backup=('etc/httpd/conf/extra/php5_module.conf')
+
+ install -D -m755 ${srcdir}/build-apache/libs/libphp5.so ${pkgdir}/usr/lib/httpd/modules/libphp5.so
+ install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/php5_module.conf
+}
+
+package_php56-fpm() {
+ pkgdesc='FastCGI Process Manager for PHP'
+ depends=("${pkgbase}" 'systemd')
+ provides=('php-fpm')
+ conflicts=('php-fpm')
+ backup=('etc/php/php-fpm.conf')
+ install='php-fpm.install'
+
+ install -D -m755 ${srcdir}/build-fpm/sapi/fpm/php-fpm ${pkgdir}/usr/bin/php-fpm
+ install -D -m644 ${srcdir}/build-fpm/sapi/fpm/php-fpm.8 ${pkgdir}/usr/share/man/man8/php-fpm.8
+ install -D -m644 ${srcdir}/build-fpm/sapi/fpm/php-fpm.conf ${pkgdir}/etc/php/php-fpm.conf
+ install -D -m644 ${srcdir}/logrotate.d.php-fpm ${pkgdir}/etc/logrotate.d/php-fpm
+ install -d -m755 ${pkgdir}/etc/php/fpm.d
+ install -D -m644 ${srcdir}/php-fpm.tmpfiles ${pkgdir}/usr/lib/tmpfiles.d/php-fpm.conf
+ install -D -m644 ${srcdir}/php-fpm.service ${pkgdir}/usr/lib/systemd/system/php-fpm.service
+}
+
+package_php56-embed() {
+ pkgdesc='Embedded PHP SAPI library'
+ depends=("${pkgbase}")
+ provides=('php-embed')
+ conflicts=('php-embed')
+
+ install -D -m755 ${srcdir}/build-embed/libs/libphp5.so ${pkgdir}/usr/lib/libphp5.so
+ install -D -m644 ${srcdir}/${_pkgbase}-${pkgver}/sapi/embed/php_embed.h ${pkgdir}/usr/include/php/sapi/embed/php_embed.h
+}
+
+package_php56-phpdbg() {
+ pkgdesc='Interactive PHP debugger'
+ depends=("${pkgbase}")
+ provides=('php-phpdbg')
+ conflicts=('php-phpdbg')
+
+ install -D -m755 ${srcdir}/build-phpdbg/sapi/phpdbg/phpdbg ${pkgdir}/usr/bin/phpdbg
+}
+
+package_php56-pear() {
+ pkgdesc='PHP Extension and Application Repository'
+ depends=("${pkgbase}")
+ provides=('php-pear')
+ conflicts=('php-pear')
+ backup=('etc/php/pear.conf')
+
+ cd ${srcdir}/build-pear
+ make install-pear INSTALL_ROOT=${pkgdir}
+ rm -rf ${pkgdir}/usr/share/pear/.{channels,depdb,depdblock,filemap,lock,registry}
+}
+
+package_php56-enchant() {
+ pkgdesc='enchant module for PHP'
+ depends=("${pkgbase}" 'enchant')
+ provides=('php-enchant')
+ conflicts=('php-enchant')
+
+ install -D -m755 ${srcdir}/build-php/modules/enchant.so ${pkgdir}/usr/lib/php/modules/enchant.so
+}
+
+package_php56-gd() {
+ pkgdesc='gd module for PHP'
+ depends=("${pkgbase}" 'gd')
+ provides=('php-gd')
+ conflicts=('php-gd')
+
+ install -D -m755 ${srcdir}/build-php/modules/gd.so ${pkgdir}/usr/lib/php/modules/gd.so
+}
+
+package_php56-imap() {
+ pkgdesc='imap module for PHP'
+ depends=("${pkgbase}" 'c-client')
+ provides=('php-imap')
+ conflicts=('php-imap')
+
+ install -D -m755 ${srcdir}/build-php/modules/imap.so ${pkgdir}/usr/lib/php/modules/imap.so
+}
+
+package_php56-intl() {
+ pkgdesc='intl module for PHP'
+ depends=("${pkgbase}" 'icu')
+ provides=('php-intl')
+ conflicts=('php-intl')
+
+ install -D -m755 ${srcdir}/build-php/modules/intl.so ${pkgdir}/usr/lib/php/modules/intl.so
+}
+
+package_php56-ldap() {
+ pkgdesc='ldap module for PHP'
+ depends=("${pkgbase}" 'libldap')
+ provides=('php-ldap')
+ conflicts=('php-ldap')
+
+ install -D -m755 ${srcdir}/build-php/modules/ldap.so ${pkgdir}/usr/lib/php/modules/ldap.so
+}
+
+package_php56-mcrypt() {
+ pkgdesc='mcrypt module for PHP'
+ depends=("${pkgbase}" 'libmcrypt' 'libltdl')
+ provides=('php-mcrypt')
+ conflicts=('php-mcrypt')
+
+ install -D -m755 ${srcdir}/build-php/modules/mcrypt.so ${pkgdir}/usr/lib/php/modules/mcrypt.so
+}
+
+package_php56-mssql() {
+ pkgdesc='mssql module for PHP'
+ depends=("${pkgbase}" 'freetds')
+ provides=('php-mssql')
+ conflicts=('php-mssql')
+
+ install -D -m755 ${srcdir}/build-php/modules/mssql.so ${pkgdir}/usr/lib/php/modules/mssql.so
+}
+
+package_php56-odbc() {
+ pkgdesc='ODBC modules for PHP'
+ depends=("${pkgbase}" 'unixodbc')
+ provides=('php-odbc')
+ conflicts=('php-odbc')
+
+ install -D -m755 ${srcdir}/build-php/modules/odbc.so ${pkgdir}/usr/lib/php/modules/odbc.so
+ install -D -m755 ${srcdir}/build-php/modules/pdo_odbc.so ${pkgdir}/usr/lib/php/modules/pdo_odbc.so
+}
+
+package_php56-pgsql() {
+ pkgdesc='PostgreSQL modules for PHP'
+ depends=("${pkgbase}" 'postgresql-libs')
+ provides=('php-pgsql')
+ conflicts=('php-pgsql')
+
+ install -D -m755 ${srcdir}/build-php/modules/pgsql.so ${pkgdir}/usr/lib/php/modules/pgsql.so
+ install -D -m755 ${srcdir}/build-php/modules/pdo_pgsql.so ${pkgdir}/usr/lib/php/modules/pdo_pgsql.so
+}
+
+package_php56-pspell() {
+ pkgdesc='pspell module for PHP'
+ depends=("${pkgbase}" 'aspell')
+ provides=('php-pspell')
+ conflicts=('php-pspell')
+
+ install -D -m755 ${srcdir}/build-php/modules/pspell.so ${pkgdir}/usr/lib/php/modules/pspell.so
+}
+
+package_php56-snmp() {
+ pkgdesc='snmp module for PHP'
+ depends=("${pkgbase}" 'net-snmp')
+ provides=('php-snmp')
+ conflicts=('php-snmp')
+
+ install -D -m755 ${srcdir}/build-php/modules/snmp.so ${pkgdir}/usr/lib/php/modules/snmp.so
+}
+
+package_php56-sqlite() {
+ pkgdesc='sqlite module for PHP'
+ depends=("${pkgbase}" 'sqlite')
+ provides=('php-sqlite')
+ conflicts=('php-sqlite')
+
+ 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
+}
+
+package_php56-tidy() {
+ pkgdesc='tidy module for PHP'
+ depends=("${pkgbase}" 'tidyhtml')
+ provides=('php-tidy')
+ conflicts=('php-tidy')
+
+ install -D -m755 ${srcdir}/build-php/modules/tidy.so ${pkgdir}/usr/lib/php/modules/tidy.so
+}
+
+package_php56-xsl() {
+ pkgdesc='xsl module for PHP'
+ depends=("${pkgbase}" 'libxslt')
+ provides=('php-xsl')
+ conflicts=('php-xsl')
+
+ install -D -m755 ${srcdir}/build-php/modules/xsl.so ${pkgdir}/usr/lib/php/modules/xsl.so
+}
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 00000000000..c3ca0aad509
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,13 @@
+# Required modules: dir_module, php5_module
+
+<IfModule dir_module>
+ <IfModule php5_module>
+ DirectoryIndex index.php index.html
+ <FilesMatch "\.php$">
+ SetHandler application/x-httpd-php
+ </FilesMatch>
+ <FilesMatch "\.phps$">
+ SetHandler application/x-httpd-php-source
+ </FilesMatch>
+ </IfModule>
+</IfModule>
diff --git a/logrotate.d.php-fpm b/logrotate.d.php-fpm
new file mode 100644
index 00000000000..2146ddd39ef
--- /dev/null
+++ b/logrotate.d.php-fpm
@@ -0,0 +1,8 @@
+/var/log/php-fpm.log {
+ missingok
+ notifempty
+ delaycompress
+ postrotate
+ /bin/kill -SIGUSR1 `cat /run/php-fpm/php-fpm.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}
diff --git a/php-5.6.16.tar.xz.asc b/php-5.6.16.tar.xz.asc
new file mode 100644
index 00000000000..7ea4186922e
--- /dev/null
+++ b/php-5.6.16.tar.xz.asc
@@ -0,0 +1,11 @@
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1
+
+iQEcBAABAgAGBQJWVkiUAAoJEMK/C8Qzz8iz54oH/0ymimqFb/RiNKkXex4Aizl4
+Gqu+oIERXXyi0nGizhmP+OjJzrG6pakdigf9ZZqz2m1lKQiNnA50Ksd5o2hdaJW0
+UNl61cjqclNMSaAEvVsabfuR7xohvaR8BydavCigIagNvcoiZvxZUpCeU0slrRM5
+TfWVr6gxB3u0u/9HJBAwKoKqW9I17BDqz7IAKUCpM/c+0m7XrUHuFeJqDBexJZ8O
+fchCESOivcU0sC7le3hziKw1UI9a3SyHSda2MsB0eZvC5ujcS6k98faXefkTSzrc
+qYAAqUuRuY8xrnhkVNunEod/Wun/MwY980hfTMXvtVUgzv5rVo8uBrGQXf5+Fu8=
+=om+M
+-----END PGP SIGNATURE-----
diff --git a/php-fpm.conf.in.patch b/php-fpm.conf.in.patch
new file mode 100644
index 00000000000..f9721a1ac00
--- /dev/null
+++ b/php-fpm.conf.in.patch
@@ -0,0 +1,52 @@
+--- sapi/fpm/php-fpm.conf.in 2015-01-21 01:40:37.000000000 +0100
++++ sapi/fpm/php-fpm.conf.in 2015-01-22 16:22:09.076969777 +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 argument)
+ ; - @prefix@ otherwise
+-;include=etc/fpm.d/*.conf
++;include=/etc/php/fpm.d/*.conf
+
+ ;;;;;;;;;;;;;;;;;;
+ ; Global Options ;
+@@ -22,7 +22,7 @@
+ ; Pid file
+ ; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
+ ; Default Value: none
+-;pid = run/php-fpm.pid
++pid = /run/php-fpm/php-fpm.pid
+
+ ; Error log file
+ ; If it's set to "syslog", log is sent to syslogd instead of being written
+@@ -161,7 +161,8 @@
+ ; (IPv6 and IPv4-mapped) on a specific port;
+ ; '/path/to/unix/socket' - to listen on a unix socket.
+ ; Note: This value is mandatory.
+-listen = 127.0.0.1:9000
++;listen = 127.0.0.1:9000
++listen = /run/php-fpm/php-fpm.sock
+
+ ; Set listen(2) backlog.
+ ; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
+@@ -172,9 +173,9 @@
+ ; BSD-derived systems allow connections regardless of permissions.
+ ; Default Values: user and group are set as the running user
+ ; mode is set to 0660
+-;listen.owner = @php_fpm_user@
+-;listen.group = @php_fpm_group@
+-;listen.mode = 0660
++listen.owner = @php_fpm_user@
++listen.group = @php_fpm_group@
++listen.mode = 0660
+ ; When POSIX Access Control Lists are supported you can set them using
+ ; these options, value is a comma separated list of user/group names.
+ ; When set, listen.owner and listen.group are ignored
+@@ -476,7 +477,7 @@
+ ; Chdir to this directory at the start.
+ ; Note: relative path can be used.
+ ; Default Value: current directory or / when chroot
+-;chdir = /var/www
++;chdir = /srv/http
+
+ ; Redirect worker stdout and stderr into main error log. If not set, stdout and
+ ; stderr will be redirected to /dev/null according to FastCGI specs.
diff --git a/php-fpm.install b/php-fpm.install
new file mode 100644
index 00000000000..3572a765315
--- /dev/null
+++ b/php-fpm.install
@@ -0,0 +1,9 @@
+post_install() {
+ if [[ ! -d run/php-fpm ]]; then
+ usr/bin/systemd-tmpfiles --create php-fpm.conf
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/php-fpm.service b/php-fpm.service
new file mode 100644
index 00000000000..6e2faafd865
--- /dev/null
+++ b/php-fpm.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=The PHP FastCGI Process Manager
+After=syslog.target network.target
+
+[Service]
+Type=notify
+PIDFile=/run/php-fpm/php-fpm.pid
+PrivateTmp=true
+ExecStart=/usr/bin/php-fpm --nodaemonize --pid /run/php-fpm/php-fpm.pid
+ExecReload=/bin/kill -USR2 $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/php-fpm.tmpfiles b/php-fpm.tmpfiles
new file mode 100644
index 00000000000..801e74f1e62
--- /dev/null
+++ b/php-fpm.tmpfiles
@@ -0,0 +1 @@
+d /run/php-fpm 755 root root
diff --git a/php.ini.patch b/php.ini.patch
new file mode 100644
index 00000000000..93a2e757122
--- /dev/null
+++ b/php.ini.patch
@@ -0,0 +1,120 @@
+--- php.ini-production 2015-01-21 01:40:37.000000000 +0100
++++ php.ini-production 2015-01-22 16:23:17.311890258 +0100
+@@ -295,7 +295,7 @@
+ ; and below. This directive makes most sense if used in a per-directory
+ ; or per-virtualhost web server configuration file.
+ ; http://php.net/open-basedir
+-;open_basedir =
++open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/
+
+ ; This directive allows you to disable certain functions for security reasons.
+ ; It receives a comma-delimited list of function names.
+@@ -708,7 +708,7 @@
+ ;;;;;;;;;;;;;;;;;;;;;;;;;
+
+ ; UNIX: "/path1:/path2"
+-;include_path = ".:/php/includes"
++include_path = ".:/usr/share/pear"
+ ;
+ ; Windows: "\path1;\path2"
+ ;include_path = ".;c:\php\includes"
+@@ -731,7 +731,7 @@
+
+ ; Directory in which the loadable extensions (modules) reside.
+ ; http://php.net/extension-dir
+-; extension_dir = "./"
++extension_dir = "/usr/lib/php/modules/"
+ ; On windows:
+ ; extension_dir = "ext"
+
+@@ -869,48 +869,48 @@
+ ; If you only provide the name of the extension, PHP will look for it in its
+ ; default extension directory.
+ ;
+-; Windows Extensions
+-; Note that ODBC support is built in, so no dll is needed for it.
+-; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
+-; extension folders as well as the separate PECL DLL download (PHP 5).
+-; Be sure to appropriately set the extension_dir directive.
+-;
+-;extension=php_bz2.dll
+-;extension=php_curl.dll
+-;extension=php_fileinfo.dll
+-;extension=php_gd2.dll
+-;extension=php_gettext.dll
+-;extension=php_gmp.dll
+-;extension=php_intl.dll
+-;extension=php_imap.dll
+-;extension=php_interbase.dll
+-;extension=php_ldap.dll
+-;extension=php_mbstring.dll
+-;extension=php_exif.dll ; Must be after mbstring as it depends on it
+-;extension=php_mysql.dll
+-;extension=php_mysqli.dll
+-;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
+-;extension=php_openssl.dll
+-;extension=php_pdo_firebird.dll
+-;extension=php_pdo_mysql.dll
+-;extension=php_pdo_oci.dll
+-;extension=php_pdo_odbc.dll
+-;extension=php_pdo_pgsql.dll
+-;extension=php_pdo_sqlite.dll
+-;extension=php_pgsql.dll
+-;extension=php_shmop.dll
+-
+-; The MIBS data available in the PHP distribution must be installed.
+-; See http://www.php.net/manual/en/snmp.installation.php
+-;extension=php_snmp.dll
+-
+-;extension=php_soap.dll
+-;extension=php_sockets.dll
+-;extension=php_sqlite3.dll
+-;extension=php_sybase_ct.dll
+-;extension=php_tidy.dll
+-;extension=php_xmlrpc.dll
+-;extension=php_xsl.dll
++;extension=bcmath.so
++;extension=bz2.so
++;extension=calendar.so
++extension=curl.so
++;extension=dba.so
++;extension=enchant.so
++;extension=exif.so
++;extension=ftp.so
++;extension=gd.so
++extension=gettext.so
++;extension=gmp.so
++;extension=iconv.so
++;extension=imap.so
++;extension=intl.so
++;extension=ldap.so
++;extension=mcrypt.so
++;extension=mssql.so
++;extension=mysql.so
++;extension=mysqli.so
++;extension=odbc.so
++;zend_extension=opcache.so
++;extension=openssl.so
++;extension=pdo_mysql.so
++;extension=pdo_odbc.so
++;extension=pdo_pgsql.so
++;extension=pdo_sqlite.so
++;extension=pgsql.so
++;extension=phar.so
++;extension=posix.so
++;extension=pspell.so
++;extension=shmop.so
++;extension=snmp.so
++;extension=soap.so
++;extension=sockets.so
++;extension=sqlite3.so
++;extension=sysvmsg.so
++;extension=sysvsem.so
++;extension=sysvshm.so
++;extension=tidy.so
++;extension=xmlrpc.so
++;extension=xsl.so
++;extension=zip.so
+
+ ;;;;;;;;;;;;;;;;;;;
+ ; Module Settings ;