2017-04-11 09:08:01 +02:00
# Description: Dinamik web sitelerinde kullanı lan programlama kodunun doğrudan HTML içine gömülmesini sağlar. Ayrı ca, genel amaçlı bir betik dili olarak da yararlı dı r.
# URL: http://www.php.net
# Packager: milisarge
2017-04-24 02:34:23 +02:00
# Depends on: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff db mariadb openldap postgresql sqlite unixodbc cyrus-sasl kerberos
2016-02-24 01:27:23 +01:00
name=php7
_name=php
2017-04-24 02:34:23 +02:00
version=7.1.4
2016-02-24 01:27:23 +01:00
release=1
2017-04-24 02:34:23 +02:00
source=(http://php.net/distributions/${_name}-$version.tar.xz)
2016-02-24 01:27:23 +01:00
build () {
cd ${_name}-$version
2017-04-24 02:34:23 +02:00
./configure --prefix=/usr \
2016-02-24 01:27:23 +01:00
--sysconfdir=/etc \
--localstatedir=/var \
--datadir=/usr/share/php \
--mandir=/usr/share/man \
--enable-fpm \
2017-04-24 02:34:23 +02:00
--with-fpm-user=www-data \
--with-fpm-group=www-data \
2016-02-24 01:27:23 +01:00
--with-config-file-path=/etc \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--enable-dba=shared \
--with-gdbm \
--with-gmp \
--enable-ftp \
--with-gettext \
--enable-mbstring \
2017-04-24 02:34:23 +02:00
--with-mysqli=shared \
--with-mysql-sock=/run/mysqld/mysqld.sock \
--with-pdo-mysql=shared \
2016-02-24 01:27:23 +01:00
--with-readline
make
make -j1 INSTALL_ROOT=$PKG install
install -v -m644 php.ini-production $PKG/etc/php.ini
2017-04-24 02:34:23 +02:00
if [ -f /etc/php-fpm.conf.default ]; then
mv -v /etc/php-fpm.conf{.default,} &&
mv -v /etc/php-fpm.d/www.conf{.default,}
fi
sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini
2016-02-24 01:27:23 +01:00
}