From owner-freebsd-ports@FreeBSD.ORG Sun Nov 10 04:59:14 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 51F25511 for ; Sun, 10 Nov 2013 04:59:14 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pd0-x22a.google.com (mail-pd0-x22a.google.com [IPv6:2607:f8b0:400e:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2A07B25F4 for ; Sun, 10 Nov 2013 04:59:14 +0000 (UTC) Received: by mail-pd0-f170.google.com with SMTP id q10so510264pdj.29 for ; Sat, 09 Nov 2013 20:59:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nmsDOFZROpdsWGEQjqNho5/A8mH1BSjpHt+ucPbK+Ys=; b=yT7PGxyVs+DQo58CIHairejPdx0jxpTPJVQ8u7gd+Ue9fTZLT4fK8FWSeIUdw4tgVg xCU5TxBT81RvfzxZo2VEXmpzznD0LbH6AqkbcTT4dBloTSjbiuYYAkTKjpHXs8Tj+06p OthrfjREtOgMFMR9Xg0PEyjn2JnSTPf/UOhHPbHc1gVJ3ibhFNoBMiYmwZEldtanaLl0 Z2yS5PkYOYzf4lI0UzuL5l3Kbgck60D9oBmplNXcdJezkIyuTQVPewB8wip7zW2O8itN mt/HZAWzP6tiUthYyvgKxuyrlpelY+7cHRRSnQf4hC6bXSAnh+NA/zCjKNQzmojnmHPR VFOg== MIME-Version: 1.0 X-Received: by 10.67.22.67 with SMTP id hq3mr387643pad.132.1384059553358; Sat, 09 Nov 2013 20:59:13 -0800 (PST) Received: by 10.68.185.130 with HTTP; Sat, 9 Nov 2013 20:59:13 -0800 (PST) In-Reply-To: <20131108121306.389ada0e@kalimero.tijl.coosemans.org> References: <20131108121306.389ada0e@kalimero.tijl.coosemans.org> Date: Sat, 9 Nov 2013 23:59:13 -0500 Message-ID: Subject: Re: how to tell pkg-list not to deinstall/overwrite certain files From: Aryeh Friedman To: Tijl Coosemans Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Ports ML 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: Sun, 10 Nov 2013 04:59:14 -0000 Thanks the stuff worked there but it is not clear how to handle user dirs (don't nuke dirs withi user data for example we create /usr/local/vms and it should not be erased on deinstall) On Fri, Nov 8, 2013 at 6:13 AM, Tijl Coosemans wrote: > On Fri, 8 Nov 2013 05:23:47 -0500 Aryeh Friedman wrote: > > Forgot to mention the solution should if at all possible be 100% > pkg-plist > > based because our internal build system is not make > > > > On Fri, Nov 8, 2013 at 5:21 AM, Aryeh Friedman >wrote: > >> I am doing a lot of inter-machine testing of a private port (will be > >> released soon as a actual port) but need to tell "make deinstall" not to > >> delete a certain file... how do we do this?... background one thing we > are > >> testing is the ability to upgrade the port (privately) and it must not > nuke > >> our settings file on the test machines because the default config > provided > >> by our port is inappropriate for how we have things configured (it is > >> correct for 99.9% of everyone else though). > >> > >> Namely we need: > >> > >> 1. Do not delete /usr/local/etc/petitecloud/settings on deinstall > >> 2. Do not overwrite it with a new version on install (if present else > >> install it) > > Basically you have to install the file as settings.sample and add some > pkg-plist magic. It's explained in more detail here: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist-config.html > > Note that with staging you don't need the post-install part, only the > pkg-plist part. >