summaryrefslogtreecommitdiff
path: root/databases/mysql4-server/Makefile
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2003-12-20 16:00:42 +0000
committermartti <martti@pkgsrc.org>2003-12-20 16:00:42 +0000
commit3a8f34af4ef339ca7cafee4f570ab6aa8bca5070 (patch)
tree2ff775d5ebb576d665dad33ec7e3806dae7e831d /databases/mysql4-server/Makefile
parent6ff8b7d24c0b9ef7da8a65a4fe08a6bbfa6b6937 (diff)
downloadpkgsrc-3a8f34af4ef339ca7cafee4f570ab6aa8bca5070.tar.gz
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 server programs and libraries.
Diffstat (limited to 'databases/mysql4-server/Makefile')
-rw-r--r--databases/mysql4-server/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/databases/mysql4-server/Makefile b/databases/mysql4-server/Makefile
new file mode 100644
index 00000000000..4cc8df440a8
--- /dev/null
+++ b/databases/mysql4-server/Makefile
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/20 16:00:42 martti Exp $
+
+PKGNAME= ${DISTNAME:S/-/-server-/}
+SVR4_PKGNAME= mysqs
+COMMENT= MySQL, a free SQL database (server)
+
+.include "../mysql4-client/Makefile.common"
+
+CONFIGURE_ARGS+= --with-libwrap
+CONFIGURE_ARGS+= --without-berkeley-db
+CONFIGURE_ARGS+= --without-mysqlfs
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+
+CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*}
+
+PTHREAD_OPTS= require
+
+CONFIGURE_ARGS+= --with-pthreads
+
+PKG_USERS= ${MYSQL_USER}:${MYSQL_GROUP}::MySQL\\ database\\ administrator:${MYSQL_DATADIR}:${SH}
+PKG_GROUPS= ${MYSQL_GROUP}
+RCD_SCRIPTS= mysqld
+CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER}
+FILES_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR}
+MESSAGE_SUBST+= MYSQL_DATADIR=${MYSQL_DATADIR} \
+ MYSQL_USER=${MYSQL_USER} MYSQL_GROUP=${MYSQL_GROUP}
+BUILD_DEFS+= MYSQL_DATADIR
+MAKE_DIRS_PERMS+= ${MYSQL_DATADIR} ${MYSQL_USER} ${MYSQL_GROUP} 0700
+
+post-configure:
+ cd ${WRKSRC} && ${CP} -f config.h include/my_config.h
+
+post-build:
+ cd ${WRKSRC}/scripts && ${SETENV} ${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.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/mysqld_multi.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/mysqld_safe.1 ${PREFIX}/man/man1
+ PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+ ${CHOWN} -R ${MYSQL_USER}:${MYSQL_GROUP} ${MYSQL_DATADIR}
+
+.include "../../databases/mysql4-client/buildlink2.mk"
+.include "../../security/tcp_wrappers/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.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
+
+.include "../../mk/bsd.pkg.mk"