Subject: Re: 4.4BSD.dist
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: current-users
Date: 02/22/1996 13:18:44
>> Rather than using this particular mtree file when installing,
>> perhaps it would be better to create a custom install mtree config
>> file which will create only the required directories and not touch
>> things such as, say, /usr/src?  I'm sick of having to restore
>> permissions once I do a ``make build''

> Send-pr your suggested change :-)

When I sent in a PR on that subject, someone (mycroft, I think) closed
it out with no change, just a comment saying "this is not a bug, that's
how it's supposed to work".  I asked how, then, one is _supposed_ to do
rebuild-and-reinstall-everything on an existing system, and have gotten
no reply as yet.  But the PR hasn't been repoened, either.

So I suspect that just generating another PR on the subject isn't
likely to help much.  What I've done is just to patch as follows:

--- OLD/Makefile	Thu Jan  1 00:00:00 1970
+++ NEW/Makefile	Thu Jan  1 00:00:00 1970
@@ -25,7 +25,7 @@
 
 beforeinstall:
 .ifndef DESTDIR
-	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
+	(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ install-dirs)
 .endif
 
 afterinstall:
--- OLD/etc/Makefile	Thu Jan  1 00:00:00 1970
+++ NEW/etc/Makefile	Thu Jan  1 00:00:00 1970
@@ -111,6 +111,11 @@
 	-mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
 	cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
 
+install-dirs:
+	install -d -o root -g wheel -m 755 ${DESTDIR}
+	-mtree -def mtree/installdirs -p ${DESTDIR}/ -u
+	cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
+
 snapshot: distribution snap_pre snap_tar snap_md
 	cd ${DESTDIR}/snapshot && cksum * > CKSUMS
 

and then create etc/mtree/installdirs by copying 4.4BSD.dist and
bashing on it to taste.  I'll be glad to send my mtree/installdirs to
anyone who wants a copy....

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu