blob: bf6fb2ef482197c29166e75b063734f5fde7b8d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# ports collection makefile for: mySQL
# Version required: v3.20.25
# Date created: 11 Aug 1997
# Whom: Josh Tiefenbach <josh@ican.net>
#
# $Id: Makefile,v 1.2 1997/07/18 05:04:06 asami Exp $
#
DISTNAME= mysql-3.20.25
CATEGORIES= databases
MASTER_SITES= http://www.tcx.se/ \
http://www.buoy.com/mysql/ \
http://web.tryc.on.ca/mysql/ \
http://mysql.staufen.de/ \
http://mysql.acer.net/
MAINTAINER= josh@ican.net
RUN_DEPENDS= perl5.00401:${PORTSDIR}/lang/perl5
USE_GMAKE= 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
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
@ 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 /usr/local/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql.sh
@ echo "then" >> ${PREFIX}/etc/rc.d/mysql.sh
@ echo " /usr/local/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 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>
|