Ok, this should about wrap it up.
[unix-history] / etc / Makefile
index eae2734..03036d4 100644 (file)
@@ -1,7 +1,5 @@
 #      from: @(#)Makefile      5.11 (Berkeley) 5/21/91
 #      from: @(#)Makefile      5.11 (Berkeley) 5/21/91
-#      $Id: Makefile,v 1.62 1994/06/03 05:18:18 jkh Exp $
-
-NOOBJ= noobj
+#      $Id: Makefile,v 1.69 1994/06/21 12:42:56 jkh Exp $
 
 # disktab may be wrong -- hcx9 is a tahoe, but gets its own.
 # -rw-r--r--
 
 # disktab may be wrong -- hcx9 is a tahoe, but gets its own.
 # -rw-r--r--
@@ -9,10 +7,12 @@ BINOWN= root
 BINGRP= wheel
 BIN1=  aliases csh.cshrc csh.login csh.logout dm.conf \
        ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
 BINGRP= wheel
 BIN1=  aliases csh.cshrc csh.login csh.logout dm.conf \
        ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
-       inetd.conf login.access manpath.config motd myname netstart \
+       inetd.conf login.access motd myname netstart \
        networks phones printcap protocols rc rc.local remote \
        security services shells skey.access \
        networks phones printcap protocols rc rc.local remote \
        security services shells skey.access \
-       syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf
+       syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \
+       ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
+       ${.CURDIR}/../usr.bin/mail/misc/mail.rc
 
 # -rw-rw-rw-
 BIN2=  motd
 
 # -rw-rw-rw-
 BIN2=  motd
@@ -20,6 +20,8 @@ BIN2= motd
 # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
 BIN3=  daily weekly monthly
 
 # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
 BIN3=  daily weekly monthly
 
+CLEANFILES+= *.o *.lo *.c *.cache
+
 MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist
 NAMEDB=        localhost.rev named.boot root.cache
 PCS=   pcs750.bin
 MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist
 NAMEDB=        localhost.rev named.boot root.cache
 PCS=   pcs750.bin
@@ -28,7 +30,7 @@ WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
 
 # Special top level files for FreeBSD
 COPYRIGHT=     COPYRIGHT.386BSD COPYRIGHT.FreeBSD
 
 # Special top level files for FreeBSD
 COPYRIGHT=     COPYRIGHT.386BSD COPYRIGHT.FreeBSD
-FREEBSD=       CONTRIB.386BSD CONTRIB.FreeBSD
+FREEBSD=       CONTRIB.386BSD CONTRIB.FreeBSD ROSTER.FreeBSD
 FREEBSD+=      MIRROR.SITES PERSONAL.ACKS RELNOTES.FreeBSD SUPPORT.TXT
 FREEBSD+=      ${COPYRIGHT}
 #
 FREEBSD+=      MIRROR.SITES PERSONAL.ACKS RELNOTES.FreeBSD SUPPORT.TXT
 FREEBSD+=      ${COPYRIGHT}
 #
@@ -43,10 +45,9 @@ MDEC+=               usr/mdec/bootwd usr/mdec/wdboot
 #
 KC_DIRS=       bin dev mnt sbin
 KC_FILES=      ${COPYRIGHT}
 #
 KC_DIRS=       bin dev mnt sbin
 KC_FILES=      ${COPYRIGHT}
