From owner-freebsd-ports@FreeBSD.ORG Tue Oct 11 07:47:06 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1017816A41F for ; Tue, 11 Oct 2005 07:47:06 +0000 (GMT) (envelope-from nick-lists@netability.ie) Received: from mail.acquirer.com (mail.acquirer.com [213.94.200.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0798543D5A for ; Tue, 11 Oct 2005 07:47:00 +0000 (GMT) (envelope-from nick-lists@netability.ie) Received: from crumpet.netability.ie ([IPv6:2001:610:241:0:209:5bff:fe92:2b0c]) by mail.acquirer.com (8.13.4/8.13.4) with ESMTP id j9B7l68l080308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 11 Oct 2005 08:47:14 +0100 (IST) (envelope-from nick-lists@netability.ie) X-Envelope-To: ports@freebsd.org Received: from localhost (localhost [IPv6:::1]) by crumpet.netability.ie (8.13.3/8.13.3) with ESMTP id j9B8kbKQ019886; Tue, 11 Oct 2005 09:46:40 +0100 (IST) (envelope-from nick-lists@netability.ie) From: Nick Hilliard To: Brooks Davis In-Reply-To: <20051010214813.GD24213@odin.ac.hmc.edu> References: <1128959405.30953.4.camel@localhost.netability.ie> <20051010214813.GD24213@odin.ac.hmc.edu> Content-Type: text/plain Date: Tue, 11 Oct 2005 09:46:37 +0100 Message-Id: <1129020397.11029.10.camel@localhost.netability.ie> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on muffin.acquirer.com X-Virus-Scanned: ClamAV devel-20050516/1128/Tue Oct 11 02:30:06 2005 on muffin.acquirer.com X-Virus-Status: Clean Cc: ports@freebsd.org Subject: Re: How to detect portupgrade and barf 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: Tue, 11 Oct 2005 07:47:06 -0000 > Do what needs to be done in the deinstall script of the package. If you > can't do that for some reason, you must find a way to have them both > installed at once that is supported by the ports collection. Short > of some sort of new port per version scheme I don't see a way to do > that. Hi Brooks, Both old and new package will be installed in version specific directories, so no overlap will occur and the versions can be used and run simultaneously. The problem is how to detect whether portupgrade is being used to run the pkg_delete, or whether pkg_delete is being run directly from the command line. Is this supported, or is there some good or recommended way of doing this? Nick