talimat 617 B

12345678910111213141516171819202122232425
  1. # Tanım: php-apache kütüphanesi
  2. # URL: http://www.php.net
  3. # Paketçi: halityilmaz1982
  4. # Gerekler: php7 apache
  5. # Grup: kütüphane
  6. isim=php7-apache
  7. surum=7.1.11
  8. devir=1
  9. kaynak=(http://www.php.net/distributions/php-$surum.tar.xz
  10. apache.conf)
  11. derle() {
  12. cd php-$surum
  13. ./configure --disable-all \
  14. --with-apxs2
  15. make DESTDIR=$PKG install
  16. install -D -m755 ${SRC}/php-${surum}/libs/libphp7.so ${PKG}/usr/lib/httpd/modules/libphp7.so
  17. install -D -m644 ${SRC}/apache.conf ${PKG}/etc/httpd/conf/extra/php7_module.conf
  18. mkdir -p $PKG/etc/php/conf.d/
  19. echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini
  20. }