milis/talimatname/genel/php/talimat

51 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-04-11 09:03:34 +02:00
# Description: Dinamik web sitelerinde kullanılan programlama kodunun HTML biçimlendirmesine doğrudan gömülmesini sağlar.
# URL: http://www.php.net
# Packager: milisarge
# Depends on: apache libxml2 aspell aspell-tr libxslt enchant pcre pth freetype libexif libjpeg-turbo libpng libtiff xorg curl db mariadb openldap postgresql sqlite unixodbc openssl cyrus-sasl kerberos
2016-02-24 01:27:23 +01:00
name=php
version=5.6.16
2017-02-19 21:59:27 +01:00
release=3
2016-02-24 01:27:23 +01:00
source=(http://php.net/distributions/$name-$version.tar.xz
2016-03-30 18:31:22 +02:00
http://mirror.internode.on.net/pub/php/manual/php_manual_tr.tar.gz)
2016-02-24 01:27:23 +01:00
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 \
2017-02-19 21:58:42 +01:00
--enable-mysqlnd \
2016-02-24 01:27:23 +01:00
--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
}