From owner-freebsd-ports@FreeBSD.ORG Sat Jan 1 02:40:46 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 CC4D9106564A; Sat, 1 Jan 2011 02:40:46 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 774868FC08; Sat, 1 Jan 2011 02:40:46 +0000 (UTC) Received: by gwj21 with SMTP id 21so6154938gwj.13 for ; Fri, 31 Dec 2010 18:40:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to:date :message-id:subject:from:to:cc:content-type; bh=+NRUvodL7lI/5hInH1L5vV6HH1JNlcURDQ77fHUVhEo=; b=BaBdCsuRm2mgcdV+QgfRr5uVaBnh6WyaND2AJuiCglW7TLh/eHn1ZFAzBFdQDH/XTM mSfMlAtRdbWqsUuS/Ie++IfGbQRxOXURbZOmjh4XuRjpZg9ydeJKvsH+rHHvpvs7PZd2 LjzdsWZenw5T61OB+D28ppinyv28Q1baghNU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=FMe5t1DWocCBFmfZQifKx0/iPAUxLjBHKoln//YZrqpOrS5c/ymPXlqBGh/hiDwlYT Dw4aemY6rYdkuvlbil5S3dvygJnWf4gGppDHFbb6+2/u40qzRclcAaoBqDDVSDj5TzCz kwTnhuQSmYfz9UPzOqZC5hAnBsD4Ido9Fv7JE= MIME-Version: 1.0 Received: by 10.236.103.38 with SMTP id e26mr14126321yhg.88.1293849645628; Fri, 31 Dec 2010 18:40:45 -0800 (PST) Received: by 10.236.105.197 with HTTP; Fri, 31 Dec 2010 18:40:45 -0800 (PST) Date: Sat, 1 Jan 2011 02:40:45 +0000 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 Cc: dougb@FreeBSD.org Subject: Re: ports-mgmt/portconf , ports-mgmt/portmaster and make args X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2011 02:40:46 -0000 > On 12> On 12/31/2010 01:10, marco wrote: > > Here is what i'd like to achieve: > > > > use portmaster with the -P option (using PM_PACKAGES=first in > > /usr/local/etc/portmaster.rc) to have a package installed if > > available,_but_ when a port matches a port I've defined in > > /usr/local/etc/ports.conf to use certain make args then_don't_ > > install the package but actually build the port. > > > > Is that achievable using the portmaster and portconf ports? > > In a word, no, which makes using the option in portmaster.rc less > desirable of course. > > If someone can come up with a programmatic way of determining if such > settings exist in ports.conf I'd be willing to consider adding the > support, but given the wide variety of syntax that is supported I think > such a thing would be difficult. > /31/2010 01:10, marco wrote: > > Here is what i'd like to achieve: > > > > use portmaster with the -P option (using PM_PACKAGES=first in > > /usr/local/etc/portmaster.rc) to have a package installed if > > available,_but_ when a port matches a port I've defined in > > /usr/local/etc/ports.conf to use certain make args then_don't_ > > install the package but actually build the port. > > > > Is that achievable using the portmaster and portconf ports? > > In a word, no, which makes using the option in portmaster.rc less > desirable of course. > > If someone can come up with a programmatic way of determining if such > settings exist in ports.conf I'd be willing to consider adding the > support, but given the wide variety of syntax that is supported I think > such a thing would be difficult. You don't need to go to those lengths. You could just add a command-line switch, or a check for a cookie (.buildme or .nopkg, say) in the corresponding PORT_DBDIR subdirector(y|ies), or both, to allow the user to indicate to portmaster that it should always build the port(s) in question, even if -P is used. b.