php7.paketlendi
This commit is contained in:
parent
41e16a6279
commit
92a954a2e1
|
@ -0,0 +1,12 @@
|
||||||
|
. /root/bin/mps
|
||||||
|
if [ "$durum" = "`kurulu_kontrol 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
|
||||||
|
else
|
||||||
|
echo "eski php sürümü mevcut degil."
|
||||||
|
fi
|
|
@ -1,4 +1 @@
|
||||||
ln -v -sfn /usr/lib/php/doc/Archive_Tar/docs/Archive_Tar.txt \
|
|
||||||
/usr/share/doc/php-7.0.2
|
|
||||||
ln -v -sfn /usr/lib/php/doc/Structures_Graph/docs \
|
|
||||||
/usr/share/doc/php-7.0.2
|
|
||||||
|
|
|
@ -1,28 +1,27 @@
|
||||||
# Description: 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.
|
# Description: 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.
|
||||||
# URL: http://www.php.net
|
# URL: http://www.php.net
|
||||||
# Packager: milisarge
|
# Packager: milisarge
|
||||||
# Depends on: apache libxml2 aspell aspell-fr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff xorg curl db mariadb openldap postgresql sqlite unixodbc openssl cyrus-sasl kerberos
|
# Depends on: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff db mariadb openldap postgresql sqlite unixodbc cyrus-sasl kerberos
|
||||||
|
|
||||||
name=php7
|
name=php7
|
||||||
_name=php
|
_name=php
|
||||||
version=7.0.2
|
version=7.1.4
|
||||||
release=1
|
release=1
|
||||||
|
|
||||||
source=(http://php.net/distributions/${_name}-$version.tar.xz
|
source=(http://php.net/distributions/${_name}-$version.tar.xz)
|
||||||
http://mirror.internode.on.net/pub/php/manual/php_manual_fr.tar.gz)
|
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
|
|
||||||
cd ${_name}-$version
|
cd ${_name}-$version
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--datadir=/usr/share/php \
|
--datadir=/usr/share/php \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--enable-fpm \
|
--enable-fpm \
|
||||||
--with-fpm-user=apache \
|
--with-fpm-user=www-data \
|
||||||
--with-fpm-group=apache \
|
--with-fpm-group=www-data \
|
||||||
--with-config-file-path=/etc \
|
--with-config-file-path=/etc \
|
||||||
--with-zlib \
|
--with-zlib \
|
||||||
--enable-bcmath \
|
--enable-bcmath \
|
||||||
|
@ -34,17 +33,18 @@ build () {
|
||||||
--enable-ftp \
|
--enable-ftp \
|
||||||
--with-gettext \
|
--with-gettext \
|
||||||
--enable-mbstring \
|
--enable-mbstring \
|
||||||
|
--with-mysqli=shared \
|
||||||
|
--with-mysql-sock=/run/mysqld/mysqld.sock \
|
||||||
|
--with-pdo-mysql=shared \
|
||||||
--with-readline
|
--with-readline
|
||||||
make
|
make
|
||||||
make -j1 INSTALL_ROOT=$PKG install
|
make -j1 INSTALL_ROOT=$PKG install
|
||||||
|
|
||||||
install -v -m644 php.ini-production $PKG/etc/php.ini
|
install -v -m644 php.ini-production $PKG/etc/php.ini
|
||||||
mv -v $PKG/etc/php-fpm.conf{.default,}
|
if [ -f /etc/php-fpm.conf.default ]; then
|
||||||
install -v -m755 -d $PKG/usr/share/doc/php-$version
|
mv -v /etc/php-fpm.conf{.default,} &&
|
||||||
install -v -m644 CODING_STANDARDS EXTENSIONS INSTALL NEWS README* UPGRADING* php.gif \
|
mv -v /etc/php-fpm.d/www.conf{.default,}
|
||||||
$PKG/usr/share/doc/php-$version
|
fi
|
||||||
|
sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' $PKG/etc/php.ini
|
||||||
sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' \
|
|
||||||
$PKG/etc/php.ini
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue