From owner-freebsd-ports@FreeBSD.ORG Mon Jun 16 13:40:58 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1968F828; Mon, 16 Jun 2014 13:40:58 +0000 (UTC) Received: from hades.sorbs.net (hades.sorbs.net [67.231.146.201]) by mx1.freebsd.org (Postfix) with ESMTP id 05EA12286; Mon, 16 Jun 2014 13:40:57 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from isux.com (firewall.isux.com [213.165.190.213]) by hades.sorbs.net (Oracle Communications Messaging Server 7.0.5.29.0 64bit (built Jul 9 2013)) with ESMTPSA id <0N7900H6TKTTPK00@hades.sorbs.net>; Mon, 16 Jun 2014 06:44:19 -0700 (PDT) Message-id: <539EF3E6.4050502@sorbs.net> Date: Mon, 16 Jun 2014 15:40:54 +0200 From: Michelle Sullivan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.24) Gecko/20100301 SeaMonkey/1.1.19 To: lev@FreeBSD.org Subject: Re: How to pick up options from another ("master") port, but don't show "config" dialog at all and have defaults in case of absence of "master" port options file? References: <661714484.20140616162734@serebryakov.spb.ru> In-reply-to: <661714484.20140616162734@serebryakov.spb.ru> Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 13:40:58 -0000 Lev Serebryakov wrote: > Hello, Ports. > > I want some "dependant" ports to pick-up options set in "main" port, but > never ever show "config" dialog/UI. I've tried to set > OPTIONS_NAME=cat_port, and it set OPTIONS_FILE_SET and OPTIONS_FILE_UNSET > variables, but not PORT_OPTIONS variable, as this exact ("dependant") port > doesn't have OPTIONS_DEFINE (of course). > > What is proper way to use options in this situation? OPTIONS_SLAVE doesn't > look right, as it override options file. I need something like > OPTIONS_SLAVE_DEFAULT, which will work as OPTIONS_SLAVE if here is no > ${OPTIONS_FILE} and could be overridden by ${OPTIONS_FILE}, if it is > present. > > Have a look at editors/pico-alpine and mail/alpine that does exactly what you're asking I think. Michelle -- Michelle Sullivan http://www.mhix.org/