From 0f8f62193e3527eec1b855b3538830f4da5850b4 Mon Sep 17 00:00:00 2001 From: Thierry N Date: Tue, 11 Aug 2009 21:36:45 +0200 Subject: Ajout de mysqlclient#5.1.36-1 --- extra/mysqlclient/.footprint | 12 +++++++++ extra/mysqlclient/.md5sum | 2 ++ extra/mysqlclient/Pkgfile | 49 ++++++++++++++++++++++++++++++++++ extra/mysqlclient/mysql-fix-libs.patch | 36 +++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 extra/mysqlclient/.footprint create mode 100644 extra/mysqlclient/.md5sum create mode 100644 extra/mysqlclient/Pkgfile create mode 100644 extra/mysqlclient/mysql-fix-libs.patch (limited to 'extra/mysqlclient') diff --git a/extra/mysqlclient/.footprint b/extra/mysqlclient/.footprint new file mode 100644 index 000000000..786f808ff --- /dev/null +++ b/extra/mysqlclient/.footprint @@ -0,0 +1,12 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/mysql +-rwxr-xr-x root/root usr/bin/mysql_upgrade +-rwxr-xr-x root/root usr/bin/mysqladmin +-rwxr-xr-x root/root usr/bin/mysqlbinlog +-rwxr-xr-x root/root usr/bin/mysqlcheck +-rwxr-xr-x root/root usr/bin/mysqldump +-rwxr-xr-x root/root usr/bin/mysqlimport +-rwxr-xr-x root/root usr/bin/mysqlshow +-rwxr-xr-x root/root usr/bin/mysqlslap +-rwxr-xr-x root/root usr/bin/mysqltest diff --git a/extra/mysqlclient/.md5sum b/extra/mysqlclient/.md5sum new file mode 100644 index 000000000..33c5fead2 --- /dev/null +++ b/extra/mysqlclient/.md5sum @@ -0,0 +1,2 @@ +18e694c4ecbe851fe8e21e1668116c46 mysql-5.1.36.tar.gz +d1921e85821a66196c24ef6e5346b572 mysql-fix-libs.patch diff --git a/extra/mysqlclient/Pkgfile b/extra/mysqlclient/Pkgfile new file mode 100644 index 000000000..5822f477f --- /dev/null +++ b/extra/mysqlclient/Pkgfile @@ -0,0 +1,49 @@ +# Description: Client MySQL +# URL: http://www.mysql.com +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: libmysql + +name=mysqlclient +version=5.1.36 +release=1 +source=(http://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.1/mysql-$version.tar.gz \ + mysql-fix-libs.patch) + +build () { + cd mysql-$version + patch -Np1 -i ../mysql-fix-libs.patch + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --libexecdir=/usr/sbin \ + --localstatedir=/srv/mysql \ + --enable-thread-safe-client \ + --enable-local-infile \ + --with-extra-charsets=all \ + --with-berkeley-db \ + --without-debug \ + --without-readline \ + --without-docs \ + --without-bench \ + --with-libwrap + + pushd include + make -j2 + popd + pushd libmysql + make link_sources get_password.lo + popd + for i in strings regex mysys dbug extra + do pushd $i + make + popd + done + cd client + sed -i -e \ +'s|\$(top_builddir)/libmysql/libmysqlclient.la|/usr/lib/mysql/libmysqlclient.so|g' \ +Makefile + make link_sources + make + make DESTDIR=$PKG install +# rm -r $PKG/usr/lib +} diff --git a/extra/mysqlclient/mysql-fix-libs.patch b/extra/mysqlclient/mysql-fix-libs.patch new file mode 100644 index 000000000..0fb48fb22 --- /dev/null +++ b/extra/mysqlclient/mysql-fix-libs.patch @@ -0,0 +1,36 @@ +diff -Naur mysql-5.1.32/client/Makefile.in mysql-5.1.32.novo/client/Makefile.in +--- mysql-5.1.32/client/Makefile.in 2009-02-13 23:02:45.000000000 -0200 ++++ mysql-5.1.32.novo/client/Makefile.in 2009-03-24 05:32:44.000000000 -0300 +@@ -464,15 +464,15 @@ + yassl_libs = @yassl_libs@ + yassl_taocrypt_extra_cxxflags = @yassl_taocrypt_extra_cxxflags@ + zlib_dir = @zlib_dir@ +-@THREAD_SAFE_CLIENT_FALSE@LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql/libmysqlclient.la +-@THREAD_SAFE_CLIENT_TRUE@LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql_r/libmysqlclient_r.la ++@THREAD_SAFE_CLIENT_FALSE@LIBMYSQLCLIENT_LA = /usr/lib/mysql/libmysqlclient.so ++@THREAD_SAFE_CLIENT_TRUE@LIBMYSQLCLIENT_LA = /usr/lib/mysql/libmysqlclient_r.so + INCLUDES = -I$(top_builddir)/include \ + -I$(top_srcdir)/include \ + -I$(top_srcdir)/regex \ + $(openssl_includes) + + LDADD = @CLIENT_EXTRA_LDFLAGS@ $(CLIENT_THREAD_LIBS) \ +- $(top_builddir)/libmysql/libmysqlclient.la ++ /usr/lib/mysql/libmysqlclient.so + + noinst_HEADERS = sql_string.h completion_hash.h my_readline.h \ + client_priv.h +diff -Naur mysql-5.1.32/tests/Makefile.in mysql-5.1.32.novo/tests/Makefile.in +--- mysql-5.1.32/tests/Makefile.in 2009-02-13 23:03:19.000000000 -0200 ++++ mysql-5.1.32.novo/tests/Makefile.in 2009-03-24 05:32:35.000000000 -0300 +@@ -408,8 +408,8 @@ + yassl_libs = @yassl_libs@ + yassl_taocrypt_extra_cxxflags = @yassl_taocrypt_extra_cxxflags@ + zlib_dir = @zlib_dir@ +-@THREAD_SAFE_CLIENT_FALSE@LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql/libmysqlclient.la +-@THREAD_SAFE_CLIENT_TRUE@LIBMYSQLCLIENT_LA = $(top_builddir)/libmysql_r/libmysqlclient_r.la ++@THREAD_SAFE_CLIENT_FALSE@LIBMYSQLCLIENT_LA = /usr/lib/mysql/libmysqlclient.so ++@THREAD_SAFE_CLIENT_TRUE@LIBMYSQLCLIENT_LA = /usr/lib/mysql/libmysqlclient_r.so + EXTRA_DIST = auto_increment.res auto_increment.tst \ + function.res function.tst lock_test.pl lock_test.res \ + export.pl big_record.pl \ -- cgit v1.2.3-70-g09d2