diff options
author | martti <martti> | 2003-12-20 16:00:12 +0000 |
---|---|---|
committer | martti <martti> | 2003-12-20 16:00:12 +0000 |
commit | f88acb3f29036c836a785a470d188a0fc215bff1 (patch) | |
tree | 3f0ee3e4ed1974c25b4eb9d8ef9d24730a624546 /databases | |
parent | ffe1c5db317739d140ddc1476d16c48b0c04c758 (diff) | |
download | pkgsrc-f88acb3f29036c836a785a470d188a0fc215bff1.tar.gz |
MySQL is a SQL (Structured Query Language) database server. SQL is the
most popular database language in the world. MySQL is a client-server
implementation that consists of a server daemon `mysqld' and many
different client programs/libraries.
The main goals of MySQL are speed and robustness.
The base upon which MySQL is built is a set of routines that have been
used in a highly demanding production environment for many years. While
MySQL is still in development it already offers a rich and highly useful
function set.
The official way to pronounce 'MySQL' is 'My Ess Que Ell' (Not MY-SEQUEL).
This package contains the MySQL client programs and libraries.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysql4-client/DESCR | 15 | ||||
-rw-r--r-- | databases/mysql4-client/Makefile | 24 | ||||
-rw-r--r-- | databases/mysql4-client/Makefile.common | 83 | ||||
-rw-r--r-- | databases/mysql4-client/PLIST | 87 | ||||
-rw-r--r-- | databases/mysql4-client/buildlink2.mk | 27 | ||||
-rw-r--r-- | databases/mysql4-client/distinfo | 5 | ||||
-rw-r--r-- | databases/mysql4-client/patches/patch-af | 8 |
7 files changed, 249 insertions, 0 deletions
diff --git a/databases/mysql4-client/DESCR b/databases/mysql4-client/DESCR new file mode 100644 index 00000000000..23500c3f7ba --- /dev/null +++ b/databases/mysql4-client/DESCR @@ -0,0 +1,15 @@ +MySQL is a SQL (Structured Query Language) database server. SQL is the +most popular database language in the world. MySQL is a client-server +implementation that consists of a server daemon `mysqld' and many +different client programs/libraries. + +The main goals of MySQL are speed and robustness. + +The base upon which MySQL is built is a set of routines that have been +used in a highly demanding production environment for many years. While +MySQL is still in development it already offers a rich and highly useful +function set. + +The official way to pronounce 'MySQL' is 'My Ess Que Ell' (Not MY-SEQUEL). + +This package contains the MySQL client programs and libraries. diff --git a/databases/mysql4-client/Makefile b/databases/mysql4-client/Makefile new file mode 100644 index 00000000000..72a50cc7b8e --- /dev/null +++ b/databases/mysql4-client/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/12/20 16:00:12 martti Exp $ + +PKGNAME= ${DISTNAME:S/-/-client-/} +SVR4_PKGNAME= mysqc +COMMENT= MySQL, a free SQL database (client) + +CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*} + +.include "Makefile.common" + +CONFIGURE_ARGS+= --without-server +USE_BUILDLINK2= YES + +USE_NEW_TEXINFO= YES +INFO_FILES= mysql.info + +post-install: + cd ${PREFIX}/man/man1 && \ + ${RM} -f mysqld.1 mysqld_multi.1 mysqld_safe.1 safe_mysqld.1 + cd ${PREFIX}/share/mysql && ${RM} -f mysql.server + ${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info + +.include "../../devel/readline/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/mysql4-client/Makefile.common b/databases/mysql4-client/Makefile.common new file mode 100644 index 00000000000..b7048febec3 --- /dev/null +++ b/databases/mysql4-client/Makefile.common @@ -0,0 +1,83 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2003/12/20 16:00:12 martti Exp $ + +DISTNAME= mysql-4.0.17 +CATEGORIES= databases +MASTER_SITES= http://mirrors.sunsite.dk/mysql/Downloads/MySQL-4.0/ \ + ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-4.0/ \ + ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-4.0/ + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://www.mysql.com/ + +EXTRACT_USING_PAX= # defined + +.include "../../mk/bsd.prefs.mk" + +# MYSQL_USER username of the database administrator +# MYSQL_GROUP group of the database administrator +# MYSQL_DATADIR home directory of the database administrator and +# location of the databases +MYSQL_USER?= mysql +MYSQL_GROUP?= mysql +MYSQL_DATADIR?= /var/mysql + +# MYSQL_CHARSET default character set +# MYSQL_EXTRA_CHARSET additonal character set to be compiled in. +# +MYSQL_CHARSET?= latin1 +MYSQL_EXTRA_CHARSET?= all + +USE_BUILDLINK2= # defined +GNU_CONFIGURE= # defined +CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR} +CONFIGURE_ARGS+= --with-named-z-libs=z +CONFIGURE_ARGS+= --without-libwrap +CONFIGURE_ARGS+= --with-named-curses-libs="-lcurses -ltermcap" + +# We always use our own readline, either system- or pkgsrc-supplied. +CONFIGURE_ARGS+= --without-readline + +# This forces mysql.info _not_ to be rebuilt. +CONFIGURE_ARGS+= --without-docs + +CONFIGURE_ARGS+= --without-debug +CONFIGURE_ARGS+= --without-bench +CONFIGURE_ARGS+= --with-low-memory +CONFIGURE_ARGS+= --with-openssl +CONFIGURE_ARGS+= --with-vio + +CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET} +CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET} + +CPPFLAGS+= -Dunix + +# force HAVE_CURSES_H on Solaris since the configure script is broken +# and does not properly detect this, breaking the build later on. +.if ${OPSYS} == "SunOS" +CFLAGS+= -DHAVE_CURSES_H +CXXFLAGS+= -DHAVE_CURSES_H +.endif + +USE_GMAKE= yes +USE_PERL5= # defined +USE_LIBTOOL= # defined +LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig +LDFLAGS+= -Wl,${RPATH_FLAG}${LOCALBASE}/lib/mysql + +post-extract: + cd ${WRKSRC}; \ + for dir in dbug heap isam merge mysys strings; do \ + ${MV} $${dir}/Makefile.in $${dir}/Makefile.in.orig; \ + ${SED} -e "/^install-exec:/s/install-pkglibLIBRARIES//" \ + $${dir}/Makefile.in.orig > $${dir}/Makefile.in; \ + done + cd ${WRKSRC}/scripts; \ + for file in mysql_install_db.sh mysqld_safe.sh; do \ + ${MV} $${file} $${file}.orig; \ + ${SED} -e "s,chown,${CHOWN},g" \ + $${file}.orig > $${file}; \ + ${RM} $${file}.orig; \ + done + +.include "../../security/openssl/buildlink2.mk" +.include "../../devel/zlib/buildlink2.mk" diff --git a/databases/mysql4-client/PLIST b/databases/mysql4-client/PLIST new file mode 100644 index 00000000000..ad8f98a2630 --- /dev/null +++ b/databases/mysql4-client/PLIST @@ -0,0 +1,87 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/20 16:00:12 martti Exp $ +bin/make_win_src_distribution +bin/msql2mysql +bin/mysql +bin/mysql_config +bin/mysql_convert_table_format +bin/mysql_explain_log +bin/mysql_find_rows +bin/mysql_fix_extensions +bin/mysql_fix_privilege_tables +bin/mysql_secure_installation +bin/mysql_setpermission +bin/mysql_tableinfo +bin/mysql_zap +bin/mysqlaccess +bin/mysqladmin +bin/mysqlbinlog +bin/mysqlbug +bin/mysqlcheck +bin/mysqld_multi +bin/mysqldump +bin/mysqldumpslow +bin/mysqlhotcopy +bin/mysqlimport +bin/mysqlmanager-pwgen +bin/mysqlmanagerc +bin/mysqlshow +bin/mysqltest +include/mysql/errmsg.h +include/mysql/m_ctype.h +include/mysql/m_string.h +include/mysql/my_alloc.h +include/mysql/my_config.h +include/mysql/my_dbug.h +include/mysql/my_dir.h +include/mysql/my_getopt.h +include/mysql/my_global.h +include/mysql/my_list.h +include/mysql/my_net.h +include/mysql/my_no_pthread.h +include/mysql/my_pthread.h +include/mysql/my_semaphore.h +include/mysql/my_sys.h +include/mysql/mysql.h +include/mysql/mysql_com.h +include/mysql/mysql_embed.h +include/mysql/mysql_version.h +include/mysql/mysqld_error.h +include/mysql/raid.h +include/mysql/sslopt-case.h +include/mysql/sslopt-longopts.h +include/mysql/sslopt-vars.h +info/mysql.info +lib/mysql/libmysqlclient.a +lib/mysql/libmysqlclient.la +lib/mysql/libmysqlclient.so +lib/mysql/libmysqlclient.so.12 +lib/mysql/libmysqlclient.so.12.0 +man/man1/isamchk.1 +man/man1/isamlog.1 +man/man1/mysql.1 +man/man1/mysql_fix_privilege_tables.1 +man/man1/mysql_zap.1 +man/man1/mysqlaccess.1 +man/man1/mysqladmin.1 +man/man1/mysqldump.1 +man/man1/mysqlshow.1 +man/man1/perror.1 +man/man1/replace.1 +share/mysql/Description.plist +share/mysql/Info.plist +share/mysql/MySQL-shared-compat.spec +share/mysql/StartupParameters.plist +share/mysql/binary-configure +share/mysql/make_binary_distribution +share/mysql/make_sharedlib_distribution +share/mysql/my-huge.cnf +share/mysql/my-large.cnf +share/mysql/my-medium.cnf +share/mysql/my-small.cnf +share/mysql/mysql-${PKGVERSION}.spec +share/mysql/mysql-log-rotate +share/mysql/postinstall +share/mysql/preinstall +@dirrm share/mysql +@dirrm lib/mysql +@dirrm include/mysql diff --git a/databases/mysql4-client/buildlink2.mk b/databases/mysql4-client/buildlink2.mk new file mode 100644 index 00000000000..47341ae5bf0 --- /dev/null +++ b/databases/mysql4-client/buildlink2.mk @@ -0,0 +1,27 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/12/20 16:00:12 martti Exp $ + +.if !defined(MYSQL_CLIENT_BUILDLINK2_MK) +MYSQL_CLIENT_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= mysql-client +BUILDLINK_DEPENDS.mysql-client?= mysql-client>=4.0.17 +BUILDLINK_PKGSRCDIR.mysql-client?= ../../databases/mysql4-client + +EVAL_PREFIX+= BUILDLINK_PREFIX.mysql-client=mysql-client +BUILDLINK_PREFIX.mysql-client_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.mysql-client= include/mysql/*.h +BUILDLINK_FILES.mysql-client+= lib/mysql/libmysqlclient.* + +FIX_RPATH+= BUILDLINK_LDFLAGS.mysql-client +BUILDLINK_LDFLAGS.mysql-client= \ + -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql \ + -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql + +.include "../../devel/readline/buildlink2.mk" +.include "../../devel/zlib/buildlink2.mk" + +BUILDLINK_TARGETS+= mysql-client-buildlink + +mysql-client-buildlink: _BUILDLINK_USE + +.endif # MYSQL_CLIENT_BUILDLINK2_MK diff --git a/databases/mysql4-client/distinfo b/databases/mysql4-client/distinfo new file mode 100644 index 00000000000..4ccc9d97ca7 --- /dev/null +++ b/databases/mysql4-client/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/12/20 16:00:12 martti Exp $ + +SHA1 (mysql-4.0.17.tar.gz) = b2588d2ccc9d2683e874e7c5cb4d9c55c2196b9e +Size (mysql-4.0.17.tar.gz) = 12959051 bytes +SHA1 (patch-af) = 1fadbf30a787b05ec0c650980355196619874036 diff --git a/databases/mysql4-client/patches/patch-af b/databases/mysql4-client/patches/patch-af new file mode 100644 index 00000000000..d6ac56afa47 --- /dev/null +++ b/databases/mysql4-client/patches/patch-af @@ -0,0 +1,8 @@ +$NetBSD: patch-af,v 1.1.1.1 2003/12/20 16:00:12 martti Exp $ + +--- configure.orig 2003-12-14 21:24:06.000000000 +0000 ++++ configure 2003-12-20 11:59:17.000000000 +0000 +@@ -21142,3 +21142,2 @@ + fi +-bench_dirs="$bench_dirs mysql-test" + |