Skip site navigation (1)Skip section navigation (2)
Date:      19 Apr 2002 18:12:05 +0200
From:      Henrik Motakef <henrik.motakef@web.de>
To:        freebsd-ports@freebsd.org
Subject:   Configuration files
Message-ID:  <87g01r652i.fsf@apo.hmotakef.int>

next in thread | raw e-mail | index | archive | help
Hi.

I am unsure about how to handle configuration files best.

I am preparing ports for some Objective Caml libraries, some of wich
depend on something called "findlib" at build-time. Basically, findlib
keeps track of necessary compiler flags for installed libraries, like,
e.g. gtk2-config does for GTK.

Findlib needs a configuration file to work. It is highly likely that
it will be installed as a dependency of other ports, so requiring
manual intervention, like renaming a ${PREFIX}/etc/findlib.conf.sample,
is not a good idea, scince the build of the other ports will break.

On the other hand, the Porter's Handbook says that it's a bad idea to
install configuration files in a way that they will be deleted by
pkg_delete, which sounds reasonable.

So, what should I do?

- Install the config file and list it in pkg-plist
- Install the config file and don't list it in pkg-plist, eventually
  with a "default" config file parallel to it

It is also possible to substitute the config file with some
environment variables. However, that would make writing ports that
depend on it harder - they would have to check whether the file
already exists, and only if it doesn't, set the environment variables
accordingly.

Any hints?

tia
Henrik

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87g01r652i.fsf>