From owner-freebsd-python@freebsd.org Mon Sep 25 11:59:35 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9116BE11BB6; Mon, 25 Sep 2017 11:59:35 +0000 (UTC) (envelope-from helen.koike@collabora.com) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "bhuna.collabora.co.uk", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A8BA77CA2; Mon, 25 Sep 2017 11:59:35 +0000 (UTC) (envelope-from helen.koike@collabora.com) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id C08FD26BC10 Subject: Re: Question: How to add a configuration file with autoplist ? To: Chris Rees , koobs@freebsd.org Cc: owner-freebsd-python@freebsd.org, freebsd-ports@freebsd.org, FreeBSD Python References: <653c54013f30b682d6d96b65fb8212a0@FreeBSD.org> From: Helen Koike Message-ID: Date: Mon, 25 Sep 2017 08:59:25 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <653c54013f30b682d6d96b65fb8212a0@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 11:59:35 -0000 Hi, On 2017-09-25 08:10 AM, Chris Rees wrote: > On 2017-09-25 05:54, Kubilay Kocak wrote: >> On 9/25/17 6:16 AM, Helen Koike wrote: >>> Hi, >>> >>> According to >>> https://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html >>> , I need to add a @sample macro in pkg-plist to add a configuration >>> file. >>> >>> But I am also using USE_PYTHON= autoplist in my Makefile, so I don't >>> have the pkg-plist file. >>> >>> Should I remove autoplist and generate the pkg-plist by hand? Or is >>> there another way to do this? >>> >>> I'll need this to update the version of the package >>> sysutils/py-google-compute-engine. >>> >>> Thanks >>> Helen >> >> Hi Helen, >> >> As far as I'm aware, autoplist, PLIST_* definitions and pkg-plist >> entries can be used cumulatively (in combination with each other) to >> produce a correct and complete installed files lis>> Thanks, I didn't know that. > > Careful doing that!  If you do, you may find the sample file gets listed > twice, or worse the actual config file gets listed. > > If you want to view the final generated plist then in the normal ports > directory: > > % make package > % less `make -VTMPPLIST` Awesome, thanks a lot. > > (those are backticks). > > It's probably harmless to have a file listed twice, but if you list the > actual config file it gets blown away on each update. > > Cheers, > > Chris > Helen