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