milis/talimatname/genel/p/php7-apache/talimat

24 lines
597 B
Plaintext
Raw Normal View History

2017-10-31 01:52:12 +01:00
# Tanım: php-apache kütüphanesi
# URL: http://www.php.net
# Paketçi: halityilmaz1982
2017-10-31 02:36:52 +01:00
# Gerekler: php7 apache
2017-10-31 01:52:12 +01:00
2017-10-31 02:36:52 +01:00
isim=php7-apache
2017-11-01 03:18:53 +01:00
surum=7.1.11
2017-10-31 01:52:12 +01:00
devir=1
2017-11-01 03:18:53 +01:00
kaynak=(http://www.php.net/distributions/php-$surum.tar.xz
apache.conf)
2017-10-31 01:52:12 +01:00
derle() {
2017-11-01 03:18:53 +01:00
cd php-$surum
2017-10-31 01:52:12 +01:00
2017-11-01 03:18:53 +01:00
./configure --disable-all \
--with-apxs2
make DESTDIR=$PKG install
2017-10-31 01:52:12 +01:00
2017-11-01 03:18:53 +01:00
install -D -m755 ${SRC}/php-${surum}/libs/libphp7.so ${PKG}/usr/lib/httpd/modules/libphp7.so
install -D -m644 ${SRC}/apache.conf ${PKG}/etc/httpd/conf/extra/php7_module.conf
2017-11-01 03:43:29 +01:00
mkdir -p $PKG/etc/php/conf.d/
2017-11-01 03:18:53 +01:00
echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini
2017-10-31 01:52:12 +01:00
}