From owner-freebsd-ports@FreeBSD.ORG Sun Jan 8 14:47:42 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECFA21065670 for ; Sun, 8 Jan 2012 14:47:42 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id B22748FC0C for ; Sun, 8 Jan 2012 14:47:42 +0000 (UTC) Received: by iadj38 with SMTP id j38so7541021iad.13 for ; Sun, 08 Jan 2012 06:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=N+zGnXtEVR47wz/L8b1qh+H0CEJL3kus9AhfKxcSqUY=; b=OpUxtTbjXXCacPI5/ooCHEzyEy0qFbH2tIBg2EuzFRiQ/G3ytnwSMRUnz54dAMSEdl sIAPTaCcD1qjTfY4nAhGGwP+oecOfR8kEg+fEXCHpx7OStjK1OSb0J6xiLO7LEeA3Bi1 0DGBW4DAjyTjLI+PEOH/mTPmx1upMWv/aS3zU= Received: by 10.50.135.41 with SMTP id pp9mr15289870igb.8.1326034062301; Sun, 08 Jan 2012 06:47:42 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.207.7 with HTTP; Sun, 8 Jan 2012 06:47:11 -0800 (PST) In-Reply-To: <20120108135933.51867668@rakor-net.de> References: <20120108135933.51867668@rakor-net.de> From: Chris Rees Date: Sun, 8 Jan 2012 14:47:11 +0000 X-Google-Sender-Auth: 4Id3tsViNbT2ACFmXy5Avjc8aTw Message-ID: To: Martin Kropfinger Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@freebsd.org Subject: Re: How to handle config files 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: Sun, 08 Jan 2012 14:47:43 -0000 On 8 January 2012 12:59, Martin Kropfinger wrote: > Hi there! > > The porters handbook describes a way to handle config files: > > http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html > > It is recommended to do it this way for keeping changed files after > deinstallation on the system. But the example is not really clear to me. > > What does this line do: > @exec if [ ! -f %D/etc/orbit.conf ] ; then cp -p %D/%F %B/orbit.conf; fi > > Nothing is said about those variables... %D (which seems to be > %%PREFIX%%) and %F or %B. > > Can anyone give me some help? man pkg_create will tell you all about these variables :) Chris