Subject: Re: default values for log and PID file path names?
To: NetBSD Packages Technical Discussion List <>
From: Joerg Sonnenberger <>
List: tech-pkg
Date: 08/03/2006 08:38:38
On Tue, Aug 01, 2006 at 11:19:08PM +0200, Julio M. Merino Vidal wrote:
> On 8/1/06, Georg Schwarz <> wrote:
> >
> >Am 01.08.2006 um 21:22 schrieb Roland Illig:
> >
> >>> --with-logfile=${VARBASE}/log/blabla.log --with-pidfile=$
> >>> {VARBASE}/ run/
> >>
> >> grep(1) just told me that there is much prior art of that style. So
> >> you should do it that way.
> >>
> >
> >Can I assume that ${VARBASE}/log and ${VARBASE}/run will always exist?
> >Does the options framework provide a means to specify alternative
> >strings for that given package if desired?
> If your package places any file outside PREFIX, it shall use OWN_DIRS
> or MAKE_DIRS to register the directory in which it will be placed.
> This way you ensure that the directory exists.  You'll probably want
> something like OWN_DIRS=${VARBASE}/run.

No, that's bad. When the system already has ${VARBASE}/run, but it is
empty at the time of the package removal, it would also get removed.
I'm also not sure how to best handle this, it depends a bit on the
situation. E.g. for logfiles having a subdirectory of ${VARBASE}/log
would be a good idea, esp. since it can be given write permissions for