milis/talimatname/genel/p/php-mysql/talimat

29 lines
749 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: PHP için MySQL modulü
2017-04-11 09:01:21 +02:00
# URL: http://www.php.net
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: mariadb php
2017-02-19 21:58:42 +01:00
2017-10-28 14:10:23 +02:00
isim=php-mysql
surum=5.6.31
devir=1
kaynak=(http://php.net/distributions/php-$surum.tar.xz)
2017-02-19 21:58:42 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd php-$surum
2017-02-19 21:58:42 +01:00
./configure --disable-all \
--enable-pdo=shared \
--enable-mysqlnd=shared \
--with-mysql=shared,mysqlnd \
--with-mysqli=shared,mysqlnd \
--with-pdo-mysql=shared,mysqlnd
make build-modules
install -d $PKG/{etc/php/conf.d,usr/lib/php/extensions}
install -m 755 modules/*mysql*.so $PKG/usr/lib/php/extensions
printf 'extension=%s\n' {mysqlnd,mysql,mysqli,pdo_mysql}.so \
> $PKG/etc/php/conf.d/mysql.ini
}