2012-10-03 23:53:53 +02:00
|
|
|
# $NetBSD: Makefile,v 1.24 2012/10/03 21:54:13 wiz Exp $
|
2005-10-31 10:21:40 +01:00
|
|
|
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-client-/}
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 1
|
2005-10-31 10:21:40 +01:00
|
|
|
SVR4_PKGNAME= mysqc
|
|
|
|
COMMENT= MySQL 5, a free SQL database (client)
|
|
|
|
|
|
|
|
CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*}
|
|
|
|
|
|
|
|
.include "Makefile.common"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --without-extra-tools
|
|
|
|
CONFIGURE_ARGS+= --without-server
|
|
|
|
CONFIGURE_ARGS+= --enable-thread-safe-client
|
2006-04-12 13:00:24 +02:00
|
|
|
UNWRAP_FILES+= scripts/mysql_config
|
2007-05-21 06:39:59 +02:00
|
|
|
INFO_FILES= yes
|
2005-10-31 10:21:40 +01:00
|
|
|
|
2007-12-08 23:26:24 +01:00
|
|
|
AUTO_MKDIRS= yes
|
2007-03-11 19:42:27 +01:00
|
|
|
|
2008-09-18 14:49:40 +02:00
|
|
|
REPLACE_PERL= scripts/mysql_convert_table_format.sh \
|
|
|
|
scripts/mysql_explain_log.sh \
|
2009-11-26 17:33:29 +01:00
|
|
|
scripts/mysql_find_rows.sh \
|
|
|
|
scripts/mysql_fix_extensions.sh \
|
|
|
|
scripts/mysql_setpermission.sh \
|
2008-09-18 14:49:40 +02:00
|
|
|
scripts/mysql_tableinfo.sh \
|
2009-11-26 17:33:29 +01:00
|
|
|
scripts/mysql_zap.sh \
|
|
|
|
scripts/mysqlaccess.sh \
|
2008-09-18 14:49:40 +02:00
|
|
|
scripts/mysqldumpslow.sh \
|
|
|
|
scripts/mysqlhotcopy.sh
|
|
|
|
|
2005-10-31 10:21:40 +01:00
|
|
|
post-install:
|
2006-03-30 05:44:41 +02:00
|
|
|
cd ${WRKSRC}; for f in mysql.info mysql.info-[0-9]*; do \
|
|
|
|
${TEST} ! -f "$$f" || \
|
2008-03-06 17:50:38 +01:00
|
|
|
${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\
|
2006-03-30 05:44:41 +02:00
|
|
|
done
|
2005-10-31 10:21:40 +01:00
|
|
|
.for f in huge large innodb-heavy-4G small medium
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/support-files/my-${f}.cnf.sh \
|
2008-03-06 17:50:38 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/mysql/my-${f}.cnf
|
2005-10-31 10:21:40 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|