diff --git a/talimatname/genel/p/php7-apache/talimat b/talimatname/genel/p/php7-apache/talimat index a8e6051d4..1f89f1f32 100644 --- a/talimatname/genel/p/php7-apache/talimat +++ b/talimatname/genel/p/php7-apache/talimat @@ -4,18 +4,19 @@ # Gerekler: php7 apache isim=php7-apache -surum=7.1.4 +surum=7.1.11 devir=1 -kaynak=(http://www.php.net/distributions/php-$surum.tar.xz apache.conf) +kaynak=(http://www.php.net/distributions/php-$surum.tar.xz + apache.conf) derle() { - cd php-$surum + cd php-$surum - ./configure --disable-all \ - --with-apxs2 - make DESTDIR=$PKG install + ./configure --disable-all \ + --with-apxs2 + make DESTDIR=$PKG install - 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 - echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini + 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 + echo "extension=apache.so" > $PKG/etc/php/conf.d/apache.ini } diff --git a/talimatname/genel/p/php7/php7.kos-kur b/talimatname/genel/p/php7/php7.kos-kur index eeef6016c..14517d28e 100644 --- a/talimatname/genel/p/php7/php7.kos-kur +++ b/talimatname/genel/p/php7/php7.kos-kur @@ -1,12 +1,12 @@ . /root/bin/mps -if [ "$durum" = "`kurulu_kontrol php`" ]; then +if [ -d /var/lib/pkg/DB/php ]; then echo "eski php sürümü siliniyor." mps sil php nokta=`date +%m-%d-%y.%H%M%S` mkdir -p /var/lib/pkg/koruma - cp /etc/php.ini /var/lib/pkg/koruma/php.ini.$nokta - cp /etc/php-fpm.conf /var/lib/pkg/koruma/php-fpm.conf.$nokta - cp /etc/pear.conf /var/lib/pkg/koruma/pear.conf.$nokta + [ -f /etc/php.ini ] && cp /etc/php.ini /var/lib/pkg/koruma/php.ini.$nokta + [ -f /etc/php-fpm.conf ] && cp /etc/php-fpm.conf /var/lib/pkg/koruma/php-fpm.conf.$nokta + [ -f /etc/pear.conf ] && cp /etc/pear.conf /var/lib/pkg/koruma/pear.conf.$nokta else echo "eski php sürümü mevcut degil." fi diff --git a/talimatname/genel/p/php7/talimat b/talimatname/genel/p/php7/talimat index efffe05c5..ecb040618 100644 --- a/talimatname/genel/p/php7/talimat +++ b/talimatname/genel/p/php7/talimat @@ -1,4 +1,4 @@ -# Tanım: 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. +# Tanım: Dinamik web sitelerinde kullanılan programlama kodunun doğrudan HTML içine gömülmesini sağlar. # URL: http://www.php.net # Paketçi: milisarge # 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 @@ -8,7 +8,7 @@ _isim=php surum=7.1.11 devir=1 -kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz{,.asc}) +kaynak=(http://php.net/distributions/${_isim}-$surum.tar.xz) derle() {