summaryrefslogtreecommitdiff
path: root/databases/mysql3-client
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-10-28 01:01:31 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-10-28 01:01:31 +0000
commitec30fc9ddf44e24dc08fe3bbe8b74fc8ba464d42 (patch)
tree55625600246dc3708a829966ec9363866b2ef4f4 /databases/mysql3-client
parent616fc7544b91b790a3ca27547bfb5e3d17537b81 (diff)
downloadpkgsrc-ec30fc9ddf44e24dc08fe3bbe8b74fc8ba464d42.tar.gz
Import mysql-client-3.23.58 into databases/mysql3-client.
Diffstat (limited to 'databases/mysql3-client')
-rw-r--r--databases/mysql3-client/DESCR15
-rw-r--r--databases/mysql3-client/Makefile22
-rw-r--r--databases/mysql3-client/Makefile.common80
-rw-r--r--databases/mysql3-client/PLIST64
-rw-r--r--databases/mysql3-client/buildlink3.mk22
-rw-r--r--databases/mysql3-client/distinfo5
-rw-r--r--databases/mysql3-client/patches/patch-af12
7 files changed, 220 insertions, 0 deletions
diff --git a/databases/mysql3-client/DESCR b/databases/mysql3-client/DESCR
new file mode 100644
index 00000000000..23500c3f7ba
--- /dev/null
+++ b/databases/mysql3-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/mysql3-client/Makefile b/databases/mysql3-client/Makefile
new file mode 100644
index 00000000000..54079e7ec1e
--- /dev/null
+++ b/databases/mysql3-client/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/28 01:01:31 xtraeme Exp $
+
+PKGNAME= ${DISTNAME:S/-/-client-/}
+PKGREVISION= 1
+SVR4_PKGNAME= mysqc
+COMMENT= MySQL 3, a free SQL database (client)
+
+.include "Makefile.common"
+
+CONFIGURE_ARGS+= --without-server
+USE_BUILDLINK3= YES
+
+USE_NEW_TEXINFO= YES
+INFO_FILES= mysql.info
+
+post-install:
+ cd ${PREFIX}/man/man1; ${RM} -f mysqld.1 safe_mysqld.1
+ cd ${PREFIX}/share/mysql; ${RM} -f mysql.server
+ ${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
+
+.include "../../devel/readline/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/mysql3-client/Makefile.common b/databases/mysql3-client/Makefile.common
new file mode 100644
index 00000000000..a930430443a
--- /dev/null
+++ b/databases/mysql3-client/Makefile.common
@@ -0,0 +1,80 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/10/28 01:01:32 xtraeme Exp $
+
+DISTNAME= mysql-3.23.58
+CATEGORIES= databases
+MASTER_SITES= http://mirrors.sunsite.dk/mysql/Downloads/MySQL-3.23/ \
+ ftp://sunsite.dk/mirrors/mysql/Downloads/MySQL-3.23/ \
+ ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MySQL-3.23/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.mysql.com/
+
+EXTRACT_USING_PAX= # defined
+USE_GCC_SHLIB= # 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?= ${VARBASE}/mysql
+
+# MYSQL_CHARSET default character set
+# MYSQL_EXTRA_CHARSET additonal character set to be compiled in.
+#
+MYSQL_CHARSET?= latin1
+MYSQL_EXTRA_CHARSET?= all
+
+USE_BUILDLINK3= # defined
+GNU_CONFIGURE= # defined
+USE_GNU_TOOLS+= make
+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-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_PERL5= # defined
+USE_LIBTOOL= # defined
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/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 safe_mysqld.sh; do \
+ ${MV} $${file} $${file}.orig; \
+ ${SED} -e "s,chown,${CHOWN},g" \
+ $${file}.orig > $${file}; \
+ ${RM} $${file}.orig; \
+ done
+
+.include "../../devel/zlib/buildlink3.mk"
diff --git a/databases/mysql3-client/PLIST b/databases/mysql3-client/PLIST
new file mode 100644
index 00000000000..c90bdfec97c
--- /dev/null
+++ b/databases/mysql3-client/PLIST
@@ -0,0 +1,64 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/28 01:01:32 xtraeme Exp $
+bin/msql2mysql
+bin/mysql
+bin/mysqlcheck
+bin/mysql_config
+bin/mysql_convert_table_format
+bin/mysql_find_rows
+bin/mysql_fix_privilege_tables
+bin/mysql_setpermission
+bin/mysql_zap
+bin/mysqlaccess
+bin/mysqladmin
+bin/mysqlbinlog
+bin/mysqlbug
+bin/mysqld_multi
+bin/mysqldump
+bin/mysqldumpslow
+bin/mysqlhotcopy
+bin/mysqlimport
+bin/mysqlshow
+bin/mysqltest
+include/mysql/dbug.h
+include/mysql/errmsg.h
+include/mysql/m_ctype.h
+include/mysql/m_string.h
+include/mysql/my_config.h
+include/mysql/my_global.h
+include/mysql/my_list.h
+include/mysql/my_net.h
+include/mysql/my_pthread.h
+include/mysql/my_sys.h
+include/mysql/mysql.h
+include/mysql/mysql_com.h
+include/mysql/mysql_version.h
+include/mysql/mysqld_error.h
+include/mysql/my_no_pthread.h
+include/mysql/raid.h
+include/mysql/sslopt-case.h
+include/mysql/sslopt-longopts.h
+include/mysql/sslopt-usage.h
+include/mysql/sslopt-vars.h
+lib/mysql/libmysqlclient.la
+man/man1/isamchk.1
+man/man1/isamlog.1
+man/man1/mysql.1
+man/man1/mysql_zap.1
+man/man1/mysqlaccess.1
+man/man1/mysqladmin.1
+man/man1/mysqld_multi.1
+man/man1/mysqldump.1
+man/man1/mysqlshow.1
+man/man1/perror.1
+man/man1/replace.1
+share/mysql/binary-configure
+share/mysql/make_binary_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
+@dirrm share/mysql
+@dirrm lib/mysql
+@dirrm include/mysql
diff --git a/databases/mysql3-client/buildlink3.mk b/databases/mysql3-client/buildlink3.mk
new file mode 100644
index 00000000000..fa6eb3031a1
--- /dev/null
+++ b/databases/mysql3-client/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/10/28 01:01:32 xtraeme Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+MYSQL_CLIENT_BUILDLINK3_MK:= ${MYSQL_CLIENT_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= mysql-client
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nmysql-client}
+BUILDLINK_PACKAGES+= mysql-client
+
+.if !empty(MYSQL_CLIENT_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.mysql-client+= mysql-client>=3.23.58
+BUILDLINK_RECOMMENDED.mysql-client+= mysql-client>=3.23.58nb1
+BUILDLINK_PKGSRCDIR.mysql-client?= ../../databases/mysql-client
+BUILDLINK_LIBDIRS.mysql-client?= lib/mysql
+.endif # MYSQL_CLIENT_BUILDLINK3_MK
+
+.include "../../devel/zlib/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/databases/mysql3-client/distinfo b/databases/mysql3-client/distinfo
new file mode 100644
index 00000000000..197d4ff40d3
--- /dev/null
+++ b/databases/mysql3-client/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/10/28 01:01:32 xtraeme Exp $
+
+SHA1 (mysql-3.23.58.tar.gz) = f3383e41e8926c040a295173881414a1e96e0266
+Size (mysql-3.23.58.tar.gz) = 12039843 bytes
+SHA1 (patch-af) = 0ac0172c264b9c9e8f173d29085096bc1c611132
diff --git a/databases/mysql3-client/patches/patch-af b/databases/mysql3-client/patches/patch-af
new file mode 100644
index 00000000000..c5442797a4f
--- /dev/null
+++ b/databases/mysql3-client/patches/patch-af
@@ -0,0 +1,12 @@
+$NetBSD: patch-af,v 1.1.1.1 2004/10/28 01:01:32 xtraeme Exp $
+
+--- configure.orig Fri Jun 6 14:39:41 2003
++++ configure Wed Jul 9 17:15:10 2003
+@@ -19952,7 +19952,6 @@
+ else
+ bench_dirs=""
+ fi
+-bench_dirs="$bench_dirs mysql-test"
+
+
+ # Don't build readline, i have it already