summaryrefslogtreecommitdiff
path: root/databases/mysql51-client/Makefile
blob: 113e9329768f485c98c0cc26df050ce5d782021c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $NetBSD: Makefile,v 1.23 2016/07/09 06:38:00 wiz Exp $

PKGNAME=	${DISTNAME:S/-/-client-/}
PKGREVISION=	7
COMMENT=	MySQL 5, a free SQL database (client)

CONFLICTS=	mysql3-client-[0-9]*

.include "Makefile.common"

CONFIGURE_ARGS+=	--without-server
UNWRAP_FILES+=		scripts/mysql_config
INFO_FILES=		yes

AUTO_MKDIRS=	yes

REPLACE_PERL=	scripts/mysql_convert_table_format.sh \
		scripts/mysql_find_rows.sh \
		scripts/mysql_fix_extensions.sh \
		scripts/mysql_fix_privilege_tables.sh \
		scripts/mysql_setpermission.sh \
		scripts/mysql_zap.sh \
		scripts/mysqlaccess.sh \
		scripts/mysqldumpslow.sh \
		scripts/mysqlhotcopy.sh

post-install:
	cd ${WRKSRC}; for f in mysql.info mysql.info-[0-9]*; do		\
		${TEST} ! -f "$$f" ||					\
		${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\
	done
.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 "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"