From owner-freebsd-ports@FreeBSD.ORG Sun Jan 6 05:46:36 2008 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 E355A16A417 for ; Sun, 6 Jan 2008 05:46:36 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from QMTA04.westchester.pa.mail.comcast.net (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) by mx1.freebsd.org (Postfix) with ESMTP id 90E5A13C474 for ; Sun, 6 Jan 2008 05:46:36 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from OMTA11.westchester.pa.mail.comcast.net ([76.96.62.36]) by QMTA04.westchester.pa.mail.comcast.net with comcast id ZhQo1Y0040mv7h00500W00; Sun, 06 Jan 2008 05:35:35 +0000 Received: from kirby.cyberbotx.com ([68.43.195.82]) by OMTA11.westchester.pa.mail.comcast.net with comcast id ZhbT1Y00A1n8LeU3X00000; Sun, 06 Jan 2008 05:35:28 +0000 X-Authority-Analysis: v=1.0 c=1 a=AlF9On9naU4A:10 a=eHYNhDuXEXbj4B61hTAA:9 a=ul-VZ-abb5QTcqSHPXcA:7 a=RqxglGtSpA7rCa2PWuuIjWHrekUA:4 a=gi0PWCVxevcA:10 Message-ID: <478068A6.7040408@cyberbotx.com> Date: Sun, 06 Jan 2008 00:35:34 -0500 From: Naram Qashat User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Ports that have multiple configuration 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, 06 Jan 2008 05:46:37 -0000 I had a question regarding what to do in a port Makefile when the port has multiple configuration files to install into PREFIX/etc. I read in the Porters Handbook about having to add entries into the Makefile and pkg-plist, but that seems to only be good for ports with a very small amount of configuration files. Is there an easy way to take a large collection of configuration files, change their extensions all to .conf.sample instead of .conf, set up all of them to be copied to .conf when they don't exist, and remove them all when they match the .conf.sample? Any information to make this easier would be very helpful, as I don't think it would be very clean to have a large amount of the Makefile be only for handling this. Thanks, Naram Qashat