From owner-freebsd-ports@FreeBSD.ORG Sun Jan 6 06:26:43 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 0F7F316A41A for ; Sun, 6 Jan 2008 06:26:43 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from QMTA01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id ACCB413C447 for ; Sun, 6 Jan 2008 06:26:42 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from OMTA09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA01.westchester.pa.mail.comcast.net with comcast id ZiMv1Y0090SCNGk0500A00; Sun, 06 Jan 2008 06:26:42 +0000 Received: from kirby.cyberbotx.com ([68.43.195.82]) by OMTA09.westchester.pa.mail.comcast.net with comcast id ZiSS1Y00H1n8LeU3V00000; Sun, 06 Jan 2008 06:26:27 +0000 X-Authority-Analysis: v=1.0 c=1 a=8eq3f9ahWlgA:10 a=l8q5uOjTWdZukjyLsKUA:9 a=a_aFL00Qn6YaSvX5J9UA:7 a=5zTICaO76XqI8u0N0-Hu1csA8dIA:4 a=ziFrdkHw70AA:10 Message-ID: <478074A1.7020409@cyberbotx.com> Date: Sun, 06 Jan 2008 01:26:41 -0500 From: Naram Qashat User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: Doug Barton References: <478068A6.7040408@cyberbotx.com> <47807231.6000202@FreeBSD.org> In-Reply-To: <47807231.6000202@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: 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 06:26:43 -0000 Doug Barton wrote: > Naram Qashat wrote: >> 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? > > Ummm ... use a loop? Take a look at mail/alpine for examples of using > shell commands vs. make commands for glob patterns. I can see how the loop would work within the Makefile. But I don't see how I would handle @unexec and @exec commands in pkg-plist for so many configuration files. I ask because there are 34 separate configuration files within the port I am trying to create. Thanks, Naram Qashat > hth, > > Doug >