From owner-freebsd-ports@FreeBSD.ORG Sat Feb 9 20:23:26 2013 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2FB5DB82 for ; Sat, 9 Feb 2013 20:23:26 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id DFBB128C for ; Sat, 9 Feb 2013 20:23:25 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id 5540E8B1420 for ; Sat, 9 Feb 2013 21:15:18 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.965 X-Spam-Level: X-Spam-Status: No, score=-100.965 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.034, FSL_RCVD_USER=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id AnvEeN2W1ERr for ; Sat, 9 Feb 2013 21:15:16 +0100 (CET) Received: from moehre.dyndns.org (p54B0B913.dip.t-dialin.net [84.176.185.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id 3E5648B143C for ; Sat, 9 Feb 2013 21:15:16 +0100 (CET) Received: from ltea-047-064-170-165.pools.arcor-ip.net ([47.64.170.165]) (SquirrelMail authenticated user coco) by moehre.dyndns.org with HTTP; Sat, 9 Feb 2013 21:15:16 +0100 Message-ID: <5ac8a7e10c1920c26cd938149c056ff2.squirrel@moehre.dyndns.org> Date: Sat, 9 Feb 2013 21:15:16 +0100 Subject: Possibly interactive deinstallation warning for a port ? From: "Marco Steinbach" To: ports@freebsd.org User-Agent: SquirrelMail/1.4.20-RC2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2013 20:23:26 -0000 Hi, I'm preparing a port for which the vendor advises the use of the built-in export and import functionality for upgrading from one version of the product to another. So, for an upgrade the user is supposed to export the current data, then delete the installed port, install the updated port, then import the data. Just trying to preserve configuration files and data upon deinstallation is prone to introduce hard to track errors for this product, so this does not seem to be a viable option. Currently, I'm just displaying a warning for 10 seconds during which the user has time for aborting the deinstallation. What I'd like to do is make the deinstallation truly interactive, enabling the user to read through the warning text, then either decide to ditch the product, or stop deinstallation, without any clock running (unless BATCH is specified, that is). Should I rely on the user knowing what he's doing, and just wait for a few seconds in my pkg-deinstall script like postgresql does ? Or is making deinstallation interactive an acceptable option ? If yes, do I need to mark the whole port as being interactive, although installation is not interactive ? I tend to just wait a few seconds in order to not overcomplicate things, but maybe someone can come up with some ideas or hints. MfG CoCo PS: The product in question is the REDAXO content management system.