e7547647b6
* Added the SHOW PROFILES and SHOW PROFILE statements to display statement profile data, and the accompanying INFORMATION_SCHEMA.PROFILING table. * Added the Uptime_since_flush_status status variable, which indicates the number of seconds since the most recent FLUSH STATUS statement. * Incompatible change in DATE_FORMAT(). * NDB Cluster: The LockPagesInMainMemory configuration parameter has changed its type and possible values. * The bundled yaSSL library was upgraded to version 1.5.8. * The --skip-thread-priority option now is enabled by default for binary Mac OS X distributions. Use of thread priorities degrades performance on Mac OS X. * Added the --disable-grant-options option to configure. * Bug fixes.
67 lines
2.1 KiB
Makefile
67 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2007/03/11 18:42:49 adam Exp $
|
|
|
|
PKGNAME= ${DISTNAME:S/-/-server-/}
|
|
SVR4_PKGNAME= mysqs
|
|
COMMENT= MySQL 5, a free SQL database (server)
|
|
|
|
CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*}
|
|
|
|
.include "../../databases/mysql5-client/Makefile.common"
|
|
|
|
CONFIGURE_ARGS+= --with-libwrap
|
|
CONFIGURE_ARGS+= --with-raid
|
|
CONFIGURE_ARGS+= --without-berkeley-db
|
|
CONFIGURE_ARGS+= --without-mysqlfs
|
|
CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER:Q}
|
|
|
|
PTHREAD_OPTS+= require
|
|
CONFIGURE_ARGS+= --with-pthreads
|
|
|
|
PKG_GROUPS= ${MYSQL_GROUP}
|
|
PKG_USERS= ${MYSQL_USER}:${MYSQL_GROUP}
|
|
|
|
PKG_GECOS.${MYSQL_USER}= MySQL database administrator
|
|
PKG_HOME.${MYSQL_USER}= ${MYSQL_DATADIR}
|
|
PKG_SHELL.${MYSQL_USER}= ${SH}
|
|
|
|
RCD_SCRIPTS= mysqld
|
|
|
|
FILES_SUBST+= HOSTNAME_CMD=${HOSTNAME_CMD:Q} \
|
|
MYSQL_DATADIR=${MYSQL_DATADIR:Q} \
|
|
MYSQL_USER=${MYSQL_USER:Q} MYSQL_GROUP=${MYSQL_GROUP:Q}
|
|
MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR} \
|
|
MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
|
|
BUILD_DEFS+= MYSQL_DATADIR
|
|
BUILD_DIRS= . man
|
|
|
|
REPLACE_PERL+= mysql-test/mysql-test-run.pl
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(PKGSRC_COMPILER:Msunpro)
|
|
CFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
|
|
CXXFLAGS+= -D_POSIX_C_SOURCE=199506L -D__EXTENSIONS__
|
|
.endif
|
|
|
|
.include "../../databases/mysql5-client/buildlink3.mk"
|
|
BUILDLINK_DEPMETHOD.readline=build
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
|
|
post-configure:
|
|
cd ${WRKSRC} && cp -f config.h include/my_config.h
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/scripts && env ${MAKE_ENV} ${MAKE_PROGRAM} \
|
|
${MAKE_FLAGS} mysqld_safe mysql_install_db
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysqld_safe ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysql_install_db ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/support-files/mysql.server ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/man/mysqld_multi.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
#${INSTALL_MAN} ${WRKSRC}/man/mysqld_safe.1 ${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/mysql_secure_installation.sh \
|
|
${PREFIX}/bin/mysql_secure_installation
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|