Subject: Re: INSTALLATION_DIRS and binary packages?
To: Hubert Feyrer <hubert@feyrer.de>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 04/07/2004 21:28:24
On Wed, 7 Apr 2004 21:01:51 +0200 (CEST)
"Hubert Feyrer" <hubert@feyrer.de> 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 bsd.pkg.mk.
Furthermore, AFAICT, INSTALLATION_DIRS should be used to create those dirs
that could be otherwise created by mtree.
Cheers.
--
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/