From owner-freebsd-ports Sun Jun 27 13:50: 3 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BAB2415101 for ; Sun, 27 Jun 1999 13:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA29539; Sun, 27 Jun 1999 13:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from november.jaded.net (november.jaded.net [216.94.113.4]) by hub.freebsd.org (Postfix) with ESMTP id 3D42F14DD7 for ; Sun, 27 Jun 1999 13:44:23 -0700 (PDT) (envelope-from dan@november.jaded.net) Received: (from dan@localhost) by november.jaded.net (8.9.3/8.9.3+trinsec_nospam) id QAA48075; Sun, 27 Jun 1999 16:54:54 -0400 (EDT) Message-Id: <199906272054.QAA48075@november.jaded.net> Date: Sun, 27 Jun 1999 16:54:54 -0400 (EDT) From: dan@trinsec.com Reply-To: dan@trinsec.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/12416: Patch against databases/mysql322 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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