diff --git a/talimatname/genel/mariadb/mariadb.kur-kos b/talimatname/genel/mariadb/mariadb.kur-kos index e48248437..521749315 100644 --- a/talimatname/genel/mariadb/mariadb.kur-kos +++ b/talimatname/genel/mariadb/mariadb.kur-kos @@ -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" diff --git a/talimatname/genel/php-gettext/talimat b/talimatname/genel/php-gettext/talimat new file mode 100644 index 000000000..65f6eb86b --- /dev/null +++ b/talimatname/genel/php-gettext/talimat @@ -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 + +} diff --git a/talimatname/genel/php-mysql/talimat b/talimatname/genel/php-mysql/talimat new file mode 100644 index 000000000..609cf79a0 --- /dev/null +++ b/talimatname/genel/php-mysql/talimat @@ -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 +} diff --git a/talimatname/genel/php/talimat b/talimatname/genel/php/talimat index 33310d8ed..dc79a8c76 100644 --- a/talimatname/genel/php/talimat +++ b/talimatname/genel/php/talimat @@ -28,6 +28,7 @@ build () { --with-bz2 \ --enable-calendar \ --enable-dba=shared \ + --enable-mysqlnd \ --with-gdbm \ --with-gmp \ --enable-ftp \