From owner-freebsd-ports@FreeBSD.ORG Fri Aug 6 22:12:01 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B6AE1065673 for ; Fri, 6 Aug 2010 22:12:01 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id B50698FC0C for ; Fri, 6 Aug 2010 22:12:00 +0000 (UTC) Received: (qmail 11675 invoked by uid 399); 6 Aug 2010 22:11:59 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 6 Aug 2010 22:11:59 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4C5C88AE.4070500@FreeBSD.org> Date: Fri, 06 Aug 2010 15:11:58 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.7) Gecko/20100804 Thunderbird/3.1.1 MIME-Version: 1.0 To: Adam Vande More References: <4C5BC280.1070805@FreeBSD.org> <4C5BF352.5050004@dataix.net> <4C5C7DFF.8020400@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: i keep *trying* to move from portupgrade to portmaster 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: Fri, 06 Aug 2010 22:12:01 -0000 On 08/06/2010 15:03, Adam Vande More wrote: > While your in the mood for for taking portmaster suggestions, I am always in the mood for taking suggestions. :) > I think an > option to backup all currently installed packages would be useful. for pkg in /var/db/pkg/* ; do pkg_create -b $pkg done > I > have a python script that does this for me, but it would be easy enough > to use sh as well. I do this because there have been too many times > something has broken during a port upgrade run and I need to revert > immediately and fix later. I realize the backup package feature sort of > does the same thing, but reconciling the pre- and post- updates is a > tough thing for me. Having a user defined directory all currently > installed ports can be put in is much easier to work with IMO. I know of > other people doing similar things because I shared my script on > questions- and got a few responses awhile ago. It sounds like you want to add the option(s) for "create and keep a backup package of an installed port" and/or "create a package of the new port" either to your command line, wrapper script, or a portmaster rc file. You could use the command line above to create an up to date repository of your currently installed packages, and the 2 options above would both make sure you can back out an update and keep your local package repo up to date automatically. In the upcoming portmaster version there is also a new feature to clean out stale stuff from your $PACKAGES directory similarly to the way the feature to clean out stale distfiles works now, which should help you in keeping the repository described above fairly un-crufty. hth, Doug -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso