From owner-freebsd-ports@FreeBSD.ORG Sun Jan 8 13:12:09 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 9B4D1106564A for ; Sun, 8 Jan 2012 13:12:09 +0000 (UTC) (envelope-from freebsd@rakor-net.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mx1.freebsd.org (Postfix) with ESMTP id 3294A8FC0A for ; Sun, 8 Jan 2012 13:12:08 +0000 (UTC) Received: from localhost (HSI-KBW-109-192-087-062.hsi6.kabel-badenwuerttemberg.de [109.192.87.62]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M8n5U-1Rrcdd3s5s-00CcWN; Sun, 08 Jan 2012 13:59:34 +0100 Date: Sun, 8 Jan 2012 13:59:33 +0100 From: Martin Kropfinger To: freebsd-ports@freebsd.org Message-ID: <20120108135933.51867668@rakor-net.de> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Sk+NmYBKtAPhe8dVLA10rz+B3FDSu/ihoBbttS9Ae48 GdGv6mJOCA2f16vZw0dQgYFTymbQTmCiFXdwqYW0dWz5I1ZWGB ONlrdb+Co8waHzTS/NagyeG7RIw3IlLYDccxjtU8E5ryLqeHr7 2qhx/MtLwrCDBqhmzTEQRfTExzYfvuwz4+8Q7iuC6im/a/Jm36 HVtMfOnfdvWWwmkrjnBJF6tupDUNyo2I6LcAeFAa547jSouvuH z8vSyKhWEVifbvcpPZqzEKh/1C4Q1/SPidF4g41z7Tml5X9FwR 3U+i/sfrR7bwjB1jDX/wwGyMTaLn3wlamg+mKnTdtaNHUcgzwN a5xWLnp5aY/OgcEmrmSI= Subject: 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 13:12:09 -0000 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? Thanx a lot!