aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql41-server/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql41-server/Makefile')
-rw-r--r--databases/mysql41-server/Makefile49
1 files changed, 31 insertions, 18 deletions
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index 108782feabd..8e7bbe5ed1a 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -1,12 +1,13 @@
-# ports collection makefile for: MySQL
-# Version required: v3.22.23b
+# ports collection makefile for: MySQL-server
+# Version required: v3.22.x
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.55 1999/06/22 17:01:39 steve Exp $
+# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
#
DISTNAME= mysql-3.22.23b
+PKGNAME?= ${DISTNAME:S/-/-server-/}
CATEGORIES= databases
MASTER_SITES= http://www.fh-wolfenbuettel.de/ftp/pub/database/mysql/Downloads/MySQL-3.22/ \
ftp://ftp.digex.net/pub/packages/database/mysql/Downloads/MySQL-3.22/ \
@@ -22,8 +23,6 @@ BROKEN= doesn\'t build on the alpha yet
Y2K= http://www.tcx.se/Manual_chapter/manual_Introduction.html#Year_2000_compliance
-MAN1= mysql.1
-
USE_PERL5= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
@@ -37,6 +36,9 @@ CONFIGURE_ENV+= PERL=${PERL} \
CXXFLAGS="${CFLAGS}" \
CONFIGURE_ARGS="${CONFIGURE_ARGS}"
+.if !defined(CLIENT_ONLY)
+RUN_DEPENDS= mysql:${PORTSDIR}/databases/mysql322-client
+
.include <bsd.port.pre.mk>
.if defined(NATIVE_THREADS) && ${OSVERSION} >= 300000
@@ -70,24 +72,21 @@ pre-fetch:
pre-install:
.if !defined(PACKAGE_BUILDING)
- @ ${SETENV} ${MAKE_ENV} ${PERL5} ${SCRIPTDIR}/check_old_version
+ @${SETENV} ${MAKE_ENV} ${PERL5} ${SCRIPTDIR}/check_old_version
.endif
post-install:
- ${MKDIR} ${PREFIX}/share/mysql/mysql
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
.endif
- @ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh
- @ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh
- @ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
- @ ${ECHO} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${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 > /dev/null & && ${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
+ @${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/mysql
@@ -98,6 +97,20 @@ post-install:
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
+.include <bsd.port.post.mk>
+.else
+MAN1= mysql.1
+
+CONFIGURE_ARGS+=--without-server
+MAKE_ENV= CLIENT_ONLY="${CLIENT_ONLY}"
+
+post-install:
+ @${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-client.sh
+ @${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-client.sh
+ @${ECHO} "${LDCONFIG} -m ${PREFIX}/lib/mysql" >> ${PREFIX}/etc/rc.d/mysql-client.sh
+ @/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-client.sh
+
${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/mysql
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
+.endif