From owner-freebsd-ports@FreeBSD.ORG Fri Apr 1 01:04:02 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 12CE0106564A for ; Fri, 1 Apr 2011 01:04:02 +0000 (UTC) (envelope-from papowell@astart.com) Received: from astart2.astart.com (99-111-96-109.uvs.sndgca.sbcglobal.net [99.111.96.109]) by mx1.freebsd.org (Postfix) with ESMTP id C565C8FC0C for ; Fri, 1 Apr 2011 01:04:01 +0000 (UTC) Received: from laptop_81.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.4/8.14.4) with ESMTP id p31140df003185; Thu, 31 Mar 2011 18:04:00 -0700 (PDT) (envelope-from papowell@astart.com) Message-ID: <4D95247E.6090807@astart.com> Date: Thu, 31 Mar 2011 18:03:58 -0700 From: Patrick Powell Organization: Astart Technologies User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110312 Thunderbird/3.1.9 MIME-Version: 1.0 To: Jason Helfman References: <4D952102.4020101@astart.com> <20110401004850.GH30711@eggman.experts-exchange.com> In-Reply-To: <20110401004850.GH30711@eggman.experts-exchange.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Reply-To: papowell@astart.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 01:04:02 -0000 On 03/31/11 17:48, Jason Helfman wrote: > 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 > OK, I ripped the tinderbox documentation. It is, more than likely, based on my 20 minute reading, going to do EXACTLY what I want. However, I think I might add that there is a bit of a learning curve here - actually, more like a learning 'splat against a brick wall'. Ok, if it needs tinderbox, then I will learn tinderbox. BUT!!! Is there an idiot simple, put this on the command line alternative to this to handle the 3 (three) !@#$!@#$!@#$ ports that require me to hand tune them? Patrick ("This is the Brick Wall that we hit during development. And those are the bodies of the developers") Powell -- 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