From owner-freebsd-ports@FreeBSD.ORG Tue Sep 13 00:36:01 2011 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 A108B106566B; Tue, 13 Sep 2011 00:36:01 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) by mx1.freebsd.org (Postfix) with ESMTP id 7FFB08FC0C; Tue, 13 Sep 2011 00:36:01 +0000 (UTC) Received: from g159.suse.de (charybdis-ext.suse.de [195.135.221.2]) by ainaz.pair.com (Postfix) with ESMTPSA id 9E7513F416; Mon, 12 Sep 2011 20:19:00 -0400 (EDT) Date: Tue, 13 Sep 2011 02:19:00 +0200 (CEST) From: Gerald Pfeifer To: Doug Barton , Wesley Shields , ports@FreeBSD.org In-Reply-To: <20110523130954.GB71868@atarininja.org> Message-ID: References: <20110523130954.GB71868@atarininja.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Emanuel Haupt Subject: Re: How to best run a script post installation _and_ deinstallation? 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, 13 Sep 2011 00:36:01 -0000 On Sun, 22 May 2011, Doug Barton wrote: > Will @unexec in pkg-plist do the job? On Mon, 23 May 2011, Wesley Shields wrote: > Are these what you are looking for: > > http://www.freebsd.org/doc/en/books/porters-handbook/pkg-install.html > http://www.freebsd.org/doc/en/books/porters-handbook/pkg-deinstall.html Yes and no (to both questions). I have been looking for a silver bullet that avoids having (a) something in the post-install target plus an @exec and an @unexec and thus redundancy, or (b) two extra scripts and thus two extra files in the port. Alas, I failed at that, and Emanuel convinced me that apparently there is no way to avoid one of these two deaths. That looks like a nice project for someone to improve our general infrastructure along these lines. Gerald