milis/talimatname/genel/php7/talimat

51 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
# 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
name=php7
_name=php
version=7.0.2
release=1
source=(http://php.net/distributions/${_name}-$version.tar.xz
http://mirror.internode.on.net/pub/php/manual/php_manual_fr.tar.gz)
build () {
cd ${_name}-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--datadir=/usr/share/php \
--mandir=/usr/share/man \
--enable-fpm \
--with-fpm-user=apache \
--with-fpm-group=apache \
--with-config-file-path=/etc \
--with-zlib \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--enable-dba=shared \
--with-gdbm \
--with-gmp \
--enable-ftp \
--with-gettext \
--enable-mbstring \
--with-readline
make
make -j1 INSTALL_ROOT=$PKG install
install -v -m644 php.ini-production $PKG/etc/php.ini
mv -v $PKG/etc/php-fpm.conf{.default,}
install -v -m755 -d $PKG/usr/share/doc/php-$version
install -v -m644 CODING_STANDARDS EXTENSIONS INSTALL NEWS README* UPGRADING* php.gif \
$PKG/usr/share/doc/php-$version
sed -i 's@php/includes"@&\ninclude_path = ".:/usr/lib/php"@' \
$PKG/etc/php.ini
}