Subject: Re: INSTALLATION_DIRS and binary packages?
To: Hubert Feyrer <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 04/07/2004 21:28:24
On Wed, 7 Apr 2004 21:01:51 +0200 (CEST)
"Hubert Feyrer" <> wrote:

> On Wed, 7 Apr 2004, Jeremy C. Reed wrote:
> > Maybe MAKE_DIRS should be used instead?
> >
> > Or maybe INSTALLATION_DIRS should set MAKE_DIRS usage?
> >
> > Or maybe INSTALLATION_DIRS should automatically place some
> > "@exec ${MKDIR}" lines in the PLIST file?
> We have macros INSTALL_MAN_DIR, etc. to create dirs with appropriate
> permissions from Makefile. If anything, that behaviour should be mirrored
> to reflect permissions & ownership.

INSTALLATION_DIRS already handles permissions and ownerships of "special"
directories.  For bin directories, it will use INSTALL_BIN_DIR; for man
directories, INSTALL_MAN_DIR, and for everything else, INSTALL_DATA_DIR.
You can see this around line 2690 of

Furthermore, AFAICT, INSTALLATION_DIRS should be used to create those dirs
that could be otherwise created by mtree.


Julio M. Merino Vidal <>
The NetBSD Project -