From owner-freebsd-ports@FreeBSD.ORG Tue Sep 13 07:31:11 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 55174106566C; Tue, 13 Sep 2011 07:31:11 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id E21298FC1F; Tue, 13 Sep 2011 07:31:10 +0000 (UTC) Received: by ywp17 with SMTP id 17so241950ywp.13 for ; Tue, 13 Sep 2011 00:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ZMR2zjsfOQXPWraPaBHgdzKkrU9Jiv3nI/myA9aETh8=; b=grulkNvoT2pjsvtOVa+XgkXKfC7l5Kfwk8Hkijd4lv3M+Va2ToGdc5vsg/s4UWb8e3 q96HsmDIQ7WVSC1N8uC+FlPMsQepCgK5IEdR9+dmurpLOpRuuL3fIFUJfZz53McIV4pc wOplbZOr2E1fM8RJPThcwfWpf7ZpX/fUFUWbg= MIME-Version: 1.0 Received: by 10.231.25.80 with SMTP id y16mr8435905ibb.71.1315899070197; Tue, 13 Sep 2011 00:31:10 -0700 (PDT) Received: by 10.231.61.148 with HTTP; Tue, 13 Sep 2011 00:31:10 -0700 (PDT) Received: by 10.231.61.148 with HTTP; Tue, 13 Sep 2011 00:31:10 -0700 (PDT) In-Reply-To: References: <20110523130954.GB71868@atarininja.org> Date: Tue, 13 Sep 2011 08:31:10 +0100 Message-ID: From: Chris Rees To: Gerald Pfeifer Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@freebsd.org, Wesley Shields , Doug Barton , 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 07:31:11 -0000 On 13 Sep 2011 01:36, "Gerald Pfeifer" wrote: > > 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. > Most people faced with this problem redefine PKGDEINSTALL to the location of the pkg-install script. Chris