diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 1999-07-01 08:44:49 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 1999-07-01 08:44:49 +0000 |
commit | cfc2f82c244e3a3e71c309201a5a9258e0546785 (patch) | |
tree | 7356bab29711494309e78e681474fce69d2ffea8 /databases/percona55-server/Makefile | |
parent | Remove mysql322-client. (diff) |
Split mysql322 into mysql322-client and mysql322-server.
mysql322-client uses mysql322-server as a master port. So
all the magic is in mysql322-server.
mysql322-client must be used to add dependencies to, now.
Thanks to Dan Moschuk <dan@trinsec.com> for giving the initial
point.
Notes
Notes:
svn path=/head/; revision=19930
Diffstat (limited to 'databases/percona55-server/Makefile')
-rw-r--r-- | databases/percona55-server/Makefile | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile index 108782feabd2..8e7bbe5ed1a6 100644 --- a/databases/percona55-server/Makefile +++ b/databases/percona55-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 |