talimat 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # 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.
  2. # URL: http://www.php.net
  3. # Packager: milisarge
  4. # 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
  5. name=php7
  6. _name=php
  7. version=7.1.4
  8. release=1
  9. source=(http://php.net/distributions/${_name}-$version.tar.xz)
  10. build () {
  11. cd ${_name}-$version
  12. ./configure --prefix=/usr \
  13. --sysconfdir=/etc \
  14. --localstatedir=/var \
  15. --datadir=/usr/share/php \
  16. --mandir=/usr/share/man \
  17. --enable-fpm \
  18. --with-fpm-user=www-data \
  19. --with-fpm-group=www-data \
  20. --with-config-file-path=/etc \
  21. --with-zlib \
  22. --enable-bcmath \
  23. --with-bz2 \
  24. --enable-calendar \
  25. --enable-dba=shared \
  26. --with-gdbm \
  27. --with-gmp \
  28. --enable-ftp \
  29. --with-gettext \
  30. --enable-mbstring \
  31. --with-mysqli=shared \
  32. --with-mysql-sock=/run/mysqld/mysqld.sock \
  33. --with-pdo-mysql=shared \
  34. --with-readline
  35. make
  36. make -j1 INSTALL_ROOT=$PKG install
  37. install -v -m644 php.ini-production $PKG/etc/php.ini
  38. if [ -f /etc/php-fpm.conf.default ]; then
  39. mv -v /etc/php-fpm.conf{.default,} &&
  40. mv -v /etc/php-fpm.d/www.conf{.default,}
  41. fi
  42. sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini
  43. }