talimat 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar.
  2. # URL: http://www.php.net
  3. # Paketçi: milisarge
  4. # 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
  5. # Grup: geliştirme
  6. isim=php7
  7. _isim=php
  8. surum=7.1.11
  9. devir=1
  10. kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz)
  11. derle() {
  12. cd ${_isim}-$surum
  13. ./configure --prefix=/usr \
  14. --sysconfdir=/etc \
  15. --localstatedir=/var \
  16. --datadir=/usr/share/php \
  17. --mandir=/usr/share/man \
  18. --enable-fpm \
  19. --with-fpm-user=www-data \
  20. --with-fpm-group=www-data \
  21. --with-config-file-path=/etc \
  22. --with-zlib \
  23. --enable-bcmath \
  24. --with-bz2 \
  25. --enable-calendar \
  26. --enable-dba=shared \
  27. --with-gdbm \
  28. --with-gmp \
  29. --enable-ftp \
  30. --with-gettext \
  31. --enable-mbstring \
  32. --with-mysqli=shared \
  33. --with-mysql-sock=/run/mysqld/mysqld.sock \
  34. --with-pdo-mysql=shared \
  35. --with-readline
  36. make
  37. make -j1 INSTALL_ROOT=$PKG install
  38. install -v -m644 php.ini-production $PKG/etc/php.ini
  39. if [ -f /etc/php-fpm.conf.default ]; then
  40. mv -v /etc/php-fpm.conf{.default,} &&
  41. mv -v /etc/php-fpm.d/www.conf{.default,}
  42. fi
  43. sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini
  44. }