-KC_FILES+=     bin/sh                                  # XXX Crunch is broken!
-KC_FILES+=     sbin/mount sbin/mount_isofs             # XXX Crunch is broken!
-KC_LINKS=      bin/[ bin/cp bin/echo bin/test
+KC_LINKS=      bin/[ bin/cp bin/echo bin/sh bin/test
 KC_LINKS+=     sbin/fsck sbin/halt sbin/init
 KC_LINKS+=     sbin/fsck sbin/halt sbin/init
+KC_LINKS+=     sbin/mount sbin/mount_isofs
 KC_LINKS+=     sbin/umount
 #
 CD_DIRS=       etc usr
 KC_LINKS+=     sbin/umount
 #
 CD_DIRS=       etc usr
@@ -54,13 +55,12 @@ CD_DIRS=    etc usr
 FILESYSTEM_DIRS=       bin dev etc mnt proc sbin usr usr/bin usr/mdec usr/sbin
 FILESYSTEM_TREES=      dev
 FILESYSTEM_FILES=      ${COPYRIGHT}
 FILESYSTEM_DIRS=       bin dev etc mnt proc sbin usr usr/bin usr/mdec usr/sbin
 FILESYSTEM_TREES=      dev
 FILESYSTEM_FILES=      ${COPYRIGHT}
-FILESYSTEM_FILES+=     bin/sh                          # XXX Crunch is broken!
 FILESYSTEM_FILES+=     dev/MAKEDEV
 FILESYSTEM_FILES+=     etc/group
 FILESYSTEM_FILES+=     etc/master.passwd etc/passwd etc/pwd.db
 FILESYSTEM_FILES+=     ${MDEC}
 FILESYSTEM_LINKS=      bin/[ bin/expr bin/ls bin/mkdir bin/rm
 FILESYSTEM_FILES+=     dev/MAKEDEV
 FILESYSTEM_FILES+=     etc/group
 FILESYSTEM_FILES+=     etc/master.passwd etc/passwd etc/pwd.db
 FILESYSTEM_FILES+=     ${MDEC}
 FILESYSTEM_LINKS=      bin/[ bin/expr bin/ls bin/mkdir bin/rm
-FILESYSTEM_LINKS+=     bin/sync bin/test
+FILESYSTEM_LINKS+=     bin/sh bin/sync bin/test
 FILESYSTEM_LINKS+=     sbin/disklabel sbin/fdisk sbin/halt sbin/init
 FILESYSTEM_LINKS+=     sbin/mount sbin/mount_pcfs
 FILESYSTEM_LINKS+=     sbin/newfs
 FILESYSTEM_LINKS+=     sbin/disklabel sbin/fdisk sbin/halt sbin/init
 FILESYSTEM_LINKS+=     sbin/mount sbin/mount_pcfs
 FILESYSTEM_LINKS+=     sbin/newfs
@@ -115,7 +115,7 @@ CRYPT_SRCS+=        usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd
 CRYPT_SRCS+=   usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet
 CRYPT_DIRS=    bin sbin usr usr/bin usr/lib usr/libexec 
 
 CRYPT_SRCS+=   usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet
 CRYPT_DIRS=    bin sbin usr usr/bin usr/lib usr/libexec 
 
-all clean cleandir depend etc install lint:
+all depend etc install lint:
 
 crypt:
        rm -f ${LIBCRYPT};
 
 crypt:
        rm -f ${LIBCRYPT};
@@ -134,40 +134,41 @@ non-crypt:
        done
        
 distribution: distrib-dirs
        done
        
 distribution: distrib-dirs
-       install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
-       install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
-       install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc
-       install -c -o root -g wheel -m 644 crontab ${DESTDIR}/etc
-       install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log
-       install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
-       pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
+       (cd ${.CURDIR}; \
+       install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
+       install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \
+       install -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \
+       install -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
+           ${DESTDIR}/var/cron/log; \
+       install -c -o ${BINOWN} -g ${BINGRP} -m 600 \
+           master.passwd ${DESTDIR}/etc; \
+       pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
        install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
        install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
-            MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
+            MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev )
 .if defined(CDROMDIST)
 .if defined(CDROMDIST)
-       (cd ${DESTDIR}/dev; sh MAKEDEV all)
+       (cd ${DESTDIR}/dev; sh MAKEDEV all) ;
 .endif
 .endif
-       (cd root; \
-               install -c -o root -g wheel -m 644 dot.cshrc \
+       (cd ${.CURDIR}/root; \
+               install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
                    ${DESTDIR}/root/.cshrc; \
                    ${DESTDIR}/root/.cshrc; \
-               install -c -o root -g wheel -m 644 dot.klogin \
+               install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
                    ${DESTDIR}/root/.klogin; \
                    ${DESTDIR}/root/.klogin; \
-               install -c -o root -g wheel -m 644 dot.login \
+               install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
                    ${DESTDIR}/root/.login; \
                    ${DESTDIR}/root/.login; \
-               install -c -o root -g wheel -m 644 dot.profile \
+               install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
                    ${DESTDIR}/root/.profile; \
                rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
                ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
                ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
                    ${DESTDIR}/root/.profile; \
                rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
                ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
                ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
-       cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
-           ${DESTDIR}/etc/mtree
-       cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
-           ${DESTDIR}/etc/namedb
+       cd ${.CURDIR}/mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
+           ${MTREE} ${DESTDIR}/etc/mtree
+       cd ${.CURDIR}/namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 \
+           ${NAMEDB} ${DESTDIR}/etc/namedb
        install -c -o ${BINOWN} -g operator -m 664 /dev/null \
            ${DESTDIR}/etc/dumpdates
        install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
            ${DESTDIR}/var/db/locate.database
        install -c -o ${BINOWN} -g operator -m 664 /dev/null \
            ${DESTDIR}/etc/dumpdates
        install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
            ${DESTDIR}/var/db/locate.database
-       install -c -o ${BINOWN} -g ${BINGRP} -m 664 minfree \
-           ${DESTDIR}/var/crash
        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
            ${DESTDIR}/var/log/lpd-errs
        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
            ${DESTDIR}/var/log/lpd-errs
        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
@@ -180,56 +181,72 @@ distribution: distrib-dirs
            ${DESTDIR}/var/log/wtmp
        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
            ${DESTDIR}/var/run/utmp
            ${DESTDIR}/var/log/wtmp
        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
            ${DESTDIR}/var/run/utmp
-       (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
-           fstab.* ${DESTDIR}/etc)
+       install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
+           ${DESTDIR}/var/crash
+       (cd ${.CURDIR}/etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} \
+           -m 444 fstab.* ${DESTDIR}/etc)
 .if defined(NOCRYPT)
 .if defined(NOCRYPT)
-       ${MAKE} non-crypt
-       (cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install)
+       (cd ${.CURDIR}; ${MAKE} non-crypt)
+       (cd ${.CURDIR}/..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install)
 .else
 .else
-       ${MAKE} crypt
-       (cd ..; ${MAKE} install)
+       (cd ${.CURDIR}; ${MAKE} crypt)
+       (cd ${.CURDIR}/..; ${MAKE} install
 .endif
 .endif
-       (cd ../usr.sbin/sendmail/src; \
+       (cd ${.CURDIR}/../usr.sbin/sendmail/src; \
            ${MAKE} install; \
         cd ../cf/cf; \
            ${MAKE} obj; \
            ${MAKE} freefall.cf; \
            ${MAKE} install; \
         cd ../cf/cf; \
            ${MAKE} obj; \
            ${MAKE} freefall.cf; \
-           install -o root -g wheel -m 644 obj/freefall.cf \
+           install -o ${BINOWN} -g ${BINGRP} -m 644 obj/freefall.cf \
                ${DESTDIR}/etc/sendmail.cf)
                ${DESTDIR}/etc/sendmail.cf)
-       (cd ../; \
-           install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/)
-       (cd ..; ${MAKE} mdec; )
-       (cd ../share/man; ${MAKE} makedb; )
+       (cd ${.CURDIR}/..; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} ${DESTDIR}/)
+       (cd ${.CURDIR}/..; ${MAKE} mdec; )
+       (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
 .if ${MACHINE} == "tahoe"
 .if ${MACHINE} == "tahoe"
-       (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
-           ${DESTDIR}/)
+       (cd ${.CURDIR}/etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} \
+           -m 444 ${WCS1} ${DESTDIR}/)
 .endif
 .if ${MACHINE} == "vax"
 .endif
 .if ${MACHINE} == "vax"
-       (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
-           ${DESTDIR}/)
+       (cd ${.CURDIR}/etc.vax; install -c -o ${BINOWN} -g ${BINGRP} \
+           -m 444 ${PCS} ${DESTDIR}/)
 .endif
 
 .endif
 
+crunch:
+       crunchgen ${.CURDIR}/../contrib/crunch/examples/kcopy.conf
+       make -f kcopy.mk objs exe
+       crunchgen ${.CURDIR}/../contrib/crunch/examples/filesystem.conf
+       make -f filesystem.mk objs exe
+
+extract:
+       install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
+           ${.CURDIR}/etc.i386/EXTRACT_bin.sh ${RELEASEDIR}/tarballs/bindist
+       install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
+           ${.CURDIR}/etc.i386/EXTRACT_src.sh ${RELEASEDIR}/tarballs/srcdist
+       install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
+           ${.CURDIR}/etc.i386/EXTRACT_secr.sh ${RELEASEDIR}/tarballs/secrdist
+
 hcx9-distribution:
 hcx9-distribution:
-       (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
-           ${DESTDIR}/)
-
-kcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT
-       (cd ../sys/compile; rm -rf GENERICAH GENERICBT)
-       (cd ../sys/i386/conf; config GENERICAH; config GENERICBT)
-       (cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \
-           install -c -o root -g wheel -m 755 386bsd \
+       (cd ${.CURDIR}/etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} \
+           -m 444 ${WCS2} ${DESTDIR}/)
+
+kcopy-kernels: ${.CURDIR}/../sys/i386/conf/GENERICAH ${.CURDIR}/../sys/i386/conf/GENERICBT
+       (cd ${.CURDIR}/../sys/compile; rm -rf GENERICAH GENERICBT)
+       (cd ${.CURDIR}/../sys/i386/conf; config GENERICAH; config GENERICBT)
+       (cd ${.CURDIR}/../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 755 386bsd \
                ${DESTDIR}/386bsd.GENERICAH)
                ${DESTDIR}/386bsd.GENERICAH)
-       (cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \
-           install -c -o root -g wheel -m 755 386bsd \
+       (cd ${.CURDIR}/../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 755 386bsd \
                ${DESTDIR}/386bsd.GENERICBT)
 
 kcopy-floppy:
        disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \
                ${DESTDIR}/usr/mdec/fdboot ${DESTDIR}/usr/mdec/bootfd
                ${DESTDIR}/386bsd.GENERICBT)
 
 kcopy-floppy:
        disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \
                ${DESTDIR}/usr/mdec/fdboot ${DESTDIR}/usr/mdec/bootfd
-       newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \
+       newfs -b 4096 -c 80 -f 512 -i 8192 -m 0 -o space \
                r${FLOPPY} ${FLOPPY_TYPE}
        mount /dev/${FLOPPY} ${MOUNT}
                r${FLOPPY} ${FLOPPY_TYPE}
        mount /dev/${FLOPPY} ${MOUNT}
-       chown root.wheel ${MOUNT}/.
+       chown ${BINOWN}.${BINGRP} ${MOUNT}/.
        chmod 755 ${MOUNT}/.
        (cd ${DESTDIR}/; \
            ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT})
        chmod 755 ${MOUNT}/.
        (cd ${DESTDIR}/; \
            ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT})
@@ -242,10 +259,10 @@ kcopy-floppy:
            rm -rf rmcd*)
        (cd ${DESTDIR}/; \
            ls ${KC_FILES} | cpio -pdamuv ${MOUNT})
            rm -rf rmcd*)
        (cd ${DESTDIR}/; \
            ls ${KC_FILES} | cpio -pdamuv ${MOUNT})
