From owner-freebsd-ports@FreeBSD.ORG Mon Sep 11 19:57:29 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5FA316A4C8 for ; Mon, 11 Sep 2006 19:57:29 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.FreeBSD.org (Postfix) with SMTP id ACFC443D5A for ; Mon, 11 Sep 2006 19:57:11 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 16120 invoked by uid 399); 11 Sep 2006 19:57:11 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 11 Sep 2006 19:57:11 -0000 Message-ID: <4505BF93.30201@FreeBSD.org> Date: Mon, 11 Sep 2006 12:57:07 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Doug Hardie References: In-Reply-To: X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-PORTS Subject: Re: portconf port 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: Mon, 11 Sep 2006 19:57:30 -0000 Doug Hardie wrote: > I have been trying to figure out how to configure portconf. The 3 > examples given are not much help with complex ports. I am starting with > the dspam port (mail/dspam) as if I can figure that one out the rest > should be easy. That's kind of backwards, but ok. :) The first thing you need to know (and you're not alone in your confusion on this) is that portconf is not a replacement for OPTIONS. What portconf allows you to do is store flags on a per port basis that in the past were usually stored in make.conf, and therefore were global to all ports. If a port already has OPTIONS, it doesn't make much sense to try to use portconf (or make.conf) instead. Also, the OPTIONS framework doesn't modify its behavior based on your flags in make.conf/ports.conf to start with, so you're better off using it as it was designed. > I first tried to use the arguments from the configure > command: That wouldn't have worked (to prevent downloading spurious dependencies) in make.conf either, so it won't work here. > Then I tried to select the options from Makefile entering the options I > wanted (haven't figured out how to sent the drectories though): > That skips the options selection menu fine, The two have nothing to do with each other. You should have seen a message to the effect of "found a saved configuration for ..." which means that by default the config target won't bring up the OPTIONS menu again, since there is already a saved options file for that port. To edit the OPTIONS flags you need to either do 'make config' or 'make rmconfig ; make'. hth, Doug -- This .signature sanitized for your protection