summaryrefslogtreecommitdiff
path: root/databases/mysql4-client
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-11-23 16:07:01 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-11-23 16:07:01 +0000
commitb0b6cafd7a18d7576acdbd8fa4b0a75cab587600 (patch)
tree17b6f873d11f7c18aedaa89c2010d605fb6339ba /databases/mysql4-client
parent64e843919f84d08ff2ee48a537a5da2844368afc (diff)
downloadpkgsrc-b0b6cafd7a18d7576acdbd8fa4b0a75cab587600.tar.gz
* Install my-{huge,large,innodb-heavy-4G,small,medium}.cnf example files.
* Use PTHREAD_AUTO_VARS=no to disable linking to libpthread all programs and libraries, which is wrong. * Set USE_LIBTOOL and GNU_CONFIGURE before including bsd.prefs.mk, so the test for _OPSYS_MAX_CMDLEN is not skipped. Bump PKGREVISION to each package respectively (mysql-client and mysql4-client), closes PR pkg/28162 and PR pkg/28222.
Diffstat (limited to 'databases/mysql4-client')
-rw-r--r--databases/mysql4-client/Makefile11
-rw-r--r--databases/mysql4-client/Makefile.common20
-rw-r--r--databases/mysql4-client/PLIST8
3 files changed, 23 insertions, 16 deletions
diff --git a/databases/mysql4-client/Makefile b/databases/mysql4-client/Makefile
index a3c3e6b9cb6..9653d0c80fa 100644
--- a/databases/mysql4-client/Makefile
+++ b/databases/mysql4-client/Makefile
@@ -1,14 +1,12 @@
-# $NetBSD: Makefile,v 1.14 2004/11/16 18:01:58 xtraeme Exp $
+# $NetBSD: Makefile,v 1.15 2004/11/23 16:07:02 xtraeme Exp $
PKGNAME= ${DISTNAME:S/-/-client-/}
-PKGREVISION= 4
+PKGREVISION= 5
SVR4_PKGNAME= mysqc
COMMENT= MySQL 4, a free SQL database (client)
CONFLICTS= {mysql-client-[0-9]*,mysql3-client-[0-9]*}
-USE_BUILDLINK3= yes
-
.include "Makefile.common"
CONFIGURE_ARGS+= --without-extra-tools
@@ -20,6 +18,11 @@ INFO_FILES= mysql.info
post-install:
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mysql
+.for f in huge large innodb-heavy-4G small medium
+ ${INSTALL_DATA} ${WRKSRC}/support-files/my-${f}.cnf.sh \
+ ${PREFIX}/share/examples/mysql/my-${f}.cnf
+.endfor
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/mysql4-client/Makefile.common b/databases/mysql4-client/Makefile.common
index 8aaeff233f7..e51cf6d4a10 100644
--- a/databases/mysql4-client/Makefile.common
+++ b/databases/mysql4-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.24 2004/11/16 18:56:29 tron Exp $
+# $NetBSD: Makefile.common,v 1.25 2004/11/23 16:07:02 xtraeme Exp $
DISTNAME= mysql-4.1.7
CATEGORIES= databases
@@ -11,6 +11,10 @@ HOMEPAGE= http://www.mysql.com/
EXTRACT_USING_PAX= # defined
+USE_BUILDLINK3= yes
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
.include "../../mk/bsd.prefs.mk"
# MYSQL_USER username of the database administrator
@@ -27,8 +31,6 @@ MYSQL_DATADIR?= ${VARBASE}/mysql
MYSQL_CHARSET?= latin1
MYSQL_EXTRA_CHARSET?= all
-USE_BUILDLINK3= yes
-GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${MYSQL_DATADIR}
CONFIGURE_ARGS+= --with-named-z-libs=z
CONFIGURE_ARGS+= --without-libwrap
@@ -70,6 +72,8 @@ CFLAGS+= -DHAVE_CURSES_H
CXXFLAGS+= -DHAVE_CURSES_H
.endif
+PTHREAD_AUTO_VARS= no
+
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
@@ -81,11 +85,10 @@ CONFIGURE_ENV+= ac_cv_func_pthread_attr_setschedparam=no
USE_LANGUAGES= c c++
USE_GNU_TOOLS+= make
-USE_PERL5= # defined
-USE_LIBTOOL= # defined
+USE_PERL5= yes
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/mysql
-SUBST_CLASSES+= mk scripts thr
+SUBST_CLASSES+= mk scripts
SUBST_STAGE.mk= post-extract
SUBST_FILES.mk= dbug/Makefile.in heap/Makefile.in isam/Makefile.in \
merge/Makefile.in mysys/Makefile.in \
@@ -96,11 +99,6 @@ SUBST_STAGE.scripts= post-extract
SUBST_FILES.scripts= scripts/mysql_install_db.sh scripts/mysqld_safe.sh
SUBST_SED.scripts= -e "s,chown,${CHOWN},g"
SUBST_MESSAGE.scripts= "Fixing scripts."
-SUBST_STAGE.thr= post-configure
-SUBST_FILES.thr= libmysql/Makefile
-SUBST_SED.thr= -e "s,${PTHREAD_CFLAGS},,g" \
- -e "s,${PTHREAD_LDFLAGS},,g" \
- -e "s,${PTHREAD_LIBS},,g"
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
diff --git a/databases/mysql4-client/PLIST b/databases/mysql4-client/PLIST
index 983b4cd95c1..cb6442fbd1f 100644
--- a/databases/mysql4-client/PLIST
+++ b/databases/mysql4-client/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2004/11/08 18:19:41 xtraeme Exp $
+@comment $NetBSD: PLIST,v 1.10 2004/11/23 16:07:02 xtraeme Exp $
bin/msql2mysql
bin/mysql
bin/mysql_config
@@ -62,8 +62,14 @@ man/man1/mysqlaccess.1
man/man1/mysqladmin.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
@dirrm share/mysql
@dirrm lib/mysql
+@dirrm share/examples/mysql
@dirrm include/mysql