From owner-freebsd-python@freebsd.org Mon Sep 25 11:40:07 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 B8BAAE11631; Mon, 25 Sep 2017 11:40:07 +0000 (UTC) (envelope-from crees@freebsd.org) Received: from mail56c50.megamailservers.eu (mail168c50.megamailservers.eu [91.136.10.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BAD8B774C4; Mon, 25 Sep 2017 11:40:06 +0000 (UTC) (envelope-from crees@freebsd.org) X-Authenticated-User: bayofrum.uwclub.net Received: from pegasus.bayofrum.net (host-80-41-56-156.as13285.net [80.41.56.156]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id v8PBAHpB028891; Mon, 25 Sep 2017 11:10:18 +0000 Received: from www.bayofrum.net (unknown [192.168.1.70]) by pegasus.bayofrum.net (Postfix) with ESMTPA id C33CF75A9B; Mon, 25 Sep 2017 12:10:14 +0100 (BST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 25 Sep 2017 12:10:14 +0100 From: Chris Rees To: koobs@freebsd.org Cc: Helen Koike , freebsd-ports@freebsd.org, FreeBSD Python , owner-freebsd-python@freebsd.org Subject: Re: Question: How to add a configuration file with autoplist ? In-Reply-To: References: Message-ID: <653c54013f30b682d6d96b65fb8212a0@FreeBSD.org> X-Sender: crees@FreeBSD.org User-Agent: Roundcube Webmail/1.3.0 X-bayofrum-MailScanner-Information: Please contact the ISP for more information X-bayofrum-MailScanner-ID: C33CF75A9B.ACC6E X-bayofrum-MailScanner: Found to be clean X-bayofrum-MailScanner-From: crees@freebsd.org X-Spam-Status: No X-CTCH-RefID: str=0001.0A0B0201.59C8E41B.004F, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.2 cv=F+4nTupN c=1 sm=1 tr=0 a=eImF4KVNE/MQsd0gg/pNFQ==:117 a=eImF4KVNE/MQsd0gg/pNFQ==:17 a=kj9zAlcOel0A:10 a=2JCJgTwv5E4A:10 a=6I5d2MoRAAAA:8 a=eusMM7wKLoswp0_WqU4A:9 a=CjuIK1q_8ugA:10 a=KVADu5cfNKgA:10 a=SfIcCtFDtlwA:10 a=IjZwj45LgO3ly-622nXo:22 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:40:07 -0000 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 list > 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` (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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.