1997-06-18 15:35:30 -04:00
|
|
|
# ports collection makefile for: mySQL
|
1997-10-29 09:43:35 -05:00
|
|
|
# Version required: v3.20.32a
|
|
|
|
# Date created: 28 Oct 1997
|
1997-06-18 15:35:30 -04:00
|
|
|
# Whom: Josh Tiefenbach <josh@ican.net>
|
|
|
|
#
|
1997-11-26 18:35:27 -05:00
|
|
|
# $Id: Makefile,v 1.10 1997/11/18 19:05:12 jfitz Exp $
|
1997-06-18 15:35:30 -04:00
|
|
|
#
|
|
|
|
|
1997-10-29 09:43:35 -05:00
|
|
|
DISTNAME= mysql-3.20.32a
|
1997-06-18 15:35:30 -04:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.tcx.se/ \
|
|
|
|
http://www.buoy.com/mysql/ \
|
1997-11-26 18:35:27 -05:00
|
|
|
http://web.tryc.on.ca/mysql/
|
1997-06-18 15:35:30 -04:00
|
|
|
|
|
|
|
MAINTAINER= josh@ican.net
|
|
|
|
|
|
|
|
USE_GMAKE= YES
|
1997-11-26 18:35:27 -05:00
|
|
|
USE_PERL5= YES
|
1997-06-18 15:35:30 -04:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
|
|
|
--with-MAKE=gmake \
|
|
|
|
--without-perl \
|
|
|
|
--without-debug \
|
|
|
|
--without-readline
|
1997-09-17 09:28:51 -04:00
|
|
|
CONFIGURE_ENV+= PERL=${PREFIX}/bin/perl INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
1997-06-18 15:35:30 -04:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/check_old_version
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC} && ${WRKSRC}/scripts/mysql_install_db
|
|
|
|
@ /usr/bin/killall mysqld
|
1997-11-26 18:35:27 -05: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 15:35:30 -04:00
|
|
|
@ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mysql
|
|
|
|
.for doc in mysql-faq.html mysql-faq.ps mysql-faq_toc.html mysql-faq.txt mysql-faq.texi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/FAQs/${doc} ${PREFIX}/share/doc/mysql
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|