From owner-freebsd-ports@FreeBSD.ORG Fri Jan 4 21:03:29 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 78BC8B4D for ; Fri, 4 Jan 2013 21:03:29 +0000 (UTC) (envelope-from tiger@agava.com) Received: from fallback.relay.agava.net (fallback.relay.agava.net [89.108.104.202]) by mx1.freebsd.org (Postfix) with ESMTP id 0A44790F for ; Fri, 4 Jan 2013 21:03:28 +0000 (UTC) Received: from mx2-out.relay.agava.net (mx2-out.relay.agava.net [89.108.96.10]) by fallback.relay.agava.net (Postfix) with ESMTP id 09CAF20C20B for ; Sat, 5 Jan 2013 00:57:26 +0400 (MSK) Received: from agava.com (office.relay2.agava.net [89.108.96.5]) by mx2-out.relay.agava.net (Postfix) with ESMTP id 5A40F793D7; Sat, 5 Jan 2013 00:57:19 +0400 (MSK) Received: from gate.minsk.agava.net (unknown [192.168.9.1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by agava.com (Postfix) with ESMTPS id 15C8B793D6; Sat, 5 Jan 2013 00:57:19 +0400 (MSK) Received: from gate.minsk.agava.net (gate.minsk.domain [192.168.9.1]) by gate.minsk.agava.net (Postfix) with ESMTP id 8C93F140A02; Fri, 4 Jan 2013 23:51:46 +0300 (FET) Received: from laptop (unknown [178.125.119.86]) by gate.minsk.agava.net (Postfix) with ESMTPA id 45BDC13D950; Fri, 4 Jan 2013 23:51:46 +0300 (FET) Date: Fri, 4 Jan 2013 23:57:17 +0300 From: "Sergey V. Dyatko" To: freebsd-ports@freebsd.org Subject: Re: USE_MYSQL Message-ID: <20130104235717.7be81634@laptop> In-Reply-To: <20130104235029.1d54791f@laptop> References: <20130104230442.10f2b57f@laptop> <20130104235029.1d54791f@laptop> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV on mail.minsk.agava.net Cc: Helmut Schneider X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 21:03:29 -0000 On Fri, 4 Jan 2013 23:50:29 +0300 "Sergey V. Dyatko" wrote: > On Fri, 4 Jan 2013 20:17:29 +0000 (UTC) > "Helmut Schneider" wrote: > > > Sergey V. Dyatko wrote: > > > > > On Fri, 4 Jan 2013 19:38:05 +0000 > > > Chris Rees wrote: > > > > > > > On 4 Jan 2013 19:06, "Helmut Schneider" wrote: > > > > > > > > > > Hi, > > > > > > > > > > what does USE_MYSQL=yes do, require mysql-server, or > > > > > mysql-client? If mysql-client, how can I depend on the server > > > > > (or v.v.)? > > > > > > > > Client. Using WANT_MYSQL_VER or IGNORE_MYSQL_VER will allow you > > > > to choose versions; see Mk/bsd.database.mk. > > > > > > > > Currently you can't depend on mysql-server; is there a reason > > > > you would want to? > > > > > > > > > > > metaport, for example. > > > > > > In that case RUN_DEPENDS his friend, I think :) > > > > Not sure. I maintain an application where you may or may not install > > mysql-server locally. I'd like to add an option (default off) to > > install mysql-server locally. > > > possible something like... > > > RUN_DEPENDS+= > ${LOCALBASE}/bin/mysql:${PORTSDIR}/databases/mysql55-server > .endif > > hm... error ^^^^^.. s/bin/libexec/ and should be something like this: .if ${PORT_OPTIONS:MWITH_MYSQL_SERVER} USE_MYSQL= server .endif -- wbr, tiger