From owner-freebsd-ports@FreeBSD.ORG Fri Apr 1 00:52:20 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97704106566C for ; Fri, 1 Apr 2011 00:52:20 +0000 (UTC) (envelope-from jhelfman@experts-exchange.com) Received: from mail.experts-exchange.com (mail.experts-exchange.com [72.29.183.251]) by mx1.freebsd.org (Postfix) with ESMTP id 75EA58FC13 for ; Fri, 1 Apr 2011 00:52:20 +0000 (UTC) Received: from mail.experts-exchange.com (localhost [127.0.0.1]) by mail.experts-exchange.com (Postfix) with ESMTP id 2A8CE745ECD; Thu, 31 Mar 2011 17:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=e-e.com; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received:received; s=ee; t= 1301619140; x=1303433540; bh=KbUHx18jXq+bIwgLV+s25S123GlTKBu9Hp9 IjO77jE4=; b=i/n6jietMyAtrxNG5HvuVN8Whd6AuAdsCVIh8mvpUPIRBfUDtJb ZefxkL2TWOm9A6yE60T3VyFiUyjYbu7P29myRp1a0P6kKOxwJ9INzf6Dj+7Wikz2 8i7WeZkOJr22n/HYM0p0z7lhixS+7vM2TMjFSIW2jtevUp4k83dr+CmA= X-Virus-Scanned: amavisd-new at experts-exchange.com Received: from mail.experts-exchange.com ([127.0.0.1]) by mail.experts-exchange.com (mail.experts-exchange.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gRbiu0aNVCaE; Thu, 31 Mar 2011 17:52:20 -0700 (PDT) Received: from experts-exchange.com (unknown [72.29.180.81]) by mail.experts-exchange.com (Postfix) with SMTP id C57F8745ECC; Thu, 31 Mar 2011 17:52:19 -0700 (PDT) Received: (nullmailer pid 84674 invoked by uid 1001); Fri, 01 Apr 2011 00:48:50 -0000 Date: Thu, 31 Mar 2011 17:48:50 -0700 From: Jason Helfman To: Patrick Powell Message-ID: <20110401004850.GH30711@eggman.experts-exchange.com> References: <4D952102.4020101@astart.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <4D952102.4020101@astart.com> X-Operating-System: FreeBSD 8.2-RELEASE X-Living-The-Dream: I love the SLO Life! User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org Subject: Re: Automating Port Building- Setting options on the command line X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 00:52:20 -0000 On Thu, Mar 31, 2011 at 05:49:06PM -0700, Patrick Powell thus spake: >First, before you tell me to do it, I have already RTFM, done a google >search, >and even looked for examples. Here is what I am trying to do. > >I have to generate a set of packages for amd64 and i386 systems. > >I usually have a simple script that does: > >cd /usr/ports/XXX >make >make install >make package >cp /.../repository > > >This served my simple needs well, as most of the time I had gone through >the configuration process and set up the default options that I wanted. > >But this requires me to >a) run through this process once by hand >b) copy the /var/db/ports/* to a machine with another > architecture >c) pray that the port options are the same on the i386 and amd64 > versions. > > >What I would like to do is pass in a set of default options on the >command line >such as: > >cd /usr/ports/lang/php5-extensions >make configure THIS=yes THAT=no >make >make install >make package > >I just know that somebody out there is doing this better, slicker, >and with more savvy than I am doing this. > >OK. How do I do this? And just in case there are some others out there, >could you put this information, or a hint to it, in the ports(7) document? > >-- >Patrick Powell Astart Technologies >papowell@astart.com 1530 Jamacha Road, Suite X, >Network and System San Diego, CA 92019 > Consulting 858-874-6543 >Web Site: www.astart.com > IMHO it is time you look into the wonders of Tinderbox. http://tinderbox.marcuscom.com/ -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5