490432a2f1
while the daemon is shutting down, the access will be denied but the process will still exists until it has shutdown completely. This allows restart to work properly. discussed with and ok robert@
98 lines
2.5 KiB
Makefile
98 lines
2.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.189 2011/03/08 10:46:31 ajacoutot Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT-main= multithreaded SQL database (client)
|
|
COMMENT-server= multithreaded SQL database (server)
|
|
COMMENT-tests= multithreaded SQL database (regression test suite/benchmark)
|
|
|
|
VERSION= 5.1.54
|
|
DISTNAME= mysql-${VERSION}
|
|
PKGNAME-main= mysql-client-${VERSION}
|
|
REVISION-main= 0
|
|
PKGNAME-server= mysql-server-${VERSION}
|
|
REVISION-server=5
|
|
PKGNAME-tests= mysql-tests-${VERSION}
|
|
CATEGORIES= databases
|
|
V= MySQL-5.1
|
|
MASTER_SITES= ${MASTER_SITE_MYSQL:=Downloads/$V/}
|
|
|
|
SHARED_LIBS= mysqlclient_r 20.0 \
|
|
mysqlclient 20.0
|
|
|
|
HOMEPAGE= http://www.mysql.com/
|
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c m pthread
|
|
|
|
DB_DIR?= /var/mysql
|
|
SOCKET_DIR= /var/run/mysql
|
|
SUBST_VARS= DB_DIR SOCKET_DIR VERSION
|
|
|
|
# XXX gcc bug, gcc/3.3.5
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
CFLAGS+= -mbwx
|
|
.endif
|
|
|
|
# Suggested flags for the C compiler, needed for
|
|
# high load servers otherwise MySQL will crash.
|
|
CXX= ${CC}
|
|
CXXFLAGS= ${CFLAGS} -felide-constructors -fno-exceptions -fno-rtti
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
USE_GROFF= Yes
|
|
CONFIGURE_STYLE= autoconf
|
|
AUTOCONF_VERSION= 2.63
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
CONFIGURE_ARGS+= --localstatedir="${DB_DIR}" \
|
|
--with-big-tables \
|
|
--with-comment='OpenBSD port: ${FULLPKGNAME-server}' \
|
|
--with-libwrap \
|
|
--with-low-memory \
|
|
--with-mysqld-user="_mysql" \
|
|
--with-plugins=max-no-ndb \
|
|
--with-ssl=/usr \
|
|
--with-unix-socket-path="${SOCKET_DIR}/mysql.sock" \
|
|
--without-docs \
|
|
--without-readline
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if ${COMPILER_VERSION:L:Mgcc[34]}
|
|
CONFIGURE_ARGS+= --with-client-ldflags=-lsupc++ \
|
|
--with-mysqld-ldflags=-lsupc++
|
|
.endif
|
|
|
|
. if ${MACHINE_ARCH} == "i386"
|
|
CONFIGURE_ARGS+= --enable-assembler
|
|
.endif
|
|
|
|
MULTI_PACKAGES= -main -server -tests
|
|
|
|
RUN_DEPENDS-server= mysql-client->=5.1,<5.2:${BASE_PKGPATH} \
|
|
databases/p5-DBD-mysql
|
|
LIB_DEPENDS-server= mysql-client->=5.1,<5.2:${BASE_PKGPATH}
|
|
|
|
WANTLIB-server= ${WANTLIB} crypto mysqlclient ssl stdc++ wrap z
|
|
WANTLIB-main= ${WANTLIB} crypto ncursesw readline ssl z
|
|
WANTLIB-tests= ${WANTLIB}
|
|
|
|
post-install:
|
|
cd ${PREFIX}/lib && \
|
|
ln -sf mysql/libmysqlclient.so.${LIBmysqlclient_VERSION} . && \
|
|
ln -sf mysql/libmysqlclient_r.so.${LIBmysqlclient_r_VERSION} .
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
|
|
|
|
do-regress:
|
|
@cd ${WRKSRC}/mysql-test && ./mysql-test-run --force
|
|
|
|
.include <bsd.port.mk>
|