Subject: Re: Repetative OWN_DIRS_PERMS
To: grant beattie <>
From: Mike M. Volokhov <>
List: tech-pkg
Date: 09/18/2003 19:45:15
On Thu, 18 Sep 2003 07:20:10 +1000
grant beattie <> wrote:

> On Wed, Sep 17, 2003 at 04:55:01PM -0400, Timothy A. Musson wrote:
> > >Which problem are you exactly trying to solve?  Avoiding repeated
> > directories?
> > >If so, just sort(1) the list and then use uniq(1) on the results.
> > >
> > 
> > Or use "sort -u" to do them both at once.
> the bmake :O (order words alphabetically) and :u (remove adjacent
> duplicate words) modifiers can be used to do the same thing, too.

This is first thing what I think about. It should works very efficient
within {OWN|MAKE}_DIRS, but currently troublesome within
{OWN|MAKE}_DIRS_PERMS (so as it composed from four-parts records).

Maybe it is better define {OWN|MAKE}_DIRS only, and then use
{OWN|MAKE}_DIRS.${SOME_DIR} variables, like RCD_*. For example:

OWN_DIRS=			/var/db/package /var/log/package /var/spool/package
OWN_DIRS./var/db/package=	owner root 0755
OWN_DIRS./var/spool/package=	owner daemon 0700

Please note, the "/var/log/package" obtains its default value.

BR, Mishka.