diff options
author | jlam <jlam@pkgsrc.org> | 2004-07-20 17:28:37 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-07-20 17:28:37 +0000 |
commit | 2ae3894918a9a18ab008a9535150aa3fb957fd3c (patch) | |
tree | bf6965eb65fa3913c04a2b9f502a54dff76d8431 /databases/mysql4-server | |
parent | 1e3c67ab34dce7a56bb8f6baf598bd7e9333991f (diff) | |
download | pkgsrc-2ae3894918a9a18ab008a9535150aa3fb957fd3c.tar.gz |
Reorganize the line order to bring related things together and to more
closely match the template package Makefile. Also use BUILD_DIRS instead
of invoking make explicitly in a post-build target.
Diffstat (limited to 'databases/mysql4-server')
-rw-r--r-- | databases/mysql4-server/Makefile | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/databases/mysql4-server/Makefile b/databases/mysql4-server/Makefile index dbb677fe019..b764e56de65 100644 --- a/databases/mysql4-server/Makefile +++ b/databases/mysql4-server/Makefile @@ -1,41 +1,53 @@ -# $NetBSD: Makefile,v 1.7 2004/06/20 18:48:44 xtraeme Exp $ +# $NetBSD: Makefile,v 1.8 2004/07/20 17:28:37 jlam Exp $ PKGNAME= ${DISTNAME:S/-/-server-/} SVR4_PKGNAME= mysqs COMMENT= MySQL 4, a free SQL database (server) +CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} + .include "../mysql4-client/Makefile.common" +USE_BUILDLINK3= yes + CONFIGURE_ARGS+= --with-libwrap CONFIGURE_ARGS+= --with-raid CONFIGURE_ARGS+= --without-berkeley-db CONFIGURE_ARGS+= --without-mysqlfs -USE_BUILDLINK3= YES -USE_PKGINSTALL= YES - -INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL - -CONFLICTS= {mysql-server-[0-9]*,mysql3-server-[0-9]*} - -PTHREAD_OPTS= require +CONFIGURE_ARGS+= --with-mysqld-user=${MYSQL_USER} +PTHREAD_OPTS+= require CONFIGURE_ARGS+= --with-pthreads +USE_PKGINSTALL= YES +INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL + 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} +MAKE_DIRS_PERMS+= ${MYSQL_DATADIR} ${MYSQL_USER} ${MYSQL_GROUP} 0700 + 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 +BUILD_DIRS= ${WRKSRC} ${WRKSRC}/man + +.include "../../databases/mysql4-client/buildlink3.mk" +.include "../../security/tcp_wrappers/buildlink3.mk" +.include "../../mk/pthread.buildlink3.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 post-configure: cd ${WRKSRC} && ${CP} -f config.h include/my_config.h post-build: - cd ${WRKSRC}/man && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} cd ${WRKSRC}/scripts && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \ ${MAKE_FLAGS} mysqld_safe mysql_install_db @@ -46,18 +58,5 @@ post-install: ${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/buildlink3.mk" -.include "../../security/tcp_wrappers/buildlink3.mk" -.include "../../mk/pthread.buildlink3.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" |