2000-01-01 00:54:12 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2000/01/01 05:54:12 brad Exp $
|
1999-04-01 01:20:02 -05:00
|
|
|
# $FreeBSD: Makefile,v 1.44 1999/03/04 21:27:58 dirk Exp $
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2000-01-01 00:54:12 -05:00
|
|
|
DISTNAME= mysql-3.22.27
|
1999-03-30 01:42:47 -05:00
|
|
|
CATEGORIES= databases
|
1999-05-11 17:25:17 -04:00
|
|
|
MASTER_SITES= http://www.mysql.org/Downloads/MySQL-3.22/ \
|
|
|
|
http://web.tryc.on.ca/mysql/Downloads/MySQL-3.22/ \
|
|
|
|
http://mysql.he.net/Downloads/MySQL-3.22/ \
|
|
|
|
http://www.buoy.com/mysql/Downloads/MySQL-3.22/ \
|
|
|
|
ftp://ftp.netcasting.net/pub/mysql/Downloads/MySQL-3.22/ \
|
|
|
|
http://www.mysql.net/Downloads/MySQL-3.22/ \
|
|
|
|
http://www.gina.net/mysql/Downloads/MySQL-3.22/ \
|
|
|
|
http://mysql.pingzero.net/Downloads/MySQL-3.22/ \
|
2000-01-01 00:54:12 -05:00
|
|
|
ftp://ftp.digex.net/pub/packages/database/mysql/Downloads/MySQL-3.22/
|
1999-03-30 01:42:47 -05:00
|
|
|
|
|
|
|
MAINTAINER= ports@openbsd.org
|
|
|
|
|
1999-06-03 10:06:32 -04:00
|
|
|
.if ${MACHINE_ARCH} == "sparc"
|
1999-12-01 22:47:36 -05:00
|
|
|
BROKEN= "pthreads are currently not working SPARC"
|
1999-06-03 10:06:32 -04:00
|
|
|
.endif
|
|
|
|
|
2000-01-01 00:54:12 -05:00
|
|
|
DB_DIR?= /var/mysql
|
|
|
|
|
1999-05-11 17:25:17 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2000-01-01 00:54:12 -05:00
|
|
|
CONFIGURE_ARGS= --localstatedir="${DB_DIR}" \
|
1999-03-30 01:42:47 -05:00
|
|
|
--without-perl \
|
|
|
|
--without-debug \
|
|
|
|
--without-readline \
|
1999-06-03 10:06:32 -04:00
|
|
|
--without-bench \
|
2000-01-01 00:54:12 -05:00
|
|
|
--without-mit-threads \
|
|
|
|
--with-unix-socket-path="${DB_DIR}/mysql.sock"
|
1999-03-30 01:42:47 -05:00
|
|
|
|
1999-12-01 22:47:36 -05:00
|
|
|
DOCS= manual.html manual.ps manual_toc.html manual.txt
|
1999-03-30 01:42:47 -05:00
|
|
|
|
2000-01-01 00:54:12 -05:00
|
|
|
pre-build:
|
|
|
|
@echo ""
|
|
|
|
@echo "*** WARNING: you may see an error such as"
|
|
|
|
@echo "*** virtual memory exhausted"
|
|
|
|
@echo "*** when building this package. If you do you must increase"
|
|
|
|
@echo "*** your limits. See the man page for your shell and look"
|
|
|
|
@echo "*** for the 'limit' or 'ulimit' command."
|
|
|
|
@echo ""
|
|
|
|
|
1999-03-30 01:42:47 -05:00
|
|
|
pre-install:
|
1999-12-01 22:47:36 -05:00
|
|
|
@sed -e "s|@PREFIX@|${PREFIX}|" ${FILESDIR}/startup.sh > ${WRKDIR}/startup.sh
|
1999-03-30 01:42:47 -05:00
|
|
|
.if !defined(PACKAGE_BUILDING)
|
2000-01-01 00:54:12 -05:00
|
|
|
.if exists(${DB_DIR}) && !defined(OVERWRITE_DB)
|
|
|
|
@echo "You appear to already have a mysql database directory in ${DB_DIR}."
|
|
|
|
@echo ""
|
|
|
|
@echo "In order to preserve your existing data, you should:"
|
|
|
|
@echo " - dump all your databases"
|
|
|
|
@echo " - kill mysql if it is running"
|
|
|
|
@echo " - delete the ${DB_DIR} directory"
|
|
|
|
@echo " - run 'make install'"
|
|
|
|
@echo " - start up mysql"
|
|
|
|
@echo " - re-create all of your database"
|
|
|
|
@echo " - re-load your data"
|
|
|
|
@echo ""
|
|
|
|
@echo "If you understand the consequences of this upgrade, please re-build this"
|
|
|
|
@echo "port with the environment variable OVERWRITE_DB defined."
|
|
|
|
@false
|
|
|
|
.endif
|
|
|
|
@PKG_PREFIX="${PREFIX}" PKG_DB_DIR="${DB_DIR}" sh ${PKGDIR}/INSTALL ${DISTNAME} PRE-INSTALL
|
1999-03-30 01:42:47 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
1999-12-01 22:47:36 -05:00
|
|
|
@mkdir -p ${PREFIX}/share/doc/mysql
|
2000-01-01 00:54:12 -05:00
|
|
|
@mkdir -p ${PREFIX}/share/doc/mysql/Img
|
1999-12-01 22:47:36 -05:00
|
|
|
@mkdir -p ${PREFIX}/share/mysql/mysql
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/startup.sh ${PREFIX}/lib/mysql
|
|
|
|
.for doc in ${DOCS}
|
1999-03-30 01:42:47 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
|
|
|
|
.endfor
|
2000-01-01 00:54:12 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
|
1999-03-30 01:42:47 -05:00
|
|
|
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
|
1999-12-01 22:47:36 -05:00
|
|
|
@${LDCONFIG} -m ${PREFIX}/lib/mysql
|
1999-03-30 01:42:47 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|