-       install -c -o root -g wheel -m 755 etc.i386/kc.profile \
-           ${MOUNT}/.profile
-       install -c -o root -g wheel -m 755 ${RELEASEDIR}/distbin/kcopy \
-           ${MOUNT}/bin/kcopy
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/kc.profile ${MOUNT}/.profile
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           kcopy ${MOUNT}/bin/kcopy
        (cd ${MOUNT}/; \
            for i in ${KC_LINKS}; do \
                ln bin/kcopy $$i; \
        (cd ${MOUNT}/; \
            for i in ${KC_LINKS}; do \
                ln bin/kcopy $$i; \
@@ -253,8 +270,8 @@ kcopy-floppy:
 
 kcopy_ah.flp:
        ${MAKE} kcopy-floppy
 
 kcopy_ah.flp:
        ${MAKE} kcopy-floppy
-       (cd ../sys/compile/GENERICAH; \
-           install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
+       (cd ${.CURDIR}/../sys/compile/GENERICAH; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 755 386bsd ${MOUNT}/)
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
@@ -265,8 +282,8 @@ kcopy_ah.flp:
 
 kcopy_bt.flp:
        ${MAKE} kcopy-floppy
 
 kcopy_bt.flp:
        ${MAKE} kcopy-floppy
-       (cd ../sys/compile/GENERICBT; \
-           install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
+       (cd ${.CURDIR}/../sys/compile/GENERICBT; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 755 386bsd ${MOUNT}/)
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
@@ -283,17 +300,17 @@ cdins-floppy:
            ln -s /cdrom/filesys/usr/libexec libexec; \
            ln -s /cdrom/filesys/usr/lib lib)
        mkdir ${MOUNT}/cdrom
            ln -s /cdrom/filesys/usr/libexec libexec; \
            ln -s /cdrom/filesys/usr/lib lib)
        mkdir ${MOUNT}/cdrom
-       chown root.wheel ${MOUNT}/cdrom
+       chown ${BINOWN}.${BINGRP} ${MOUNT}/cdrom
        chmod 755 ${MOUNT}/cdrom
        chmod 755 ${MOUNT}/cdrom
-       install -c -o root -g wheel -m 755 etc.i386/cdinst1.profile \
-           ${MOUNT}/.profile
-       install -c -o root -g wheel -m 755 etc.i386/cdinst1.install \
-           ${MOUNT}/install
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/cdinst1.profile ${MOUNT}/.profile
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/cdinst1.install ${MOUNT}/install
        
 cdins_ah.flp:
        ${MAKE} cdins-floppy
        
 cdins_ah.flp:
        ${MAKE} cdins-floppy
-       (cd ../sys/compile/GENERICAH; \
-           install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
+       (cd ${.CURDIR}/../sys/compile/GENERICAH; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 755 386bsd ${MOUNT}/)
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
@@ -304,8 +321,8 @@ cdins_ah.flp:
 
 cdins_bt.flp:
        ${MAKE} cdins-floppy
 
 cdins_bt.flp:
        ${MAKE} cdins-floppy
-       (cd ../sys/compile/GENERICBT; \
-           install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
+       (cd ${.CURDIR}/../sys/compile/GENERICBT; \
+           install -c -o ${BINOWN} -g ${BINGRP} -m 755 386bsd ${MOUNT}/)
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
@@ -320,7 +337,7 @@ filesyst.flp:
        newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \
                r${FLOPPY}  ${FLOPPY_TYPE}
        mount /dev/${FLOPPY}  ${MOUNT}
        newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \
                r${FLOPPY}  ${FLOPPY_TYPE}
        mount /dev/${FLOPPY}  ${MOUNT}
-       chown root.wheel ${MOUNT}/.
+       chown ${BINOWN}.${BINGRP} ${MOUNT}/.
        chmod 755 ${MOUNT}/.
        (cd ${DESTDIR}/; \
            ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT})
        chmod 755 ${MOUNT}/.
        (cd ${DESTDIR}/; \
            ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT})
@@ -334,12 +351,12 @@ filesyst.flp:
            (find ${FILESYSTEM_CPIO}; ls -d ${FILESYSTEM_CPIO_DIRS}) | \
                cpio -H newc --block-size=16 -oav | \
                gzip -9 >${MOUNT}/inst1.cpio.gz)
            (find ${FILESYSTEM_CPIO}; ls -d ${FILESYSTEM_CPIO_DIRS}) | \
                cpio -H newc --block-size=16 -oav | \
                gzip -9 >${MOUNT}/inst1.cpio.gz)
