Makefile revision 1243
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 21243Srgrimes# $Id: Makefile,v 1.53 1994/02/23 15:36:05 rgrimes Exp $ 337Srgrimes 4358SrgrimesNOOBJ= noobj 537Srgrimes 637Srgrimes# disktab may be wrong -- hcx9 is a tahoe, but gets its own. 737Srgrimes# -rw-r--r-- 8147SrgrimesBINOWN= root 9147SrgrimesBINGRP= wheel 10147SrgrimesBIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ 11207Snate ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 12377Srgrimes inetd.conf motd myname netstart networks phones \ 13147Srgrimes printcap protocols rc rc.local remote security services shells \ 14147Srgrimes syslog.conf ttys etc.${MACHINE}/disktab rpc 1537Srgrimes 1637Srgrimes# -rw-rw-rw- 1737SrgrimesBIN2= motd 1837Srgrimes 19147Srgrimes# -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel 20147SrgrimesBIN3= daily weekly monthly 21147Srgrimes 22491SrgrimesMTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist 2337SrgrimesNAMEDB= localhost.rev named.boot root.cache 2437SrgrimesPCS= pcs750.bin 2537SrgrimesWCS1= wcs fppwcs poc poc1 poc2 fppoc 2637SrgrimesWCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 2737Srgrimes 28263Srgrimes# Special top level files for FreeBSD 291130SrgrimesCOPYRIGHT= COPYRIGHT.386BSD COPYRIGHT.FreeBSD 30993SrgrimesFREEBSD= CONTRIB.386BSD CONTRIB.FreeBSD 311126SrgrimesFREEBSD+= MIRROR.SITES PERSONAL.ACKS RELNOTES.FreeBSD SUPPORT.TXT 32993SrgrimesFREEBSD+= ${COPYRIGHT} 33277Srgrimes# 34277Srgrimes# Floppy drive name and files for building FreeBSD Floppies 35284SrgrimesFLOPPY?= fd0 36463SrgrimesMOUNT?= /mnt 371205SrgrimesFLOPPY_TYPE?= fd1200 38284Srgrimes# 39284SrgrimesMDEC= usr/mdec/bootfd usr/mdec/fdboot 40284SrgrimesMDEC+= usr/mdec/bootsd usr/mdec/sdboot 41284SrgrimesMDEC+= usr/mdec/bootwd usr/mdec/wdboot 42284Srgrimes# 431194SrgrimesKC_DIRS= dev mnt bin sbin 44284SrgrimesKC_FILES= ${COPYRIGHT} 451194SrgrimesKC_FILES+= bin/sh # XXX Crunch is broken! 461194SrgrimesKC_LINKS= bin/[ bin/cp bin/echo bin/test 471194SrgrimesKC_LINKS+= sbin/fsck sbin/halt sbin/init sbin/mount sbin/umount 48284Srgrimes# 491194SrgrimesFILESYSTEM_DIRS= bin dev etc mnt proc sbin usr usr/bin usr/mdec usr/sbin 50358SrgrimesFILESYSTEM_TREES= dev 51358SrgrimesFILESYSTEM_FILES= ${COPYRIGHT} 521194SrgrimesFILESYSTEM_FILES+= bin/sh # XXX Crunch is broken! 53412SalmFILESYSTEM_FILES+= dev/MAKEDEV 54358SrgrimesFILESYSTEM_FILES+= etc/group 55452SrgrimesFILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db 56358SrgrimesFILESYSTEM_FILES+= ${MDEC} 571194SrgrimesFILESYSTEM_LINKS= bin/[ bin/expr bin/ls bin/mkdir bin/rm 581194SrgrimesFILESYSTEM_LINKS+= bin/sync bin/test 591194SrgrimesFILESYSTEM_LINKS+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 601194SrgrimesFILESYSTEM_LINKS+= sbin/mount sbin/mount_pcfs 611194SrgrimesFILESYSTEM_LINKS+= sbin/newfs 621194SrgrimesFILESYSTEM_LINKS+= sbin/umount 631194SrgrimesFILESYSTEM_LINKS+= usr/bin/cpio 641194SrgrimesFILESYSTEM_LINKS+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat 651194SrgrimesFILESYSTEM_LINKS+= usr/sbin/bad144 661194SrgrimesFILESYSTEM_CPIO= .profile 671194SrgrimesFILESYSTEM_CPIO+= root/.profile 681194SrgrimesFILESYSTEM_CPIO+= bin/[ 691194SrgrimesFILESYSTEM_CPIO+= bin/chmod bin/cat bin/cp bin/df bin/expr bin/ls 701194SrgrimesFILESYSTEM_CPIO+= bin/ln bin/mkdir bin/mv bin/rm bin/sync 711194SrgrimesFILESYSTEM_CPIO+= bin/test 721194SrgrimesFILESYSTEM_CPIO+= etc/spwd.db 731194SrgrimesFILESYSTEM_CPIO+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 741194SrgrimesFILESYSTEM_CPIO+= sbin/mount sbin/mount_pcfs 751194SrgrimesFILESYSTEM_CPIO+= sbin/newfs 761194SrgrimesFILESYSTEM_CPIO+= sbin/umount 771243SrgrimesFILESYSTEM_CPIO_DIRS= root 78263Srgrimes 79358SrgrimesCPIO_FILES= ${COPYRIGHT} 801194SrgrimesCPIO_CPIO= bin/dd bin/ps bin/pwd bin/stty 811194SrgrimesCPIO_CPIO+= etc/protocols etc/remote etc/services 821194SrgrimesCPIO_CPIO+= etc/termcap 831194SrgrimesCPIO_CPIO+= sbin/dmesg 84452SrgrimesCPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_isofs 851194SrgrimesCPIO_CPIO+= sbin/mount_procfs 86452SrgrimesCPIO_CPIO+= sbin/reboot sbin/route sbin/slattach 871194SrgrimesCPIO_CPIO+= usr/bin/awk usr/bin/chgrp usr/bin/cpio usr/bin/ex usr/bin/ftp 881194SrgrimesCPIO_CPIO+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip 89358SrgrimesCPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip 901194SrgrimesCPIO_CPIO+= usr/bin/vi usr/bin/view usr/bin/zcat 911194SrgrimesCPIO_CPIO+= usr/lib/libc.so.1.0 921194SrgrimesCPIO_CPIO+= usr/lib/libcurses.so.1.0 931194SrgrimesCPIO_CPIO+= usr/lib/libgcc.so.1.0 941194SrgrimesCPIO_CPIO+= usr/lib/libm.so.1.0 951194SrgrimesCPIO_CPIO+= usr/lib/libtermlib.so.1.0 961194SrgrimesCPIO_CPIO+= usr/lib/libtermcap.so.1.0 971194SrgrimesCPIO_CPIO+= usr/lib/libutil.so.1.0 981243SrgrimesCPIO_CPIO+= usr/libexec/ld.so 991194SrgrimesCPIO_CPIO+= usr/sbin/bad144 usr/sbin/chown 1001194SrgrimesCPIO_CPIO+= usr/share/misc/termcap 1011243SrgrimesCPIO_CPIO_DIRS= tmp usr/lib usr/libexec usr/share usr/share/misc 1021243SrgrimesCPIO_CPIO_DIRS+= var var/tmp var/run var/spool var/spool/lock 103284Srgrimes 104347SrgrimesCRYPT_LIB= lib/libcrypt 105372SrgrimesCRYPT_SRCS= bin/ed bin/rcp 106372SrgrimesCRYPT_SRCS+= libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind 107372SrgrimesCRYPT_SRCS+= libexec/rshd libexec/telnetd libexec/uucpd 1081126SrgrimesCRYPT_SRCS+= sbin/init.bsdi 109372SrgrimesCRYPT_SRCS+= usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd 110372SrgrimesCRYPT_SRCS+= usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet 1111126SrgrimesCRYPT_DIRS= bin sbin usr usr/bin usr/lib usr/libexec 112347Srgrimes 11337Srgrimesall clean cleandir depend etc install lint: 11437Srgrimes 115347Srgrimescrypt: 116347Srgrimes rm -f ${LIBCRYPT}; 117347Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 118355Srgrimes ${MAKE} cleandir obj depend all install) 119372Srgrimes for i in ${CRYPT_SRCS}; do \ 120347Srgrimes cd ${.CURDIR}/../$$i; \ 121355Srgrimes ${MAKE} cleandir obj depend all; \ 122347Srgrimes done 123347Srgrimes 124347Srgrimesnon-crypt: 125347Srgrimes rm -f ${LIBCRYPT} 126372Srgrimes for i in ${CRYPT_SRCS}; do \ 127347Srgrimes cd ${.CURDIR}/../$$i; \ 128355Srgrimes ${MAKE} cleandir obj depend all; \ 129347Srgrimes done 130347Srgrimes 131147Srgrimesdistribution: distrib-dirs 13237Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 13337Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 134147Srgrimes install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 1351014Snate install -c -o root -g wheel -m 644 crontab ${DESTDIR}/etc 136238Sroot install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log 13737Srgrimes install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 138358Srgrimes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 13937Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 14037Srgrimes MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 141347Srgrimes.if defined(CDROMDIST) 142147Srgrimes (cd ${DESTDIR}/dev; sh MAKEDEV all) 143347Srgrimes.endif 14437Srgrimes (cd root; \ 14537Srgrimes install -c -o root -g wheel -m 644 dot.cshrc \ 14637Srgrimes ${DESTDIR}/root/.cshrc; \ 14737Srgrimes install -c -o root -g wheel -m 644 dot.klogin \ 14837Srgrimes ${DESTDIR}/root/.klogin; \ 14937Srgrimes install -c -o root -g wheel -m 644 dot.login \ 15037Srgrimes ${DESTDIR}/root/.login; \ 15137Srgrimes install -c -o root -g wheel -m 644 dot.profile \ 15237Srgrimes ${DESTDIR}/root/.profile; \ 15337Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 15437Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 15537Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 15637Srgrimes cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 15737Srgrimes ${DESTDIR}/etc/mtree 15837Srgrimes cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 15937Srgrimes ${DESTDIR}/etc/namedb 16037Srgrimes install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 16137Srgrimes ${DESTDIR}/etc/dumpdates 162147Srgrimes install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 163147Srgrimes ${DESTDIR}/var/db/locate.database 16437Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 165147Srgrimes ${DESTDIR}/var/log/lpd-errs 16637Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 16737Srgrimes ${DESTDIR}/var/log/maillog 16837Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 169288Srgrimes ${DESTDIR}/var/log/lastlog 170288Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 171147Srgrimes ${DESTDIR}/var/log/messages 17237Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 173147Srgrimes ${DESTDIR}/var/log/wtmp 174147Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 17537Srgrimes ${DESTDIR}/var/run/utmp 17637Srgrimes (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 177147Srgrimes fstab.* ${DESTDIR}/etc) 178347Srgrimes.if defined(NOCRYPT) 179355Srgrimes ${MAKE} non-crypt 180355Srgrimes (cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install) 181347Srgrimes.else 182355Srgrimes ${MAKE} crypt 183355Srgrimes (cd ..; ${MAKE} install) 184347Srgrimes.endif 185277Srgrimes (cd ../usr.sbin/sendmail/src; \ 186355Srgrimes ${MAKE} install; \ 187277Srgrimes cd ../cf/cf; \ 1881126Srgrimes ${MAKE} obj; \ 1891126Srgrimes ${MAKE} freefall.cf; \ 1901133Srgrimes install -o root -g wheel -m 644 obj/freefall.cf \ 191238Sroot ${DESTDIR}/etc/sendmail.cf) 192277Srgrimes (cd ../; \ 193277Srgrimes install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) 194355Srgrimes (cd ..; ${MAKE} mdec; ) 195644Srgrimes (cd ../share/man; ${MAKE} makedb; ) 196333Srgrimes.if ${MACHINE} == "tahoe" 197333Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 198333Srgrimes ${DESTDIR}/) 199168Srgrimes.endif 200333Srgrimes.if ${MACHINE} == "vax" 201333Srgrimes (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 202333Srgrimes ${DESTDIR}/) 203333Srgrimes.endif 20437Srgrimes 20537Srgrimeshcx9-distribution: 20637Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 20737Srgrimes ${DESTDIR}/) 20837Srgrimes 209358Srgrimeskcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT 210320Srgrimes (cd ../sys/compile; rm -rf GENERICAH GENERICBT) 211320Srgrimes (cd ../sys/i386/conf; config GENERICAH; config GENERICBT) 212355Srgrimes (cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \ 213320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 214320Srgrimes ${DESTDIR}/386bsd.GENERICAH) 215355Srgrimes (cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \ 216320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 217320Srgrimes ${DESTDIR}/386bsd.GENERICBT) 218320Srgrimes 219358Srgrimeskcopy-floppy: 220568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 221568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 222568Srgrimes newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space \ 2231027Sache r${FLOPPY} ${FLOPPY_TYPE} 2241027Sache mount /dev/${FLOPPY} ${MOUNT} 225333Srgrimes chown root.wheel ${MOUNT}/. 226333Srgrimes chmod 755 ${MOUNT}/. 227284Srgrimes (cd ${DESTDIR}/; \ 228320Srgrimes ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT}) 229277Srgrimes (cd ${MOUNT}/dev; \ 230277Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 231277Srgrimes rm -rf fd; \ 2321126Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0 sd1; \ 2331126Srgrimes rm -rf fd0?* rfd0?*;) 234284Srgrimes (cd ${DESTDIR}/; \ 235320Srgrimes ls ${KC_FILES} | cpio -pdamuv ${MOUNT}) 236277Srgrimes install -c -o root -g wheel -m 755 etc.i386/kc.profile \ 237277Srgrimes ${MOUNT}/.profile 2381194Srgrimes install -c -o root -g wheel -m 755 ${RELEASEDIR}/distbin/kcopy \ 2391194Srgrimes ${MOUNT}/bin/kcopy 2401194Srgrimes (cd ${MOUNT}/; \ 2411194Srgrimes for i in ${KC_LINKS}; do \ 2421194Srgrimes ln bin/kcopy $$i; \ 2431194Srgrimes done) 244320Srgrimes 2451205Srgrimeskcopy_ah.flp: 246372Srgrimes ${MAKE} kcopy-floppy 247320Srgrimes (cd ../sys/compile/GENERICAH; \ 248277Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 249277Srgrimes df -ik ${MOUNT} 2501027Sache umount /dev/${FLOPPY} 2511027Sache fsck /dev/r${FLOPPY} 2521205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/kcopy_ah.flp \ 253358Srgrimes bs=15b count=160 2541205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy_ah.flp \ 2551205Srgrimes >${RELEASEDIR}/floppies/kcopy_ah.flp.gz 256277Srgrimes 2571205Srgrimeskcopy_bt.flp: 258372Srgrimes ${MAKE} kcopy-floppy 259320Srgrimes (cd ../sys/compile/GENERICBT; \ 260320Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 261320Srgrimes df -ik ${MOUNT} 2621027Sache umount /dev/${FLOPPY} 2631027Sache fsck /dev/r${FLOPPY} 2641205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/kcopy_bt.flp \ 265358Srgrimes bs=15b count=160 2661205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy_bt.flp \ 2671205Srgrimes >${RELEASEDIR}/floppies/kcopy_bt.flp.gz 268320Srgrimes 2691205Srgrimesfilesyst.flp: 270568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 271568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 272568Srgrimes newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \ 2731027Sache r${FLOPPY} ${FLOPPY_TYPE} 2741027Sache mount /dev/${FLOPPY} ${MOUNT} 275333Srgrimes chown root.wheel ${MOUNT}/. 276333Srgrimes chmod 755 ${MOUNT}/. 277284Srgrimes (cd ${DESTDIR}/; \ 278358Srgrimes ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) 279284Srgrimes (cd ${MOUNT}/dev; \ 280284Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 281284Srgrimes rm -rf fd; \ 282435Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 sd0 sd1; \ 2831126Srgrimes rm -f fd0?* fd1?* rfd0?* rfd1?*) 284284Srgrimes (cd ${DESTDIR}/; \ 2851194Srgrimes ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}; \ 2861243Srgrimes (find ${FILESYSTEM_CPIO}; ls -d ${FILESYSTEM_CPIO_DIRS}) | \ 2871194Srgrimes cpio -H newc --block-size=16 -oav | \ 2881194Srgrimes gzip -9 >${MOUNT}/inst1.cpio.gz) 289284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.profile \ 290284Srgrimes ${MOUNT}/.profile 291284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.install \ 292284Srgrimes ${MOUNT}/install 2931194Srgrimes install -c -o root -g wheel -m 755 ${RELEASEDIR}/distbin/filesystem \ 2941194Srgrimes ${MOUNT}/bin/filesystem 295284Srgrimes (cd ${MOUNT}/; \ 2961194Srgrimes for i in ${FILESYSTEM_LINKS}; do \ 2971194Srgrimes ln bin/filesystem $$i; \ 2981194Srgrimes done) 2991194Srgrimes (cd ${MOUNT}/; \ 300358Srgrimes ls ${FILESYSTEM_FILES} >/tmp/filelist; \ 3011194Srgrimes ls ${FILESYSTEM_LINKS} >>/tmp/filelist; \ 302358Srgrimes ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ 303358Srgrimes find ${FILESYSTEM_TREES} >>/tmp/filelist; \ 3041243Srgrimes sort -u -r /tmp/filelist >filelist; \ 305333Srgrimes rm /tmp/filelist) 306284Srgrimes df -ik ${MOUNT} 3071027Sache umount /dev/${FLOPPY} 3081027Sache fsck /dev/r${FLOPPY} 3091205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/filesyst.flp \ 310358Srgrimes bs=15b count=160 3111205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesyst.flp \ 3121205Srgrimes >${RELEASEDIR}/floppies/filesyst.flp.gz 313284Srgrimes 3141205Srgrimescpio.flp: 315568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 316568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 317568Srgrimes newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \ 3181027Sache r${FLOPPY} ${FLOPPY_TYPE} 3191027Sache mount /dev/${FLOPPY} ${MOUNT} 320333Srgrimes chown root.wheel ${MOUNT}/. 321333Srgrimes chmod 755 ${MOUNT}/. 322284Srgrimes (cd ${DESTDIR}/; \ 323358Srgrimes ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) 324284Srgrimes (cd ${DESTDIR}/; \ 325444Srgrimes (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ 3261194Srgrimes cpio -H newc --block-size=16 -oav | \ 3271194Srgrimes gzip -9 >${MOUNT}/inst2.cpio.gz) 3281194Srgrimes install -c -o root -g wheel -m 755 etc.i386/cpio.rc \ 3291194Srgrimes ${MOUNT}/rc 3301194Srgrimes install -c -o root -g wheel -m 755 etc.i386/cpio.install \ 331284Srgrimes ${MOUNT}/install 3321194Srgrimes install -c -o root -g wheel -m 755 etc.i386/cpio.magic \ 3331194Srgrimes ${MOUNT}/magic 334284Srgrimes df -ik ${MOUNT} 3351027Sache umount /dev/${FLOPPY} 3361027Sache fsck /dev/r${FLOPPY} 3371205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cpio.flp \ 338358Srgrimes bs=15b count=160 3391205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio.flp \ 3401205Srgrimes >${RELEASEDIR}/floppies/cpio.flp.gz 341284Srgrimes 342372Srgrimesbin-tarball: 343372Srgrimes (cd ${DESTDIR}; \ 344538Srgrimes tar cf - . | \ 345538Srgrimes gzip --no-name -9 -c | \ 346538Srgrimes split -b 240640 - \ 347538Srgrimes ${RELEASEDIR}/tarballs/bin_tgz.) 348372Srgrimes 349538Srgrimessrcbase-tarball: 350376Srgrimes (cd ${DESTDIR}; \ 351538Srgrimes tar -cf - usr/src/[A-Z]* | \ 352538Srgrimes gzip --no-name -9 -c | \ 353538Srgrimes split -b 240640 - \ 354538Srgrimes ${RELEASEDIR}/tarballs/srcbase_tgz.) 355376Srgrimes 356538Srgrimessrcbin-tarball: 357376Srgrimes (cd ${DESTDIR}; \ 358538Srgrimes tar -cf - usr/src/bin | \ 359538Srgrimes gzip --no-name -9 -c | \ 360538Srgrimes split -b 240640 - \ 361538Srgrimes ${RELEASEDIR}/tarballs/srcbin_tgz.) 362376Srgrimes 363538Srgrimessrccontrib-tarball: 364538Srgrimes (cd ${DESTDIR}; \ 365538Srgrimes tar -cf - usr/src/contrib | \ 366538Srgrimes gzip --no-name -9 -c | \ 367538Srgrimes split -b 240640 - \ 368538Srgrimes ${RELEASEDIR}/tarballs/srccontrib_tgz.) 369538Srgrimes 370538Srgrimessrcetc-tarball: 371538Srgrimes (cd ${DESTDIR}; \ 372538Srgrimes tar -cf - usr/src/etc | \ 373538Srgrimes gzip --no-name -9 -c | \ 374538Srgrimes split -b 240640 - \ 375538Srgrimes ${RELEASEDIR}/tarballs/srcetc_tgz.) 376538Srgrimes 377538Srgrimessrcgames-tarball: 378538Srgrimes (cd ${DESTDIR}; \ 379538Srgrimes tar -cf - usr/src/games | \ 380538Srgrimes gzip --no-name -9 -c | \ 381538Srgrimes split -b 240640 - \ 382538Srgrimes ${RELEASEDIR}/tarballs/srcgames_tgz.) 383538Srgrimes 384538Srgrimessrcgnu-tarball: 385538Srgrimes (cd ${DESTDIR}; \ 386538Srgrimes tar -cf - usr/src/gnu | \ 387538Srgrimes gzip --no-name -9 -c | \ 388538Srgrimes split -b 240640 - \ 389538Srgrimes ${RELEASEDIR}/tarballs/srcgnu_tgz.) 390538Srgrimes 391538Srgrimessrcinclude-tarball: 392538Srgrimes (cd ${DESTDIR}; \ 393538Srgrimes tar -cf - usr/src/include | \ 394538Srgrimes gzip --no-name -9 -c | \ 395538Srgrimes split -b 240640 - \ 396538Srgrimes ${RELEASEDIR}/tarballs/srcinclude_tgz.) 397538Srgrimes 398538Srgrimessrclib-tarball: 399538Srgrimes (cd ${DESTDIR}; \ 400538Srgrimes tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src/lib | \ 401538Srgrimes gzip --no-name -9 -c | \ 402538Srgrimes split -b 240640 - \ 403538Srgrimes ${RELEASEDIR}/tarballs/srclib_tgz.) 404538Srgrimes 405538Srgrimessrclibcrypt-tarball: 406538Srgrimes (cd ${DESTDIR}; \ 407538Srgrimes tar -cf - usr/src/${CRYPT_LIB} | \ 408538Srgrimes gzip --no-name -9 -c | \ 409538Srgrimes split -b 240640 - \ 410538Srgrimes ${RELEASEDIR}/tarballs/srclibcrypt_tgz.) 411538Srgrimes 412538Srgrimessrclibexec-tarball: 413538Srgrimes (cd ${DESTDIR}; \ 414538Srgrimes tar -cf - usr/src/libexec | \ 415538Srgrimes gzip --no-name -9 -c | \ 416538Srgrimes split -b 240640 - \ 417538Srgrimes ${RELEASEDIR}/tarballs/srclibexec_tgz.) 418538Srgrimes 419538Srgrimessrcsbin-tarball: 420538Srgrimes (cd ${DESTDIR}; \ 421538Srgrimes tar -cf - usr/src/sbin | \ 422538Srgrimes gzip --no-name -9 -c | \ 423538Srgrimes split -b 240640 - \ 424538Srgrimes ${RELEASEDIR}/tarballs/srcsbin_tgz.) 425538Srgrimes 426538Srgrimessrcshare-tarball: 427538Srgrimes (cd ${DESTDIR}; \ 428538Srgrimes tar -cf - usr/src/share | \ 429538Srgrimes gzip --no-name -9 -c | \ 430538Srgrimes split -b 240640 - \ 431538Srgrimes ${RELEASEDIR}/tarballs/srcshare_tgz.) 432538Srgrimes 433538Srgrimessrcsys-tarball: 434538Srgrimes (cd ${DESTDIR}; \ 435538Srgrimes tar -cf - usr/src/sys | \ 436538Srgrimes gzip --no-name -9 -c | \ 437538Srgrimes split -b 240640 - \ 438538Srgrimes ${RELEASEDIR}/tarballs/srcsys_tgz.) 439538Srgrimes 440538Srgrimessrcusrbin-tarball: 441538Srgrimes (cd ${DESTDIR}; \ 442538Srgrimes tar -cf - usr/src/usr.bin | \ 443538Srgrimes gzip --no-name -9 -c | \ 444538Srgrimes split -b 240640 - \ 445538Srgrimes ${RELEASEDIR}/tarballs/srcusrbin_tgz.) 446538Srgrimes 447538Srgrimessrcusrsbin-tarball: 448538Srgrimes (cd ${DESTDIR}; \ 449538Srgrimes tar -cf - usr/src/usr.sbin | \ 450538Srgrimes gzip --no-name -9 -c | \ 451538Srgrimes split -b 240640 - \ 452538Srgrimes ${RELEASEDIR}/tarballs/srcusrsbin_tgz.) 453538Srgrimes 454538Srgrimessrc-tarball: srcbase-tarball srcbin-tarball srccontrib-tarball srcetc-tarball \ 455538Srgrimes srcgames-tarball srcgnu-tarball srcinclude-tarball srclib-tarball \ 456538Srgrimes srclibcrypt-tarball srclibexec-tarball srcsbin-tarball \ 457538Srgrimes srcshare-tarball srcsys-tarball srcusrbin-tarball \ 458538Srgrimes srcusrsbin-tarball 459538Srgrimes 460372Srgrimesdes-tarball: 461372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 462372Srgrimes mkdir ${RELEASEDIR}/tmpdes 463372Srgrimes for i in ${CRYPT_DIRS}; do \ 464372Srgrimes cd ${RELEASEDIR}/tmpdes; \ 465372Srgrimes mkdir $$i; \ 466372Srgrimes chown ${BINOWN}.${GRPOWN} $$i; \ 467372Srgrimes chmod 755 $$i; \ 468372Srgrimes done 469372Srgrimes # This is ugly, it force installs a /usr/lib/libcrypt.a so 470372Srgrimes # that the other makes will be built with des. 471372Srgrimes # 472372Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 473372Srgrimes unset NOCRYPT; \ 474372Srgrimes DESTDIR=; export DESTDIR; \ 475372Srgrimes ${MAKE} cleandir obj depend all install; \ 476372Srgrimes NOMAN=noman; export NOMAN; \ 477372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 478372Srgrimes ${MAKE} cleandir obj depend all install) 479372Srgrimes for i in ${CRYPT_SRCS}; do \ 480372Srgrimes unset NOCRYPT; \ 481372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 482372Srgrimes NOMAN=noman; export NOMAN; \ 483372Srgrimes cd ${.CURDIR}/../$$i; \ 484372Srgrimes ${MAKE} cleandir obj depend all install; \ 485372Srgrimes done 486372Srgrimes (cd ${RELEASEDIR}/tmpdes; \ 487538Srgrimes tar cf - . | \ 488538Srgrimes gzip --no-name -9 -c | \ 489372Srgrimes split -b 240640 - \ 490436Srgrimes ${RELEASEDIR}/tarballs/des_tgz.) 491372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 492372Srgrimes 493147Srgrimesdistrib-dirs: 494238Sroot mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ 495147Srgrimes mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var 496147Srgrimes mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr 497372Srgrimes.if defined(CDROMDIST) 498372Srgrimes mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local 499372Srgrimes.endif 500410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 501147Srgrimes 5021205Srgrimesfloppies: kcopy_ah.flp kcopy_bt.flp filesyst.flp \ 5031205Srgrimes cpio.flp 504372Srgrimes 5051195Srgrimesrelease: release-dirs distribution kcopy-kernels floppies \ 506376Srgrimes bin-tarball des-tarball 507372Srgrimes 508372Srgrimesrelease-dirs: 509994Srgrimes rm -rf ${RELEASEDIR}/filesys 510994Srgrimes mkdir ${RELEASEDIR}/filesys 511994Srgrimes chown root.wheel ${RELEASEDIR}/filesys 512994Srgrimes chmod 755 ${RELEASEDIR}/filesys 513372Srgrimes rm -rf ${RELEASEDIR}/tarballs 514372Srgrimes mkdir ${RELEASEDIR}/tarballs 515372Srgrimes chown root.wheel ${RELEASEDIR}/tarballs 516372Srgrimes chmod 755 ${RELEASEDIR}/tarballs 517372Srgrimes rm -rf ${RELEASEDIR}/floppies 518372Srgrimes mkdir ${RELEASEDIR}/floppies 519372Srgrimes chown root.wheel ${RELEASEDIR}/floppies 520372Srgrimes chmod 755 ${RELEASEDIR}/floppies 521372Srgrimes 52237Srgrimes.include <bsd.prog.mk> 523