Ports that have multiple configuration files

Doug Barton dougb at FreeBSD.org
Sun Jan 6 22:18:56 PST 2008

Naram Qashat wrote:
> 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.

Sorry, I still don't see the problem. If your concern is that it will
make the plist large, 34 of anything is still pretty tiny in terms of
lots of other things in ports.



    This .signature sanitized for your protection

More information about the freebsd-ports mailing list