# Tanım: 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 # Paketçi: milisarge # Gerekler: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff db mariadb openldap postgresql sqlite unixodbc cyrus-sasl kerberos name=php7 _name=php version=7.1.4 release=1 source=(http://php.net/distributions/${_name}-$version.tar.xz) derle() { cd ${_name}-$version ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --datadir=/usr/share/php \ --mandir=/usr/share/man \ --enable-fpm \ --with-fpm-user=www-data \ --with-fpm-group=www-data \ --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 \ --with-mysqli=shared \ --with-mysql-sock=/run/mysqld/mysqld.sock \ --with-pdo-mysql=shared \ --with-readline make make -j1 INSTALL_ROOT=$PKG install install -v -m644 php.ini-production $PKG/etc/php.ini 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 }