From owner-freebsd-ports@FreeBSD.ORG Sat Jan 1 12:51:30 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 487DC106566C for ; Sat, 1 Jan 2011 12:51:30 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 053B38FC1E for ; Sat, 1 Jan 2011 12:51:29 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 6060B19E030; Sat, 1 Jan 2011 13:51:28 +0100 (CET) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 1969F19E02E; Sat, 1 Jan 2011 13:51:26 +0100 (CET) Message-ID: <4D1F234D.5010506@quip.cz> Date: Sat, 01 Jan 2011 13:51:25 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11 MIME-Version: 1.0 To: Doug Barton References: <20101231091044.GA98464@lordsith.net> <4D1E8866.7050509@FreeBSD.org> In-Reply-To: <4D1E8866.7050509@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: marco , freebsd-ports 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 List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2011 12:51:30 -0000 Doug Barton wrote: > 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. If I understand OP well, isn't it possible to use something like this as a starting point? # grep '^[[:alnum:]]' /usr/local/etc/ports.conf | cut -d: -f 1 databases/mysql50-* databases/phpmyadmin databases/sqlite3 devel/pcre devel/subversion ftp/bsdftpd-ssl ftp/proftpd ftp/proftpd-mysql java/jdk15 lang/php5 mail/courier-imap mail/p5-Mail-SpamAssassin security/amavisd-new security/courier-authlib security/cyrus-sasl2 sysutils/apachetop www/apache22 www/lighttpd Then you can use this list of ports as glob patterns for "exclusion" of binary packages (use ports instead) Miroslav Lachman