talimat 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Tanım: Dinamik web sitelerinde kullanılan programlama kodunun HTML biçimlendirmesine doğrudan 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 xorg curl db mariadb openldap postgresql sqlite unixodbc openssl cyrus-sasl kerberos
  5. # Grup: ağ
  6. isim=php
  7. surum=5.6.31
  8. devir=1
  9. kaynak=(http://php.net/distributions/$isim-$surum.tar.xz)
  10. derle() {
  11. cd $isim-$surum
  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=apache \
  19. --with-fpm-group=apache \
  20. --with-config-file-path=/etc \
  21. --with-zlib \
  22. --enable-bcmath \
  23. --with-bz2 \
  24. --enable-calendar \
  25. --enable-dba=shared \
  26. --enable-mysqlnd \
  27. --with-gdbm \
  28. --with-gmp \
  29. --enable-ftp \
  30. --with-gettext \
  31. --enable-mbstring \
  32. --with-readline
  33. make
  34. make -j1 INSTALL_ROOT=$PKG install
  35. install -v -m644 php.ini-production $PKG/etc/php.ini
  36. mv -v $PKG/etc/php-fpm.conf{.default,}
  37. sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini
  38. }