Makefile revision 1371
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 21371Srgrimes# $Id: Makefile,v 1.53.2.3 1994/04/10 20:19:37 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# 431285SrgrimesKC_DIRS= bin dev mnt sbin 44284SrgrimesKC_FILES= ${COPYRIGHT} 451194SrgrimesKC_FILES+= bin/sh # XXX Crunch is broken! 461285SrgrimesKC_FILES+= sbin/mount sbin/mount_isofs # XXX Crunch is broken! 471194SrgrimesKC_LINKS= bin/[ bin/cp bin/echo bin/test 481285SrgrimesKC_LINKS+= sbin/fsck sbin/halt sbin/init 491285SrgrimesKC_LINKS+= sbin/umount 50284Srgrimes# 511371SrgrimesCD_DIRS= etc usr 521371Srgrimes# 531194SrgrimesFILESYSTEM_DIRS= bin dev etc mnt proc sbin usr usr/bin usr/mdec usr/sbin 54358SrgrimesFILESYSTEM_TREES= dev 55358SrgrimesFILESYSTEM_FILES= ${COPYRIGHT} 561194SrgrimesFILESYSTEM_FILES+= bin/sh # XXX Crunch is broken! 57412SalmFILESYSTEM_FILES+= dev/MAKEDEV 58358SrgrimesFILESYSTEM_FILES+= etc/group 59452SrgrimesFILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db 60358SrgrimesFILESYSTEM_FILES+= ${MDEC} 611194SrgrimesFILESYSTEM_LINKS= bin/[ bin/expr bin/ls bin/mkdir bin/rm 621194SrgrimesFILESYSTEM_LINKS+= bin/sync bin/test 631194SrgrimesFILESYSTEM_LINKS+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 641194SrgrimesFILESYSTEM_LINKS+= sbin/mount sbin/mount_pcfs 651194SrgrimesFILESYSTEM_LINKS+= sbin/newfs 661194SrgrimesFILESYSTEM_LINKS+= sbin/umount 671194SrgrimesFILESYSTEM_LINKS+= usr/bin/cpio 681194SrgrimesFILESYSTEM_LINKS+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat 691194SrgrimesFILESYSTEM_LINKS+= usr/sbin/bad144 701194SrgrimesFILESYSTEM_CPIO= .profile 711194SrgrimesFILESYSTEM_CPIO+= root/.profile 721194SrgrimesFILESYSTEM_CPIO+= bin/[ 731194SrgrimesFILESYSTEM_CPIO+= bin/chmod bin/cat bin/cp bin/df bin/expr bin/ls 741194SrgrimesFILESYSTEM_CPIO+= bin/ln bin/mkdir bin/mv bin/rm bin/sync 751194SrgrimesFILESYSTEM_CPIO+= bin/test 761194SrgrimesFILESYSTEM_CPIO+= etc/spwd.db 771194SrgrimesFILESYSTEM_CPIO+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 781194SrgrimesFILESYSTEM_CPIO+= sbin/mount sbin/mount_pcfs 791194SrgrimesFILESYSTEM_CPIO+= sbin/newfs 801194SrgrimesFILESYSTEM_CPIO+= sbin/umount 811243SrgrimesFILESYSTEM_CPIO_DIRS= root 82263Srgrimes 83358SrgrimesCPIO_FILES= ${COPYRIGHT} 841194SrgrimesCPIO_CPIO= bin/dd bin/ps bin/pwd bin/stty 851194SrgrimesCPIO_CPIO+= etc/protocols etc/remote etc/services 861194SrgrimesCPIO_CPIO+= etc/termcap 871194SrgrimesCPIO_CPIO+= sbin/dmesg 88452SrgrimesCPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_isofs 891194SrgrimesCPIO_CPIO+= sbin/mount_procfs 90452SrgrimesCPIO_CPIO+= sbin/reboot sbin/route sbin/slattach 911194SrgrimesCPIO_CPIO+= usr/bin/awk usr/bin/chgrp usr/bin/cpio usr/bin/ex usr/bin/ftp 921194SrgrimesCPIO_CPIO+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip 93358SrgrimesCPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip 941194SrgrimesCPIO_CPIO+= usr/bin/vi usr/bin/view usr/bin/zcat 951194SrgrimesCPIO_CPIO+= usr/lib/libc.so.1.0 961194SrgrimesCPIO_CPIO+= usr/lib/libcurses.so.1.0 971194SrgrimesCPIO_CPIO+= usr/lib/libgcc.so.1.0 981194SrgrimesCPIO_CPIO+= usr/lib/libm.so.1.0 991194SrgrimesCPIO_CPIO+= usr/lib/libtermlib.so.1.0 1001194SrgrimesCPIO_CPIO+= usr/lib/libtermcap.so.1.0 1011194SrgrimesCPIO_CPIO+= usr/lib/libutil.so.1.0 1021243SrgrimesCPIO_CPIO+= usr/libexec/ld.so 1031194SrgrimesCPIO_CPIO+= usr/sbin/bad144 usr/sbin/chown 1041194SrgrimesCPIO_CPIO+= usr/share/misc/termcap 1051243SrgrimesCPIO_CPIO_DIRS= tmp usr/lib usr/libexec usr/share usr/share/misc 1061243SrgrimesCPIO_CPIO_DIRS+= var var/tmp var/run var/spool var/spool/lock 107284Srgrimes 108347SrgrimesCRYPT_LIB= lib/libcrypt 109372SrgrimesCRYPT_SRCS= bin/ed bin/rcp 110372SrgrimesCRYPT_SRCS+= libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind 111372SrgrimesCRYPT_SRCS+= libexec/rshd libexec/telnetd libexec/uucpd 1121126SrgrimesCRYPT_SRCS+= sbin/init.bsdi 113372SrgrimesCRYPT_SRCS+= usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd 114372SrgrimesCRYPT_SRCS+= usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet 1151126SrgrimesCRYPT_DIRS= bin sbin usr usr/bin usr/lib usr/libexec 116347Srgrimes 11737Srgrimesall clean cleandir depend etc install lint: 11837Srgrimes 119347Srgrimescrypt: 120347Srgrimes rm -f ${LIBCRYPT}; 121347Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 122355Srgrimes ${MAKE} cleandir obj depend all install) 123372Srgrimes for i in ${CRYPT_SRCS}; do \ 124347Srgrimes cd ${.CURDIR}/../$$i; \ 125355Srgrimes ${MAKE} cleandir obj depend all; \ 126347Srgrimes done 127347Srgrimes 128347Srgrimesnon-crypt: 129347Srgrimes rm -f ${LIBCRYPT} 130372Srgrimes for i in ${CRYPT_SRCS}; do \ 131347Srgrimes cd ${.CURDIR}/../$$i; \ 132355Srgrimes ${MAKE} cleandir obj depend all; \ 133347Srgrimes done 134347Srgrimes 135147Srgrimesdistribution: distrib-dirs 13637Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 13737Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 138147Srgrimes install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 1391014Snate install -c -o root -g wheel -m 644 crontab ${DESTDIR}/etc 140238Sroot install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log 14137Srgrimes install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 142358Srgrimes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 14337Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 14437Srgrimes MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 145347Srgrimes.if defined(CDROMDIST) 146147Srgrimes (cd ${DESTDIR}/dev; sh MAKEDEV all) 147347Srgrimes.endif 14837Srgrimes (cd root; \ 14937Srgrimes install -c -o root -g wheel -m 644 dot.cshrc \ 15037Srgrimes ${DESTDIR}/root/.cshrc; \ 15137Srgrimes install -c -o root -g wheel -m 644 dot.klogin \ 15237Srgrimes ${DESTDIR}/root/.klogin; \ 15337Srgrimes install -c -o root -g wheel -m 644 dot.login \ 15437Srgrimes ${DESTDIR}/root/.login; \ 15537Srgrimes install -c -o root -g wheel -m 644 dot.profile \ 15637Srgrimes ${DESTDIR}/root/.profile; \ 15737Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 15837Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 15937Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 16037Srgrimes cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 16137Srgrimes ${DESTDIR}/etc/mtree 16237Srgrimes cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 16337Srgrimes ${DESTDIR}/etc/namedb 16437Srgrimes install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 16537Srgrimes ${DESTDIR}/etc/dumpdates 166147Srgrimes install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 167147Srgrimes ${DESTDIR}/var/db/locate.database 16837Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 169147Srgrimes ${DESTDIR}/var/log/lpd-errs 17037Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 17137Srgrimes ${DESTDIR}/var/log/maillog 17237Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 173288Srgrimes ${DESTDIR}/var/log/lastlog 174288Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 175147Srgrimes ${DESTDIR}/var/log/messages 17637Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 177147Srgrimes ${DESTDIR}/var/log/wtmp 178147Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 17937Srgrimes ${DESTDIR}/var/run/utmp 18037Srgrimes (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 181147Srgrimes fstab.* ${DESTDIR}/etc) 182347Srgrimes.if defined(NOCRYPT) 183355Srgrimes ${MAKE} non-crypt 184355Srgrimes (cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install) 185347Srgrimes.else 186355Srgrimes ${MAKE} crypt 187355Srgrimes (cd ..; ${MAKE} install) 188347Srgrimes.endif 189277Srgrimes (cd ../usr.sbin/sendmail/src; \ 190355Srgrimes ${MAKE} install; \ 191277Srgrimes cd ../cf/cf; \ 1921126Srgrimes ${MAKE} obj; \ 1931126Srgrimes ${MAKE} freefall.cf; \ 1941133Srgrimes install -o root -g wheel -m 644 obj/freefall.cf \ 195238Sroot ${DESTDIR}/etc/sendmail.cf) 196277Srgrimes (cd ../; \ 197277Srgrimes install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) 198355Srgrimes (cd ..; ${MAKE} mdec; ) 199644Srgrimes (cd ../share/man; ${MAKE} makedb; ) 200333Srgrimes.if ${MACHINE} == "tahoe" 201333Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 202333Srgrimes ${DESTDIR}/) 203168Srgrimes.endif 204333Srgrimes.if ${MACHINE} == "vax" 205333Srgrimes (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 206333Srgrimes ${DESTDIR}/) 207333Srgrimes.endif 20837Srgrimes 20937Srgrimeshcx9-distribution: 21037Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 21137Srgrimes ${DESTDIR}/) 21237Srgrimes 213358Srgrimeskcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT 214320Srgrimes (cd ../sys/compile; rm -rf GENERICAH GENERICBT) 215320Srgrimes (cd ../sys/i386/conf; config GENERICAH; config GENERICBT) 216355Srgrimes (cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \ 217320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 218320Srgrimes ${DESTDIR}/386bsd.GENERICAH) 219355Srgrimes (cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \ 220320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 221320Srgrimes ${DESTDIR}/386bsd.GENERICBT) 222320Srgrimes 223358Srgrimeskcopy-floppy: 224568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 225568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 2261285Srgrimes newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \ 2271027Sache r${FLOPPY} ${FLOPPY_TYPE} 2281027Sache mount /dev/${FLOPPY} ${MOUNT} 229333Srgrimes chown root.wheel ${MOUNT}/. 230333Srgrimes chmod 755 ${MOUNT}/. 231284Srgrimes (cd ${DESTDIR}/; \ 232320Srgrimes ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT}) 233277Srgrimes (cd ${MOUNT}/dev; \ 234277Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 235277Srgrimes rm -rf fd; \ 2361371Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 wd1 sd0 sd1; \ 2371371Srgrimes rm -rf fd0?* rfd0?* fd1?* rfd1?*; \ 2381371Srgrimes sh ${DESTDIR}/dev/MAKEDEV cd0 mcd0 mcd1; \ 2391371Srgrimes rm -rf rmcd*) 240284Srgrimes (cd ${DESTDIR}/; \ 241320Srgrimes ls ${KC_FILES} | cpio -pdamuv ${MOUNT}) 242277Srgrimes install -c -o root -g wheel -m 755 etc.i386/kc.profile \ 243277Srgrimes ${MOUNT}/.profile 2441194Srgrimes install -c -o root -g wheel -m 755 ${RELEASEDIR}/distbin/kcopy \ 2451194Srgrimes ${MOUNT}/bin/kcopy 2461194Srgrimes (cd ${MOUNT}/; \ 2471194Srgrimes for i in ${KC_LINKS}; do \ 2481194Srgrimes ln bin/kcopy $$i; \ 2491194Srgrimes done) 250320Srgrimes 2511205Srgrimeskcopy_ah.flp: 252372Srgrimes ${MAKE} kcopy-floppy 253320Srgrimes (cd ../sys/compile/GENERICAH; \ 254277Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 255277Srgrimes df -ik ${MOUNT} 2561027Sache umount /dev/${FLOPPY} 2571027Sache fsck /dev/r${FLOPPY} 2581205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/kcopy_ah.flp \ 259358Srgrimes bs=15b count=160 2601205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy_ah.flp \ 2611205Srgrimes >${RELEASEDIR}/floppies/kcopy_ah.flp.gz 262277Srgrimes 2631205Srgrimeskcopy_bt.flp: 264372Srgrimes ${MAKE} kcopy-floppy 265320Srgrimes (cd ../sys/compile/GENERICBT; \ 266320Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 267320Srgrimes df -ik ${MOUNT} 2681027Sache umount /dev/${FLOPPY} 2691027Sache fsck /dev/r${FLOPPY} 2701205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/kcopy_bt.flp \ 271358Srgrimes bs=15b count=160 2721205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy_bt.flp \ 2731205Srgrimes >${RELEASEDIR}/floppies/kcopy_bt.flp.gz 274320Srgrimes 2751285Srgrimescdins-floppy: 2761285Srgrimes ${MAKE} kcopy-floppy 2771371Srgrimes (cd ${DESTDIR}/; \ 2781371Srgrimes ls -d ${CD_DIRS} | cpio -pdamuv ${MOUNT}) 2791371Srgrimes (cd ${MOUNT}/usr; \ 2801371Srgrimes ln -s /cdrom/filesys/usr/libexec libexec; \ 2811371Srgrimes ln -s /cdrom/filesys/usr/lib lib) 2821285Srgrimes mkdir ${MOUNT}/cdrom 2831285Srgrimes chown root.wheel ${MOUNT}/cdrom 2841285Srgrimes chmod 755 ${MOUNT}/cdrom 2851285Srgrimes install -c -o root -g wheel -m 755 etc.i386/cdinst1.profile \ 2861285Srgrimes ${MOUNT}/.profile 2871285Srgrimes install -c -o root -g wheel -m 755 etc.i386/cdinst1.install \ 2881285Srgrimes ${MOUNT}/install 2891285Srgrimes 2901285Srgrimescdins_ah.flp: 2911285Srgrimes ${MAKE} cdins-floppy 2921285Srgrimes (cd ../sys/compile/GENERICAH; \ 2931285Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 2941285Srgrimes df -ik ${MOUNT} 2951285Srgrimes umount /dev/${FLOPPY} 2961285Srgrimes fsck /dev/r${FLOPPY} 2971285Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cdins_ah.flp \ 2981285Srgrimes bs=15b count=160 2991285Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/cdins_ah.flp \ 3001285Srgrimes >${RELEASEDIR}/floppies/cdins_ah.flp.gz 3011285Srgrimes 3021285Srgrimescdins_bt.flp: 3031285Srgrimes ${MAKE} cdins-floppy 3041285Srgrimes (cd ../sys/compile/GENERICBT; \ 3051285Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 3061285Srgrimes df -ik ${MOUNT} 3071285Srgrimes umount /dev/${FLOPPY} 3081285Srgrimes fsck /dev/r${FLOPPY} 3091285Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cdins_bt.flp \ 3101285Srgrimes bs=15b count=160 3111285Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/cdins_bt.flp \ 3121285Srgrimes >${RELEASEDIR}/floppies/cdins_bt.flp.gz 3131285Srgrimes 3141205Srgrimesfilesyst.flp: 315568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 316568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 317568Srgrimes newfs -b 4096 -c 80 -f 512 -i 10240 -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 -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) 324284Srgrimes (cd ${MOUNT}/dev; \ 325284Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 326284Srgrimes rm -rf fd; \ 327435Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 sd0 sd1; \ 3281126Srgrimes rm -f fd0?* fd1?* rfd0?* rfd1?*) 329284Srgrimes (cd ${DESTDIR}/; \ 3301194Srgrimes ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}; \ 3311243Srgrimes (find ${FILESYSTEM_CPIO}; ls -d ${FILESYSTEM_CPIO_DIRS}) | \ 3321194Srgrimes cpio -H newc --block-size=16 -oav | \ 3331194Srgrimes gzip -9 >${MOUNT}/inst1.cpio.gz) 334284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.profile \ 335284Srgrimes ${MOUNT}/.profile 336284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.install \ 337284Srgrimes ${MOUNT}/install 3381194Srgrimes install -c -o root -g wheel -m 755 ${RELEASEDIR}/distbin/filesystem \ 3391194Srgrimes ${MOUNT}/bin/filesystem 340284Srgrimes (cd ${MOUNT}/; \ 3411194Srgrimes for i in ${FILESYSTEM_LINKS}; do \ 3421194Srgrimes ln bin/filesystem $$i; \ 3431194Srgrimes done) 3441194Srgrimes (cd ${MOUNT}/; \ 345358Srgrimes ls ${FILESYSTEM_FILES} >/tmp/filelist; \ 3461194Srgrimes ls ${FILESYSTEM_LINKS} >>/tmp/filelist; \ 347358Srgrimes ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ 348358Srgrimes find ${FILESYSTEM_TREES} >>/tmp/filelist; \ 3491243Srgrimes sort -u -r /tmp/filelist >filelist; \ 350333Srgrimes rm /tmp/filelist) 351284Srgrimes df -ik ${MOUNT} 3521027Sache umount /dev/${FLOPPY} 3531027Sache fsck /dev/r${FLOPPY} 3541205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/filesyst.flp \ 355358Srgrimes bs=15b count=160 3561205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesyst.flp \ 3571205Srgrimes >${RELEASEDIR}/floppies/filesyst.flp.gz 358284Srgrimes 3591205Srgrimescpio.flp: 360568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 361568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 362568Srgrimes newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \ 3631027Sache r${FLOPPY} ${FLOPPY_TYPE} 3641027Sache mount /dev/${FLOPPY} ${MOUNT} 365333Srgrimes chown root.wheel ${MOUNT}/. 366333Srgrimes chmod 755 ${MOUNT}/. 367284Srgrimes (cd ${DESTDIR}/; \ 368358Srgrimes ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) 369284Srgrimes (cd ${DESTDIR}/; \ 370444Srgrimes (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ 3711194Srgrimes cpio -H newc --block-size=16 -oav | \ 3721194Srgrimes gzip -9 >${MOUNT}/inst2.cpio.gz) 3731194Srgrimes install -c -o root -g wheel -m 755 etc.i386/cpio.rc \ 3741194Srgrimes ${MOUNT}/rc 3751194Srgrimes install -c -o root -g wheel -m 755 etc.i386/cpio.install \ 376284Srgrimes ${MOUNT}/install 3771194Srgrimes install -c -o root -g wheel -m 755 etc.i386/cpio.magic \ 3781194Srgrimes ${MOUNT}/magic 379284Srgrimes df -ik ${MOUNT} 3801027Sache umount /dev/${FLOPPY} 3811027Sache fsck /dev/r${FLOPPY} 3821205Srgrimes dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cpio.flp \ 383358Srgrimes bs=15b count=160 3841205Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio.flp \ 3851205Srgrimes >${RELEASEDIR}/floppies/cpio.flp.gz 386284Srgrimes 387372Srgrimesbin-tarball: 388372Srgrimes (cd ${DESTDIR}; \ 389538Srgrimes tar cf - . | \ 390538Srgrimes gzip --no-name -9 -c | \ 391538Srgrimes split -b 240640 - \ 392538Srgrimes ${RELEASEDIR}/tarballs/bin_tgz.) 393372Srgrimes 394538Srgrimessrcbase-tarball: 395376Srgrimes (cd ${DESTDIR}; \ 396538Srgrimes tar -cf - usr/src/[A-Z]* | \ 397538Srgrimes gzip --no-name -9 -c | \ 398538Srgrimes split -b 240640 - \ 399538Srgrimes ${RELEASEDIR}/tarballs/srcbase_tgz.) 400376Srgrimes 401538Srgrimessrcbin-tarball: 402376Srgrimes (cd ${DESTDIR}; \ 403538Srgrimes tar -cf - usr/src/bin | \ 404538Srgrimes gzip --no-name -9 -c | \ 405538Srgrimes split -b 240640 - \ 406538Srgrimes ${RELEASEDIR}/tarballs/srcbin_tgz.) 407376Srgrimes 408538Srgrimessrccontrib-tarball: 409538Srgrimes (cd ${DESTDIR}; \ 410538Srgrimes tar -cf - usr/src/contrib | \ 411538Srgrimes gzip --no-name -9 -c | \ 412538Srgrimes split -b 240640 - \ 413538Srgrimes ${RELEASEDIR}/tarballs/srccontrib_tgz.) 414538Srgrimes 415538Srgrimessrcetc-tarball: 416538Srgrimes (cd ${DESTDIR}; \ 417538Srgrimes tar -cf - usr/src/etc | \ 418538Srgrimes gzip --no-name -9 -c | \ 419538Srgrimes split -b 240640 - \ 420538Srgrimes ${RELEASEDIR}/tarballs/srcetc_tgz.) 421538Srgrimes 422538Srgrimessrcgames-tarball: 423538Srgrimes (cd ${DESTDIR}; \ 424538Srgrimes tar -cf - usr/src/games | \ 425538Srgrimes gzip --no-name -9 -c | \ 426538Srgrimes split -b 240640 - \ 427538Srgrimes ${RELEASEDIR}/tarballs/srcgames_tgz.) 428538Srgrimes 429538Srgrimessrcgnu-tarball: 430538Srgrimes (cd ${DESTDIR}; \ 431538Srgrimes tar -cf - usr/src/gnu | \ 432538Srgrimes gzip --no-name -9 -c | \ 433538Srgrimes split -b 240640 - \ 434538Srgrimes ${RELEASEDIR}/tarballs/srcgnu_tgz.) 435538Srgrimes 436538Srgrimessrcinclude-tarball: 437538Srgrimes (cd ${DESTDIR}; \ 438538Srgrimes tar -cf - usr/src/include | \ 439538Srgrimes gzip --no-name -9 -c | \ 440538Srgrimes split -b 240640 - \ 441538Srgrimes ${RELEASEDIR}/tarballs/srcinclude_tgz.) 442538Srgrimes 443538Srgrimessrclib-tarball: 444538Srgrimes (cd ${DESTDIR}; \ 445538Srgrimes tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src/lib | \ 446538Srgrimes gzip --no-name -9 -c | \ 447538Srgrimes split -b 240640 - \ 448538Srgrimes ${RELEASEDIR}/tarballs/srclib_tgz.) 449538Srgrimes 450538Srgrimessrclibcrypt-tarball: 451538Srgrimes (cd ${DESTDIR}; \ 452538Srgrimes tar -cf - usr/src/${CRYPT_LIB} | \ 453538Srgrimes gzip --no-name -9 -c | \ 454538Srgrimes split -b 240640 - \ 455538Srgrimes ${RELEASEDIR}/tarballs/srclibcrypt_tgz.) 456538Srgrimes 457538Srgrimessrclibexec-tarball: 458538Srgrimes (cd ${DESTDIR}; \ 459538Srgrimes tar -cf - usr/src/libexec | \ 460538Srgrimes gzip --no-name -9 -c | \ 461538Srgrimes split -b 240640 - \ 462538Srgrimes ${RELEASEDIR}/tarballs/srclibexec_tgz.) 463538Srgrimes 464538Srgrimessrcsbin-tarball: 465538Srgrimes (cd ${DESTDIR}; \ 466538Srgrimes tar -cf - usr/src/sbin | \ 467538Srgrimes gzip --no-name -9 -c | \ 468538Srgrimes split -b 240640 - \ 469538Srgrimes ${RELEASEDIR}/tarballs/srcsbin_tgz.) 470538Srgrimes 471538Srgrimessrcshare-tarball: 472538Srgrimes (cd ${DESTDIR}; \ 473538Srgrimes tar -cf - usr/src/share | \ 474538Srgrimes gzip --no-name -9 -c | \ 475538Srgrimes split -b 240640 - \ 476538Srgrimes ${RELEASEDIR}/tarballs/srcshare_tgz.) 477538Srgrimes 478538Srgrimessrcsys-tarball: 479538Srgrimes (cd ${DESTDIR}; \ 480538Srgrimes tar -cf - usr/src/sys | \ 481538Srgrimes gzip --no-name -9 -c | \ 482538Srgrimes split -b 240640 - \ 483538Srgrimes ${RELEASEDIR}/tarballs/srcsys_tgz.) 484538Srgrimes 485538Srgrimessrcusrbin-tarball: 486538Srgrimes (cd ${DESTDIR}; \ 487538Srgrimes tar -cf - usr/src/usr.bin | \ 488538Srgrimes gzip --no-name -9 -c | \ 489538Srgrimes split -b 240640 - \ 490538Srgrimes ${RELEASEDIR}/tarballs/srcusrbin_tgz.) 491538Srgrimes 492538Srgrimessrcusrsbin-tarball: 493538Srgrimes (cd ${DESTDIR}; \ 494538Srgrimes tar -cf - usr/src/usr.sbin | \ 495538Srgrimes gzip --no-name -9 -c | \ 496538Srgrimes split -b 240640 - \ 497538Srgrimes ${RELEASEDIR}/tarballs/srcusrsbin_tgz.) 498538Srgrimes 499538Srgrimessrc-tarball: srcbase-tarball srcbin-tarball srccontrib-tarball srcetc-tarball \ 500538Srgrimes srcgames-tarball srcgnu-tarball srcinclude-tarball srclib-tarball \ 501538Srgrimes srclibcrypt-tarball srclibexec-tarball srcsbin-tarball \ 502538Srgrimes srcshare-tarball srcsys-tarball srcusrbin-tarball \ 503538Srgrimes srcusrsbin-tarball 504538Srgrimes 505372Srgrimesdes-tarball: 506372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 507372Srgrimes mkdir ${RELEASEDIR}/tmpdes 508372Srgrimes for i in ${CRYPT_DIRS}; do \ 509372Srgrimes cd ${RELEASEDIR}/tmpdes; \ 510372Srgrimes mkdir $$i; \ 511372Srgrimes chown ${BINOWN}.${GRPOWN} $$i; \ 512372Srgrimes chmod 755 $$i; \ 513372Srgrimes done 514372Srgrimes # This is ugly, it force installs a /usr/lib/libcrypt.a so 515372Srgrimes # that the other makes will be built with des. 516372Srgrimes # 517372Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 518372Srgrimes unset NOCRYPT; \ 519372Srgrimes DESTDIR=; export DESTDIR; \ 520372Srgrimes ${MAKE} cleandir obj depend all install; \ 521372Srgrimes NOMAN=noman; export NOMAN; \ 522372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 523372Srgrimes ${MAKE} cleandir obj depend all install) 524372Srgrimes for i in ${CRYPT_SRCS}; do \ 525372Srgrimes unset NOCRYPT; \ 526372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 527372Srgrimes NOMAN=noman; export NOMAN; \ 528372Srgrimes cd ${.CURDIR}/../$$i; \ 529372Srgrimes ${MAKE} cleandir obj depend all install; \ 530372Srgrimes done 531372Srgrimes (cd ${RELEASEDIR}/tmpdes; \ 532538Srgrimes tar cf - . | \ 533538Srgrimes gzip --no-name -9 -c | \ 534372Srgrimes split -b 240640 - \ 535436Srgrimes ${RELEASEDIR}/tarballs/des_tgz.) 536372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 537372Srgrimes 538147Srgrimesdistrib-dirs: 539238Sroot mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ 540147Srgrimes mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var 541147Srgrimes mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr 542372Srgrimes.if defined(CDROMDIST) 543372Srgrimes mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local 544372Srgrimes.endif 545410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 546147Srgrimes 5471285Srgrimesfloppies: kcopy_ah.flp kcopy_bt.flp filesyst.flp cpio.flp \ 5481285Srgrimes cdins_ah.flp cdins_bt.flp 549372Srgrimes 5501285Srgrimesrelease: release-dirs distribution kcopy-kernels floppies \ 5511285Srgrimes bin-tarball des-tarball 552372Srgrimes 553372Srgrimesrelease-dirs: 554994Srgrimes rm -rf ${RELEASEDIR}/filesys 555994Srgrimes mkdir ${RELEASEDIR}/filesys 556994Srgrimes chown root.wheel ${RELEASEDIR}/filesys 557994Srgrimes chmod 755 ${RELEASEDIR}/filesys 558372Srgrimes rm -rf ${RELEASEDIR}/tarballs 559372Srgrimes mkdir ${RELEASEDIR}/tarballs 560372Srgrimes chown root.wheel ${RELEASEDIR}/tarballs 561372Srgrimes chmod 755 ${RELEASEDIR}/tarballs 562372Srgrimes rm -rf ${RELEASEDIR}/floppies 563372Srgrimes mkdir ${RELEASEDIR}/floppies 564372Srgrimes chown root.wheel ${RELEASEDIR}/floppies 565372Srgrimes chmod 755 ${RELEASEDIR}/floppies 566372Srgrimes 56737Srgrimes.include <bsd.prog.mk> 568