xref: /freebsd/etc/Makefile (revision 990baf30065dc7a17a16e35e0269fe675a83ec7d)
11bf9d5d9SRodney W. Grimes#	@(#)Makefile	5.11 (Berkeley) 5/21/91
21bf9d5d9SRodney W. Grimes
31bf9d5d9SRodney W. GrimesNOOBJ=	oobj
41bf9d5d9SRodney W. Grimes
51bf9d5d9SRodney W. Grimes# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
61bf9d5d9SRodney W. Grimes# -rw-r--r--
76e1a887cSRodney W. GrimesBINOWN= root
86e1a887cSRodney W. GrimesBINGRP= wheel
96e1a887cSRodney W. GrimesBIN1=	aliases csh.cshrc csh.login csh.logout dm.conf \
10222c6cb7SNate Williams	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
112e381247SRodney W. Grimes	inetd.conf motd myname netstart phones \
126e1a887cSRodney W. Grimes	printcap protocols rc rc.local remote security services shells \
136e1a887cSRodney W. Grimes	syslog.conf ttys etc.${MACHINE}/disktab rpc
141bf9d5d9SRodney W. Grimes
151bf9d5d9SRodney W. Grimes# -rw-rw-rw-
161bf9d5d9SRodney W. GrimesBIN2=	motd
171bf9d5d9SRodney W. Grimes
186e1a887cSRodney W. Grimes# -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
196e1a887cSRodney W. GrimesBIN3=	daily weekly monthly
206e1a887cSRodney W. Grimes
211bf9d5d9SRodney W. GrimesMTREE=	BSD.root.dist BSD.usr.dist BSD.var.dist
221bf9d5d9SRodney W. GrimesNAMEDB=	localhost.rev named.boot root.cache
231bf9d5d9SRodney W. GrimesPCS=	pcs750.bin
241bf9d5d9SRodney W. GrimesWCS1=	wcs fppwcs poc poc1 poc2 fppoc
251bf9d5d9SRodney W. GrimesWCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
261bf9d5d9SRodney W. Grimes
27f9b4e354SRodney W. Grimes# Special top level files for FreeBSD
2870ce04eeSRodney W. GrimesCOPYRIGHT= COPYRIGHT
2970ce04eeSRodney W. GrimesFREEBSD= CONTRIB.386BSD CONTRIB.FreeBSD ${COPYRIGHT}
3042cee3faSRodney W. Grimes#
3142cee3faSRodney W. Grimes# Floppy drive name and files for building FreeBSD Floppies
3270ce04eeSRodney W. GrimesFLOPPY?=	fd0
3342cee3faSRodney W. GrimesMOUNT=		/mnt
3470ce04eeSRodney W. Grimes#
3570ce04eeSRodney W. GrimesMDEC=		usr/mdec/bootfd usr/mdec/fdboot
3670ce04eeSRodney W. GrimesMDEC+=		usr/mdec/bootsd usr/mdec/sdboot
3770ce04eeSRodney W. GrimesMDEC+=		usr/mdec/bootwd usr/mdec/wdboot
3870ce04eeSRodney W. Grimes#
3970ce04eeSRodney W. GrimesKC_DIRS=	dev mnt
4070ce04eeSRodney W. GrimesKC_FILES=	${COPYRIGHT}
4170ce04eeSRodney W. GrimesKC_FILES+=	bin/[ bin/cp bin/echo bin/sh bin/test
4270ce04eeSRodney W. GrimesKC_FILES+=	sbin/fsck sbin/halt sbin/init sbin/mount sbin/umount
4370ce04eeSRodney W. Grimes#
44926c5ffbSRodney W. GrimesINST1_DIRS=	bin dev etc mnt sbin usr usr/bin usr/mdec usr/sbin
45926c5ffbSRodney W. GrimesINST1_TREES=	dev
4670ce04eeSRodney W. GrimesINST1_FILES=	${COPYRIGHT}
47926c5ffbSRodney W. GrimesINST1_FILES+=	bin/[ bin/cat bin/expr bin/ls bin/mkdir
48926c5ffbSRodney W. Grimes#INST1_FILES+=	bin/df
4970ce04eeSRodney W. GrimesINST1_FILES+=	bin/sh bin/sync bin/test
5070ce04eeSRodney W. GrimesINST1_FILES+=	dev/MAKEDEV dev/MAKEDEV.local
51926c5ffbSRodney W. Grimes#INST1_FILES+=	etc/disktab
52926c5ffbSRodney W. GrimesINST1_FILES+=	etc/group etc/master.passwd etc/passwd
5370ce04eeSRodney W. GrimesINST1_FILES+=	etc/pwd.db etc/spwd.db
5470ce04eeSRodney W. GrimesINST1_FILES+=	sbin/disklabel sbin/halt sbin/init sbin/mount sbin/umount
55926c5ffbSRodney W. GrimesINST1_FILES+=	sbin/mount_pcfs sbin/newfs sbin/reboot
5670ce04eeSRodney W. GrimesINST1_FILES+=	usr/bin/cpio
5770ce04eeSRodney W. GrimesINST1_FILES+=	${MDEC}
5870ce04eeSRodney W. GrimesINST1_FILES+=	usr/sbin/bad144
5970ce04eeSRodney W. Grimes
6070ce04eeSRodney W. GrimesINST2_FILES=	${COPYRIGHT}
6170ce04eeSRodney W. GrimesINST2_FILES+=	usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat
6270ce04eeSRodney W. GrimesINST2_CPIO=	bin/chmod bin/cp bin/dd bin/mv bin/pwd bin/rm bin/stty
6370ce04eeSRodney W. GrimesINST2_CPIO+=	etc/protocols etc/services
6470ce04eeSRodney W. GrimesINST2_CPIO+=	sbin/ifconfig sbin/fsck sbin/mknod
6570ce04eeSRodney W. Grimes#INST2_CPIO+=	sbin/mount_pcfs sbin/mount_isofs
6670ce04eeSRodney W. GrimesINST2_CPIO+=	sbin/route sbin/shutdown sbin/slattach
6770ce04eeSRodney W. GrimesINST2_CPIO+=	tmp
6870ce04eeSRodney W. GrimesINST2_CPIO+=	usr/bin/awk usr/bin/chgrp usr/bin/ftp
69926c5ffbSRodney W. GrimesINST2_CPIO+=	usr/bin/more usr/bin/tar usr/bin/tip
7070ce04eeSRodney W. GrimesINST2_CPIO+=	usr/bin/elvis usr/bin/ex usr/bin/vi usr/bin/view
7170ce04eeSRodney W. Grimes#INST2_CPIO+=	usr/local/bin/mread usr/local/bin/rz
7270ce04eeSRodney W. GrimesINST2_CPIO+=	usr/sbin/update usr/sbin/chown
7370ce04eeSRodney W. GrimesINST2_CPIO+=	var
74f9b4e354SRodney W. Grimes
75990baf30SRodney W. GrimesCRYPT_LIB=	lib/libcrypt
76990baf30SRodney W. GrimesCRYPT_FILES=	bin/ed bin/rcp
77990baf30SRodney W. GrimesCRYPT_FILES+=	libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind
78990baf30SRodney W. GrimesCRYPT_FILES+=	libexec/rshd libexec/telnetd libexec/uucpd
79990baf30SRodney W. GrimesCRYPT_FILES+=	usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd
80990baf30SRodney W. GrimesCRYPT_FILES+=	usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet
81990baf30SRodney W. Grimes
821bf9d5d9SRodney W. Grimesall clean cleandir depend etc install lint:
831bf9d5d9SRodney W. Grimes
84990baf30SRodney W. Grimescrypt:
85990baf30SRodney W. Grimes	rm -f ${LIBCRYPT};
86990baf30SRodney W. Grimes	(cd ${.CURDIR}/../${CRYPT_LIB}; \
87990baf30SRodney W. Grimes		make cleandir obj depend all install)
88990baf30SRodney W. Grimes	for i in ${CRYPT_FILES}; do \
89990baf30SRodney W. Grimes		cd ${.CURDIR}/../$$i; \
90990baf30SRodney W. Grimes		make cleandir obj depend all; \
91990baf30SRodney W. Grimes	done
92990baf30SRodney W. Grimes
93990baf30SRodney W. Grimesnon-crypt:
94990baf30SRodney W. Grimes	rm -f ${LIBCRYPT}
95990baf30SRodney W. Grimes	for i in ${CRYPT_FILES}; do \
96990baf30SRodney W. Grimes		cd ${.CURDIR}/../$$i; \
97990baf30SRodney W. Grimes		make cleandir obj depend all; \
98990baf30SRodney W. Grimes	done
99990baf30SRodney W. Grimes
1006e1a887cSRodney W. Grimesdistribution: distrib-dirs
1011bf9d5d9SRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
1021bf9d5d9SRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
1036e1a887cSRodney W. Grimes	install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc
1046e1a887cSRodney W. Grimes	install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
105ea76af53SCharlie Root	install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log
1061bf9d5d9SRodney W. Grimes	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
10764784fa9SRodney W. Grimes	#
108ea76af53SCharlie Root	# This is broken, it always does /etc. It IGNORES the ${DESTDIR} for
10964784fa9SRodney W. Grimes	# where to write the spwd.db pwd.db files.
11064784fa9SRodney W. Grimes	#(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)
11164784fa9SRodney W. Grimes	#
11264784fa9SRodney W. Grimes	# Work around for above problem.
11364784fa9SRodney W. Grimes	install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc
11464784fa9SRodney W. Grimes	install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc
11570ce04eeSRodney W. Grimes	install -c -o root -g wheel -m 644 passwd ${DESTDIR}/etc
1161bf9d5d9SRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
1171bf9d5d9SRodney W. Grimes	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
118990baf30SRodney W. Grimes.if defined(CDROMDIST)
1196e1a887cSRodney W. Grimes	(cd ${DESTDIR}/dev; sh MAKEDEV all)
120990baf30SRodney W. Grimes.endif
1211bf9d5d9SRodney W. Grimes	(cd root; \
1221bf9d5d9SRodney W. Grimes		install -c -o root -g wheel -m 644 dot.cshrc \
1231bf9d5d9SRodney W. Grimes		    ${DESTDIR}/root/.cshrc; \
1241bf9d5d9SRodney W. Grimes		install -c -o root -g wheel -m 644 dot.klogin \
1251bf9d5d9SRodney W. Grimes		    ${DESTDIR}/root/.klogin; \
1261bf9d5d9SRodney W. Grimes		install -c -o root -g wheel -m 644 dot.login \
1271bf9d5d9SRodney W. Grimes		    ${DESTDIR}/root/.login; \
1281bf9d5d9SRodney W. Grimes		install -c -o root -g wheel -m 644 dot.profile \
1291bf9d5d9SRodney W. Grimes		    ${DESTDIR}/root/.profile; \
1301bf9d5d9SRodney W. Grimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
1311bf9d5d9SRodney W. Grimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
1321bf9d5d9SRodney W. Grimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1331bf9d5d9SRodney W. Grimes	cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
1341bf9d5d9SRodney W. Grimes	    ${DESTDIR}/etc/mtree
1351bf9d5d9SRodney W. Grimes	cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
1361bf9d5d9SRodney W. Grimes	    ${DESTDIR}/etc/namedb
1371bf9d5d9SRodney W. Grimes	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
1381bf9d5d9SRodney W. Grimes	    ${DESTDIR}/etc/dumpdates
1396e1a887cSRodney W. Grimes	install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
1406e1a887cSRodney W. Grimes	    ${DESTDIR}/var/db/locate.database
1411bf9d5d9SRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1421bf9d5d9SRodney W. Grimes	    ${DESTDIR}/var/log/lpd-errs
1431bf9d5d9SRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1446e1a887cSRodney W. Grimes	    ${DESTDIR}/var/log/maillog
1454533a28bSRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1464533a28bSRodney W. Grimes	    ${DESTDIR}/var/log/lastlog
14770ce04eeSRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1486e1a887cSRodney W. Grimes	    ${DESTDIR}/var/log/messages
1496e1a887cSRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1506e1a887cSRodney W. Grimes	    ${DESTDIR}/var/log/wtmp
1516e1a887cSRodney W. Grimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1521bf9d5d9SRodney W. Grimes	    ${DESTDIR}/var/run/utmp
1531bf9d5d9SRodney W. Grimes	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1546e1a887cSRodney W. Grimes	    fstab.* ${DESTDIR}/etc)
155990baf30SRodney W. Grimes.if defined(NOCRYPT)
156990baf30SRodney W. Grimes	make non-crypt
157990baf30SRodney W. Grimes	(cd ..; NOCRYPT=nocrypt; export NOCRYPT; make install)
158990baf30SRodney W. Grimes.else
159990baf30SRodney W. Grimes	make crypt
160926c5ffbSRodney W. Grimes	(cd ..; make install)
161990baf30SRodney W. Grimes.endif
16242cee3faSRodney W. Grimes	(cd ../usr.sbin/sendmail/src; \
16342cee3faSRodney W. Grimes	    make install; \
16442cee3faSRodney W. Grimes	 cd ../cf/cf; \
16542cee3faSRodney W. Grimes	    make tcpproto.cf; \
166ea76af53SCharlie Root	    install -o root -g wheel -m 644 tcpproto.cf \
167ea76af53SCharlie Root	        ${DESTDIR}/etc/sendmail.cf)
16842cee3faSRodney W. Grimes	(cd ../; \
16942cee3faSRodney W. Grimes	    install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/)
170926c5ffbSRodney W. Grimes	(cd ..; make mdec; )
171926c5ffbSRodney W. Grimes.if ${MACHINE} == "tahoe"
172926c5ffbSRodney W. Grimes	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
173926c5ffbSRodney W. Grimes	    ${DESTDIR}/)
174926c5ffbSRodney W. Grimes.endif
175926c5ffbSRodney W. Grimes.if ${MACHINE} == "vax"
176926c5ffbSRodney W. Grimes	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
177926c5ffbSRodney W. Grimes	    ${DESTDIR}/)
178242029ecSRodney W. Grimes.endif
1791bf9d5d9SRodney W. Grimes
1801bf9d5d9SRodney W. Grimeshcx9-distribution:
1811bf9d5d9SRodney W. Grimes	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
1821bf9d5d9SRodney W. Grimes	    ${DESTDIR}/)
1831bf9d5d9SRodney W. Grimes
1849f07bdffSRodney W. Grimeskc-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT
1859f07bdffSRodney W. Grimes	(cd ../sys/compile; rm -rf GENERICAH GENERICBT)
1869f07bdffSRodney W. Grimes	(cd ../sys/i386/conf; config GENERICAH; config GENERICBT)
1879f07bdffSRodney W. Grimes	(cd ../sys/compile/GENERICAH; make depend; make all; \
1889f07bdffSRodney W. Grimes	    install -c -o root -g wheel -m 755 386bsd \
1899f07bdffSRodney W. Grimes	        ${DESTDIR}/386bsd.GENERICAH)
1909f07bdffSRodney W. Grimes	(cd ../sys/compile/GENERICBT; make depend; make all; \
1919f07bdffSRodney W. Grimes	    install -c -o root -g wheel -m 755 386bsd \
1929f07bdffSRodney W. Grimes	        ${DESTDIR}/386bsd.GENERICBT)
1939f07bdffSRodney W. Grimes
1949f07bdffSRodney W. Grimeskc-floppy:
19542cee3faSRodney W. Grimes	disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
19642cee3faSRodney W. Grimes	newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space r${FLOPPY}a floppy5
19742cee3faSRodney W. Grimes	mount /dev/${FLOPPY}a ${MOUNT}
198926c5ffbSRodney W. Grimes	chown root.wheel ${MOUNT}/.
199926c5ffbSRodney W. Grimes	chmod 755 ${MOUNT}/.
20070ce04eeSRodney W. Grimes	(cd ${DESTDIR}/; \
2019f07bdffSRodney W. Grimes	    ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT})
20242cee3faSRodney W. Grimes	(cd ${MOUNT}/dev; \
20342cee3faSRodney W. Grimes	    sh ${DESTDIR}/dev/MAKEDEV std; \
20442cee3faSRodney W. Grimes	    rm -rf fd; \
205926c5ffbSRodney W. Grimes	    sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0 sd1)
20670ce04eeSRodney W. Grimes	(cd ${DESTDIR}/; \
2079f07bdffSRodney W. Grimes	    ls ${KC_FILES} | cpio -pdamuv ${MOUNT})
20842cee3faSRodney W. Grimes	install -c -o root -g wheel -m 755 etc.i386/kc.profile \
20942cee3faSRodney W. Grimes	    ${MOUNT}/.profile
2109f07bdffSRodney W. Grimes
2119f07bdffSRodney W. Grimeskc-ah-floppy: kc-floppy
2129f07bdffSRodney W. Grimes	(cd ../sys/compile/GENERICAH; \
2139f07bdffSRodney W. Grimes	    install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
2149f07bdffSRodney W. Grimes	df -ik ${MOUNT}
2159f07bdffSRodney W. Grimes	umount /dev/${FLOPPY}a
2169f07bdffSRodney W. Grimes	fsck /dev/r${FLOPPY}a
2179f07bdffSRodney W. Grimes
2189f07bdffSRodney W. Grimeskc-bt-floppy: kc-floppy
2199f07bdffSRodney W. Grimes	(cd ../sys/compile/GENERICBT; \
22042cee3faSRodney W. Grimes	    install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
22142cee3faSRodney W. Grimes	df -ik ${MOUNT}
22242cee3faSRodney W. Grimes	umount /dev/${FLOPPY}a
22342cee3faSRodney W. Grimes	fsck /dev/r${FLOPPY}a
22442cee3faSRodney W. Grimes
22570ce04eeSRodney W. Grimesinst1-floppy:
22670ce04eeSRodney W. Grimes	disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
22770ce04eeSRodney W. Grimes	newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space r${FLOPPY}a floppy5
22870ce04eeSRodney W. Grimes	mount /dev/${FLOPPY}a ${MOUNT}
229926c5ffbSRodney W. Grimes	chown root.wheel ${MOUNT}/.
230926c5ffbSRodney W. Grimes	chmod 755 ${MOUNT}/.
23170ce04eeSRodney W. Grimes	(cd ${DESTDIR}/; \
2329f07bdffSRodney W. Grimes	    ls -d ${INST1_DIRS} | cpio -pdamuv ${MOUNT})
23370ce04eeSRodney W. Grimes	(cd ${MOUNT}/dev; \
23470ce04eeSRodney W. Grimes	    sh ${DESTDIR}/dev/MAKEDEV std; \
23570ce04eeSRodney W. Grimes	    rm -rf fd; \
236926c5ffbSRodney W. Grimes	    sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0 sd1)
23770ce04eeSRodney W. Grimes	(cd ${DESTDIR}/; \
2389f07bdffSRodney W. Grimes	    ls ${INST1_FILES} | cpio -pdamuv ${MOUNT})
23970ce04eeSRodney W. Grimes	install -c -o root -g wheel -m 755 etc.i386/inst1.profile \
24070ce04eeSRodney W. Grimes	    ${MOUNT}/.profile
24170ce04eeSRodney W. Grimes	install -c -o root -g wheel -m 755 etc.i386/inst1.install \
24270ce04eeSRodney W. Grimes	    ${MOUNT}/install
24370ce04eeSRodney W. Grimes	(cd ${MOUNT}/; \
24470ce04eeSRodney W. Grimes	    ls ${INST1_FILES} >/tmp/filelist; \
245926c5ffbSRodney W. Grimes	    ls -d ${INST1_DIRS} >>/tmp/filelist; \
246926c5ffbSRodney W. Grimes	    find ${INST1_TREES} >>/tmp/filelist; \
247926c5ffbSRodney W. Grimes	    sort -u /tmp/filelist >filelist; \
248926c5ffbSRodney W. Grimes	    rm /tmp/filelist)
24970ce04eeSRodney W. Grimes	df -ik ${MOUNT}
25070ce04eeSRodney W. Grimes	umount /dev/${FLOPPY}a
25170ce04eeSRodney W. Grimes	fsck /dev/r${FLOPPY}a
25270ce04eeSRodney W. Grimes
25370ce04eeSRodney W. Grimesinst2-floppy:
25470ce04eeSRodney W. Grimes	disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
25570ce04eeSRodney W. Grimes	newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space r${FLOPPY}a floppy5
25670ce04eeSRodney W. Grimes	mount /dev/${FLOPPY}a ${MOUNT}
257926c5ffbSRodney W. Grimes	chown root.wheel ${MOUNT}/.
258926c5ffbSRodney W. Grimes	chmod 755 ${MOUNT}/.
25970ce04eeSRodney W. Grimes	(cd ${DESTDIR}/; \
2609f07bdffSRodney W. Grimes	    ls ${INST2_FILES} | cpio -pdamuv ${MOUNT})
26170ce04eeSRodney W. Grimes	(cd ${DESTDIR}/; \
262926c5ffbSRodney W. Grimes	    find ${INST2_CPIO} | cpio -oav | gzip -9 >${MOUNT}/inst2.cpio.gz)
26370ce04eeSRodney W. Grimes	install -c -o root -g wheel -m 755 etc.i386/inst2.profile \
26470ce04eeSRodney W. Grimes	    ${MOUNT}/.profile
26570ce04eeSRodney W. Grimes	install -c -o root -g wheel -m 755 etc.i386/inst2.install \
26670ce04eeSRodney W. Grimes	    ${MOUNT}/install
26770ce04eeSRodney W. Grimes	df -ik ${MOUNT}
26870ce04eeSRodney W. Grimes	umount /dev/${FLOPPY}a
26970ce04eeSRodney W. Grimes	fsck /dev/r${FLOPPY}a
27070ce04eeSRodney W. Grimes
2716e1a887cSRodney W. Grimesdistrib-dirs:
272ea76af53SCharlie Root	mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/
2736e1a887cSRodney W. Grimes	mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var
2746e1a887cSRodney W. Grimes	mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr
2756e1a887cSRodney W. Grimes	(cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \
27608cbe8b1SNate Williams	    ln -s usr/src/sys sys )
2776e1a887cSRodney W. Grimes
2781bf9d5d9SRodney W. Grimes.include <bsd.prog.mk>
279