NetBSD pkgsrc (package source) is a package management system for
Unix-like operating systems
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.
===========================================================================
$NetBSD: MESSAGE,v 1.4 2008/03/26 13:22:00 wiz Exp $
To use the ``mysqlhotcopy'' script, you'll have to install the following
packages:
databases/p5-DBD-mysql
devel/p5-File-Temp
===========================================================================
# $NetBSD: Makefile,v 1.30 2009/05/20 00:58:10 wiz Exp $
PKGNAME= ${DISTNAME:S/-/-client-/}
PKGREVISION= 4
SVR4_PKGNAME= mysqc
COMMENT= MySQL 4, a free SQL database (client)
CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*}
PKG_DESTDIR_SUPPORT= user-destdir
.include "Makefile.common"
CONFIGURE_ARGS+= --without-extra-tools
CONFIGURE_ARGS+= --without-server
CONFIGURE_ARGS+= --enable-thread-safe-client
UNWRAP_FILES= scripts/mysql_config
INFO_FILES= yes
INSTALLATION_DIRS= ${PKGINFODIR}
post-install:
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info \
${DESTDIR}${PREFIX}/${PKGINFODIR}
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/mysql
.for f in huge large innodb-heavy-4G small medium
${INSTALL_DATA} ${WRKSRC}/support-files/my-${f}.cnf.sh \
${DESTDIR}${PREFIX}/share/examples/mysql/my-${f}.cnf
.endfor
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
# $NetBSD: Makefile.common,v 1.67 2010/01/16 17:57:37 wiz Exp $
#
# used by databases/mysql4-server/Makefile
DISTNAME= mysql-4.1.22
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL:=MySQL-4.1/}
MAINTAINER= hallmann@ahatec.de
HOMEPAGE= http://www.mysql.com/
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
EXTRACT_USING= bsdtar
# 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
BUILD_DEFS+= VARBASE
PKG_USERS_VARS+= MYSQL_USER
PKG_GROUPS_VARS+= MYSQL_GROUP
# MYSQL_CHARSET default character set
# MYSQL_EXTRA_CHARSET additional character set to be compiled in.
#
MYSQL_CHARSET?= latin1
MYSQL_EXTRA_CHARSET?= all
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR:Q}
CONFIGURE_ARGS+= --with-named-z-libs=z
CONFIGURE_ARGS+= --without-libwrap
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
CFLAGS+= -DIRIX5 -DNEEDS_BSTRING_H
# libgen is incorrectly detected
CONFIGURE_ENV+= ac_cv_lib_gen_p2open="no"
.endif
# We always use our own readline. Note that these --without-* settings
# are confusing, but they just mean "don't use the included readline
# or libedit".
#
CONFIGURE_ARGS+= --without-readline
CONFIGURE_ARGS+= --without-libedit
# This forces mysql.info _not_ to be rebuilt.
CONFIGURE_ARGS+= --without-docs
# Speed up production one-time builds; see "./configure --help" for
# more information on using or disabling this option.
CONFIGURE_ARGS+= --disable-dependency-tracking
CONFIGURE_ARGS+= --without-debug
CONFIGURE_ARGS+= --without-bench
CONFIGURE_ARGS+= --with-low-memory
CONFIGURE_ARGS+= --with-vio
CONFIGURE_ARGS+= --with-charset=${MYSQL_CHARSET:Q}
CONFIGURE_ARGS+= --with-extra-charsets=${MYSQL_EXTRA_CHARSET:Q}
.if !empty(MACHINE_ARCH:Mi386) && ${OPSYS} != "Interix" && \
${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --enable-assembler
.endif
CPPFLAGS+= -Dunix
CFLAGS+= -DUSE_OLD_FUNCTIONS # 3.23.x compat
# 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
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
CFLAGS+= -DSIGNALS_DONT_BREAK_READ
CXXFLAGS+= -DSIGNALS_DONT_BREAK_READ
CONFIGURE_ENV+= ac_cv_func_pthread_setschedparam=no
CONFIGURE_ENV+= ac_cv_func_pthread_attr_setschedparam=no
.endif
USE_LANGUAGES= c c++
USE_TOOLS+= gmake perl:run
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
SUBST_CLASSES+= mk
SUBST_STAGE.mk= post-extract
SUBST_FILES.mk= dbug/Makefile.in heap/Makefile.in isam/Makefile.in \
merge/Makefile.in mysys/Makefile.in \
strings/Makefile.in
SUBST_SED.mk= -e "/^install-exec:/s/install-pkglibLIBRARIES//"
SUBST_MESSAGE.mk= Fixing Makefiles.
SUBST_CLASSES+= scripts
SUBST_STAGE.scripts= post-extract
SUBST_FILES.scripts= scripts/mysql_install_db.sh scripts/mysqld_safe.sh \
scripts/mysql_secure_installation.sh \
support-files/mysql.server.sh
SUBST_SED.scripts= -e "s,chown,${CHOWN},g"
SUBST_SED.scripts+= -e "s,/bin/sh,${RCD_SCRIPTS_SHELL},g"
SUBST_MESSAGE.scripts= Fixing scripts.
.include "../../devel/zlib/buildlink3.mk"
@comment $NetBSD: PLIST,v 1.17 2009/06/14 17:43:18 joerg Exp $
bin/msql2mysql
bin/mysql
bin/mysql_config
bin/mysql_convert_table_format
bin/mysql_create_system_tables
bin/mysql_explain_log
bin/mysql_find_rows
bin/mysql_fix_privilege_tables
bin/mysql_setpermission
bin/mysql_tableinfo
bin/mysql_zap
bin/mysqlaccess
bin/mysqladmin
bin/mysqlbinlog
bin/mysqlbug
bin/mysqlcheck
bin/mysqldump
bin/mysqlhotcopy
bin/mysqlimport
bin/mysqlmanager-pwgen
bin/mysqlmanagerc
bin/mysqlshow
bin/mysqltest
include/mysql/errmsg.h
include/mysql/keycache.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/my_xml.h
include/mysql/mysql.h
include/mysql/mysql_com.h
include/mysql/mysql_embed.h
include/mysql/mysql_time.h
include/mysql/mysql_version.h
include/mysql/mysqld_error.h
include/mysql/raid.h
include/mysql/sql_common.h
include/mysql/sql_state.h
include/mysql/sslopt-case.h
include/mysql/sslopt-longopts.h
include/mysql/sslopt-vars.h
include/mysql/typelib.h
info/mysql.info
lib/mysql/libmysqlclient.la
lib/mysql/libmysqlclient_r.la
man/man1/msql2mysql.1
man/man1/mysql.1
man/man1/mysql_config.1
man/man1/mysql_fix_privilege_tables.1
man/man1/mysql_zap.1
man/man1/mysqlaccess.1
man/man1/mysqladmin.1
man/man1/mysqlbinlog.1
man/man1/mysqlcheck.1
man/man1/mysqldump.1
man/man1/mysqlshow.1
share/examples/mysql/my-huge.cnf
share/examples/mysql/my-innodb-heavy-4G.cnf
share/examples/mysql/my-large.cnf
share/examples/mysql/my-medium.cnf
share/examples/mysql/my-small.cnf
share/mysql/fill_help_tables.sql
share/mysql/mysql_fix_privilege_tables.sql
# $NetBSD: buildlink3.mk,v 1.25 2009/05/20 00:58:10 wiz Exp $
BUILDLINK_TREE+= mysql-client
.if !defined(MYSQL_CLIENT_BUILDLINK3_MK)
MYSQL_CLIENT_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.mysql-client+= mysql-client>=4.1.22<5
BUILDLINK_ABI_DEPENDS.mysql-client?= mysql-client>=4.1.22nb4
BUILDLINK_PKGSRCDIR.mysql-client?= ../../databases/mysql4-client
BUILDLINK_LIBDIRS.mysql-client?= lib/mysql
BUILDLINK_INCDIRS.mysql-client?= include/mysql
.include "../../devel/readline/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.endif # MYSQL_CLIENT_BUILDLINK3_MK
BUILDLINK_TREE+= -mysql-client
$NetBSD: distinfo,v 1.31 2008/03/26 13:22:00 wiz Exp $
SHA1 (mysql-4.1.22.tar.gz) = 857e942cc3207caf56e2aa48961fc1ed66d932e6
RMD160 (mysql-4.1.22.tar.gz) = bfcf5058e4247cf4d7d1550ea54c64ebc8bc615e
Size (mysql-4.1.22.tar.gz) = 17761101 bytes
SHA1 (patch-aa) = adc6956d4be304db61aa0323061143fffc1b9751
SHA1 (patch-ab) = ca126aec7649dbe12663df30fc2223e256df5883
SHA1 (patch-af) = 0164d5c00600720591cae36b71625660cdb97625
SHA1 (patch-av) = e1578d1e9742a8317565986bd6ae9a38e0dd5fad
SHA1 (patch-aw) = 35b3aafe923d44d287abd9d30b2a39b347386102
SHA1 (patch-ax) = 719c1fdd38f494d097c9340f77e1c3264e084b8c
SHA1 (patch-ay) = 3edcdd5b6e5a3d9e87f4fc83ff91dfebbeaf3b61
SHA1 (patch-ba) = 73f89008fc6a1f37c573dce00fdde3965234e211
SHA1 (patch-bb) = 242c97ab4658838a6001d9c288e01209abfcee77
SHA1 (patch-bc) = 31c933a03e2b05aeaff1d89d3fa542aad663e96a
SHA1 (patch-bd) = 32186a1f75d25f4feb95ba9d934dfcb526882681
SHA1 (patch-be) = 977348504adeea29afb211cf0da8aa42e9c096d9
SHA1 (patch-bf) = c63133d40c2008ba57a968af693173a1fd97a927
# $NetBSD: options.mk,v 1.3 2008/03/26 13:22:00 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mysql4-client
PKG_SUPPORTED_OPTIONS= ssl
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
###
### Enable OpenSSL support
###
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
.else
CONFIGURE_ARGS+= --without-openssl
.endif