12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar.
- # 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
- # Grup: geliştirme
- isim=php7
- _isim=php
- surum=7.1.11
- devir=1
- kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz)
- derle() {
- cd ${_isim}-$surum
- ./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
-
- }
|