1997-06-18 19:35:30 +00:00
|
|
|
# ports collection makefile for: mySQL
|
1998-03-28 14:43:39 +00:00
|
|
|
# Version required: v3.21.26-gamma
|
1998-01-26 18:24:43 +00:00
|
|
|
# Date created: 26 Jan 1998
|
1997-06-18 19:35:30 +00:00
|
|
|
# Whom: Josh Tiefenbach <josh@ican.net>
|
|
|
|
#
|
1998-03-16 02:46:42 +00:00
|
|
|
# $Id: Makefile,v 1.16 1998/02/23 02:55:16 steve Exp $
|
1997-06-18 19:35:30 +00:00
|
|
|
#
|
|
|
|
|
1998-03-28 14:43:39 +00:00
|
|
|
DISTNAME= mysql-3.21.26-gamma
|
|
|
|
PKGNAME= mysql-3.21.26g
|
1997-06-18 19:35:30 +00:00
|
|
|
CATEGORIES= databases
|
1998-01-26 18:24:43 +00:00
|
|
|
MASTER_SITES= http://www.buoy.com/mysql/Downloads/MySQL-3.21/ \
|
1998-02-23 02:55:34 +00:00
|
|
|
http://mysql.polaris.ca/Downloads/MySQL-3.21/ \
|
1998-03-28 14:43:39 +00:00
|
|
|
http://www.fh-wolfenbuettel.de/ftp/pub/database/mysql/Downloads/MySQL-3.21/ \
|
1998-02-23 02:55:34 +00:00
|
|
|
http://www.tcx.se/Downloads/MySQL-3.21/
|
|
|
|
|
1997-06-18 19:35:30 +00:00
|
|
|
MAINTAINER= josh@ican.net
|
|
|
|
|
1998-02-23 02:55:34 +00:00
|
|
|
MAN1= mysql.1
|
|
|
|
|
1997-06-18 19:35:30 +00:00
|
|
|
USE_GMAKE= YES
|
1997-11-26 23:35:27 +00:00
|
|
|
USE_PERL5= YES
|
1997-06-18 19:35:30 +00:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
|
|
|
--with-MAKE=gmake \
|
|
|
|
--without-perl \
|
|
|
|
--without-debug \
|
1998-03-28 14:43:39 +00:00
|
|
|
--without-readline \
|
|
|
|
--without-bench
|
1997-09-17 13:28:51 +00:00
|
|
|
CONFIGURE_ENV+= PERL=${PREFIX}/bin/perl INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
1997-06-18 19:35:30 +00:00
|
|
|
|
|
|
|
pre-install:
|
1997-12-04 11:44:52 +00:00
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
@ ${RM} -rf /var/db/mysql
|
|
|
|
.endif
|
1998-03-16 02:46:42 +00:00
|
|
|
@ ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl ${SCRIPTDIR}/check_old_version
|
1997-06-18 19:35:30 +00:00
|
|
|
|
|
|
|
post-install:
|
1998-03-16 02:46:42 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/mysql/mysql
|
1998-02-23 02:55:34 +00:00
|
|
|
${CP} ${WRKSRC}/data/mysql/*.frm ${PREFIX}/share/mysql/mysql
|
|
|
|
${PREFIX}/bin/mysql_install_db
|
1997-06-18 19:35:30 +00:00
|
|
|
@ /usr/bin/killall mysqld
|
1997-11-26 23:35:27 +00:00
|
|
|
@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
@ ${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
@ ${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
@ ${ECHO} " ${PREFIX}/bin/safe_mysqld & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
@ ${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql.sh
|
1997-06-18 19:35:30 +00:00
|
|
|
@ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mysql
|
1998-01-06 16:18:51 +00:00
|
|
|
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
|
1997-06-18 19:35:30 +00:00
|
|
|
.endfor
|
1998-03-16 02:46:42 +00:00
|
|
|
@if [ ! -f ${PREFIX}/info/dir -a -f /usr/share/info/dir ]; then \
|
|
|
|
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
|
|
|
|
fi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
|
|
|
|
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
|
1997-06-18 19:35:30 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|