-       install -c -o root -g wheel -m 755 etc.i386/inst1.profile \
-           ${MOUNT}/.profile
-       install -c -o root -g wheel -m 755 etc.i386/inst1.install \
-           ${MOUNT}/install
-       install -c -o root -g wheel -m 755 ${RELEASEDIR}/distbin/filesystem \
-           ${MOUNT}/bin/filesystem
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/inst1.profile ${MOUNT}/.profile
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/inst1.install ${MOUNT}/install
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           filesystem ${MOUNT}/bin/filesystem
        (cd ${MOUNT}/; \
            for i in ${FILESYSTEM_LINKS}; do \
                ln bin/filesystem $$i; \
        (cd ${MOUNT}/; \
            for i in ${FILESYSTEM_LINKS}; do \
                ln bin/filesystem $$i; \
@@ -365,7 +382,7 @@ cpio.flp:
        newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \
                        r${FLOPPY}  ${FLOPPY_TYPE}
        mount /dev/${FLOPPY} ${MOUNT}
        newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \
                        r${FLOPPY}  ${FLOPPY_TYPE}
        mount /dev/${FLOPPY} ${MOUNT}
-       chown root.wheel ${MOUNT}/.
+       chown ${BINOWN}.${BINGRP} ${MOUNT}/.
        chmod 755 ${MOUNT}/.
        (cd ${DESTDIR}/; \
                ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT})
        chmod 755 ${MOUNT}/.
        (cd ${DESTDIR}/; \
                ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT})
