1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.102 1995/01/27 02:20:42 jkh Exp $ 3 4# disktab may be wrong -- hcx9 is a tahoe, but gets its own. 5# -rw-r--r-- 6BINOWN= root 7BINGRP= wheel 8BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ 9 ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 10 inetd.conf login.access motd netstart \ 11 networks phones printcap profile protocols rc rc.local rc.serial \ 12 remote security services shells \ 13 syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ 14 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 15 ${.CURDIR}/../usr.bin/mail/misc/mail.rc 16 17# -rw-rw-rw- 18BIN2= motd 19 20# -rwxr-xr-x root.wheel, for the new cron root.wheel 21BIN3= daily weekly monthly 22 23CLEANFILES+= *.c *.o *.lo 24CLEANFILES+= filesystem filesystem.cache filesystem.mk 25CLEANFILES+= kcopy kcopy.cache kcopy.mk 26 27MAKEDEVS= (cd ${MOUNT}/dev; \ 28 sh ${DESTDIR}/dev/MAKEDEV std; \ 29 rm -rf fd; \ 30 sh ${DESTDIR}/dev/MAKEDEV fd0 fd1; \ 31 rm -rf fd0?* rfd0?* fd1?* rfd1?*; \ 32 sh ${DESTDIR}/dev/MAKEDEV wd0 wd1 sd0 sd1 cd0 mcd0 mcd1; \ 33 rm -rf *wd[01][ijklm] rmcd*) 34 35ZIPNSPLIT= gzip --no-name -9 -c | split -b 240640 - 36 37MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist 38NAMEDB= localhost.rev named.boot root.cache 39PPPCNF= ppp.conf.filter.sample ppp.conf.iij ppp.conf.sample \ 40 ppp.linkup.sample ppp.secret.sample 41PCS= pcs750.bin 42WCS1= wcs fppwcs poc poc1 poc2 fppoc 43WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 44 45# Special top level files for FreeBSD 46COPYRIGHT= COPYRIGHT 47FREEBSD= 48FREEBSD+= ${COPYRIGHT} 49# 50# Floppy drive name, mount point, type and parameters for building Floppies 51FLOPPY?= fd0 52MOUNT?= /mnt 53FLOPPY_TYPE?= fd1440 54FLOPPY_BS?= 18b 55FLOPPY_TRACKS?= 160 56# 57MDEC= usr/mdec/bootfd usr/mdec/fdboot 58MDEC+= usr/mdec/bootsd usr/mdec/sdboot 59MDEC+= usr/mdec/bootwd usr/mdec/wdboot 60# 61KC_DIRS= bin dev mnt sbin etc 62KC_FILES= ${COPYRIGHT} 63KC_LINKS= bin/[ bin/cp bin/echo bin/sh bin/test 64KC_LINKS+= sbin/fsck sbin/halt sbin/init 65KC_LINKS+= sbin/mount sbin/mount_cd9660 66KC_LINKS+= sbin/umount 67# 68CD_DIRS= etc usr 69# 70FILESYSTEM_DIRS= bin dev etc mnt proc sbin usr usr/bin usr/mdec usr/sbin 71FILESYSTEM_TREES= dev 72FILESYSTEM_FILES= ${COPYRIGHT} 73FILESYSTEM_FILES+= dev/MAKEDEV 74FILESYSTEM_FILES+= etc/group 75FILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db 76FILESYSTEM_FILES+= ${MDEC} 77FILESYSTEM_LINKS= bin/[ bin/expr bin/ls bin/mkdir bin/rm 78FILESYSTEM_LINKS+= bin/sh bin/sync bin/test 79FILESYSTEM_LINKS+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 80FILESYSTEM_LINKS+= sbin/mount 81FILESYSTEM_LINKS+= sbin/newfs 82FILESYSTEM_LINKS+= sbin/umount 83FILESYSTEM_LINKS+= usr/bin/cpio 84FILESYSTEM_LINKS+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat 85FILESYSTEM_LINKS+= usr/sbin/bad144 86FILESYSTEM_CPIO= .profile 87FILESYSTEM_CPIO+= root/.profile 88FILESYSTEM_CPIO+= bin/[ 89FILESYSTEM_CPIO+= bin/chmod bin/cat bin/cp bin/df bin/expr bin/ls 90FILESYSTEM_CPIO+= bin/ln bin/mkdir bin/mv bin/rm bin/sync 91FILESYSTEM_CPIO+= bin/test 92FILESYSTEM_CPIO+= etc/spwd.db 93FILESYSTEM_CPIO+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 94FILESYSTEM_CPIO+= sbin/mount 95FILESYSTEM_CPIO+= sbin/newfs 96FILESYSTEM_CPIO+= sbin/umount 97FILESYSTEM_CPIO_DIRS= root 98 99CPIO_FILES= ${COPYRIGHT} 100CPIO_CPIO= bin/dd bin/ps bin/pwd bin/stty 101CPIO_CPIO+= etc/protocols etc/remote etc/services 102CPIO_CPIO+= etc/termcap 103CPIO_CPIO+= sbin/dmesg 104CPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_cd9660 105CPIO_CPIO+= sbin/mount_procfs 106CPIO_CPIO+= sbin/reboot sbin/route sbin/slattach 107CPIO_CPIO+= usr/bin/awk usr/bin/chgrp usr/bin/cpio usr/bin/ex usr/bin/ftp 108CPIO_CPIO+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip 109CPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip 110CPIO_CPIO+= usr/bin/vi usr/bin/view usr/bin/zcat 111CPIO_CPIO+= usr/lib/libc.so.* 112CPIO_CPIO+= usr/lib/libcurses.so.* 113CPIO_CPIO+= usr/lib/libgcc.so.* 114CPIO_CPIO+= usr/lib/libm.so.* 115CPIO_CPIO+= usr/lib/libtermcap.so.* 116CPIO_CPIO+= usr/lib/libutil.so.* 117CPIO_CPIO+= usr/libexec/ld.so 118CPIO_CPIO+= usr/sbin/bad144 usr/sbin/chown 119CPIO_CPIO+= usr/share/misc/termcap 120CPIO_CPIO_DIRS= tmp usr/lib usr/libexec usr/share usr/share/misc 121CPIO_CPIO_DIRS+= var var/tmp var/run var/spool var/spool/lock 122 123SCRYPT_LIB= lib/libcrypt 124DESCRYPT_LIB= secure/lib/libcrypt 125CRYPT_SRCS= bin/ed bin/rcp 126CRYPT_SRCS+= sbin/init 127.if !defined(NOCRYPT) 128CRYPT_SRCS+= secure 129.endif 130CRYPT_DIRS= bin sbin usr usr/bin usr/lib 131 132all depend etc install lint: 133 134scrypt: 135 rm -f ${LIBCRYPT}; 136 (cd ${.CURDIR}/../${SCRYPT_LIB}; \ 137 ${MAKE} cleandir obj depend all install) 138 for i in ${CRYPT_SRCS}; do \ 139 cd ${.CURDIR}/../$$i; \ 140 ${MAKE} cleandir obj depend all; \ 141 done 142 143descrypt: 144 rm -f ${LIBCRYPT}; 145 (cd ${.CURDIR}/../${DESCRYPT_LIB}; \ 146 ${MAKE} cleandir obj depend all install) 147 for i in ${CRYPT_SRCS}; do \ 148 cd ${.CURDIR}/../$$i; \ 149 ${MAKE} cleandir obj depend all; \ 150 done 151 152distribute: 153 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${RELEASEDIR}/bin 154 155distribution: 156 (cd ${.CURDIR}; \ 157 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 158 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 159 install -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 160 install -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 161 install -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 162 ${DESTDIR}/var/cron/log; \ 163 install -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 164 master.passwd ${DESTDIR}/etc; \ 165 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 166 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 167 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 168 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 169 (cd ${.CURDIR}/root; \ 170 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 171 ${DESTDIR}/root/.cshrc; \ 172 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 173 ${DESTDIR}/root/.klogin; \ 174 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 175 ${DESTDIR}/root/.login; \ 176 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 177 ${DESTDIR}/root/.profile; \ 178 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 179 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 180 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 181 cd ${.CURDIR}/mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 182 ${MTREE} ${DESTDIR}/etc/mtree 183 cd ${.CURDIR}/namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 184 ${NAMEDB} ${DESTDIR}/etc/namedb 185 cd ${.CURDIR}/ppp; install -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 186 ${PPPCNF} ${DESTDIR}/etc/ppp 187 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 188 ${DESTDIR}/etc/dumpdates 189 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 190 ${DESTDIR}/var/db/locate.database 191 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 192 ${DESTDIR}/var/log/lpd-errs 193 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 194 ${DESTDIR}/var/log/maillog 195 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 196 ${DESTDIR}/var/log/lastlog 197 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 198 ${DESTDIR}/var/log/messages 199 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 200 ${DESTDIR}/var/log/wtmp 201 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 202 ${DESTDIR}/var/run/utmp 203 install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 204 ${DESTDIR}/var/crash 205 (cd ${.CURDIR}/etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} \ 206 -m 444 fstab.* ${DESTDIR}/etc) 207 (cd ${.CURDIR}/../usr.sbin/sendmail/src; \ 208 ${MAKE} obj; \ 209 ${MAKE} all; \ 210 ${MAKE} install; \ 211 cd ../cf/cf; \ 212 ${MAKE} obj; \ 213 ${MAKE} freefall.cf; \ 214 install -o ${BINOWN} -g ${BINGRP} -m 644 obj/freefall.cf \ 215 ${DESTDIR}/etc/sendmail.cf) 216 (cd ${.CURDIR}/..; \ 217 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} ${DESTDIR}/) 218 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 219 220crunch: 221 crunchgen ${.CURDIR}/../usr.sbin/crunch/examples/kcopy.conf 222 ${MAKE} -f kcopy.mk objs exe 223 crunchgen ${.CURDIR}/../usr.sbin/crunch/examples/filesystem.conf 224 ${MAKE} -f filesystem.mk objs exe 225 226extract: 227 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 228 ${.CURDIR}/etc.i386/EXTRACT_bin.sh \ 229 ${RELEASEDIR}/tarballs/bin/EXTRACT.sh 230 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 231 ${.CURDIR}/etc.i386/EXTRACT_src.sh \ 232 ${RELEASEDIR}/tarballs/bin/EXTRACT.sh 233 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 234 ${.CURDIR}/etc.i386/EXTRACT_secr.sh \ 235 ${RELEASEDIR}/tarballs/bin/EXTRACT.sh 236 237hcx9-distribution: 238 (cd ${.CURDIR}/etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} \ 239 -m 444 ${WCS2} ${DESTDIR}/) 240 241kcopy-kernels: ${.CURDIR}/../sys/i386/conf/GENERIC 242 (cd ${.CURDIR}/../sys/compile; rm -rf GENERIC) 243 (cd ${.CURDIR}/../sys/i386/conf; config GENERIC) 244 (cd ${.CURDIR}/../sys/compile/GENERIC; ${MAKE} depend; ${MAKE} all; \ 245 install -c -o ${BINOWN} -g ${BINGRP} -m 755 kernel \ 246 ${DESTDIR}/kernel.GENERIC) 247 248kcopy-floppy: 249 echo y | fdformat ${FLOPPY} 250 disklabel -w -r -B -b ${DESTDIR}/usr/mdec/fdboot \ 251 -s ${DESTDIR}/usr/mdec/bootfd ${FLOPPY} ${FLOPPY_TYPE} 252 newfs -b 4096 -c 80 -f 512 -i 8192 -m 0 -o space \ 253 r${FLOPPY} ${FLOPPY_TYPE} 254 mount /dev/${FLOPPY} ${MOUNT} 255 chown ${BINOWN}.${BINGRP} ${MOUNT}/. 256 chmod 755 ${MOUNT}/. 257 (cd ${DESTDIR}/; \ 258 ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT}) 259 ${MAKEDEVS} 260 (cd ${DESTDIR}/; \ 261 ls ${KC_FILES} | cpio -pdamuv ${MOUNT}) 262 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 263 ${.CURDIR}/etc.i386/kc.profile ${MOUNT}/etc/rc 264 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 265 kcopy ${MOUNT}/bin/kcopy 266 (cd ${MOUNT}/; \ 267 for i in ${KC_LINKS}; do \ 268 ln bin/kcopy $$i; \ 269 done) 270 271kcopy.flp: 272 (cd ${.CURDIR}; ${MAKE} kcopy-floppy) 273 (cd ${.CURDIR}/../sys/compile/GENERIC; \ 274 install -c -o ${BINOWN} -g ${BINGRP} -m 755 kernel ${MOUNT}/) 275 df -ik ${MOUNT} 276 # XXX umount is returning 1 for some reason :-( 277 -umount /dev/${FLOPPY} 278 fsck /dev/r${FLOPPY} 279 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/kcopy.flp \ 280 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 281 gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy.flp \ 282 >${RELEASEDIR}/floppies/kcopy.flp.gz & 283 284cdins-floppy: 285 (cd ${.CURDIR}; ${MAKE} kcopy-floppy) 286 (cd ${DESTDIR}/; \ 287 ls -d ${CD_DIRS} | cpio -pdamuv ${MOUNT}) 288 (cd ${MOUNT}/usr; \ 289 ln -s /cdrom/filesys/usr/libexec libexec; \ 290 ln -s /cdrom/filesys/usr/lib lib) 291 mkdir ${MOUNT}/cdrom 292 chown ${BINOWN}.${BINGRP} ${MOUNT}/cdrom 293 chmod 755 ${MOUNT}/cdrom 294 #install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 295 # ${.CURDIR}/etc.i386/cdinst1.profile ${MOUNT}/.profile 296 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 297 ${.CURDIR}/etc.i386/cdinst1.install ${MOUNT}/install 298 ln ${MOUNT}/install ${MOUNT}/etc/rc 299 300cdins.flp: 301 (cd ${.CURDIR}; ${MAKE} kcopy-floppy) 302 (cd ${.CURDIR}/../sys/compile/GENERIC; \ 303 install -c -o ${BINOWN} -g ${BINGRP} -m 755 kernel ${MOUNT}/) 304 df -ik ${MOUNT} 305 # XXX umount is returning 1 for some reason :-( 306 -umount /dev/${FLOPPY} 307 fsck /dev/r${FLOPPY} 308 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cdins.flp \ 309 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 310 gzip --no-name -9 -c ${RELEASEDIR}/floppies/cdins.flp \ 311 >${RELEASEDIR}/floppies/cdins.flp.gz & 312 313filesyst.flp: 314 echo y | fdformat ${FLOPPY} 315 disklabel -w -r -B -b ${DESTDIR}/usr/mdec/fdboot \ 316 -s ${DESTDIR}/usr/mdec/bootfd ${FLOPPY} ${FLOPPY_TYPE} 317 newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \ 318 r${FLOPPY} ${FLOPPY_TYPE} 319 mount /dev/${FLOPPY} ${MOUNT} 320 chown ${BINOWN}.${BINGRP} ${MOUNT}/. 321 chmod 755 ${MOUNT}/. 322 (cd ${DESTDIR}/; \ 323 ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) 324 ${MAKEDEVS} 325 (cd ${DESTDIR}/; \ 326 ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}; \ 327 (find ${FILESYSTEM_CPIO}; ls -d ${FILESYSTEM_CPIO_DIRS}) | \ 328 cpio -H newc --block-size=16 -oav | \ 329 gzip -9 >${MOUNT}/inst1.cpio.gz) 330 #install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 331 # ${.CURDIR}/etc.i386/inst1.profile ${MOUNT}/.profile 332 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 333 ${.CURDIR}/etc.i386/inst1.install ${MOUNT}/install 334 ln ${MOUNT}/install ${MOUNT}/etc/rc 335 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 336 filesystem ${MOUNT}/bin/filesystem 337 (cd ${MOUNT}/; \ 338 for i in ${FILESYSTEM_LINKS}; do \ 339 ln bin/filesystem $$i; \ 340 done) 341 (cd ${MOUNT}/; \ 342 ls ${FILESYSTEM_FILES} >/tmp/filelist; \ 343 ls ${FILESYSTEM_LINKS} >>/tmp/filelist; \ 344 ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ 345 find ${FILESYSTEM_TREES} >>/tmp/filelist; \ 346 sort -u -r /tmp/filelist >filelist; \ 347 rm /tmp/filelist) 348 df -ik ${MOUNT} 349 # XXX umount is returning 1 for some reason :-( 350 -umount /dev/${FLOPPY} 351 fsck /dev/r${FLOPPY} 352 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/filesyst.flp \ 353 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 354 gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesyst.flp \ 355 >${RELEASEDIR}/floppies/filesyst.flp.gz & 356 357cpio.flp: 358 echo y | fdformat ${FLOPPY} 359 disklabel -w -r -B -b ${DESTDIR}/usr/mdec/fdboot \ 360 -s ${DESTDIR}/usr/mdec/bootfd ${FLOPPY} ${FLOPPY_TYPE} 361 newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \ 362 r${FLOPPY} ${FLOPPY_TYPE} 363 mount /dev/${FLOPPY} ${MOUNT} 364 chown ${BINOWN}.${BINGRP} ${MOUNT}/. 365 chmod 755 ${MOUNT}/. 366 (cd ${DESTDIR}/; \ 367 ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) 368 # 369 # XXX This ugliness is because the default termcap file is simply too 370 # big and we don't need such a hugh one for the initial installation, 371 # yet we want the symlink in /etc to point to the right place so we 372 # need to install the smaller one in the same location. 373 # 374 mv ${DESTDIR}/usr/share/misc/termcap ${DESTDIR}/usr/share/misc/otermcap 375 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 376 ${.CURDIR}/termcap.small ${DESTDIR}/usr/share/misc/termcap 377 (cd ${DESTDIR}/; \ 378 (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ 379 cpio -H newc --block-size=16 -oav | \ 380 gzip -9 >${MOUNT}/inst2.cpio.gz) 381 # XXX cpio is done, put everything back in shape for the bindist. 382 mv ${DESTDIR}/usr/share/misc/otermcap ${DESTDIR}/usr/share/misc/termcap 383 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 384 ${.CURDIR}/etc.i386/cpio.rc ${MOUNT}/rc 385 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 386 ${.CURDIR}/etc.i386/cpio.install ${MOUNT}/install 387 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 388 ${.CURDIR}/etc.i386/cpio.magic ${MOUNT}/magic 389 df -ik ${MOUNT} 390 # XXX umount is returning 1 for some reason :-( 391 -umount /dev/${FLOPPY} 392 fsck /dev/r${FLOPPY} 393 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cpio.flp \ 394 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 395 gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio.flp \ 396 >${RELEASEDIR}/floppies/cpio.flp.gz & 397 398bin-tarball: 399 (cd ${DESTDIR}; \ 400 mkdir -p ${RELEASEDIR}/tarballs/bin; \ 401 tar cf - . | \ 402 ${ZIPNSPLIT} ${RELEASEDIR}/tarballs/bin/bin.) 403 404des-tarball: 405 rm -rf ${RELEASEDIR}/tmpdes 406 mkdir ${RELEASEDIR}/tmpdes 407 for i in ${CRYPT_DIRS}; do \ 408 cd ${RELEASEDIR}/tmpdes; \ 409 mkdir $$i; \ 410 chown ${BINOWN}.${GRPOWN} $$i; \ 411 chmod 755 $$i; \ 412 done 413 # This is ugly, it force installs a /usr/lib/libcrypt.a so 414 # that the other makes will be built with des. 415 # 416 (set -x ; cd ${.CURDIR}/../${DESCRYPT_LIB}; \ 417 NOCRYPT=; \ 418 unset NOCRYPT; \ 419 DESTDIR=; export DESTDIR; \ 420 ${MAKE} cleandir obj depend all install; \ 421 NOMAN=noman; export NOMAN; \ 422 DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 423 ${MAKE} cleandir obj depend all install) 424 for i in ${CRYPT_SRCS}; do \ 425 NOCRYPT=; \ 426 unset NOCRYPT; \ 427 DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 428 NOMAN=noman; export NOMAN; \ 429 cd ${.CURDIR}/../$$i; \ 430 ${MAKE} cleandir obj depend all install; \ 431 done 432 (cd ${RELEASEDIR}/tmpdes; \ 433 tar cf - . | \ 434 ${ZIPNSPLIT} ${RELEASEDIR}/tarballs/secure/des_tgz.) 435 rm -rf ${RELEASEDIR}/tmpdes 436 437distrib-dirs: 438 # 439 # XXX The mtree commands need to be redone so that a status of 0 or 440 # 2 is okay, but a status of 1 causes the make to abort. 441 # 442 # XXX This will currently error out if you have a procfs mounted, 443 # unmount it to get past this problem until procfs is fixed. 444 # 445 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 446 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 447 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 448.if defined(MAKE_LOCAL) 449 mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local 450.endif 451 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 452 453floppies: kcopy.flp filesyst.flp cpio.flp cdins.flp 454 455release: release-dirs distribution crunch extract kcopy-kernels \ 456 floppies bin-tarball des-tarball clean 457 458release-dirs: 459 chflags -R noschg ${RELEASEDIR}/ 460 rm -rf ${RELEASEDIR}/* 461 mtree -d -U -f ${.CURDIR}/mtree/BSD.release.dist -p ${RELEASEDIR} 462 463.include <bsd.prog.mk> 464