mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
96b85ccd44
Submitted by: Josh Tiefenbach <josh@ican.net>
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
# ports collection makefile for: mySQL
|
|
# Version required: v3.21.19
|
|
# Date created: 29 Dec 1997
|
|
# Whom: Josh Tiefenbach <josh@ican.net>
|
|
#
|
|
# $Id: Makefile,v 1.12 1997/12/04 11:44:46 asami Exp $
|
|
#
|
|
|
|
DISTNAME= mysql-3.21.19-beta
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.tcx.se/Downloads/MySQL-3.21/ \
|
|
http://www.buoy.com/mysql/ \
|
|
http://web.tryc.on.ca/mysql/
|
|
|
|
MAINTAINER= josh@ican.net
|
|
|
|
USE_GMAKE= YES
|
|
USE_PERL5= YES
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
|
|
--with-MAKE=gmake \
|
|
--without-perl \
|
|
--without-debug \
|
|
--without-readline
|
|
CONFIGURE_ENV+= PERL=${PREFIX}/bin/perl INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
|
|
|
pre-install:
|
|
.if defined(PACKAGE_BUILDING)
|
|
@ ${RM} -rf /var/db/mysql
|
|
.endif
|
|
@ ${SETENV} ${MAKE_ENV} /usr/bin/perl ${SCRIPTDIR}/check_old_version
|
|
|
|
post-install:
|
|
cd ${WRKSRC} && ${WRKSRC}/scripts/mysql_install_db
|
|
@ /usr/bin/killall mysqld
|
|
@ ${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
|
|
@ /bin/chmod 750 ${PREFIX}/etc/rc.d/mysql.sh
|
|
${MKDIR} ${PREFIX}/share/doc/mysql
|
|
.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
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|