Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jun 1999 16:54:54 -0400 (EDT)
From:      dan@trinsec.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12416: Patch against databases/mysql322
Message-ID:  <199906272054.QAA48075@november.jaded.net>

next in thread | raw e-mail | index | archive | help

>Number:         12416
>Category:       ports
>Synopsis:       Clean up of mysql322 and mysql322-client
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 27 13:50:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Dan Moschuk
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:
n/r
>Description:
The following is a patch against databases/mysql322 to allow the building of
a client only install of the MySQL 3.22.xx port.  The databases/mysql322-client
port uses this as a master port.
>How-To-Repeat:
n/r
>Fix:

diff -Nru mysql322.old/Makefile mysql322/Makefile
--- mysql322.old/Makefile	Sun Jun 27 15:49:51 1999
+++ mysql322/Makefile	Sun Jun 27 15:50:12 1999
@@ -31,6 +31,13 @@
 		--without-debug \
 		--without-readline \
 		--without-bench
+.if defined(CLIENT_ONLY)
+CONFIGURE_ARGS+=	--without-server
+DISTNAME=	mysql-3.22.23b-client
+DISTFILES=	mysql-3.22.23b.tar.gz
+WRKSRC=		${WRKDIR}/mysql-3.22.23b
+.endif
+
 CONFIGURE_ENV+=	PERL=${PERL} \
 		PERL5=${PERL} \
 		INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
@@ -75,9 +82,10 @@
 
 post-install:
 	${MKDIR} ${PREFIX}/share/mysql/mysql
-.if !defined(PACKAGE_BUILDING)
+.if !defined(PACKAGE_BUILDING) && !defined(CLIENT_ONLY)
 	${PREFIX}/bin/mysql_install_db
 .endif
+.if !defined(CLIENT_ONLY)
 	@ ${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql.sh
 	@ ${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql.sh
 	@ ${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql.sh
@@ -88,6 +96,7 @@
 	@ ${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
+.endif
 
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${PREFIX}/share/doc/mysql

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906272054.QAA48075>