php.paketler
This commit is contained in:
parent
d21a671318
commit
e38d0f1374
|
@ -1,5 +1,6 @@
|
|||
. /lib/lsb/init-functions
|
||||
log_warning_msg "${WARNING} Create a /etc/mysql/my.cnf by comparing it with /etc/mysql/my.cnf.example ${NORMAL}"
|
||||
log_warning_msg "${WARNING} Create a database if need by run the command: ${NORMAL}"
|
||||
mkdir -p /srv/mysql
|
||||
printf "# mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql\n"
|
||||
printf "# chown -R mysql:mysql /srv/mysql\n"
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# Description: Gettext module for PHP
|
||||
# URL: http://www.php.net
|
||||
# Packager: milisarge
|
||||
# Depends on:
|
||||
|
||||
name=php-gettext
|
||||
version=5.6.16
|
||||
release=1
|
||||
source=(http://www.php.net/distributions/php-$version.tar.xz)
|
||||
|
||||
build() {
|
||||
cd php-$version
|
||||
|
||||
./configure \
|
||||
--disable-all \
|
||||
--with-${name#*-}=shared,/usr
|
||||
make build-modules
|
||||
|
||||
install -d $PKG/etc/php/conf.d
|
||||
for i in modules/*.so; do
|
||||
install -D -m755 $i $PKG/usr/lib/php/extensions/${i##*/}
|
||||
echo extension=/usr/lib/php/extensions/${i##*/} >> $PKG/etc/php/conf.d/${name#php-}.ini
|
||||
done
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
# Description: MySQL module for PHP
|
||||
# URL: http://www.php.net
|
||||
# Packager: milisarge
|
||||
# Depends on: mariadb php
|
||||
|
||||
name=php-mysql
|
||||
version=5.6.16
|
||||
release=1
|
||||
source=(http://php.net/distributions/php-$version.tar.xz)
|
||||
|
||||
build () {
|
||||
cd php-$version
|
||||
|
||||
./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
|
||||
}
|
|
@ -28,6 +28,7 @@ build () {
|
|||
--with-bz2 \
|
||||
--enable-calendar \
|
||||
--enable-dba=shared \
|
||||
--enable-mysqlnd \
|
||||
--with-gdbm \
|
||||
--with-gmp \
|
||||
--enable-ftp \
|
||||
|
|
Loading…
Reference in New Issue