From owner-freebsd-ports@FreeBSD.ORG Mon Aug 6 14:38:05 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 74953106564A; Mon, 6 Aug 2012 14:38:05 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 5065B14E1F0; Mon, 6 Aug 2012 14:38:05 +0000 (UTC) Message-ID: <501FD6CD.5030303@FreeBSD.org> Date: Mon, 06 Aug 2012 07:38:05 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Bryan Drewery References: <501C71A8.4080505@FreeBSD.org> <501F7994.305@FreeBSD.org> <501FC7D4.6020504@FreeBSD.org> In-Reply-To: <501FC7D4.6020504@FreeBSD.org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org Subject: Re: [RFC] bsd.port.mk: Record OPTIONS into /var/db/pkg on install 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: Mon, 06 Aug 2012 14:38:05 -0000 On 08/06/2012 06:34 AM, Bryan Drewery wrote: > On 8/6/2012 3:00 AM, Doug Barton wrote: >> I would also like to see us embed the distfile information, either in >> +CONTENTS or in its own file. This information is very useful for tools >> like portmaster to better handle automated distfile cleanup. >> >> hth, > > I like that idea. My only feedback is to make the auto-delete on > deinstall be optional in bsd.port.mk. They may turnaround and reinstall > it right away and not want to waste the bandwidth again. > > Makes sense for port building tools to wipe the old files on upgrade! Sorry I wasn't clear, I use the information on the old package to delete the old distfiles, after first comparing to the list of distfiles used by other ports to make sure that it isn't in use elsewhere (such as QT). In portmaster un-installing the port is a different option from upgrading, and has a component of deleting the current distfiles if the user chooses it.