@@ -373,12 +390,12 @@ cpio.flp:
            (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \
                cpio -H newc --block-size=16 -oav | \
                gzip -9 >${MOUNT}/inst2.cpio.gz)
            (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \
                cpio -H newc --block-size=16 -oav | \
                gzip -9 >${MOUNT}/inst2.cpio.gz)
-       install -c -o root -g wheel -m 755 etc.i386/cpio.rc \
-           ${MOUNT}/rc
-       install -c -o root -g wheel -m 755 etc.i386/cpio.install \
-           ${MOUNT}/install
-       install -c -o root -g wheel -m 755 etc.i386/cpio.magic \
-           ${MOUNT}/magic
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/cpio.rc ${MOUNT}/rc
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/cpio.install ${MOUNT}/install
+       install -c -o ${BINOWN} -g ${BINGRP} -m 755 \
+           ${.CURDIR}/etc.i386/cpio.magic ${MOUNT}/magic
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
        df -ik ${MOUNT}
        umount /dev/${FLOPPY}
        fsck /dev/r${FLOPPY}
@@ -539,24 +556,24 @@ des-tarball:
        rm -rf ${RELEASEDIR}/tmpdes
 
 distrib-dirs:
        rm -rf ${RELEASEDIR}/tmpdes
 
 distrib-dirs:
-       mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/
-       mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var
-       mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr
+       mtree -u -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
+       mtree -u -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
+       mtree -u -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
 .if defined(CDROMDIST)
 .if defined(CDROMDIST)
-       mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local
+       mtree -u -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local
 .endif
        cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
 
 floppies:      kcopy_ah.flp kcopy_bt.flp filesyst.flp cpio.flp \
                cdins_ah.flp cdins_bt.flp
 
 .endif
        cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
 
 floppies:      kcopy_ah.flp kcopy_bt.flp filesyst.flp cpio.flp \
                cdins_ah.flp cdins_bt.flp
 
-release:       release-dirs distribution kcopy-kernels floppies \
-               bin-tarball des-tarball
-       
+release:       release-dirs distribution crunch extract kcopy-kernels \
+               floppies bin-tarball des-tarball
+
 release-dirs:
        rm -rf ${RELEASEDIR}/filesys
        mkdir ${RELEASEDIR}/filesys
 release-dirs:
        rm -rf ${RELEASEDIR}/filesys
        mkdir ${RELEASEDIR}/filesys
-       chown root.wheel ${RELEASEDIR}/filesys
+       chown ${BINOWN}.${BINGRP} ${RELEASEDIR}/filesys
        chmod 755 ${RELEASEDIR}/filesys
        rm -rf ${RELEASEDIR}/tarballs
        mkdir ${RELEASEDIR}/tarballs
        chmod 755 ${RELEASEDIR}/filesys
        rm -rf ${RELEASEDIR}/tarballs
        mkdir ${RELEASEDIR}/tarballs
@@ -564,11 +581,11 @@ release-dirs:
        mkdir ${RELEASEDIR}/tarballs/objdist
        mkdir ${RELEASEDIR}/tarballs/secrdist
        mkdir ${RELEASEDIR}/tarballs/srcdist
        mkdir ${RELEASEDIR}/tarballs/objdist
        mkdir ${RELEASEDIR}/tarballs/secrdist
        mkdir ${RELEASEDIR}/tarballs/srcdist
-       chown -R root.wheel ${RELEASEDIR}/tarballs
+       chown -R ${BINOWN}.${BINGRP} ${RELEASEDIR}/tarballs
        chmod -R 755 ${RELEASEDIR}/tarballs
        rm -rf ${RELEASEDIR}/floppies
        mkdir ${RELEASEDIR}/floppies
        chmod -R 755 ${RELEASEDIR}/tarballs
        rm -rf ${RELEASEDIR}/floppies
        mkdir ${RELEASEDIR}/floppies
-       chown root.wheel ${RELEASEDIR}/floppies
+       chown ${BINOWN}.${BINGRP} ${RELEASEDIR}/floppies
        chmod 755 ${RELEASEDIR}/floppies
 
 .include <bsd.prog.mk>
        chmod 755 ${RELEASEDIR}/floppies
 
 .include <bsd.prog.mk>