| 1 | # @(#)Makefile 5.11 (Berkeley) 5/21/91 |
| 2 | |
| 3 | NOOBJ= noobj |
| 4 | |
| 5 | # disktab may be wrong -- hcx9 is a tahoe, but gets its own. |
| 6 | # -rw-r--r-- |
| 7 | BINOWN= root |
| 8 | BINGRP= wheel |
| 9 | BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ |
| 10 | ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ |
| 11 | inetd.conf motd myname netstart networks phones \ |
| 12 | printcap protocols rc rc.local remote security services shells \ |
| 13 | syslog.conf ttys etc.${MACHINE}/disktab rpc |
| 14 | |
| 15 | # -rw-rw-rw- |
| 16 | BIN2= motd |
| 17 | |
| 18 | # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel |
| 19 | BIN3= daily weekly monthly |
| 20 | |
| 21 | MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist |
| 22 | NAMEDB= localhost.rev named.boot root.cache |
| 23 | PCS= pcs750.bin |
| 24 | WCS1= wcs fppwcs poc poc1 poc2 fppoc |
| 25 | WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual |
| 26 | |
| 27 | # Special top level files for FreeBSD |
| 28 | COPYRIGHT= COPYRIGHT |
| 29 | FREEBSD= CONTRIB.386BSD CONTRIB.FreeBSD RELNOTES.FreeBSD ${COPYRIGHT} |
| 30 | # |
| 31 | # Floppy drive name and files for building FreeBSD Floppies |
| 32 | FLOPPY?= fd0 |
| 33 | MOUNT?= /mnt |
| 34 | FLOPPY_TYPE?= floppy5 |
| 35 | # |
| 36 | MDEC= usr/mdec/bootfd usr/mdec/fdboot |
| 37 | MDEC+= usr/mdec/bootsd usr/mdec/sdboot |
| 38 | MDEC+= usr/mdec/bootwd usr/mdec/wdboot |
| 39 | # |
| 40 | KC_DIRS= dev mnt |
| 41 | KC_FILES= ${COPYRIGHT} |
| 42 | KC_FILES+= bin/[ bin/cp bin/echo bin/sh bin/test |
| 43 | KC_FILES+= sbin/fsck sbin/halt sbin/init sbin/mount sbin/umount |
| 44 | # |
| 45 | FILESYSTEM_DIRS= bin dev etc mnt sbin usr usr/bin usr/mdec usr/sbin |
| 46 | FILESYSTEM_TREES= dev |
| 47 | FILESYSTEM_FILES= ${COPYRIGHT} |
| 48 | FILESYSTEM_FILES+= bin/[ bin/expr bin/ls bin/mkdir bin/rm |
| 49 | FILESYSTEM_FILES+= bin/sh bin/sync bin/test |
| 50 | FILESYSTEM_FILES+= dev/MAKEDEV |
| 51 | FILESYSTEM_FILES+= etc/group |
| 52 | FILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db |
| 53 | FILESYSTEM_FILES+= sbin/disklabel sbin/halt sbin/init |
| 54 | FILESYSTEM_FILES+= sbin/mount sbin/mount_pcfs |
| 55 | FILESYSTEM_FILES+= sbin/newfs |
| 56 | FILESYSTEM_FILES+= sbin/umount |
| 57 | FILESYSTEM_FILES+= sbin/fdisk |
| 58 | FILESYSTEM_FILES+= usr/bin/cpio |
| 59 | FILESYSTEM_FILES+= ${MDEC} |
| 60 | FILESYSTEM_FILES+= usr/sbin/bad144 |
| 61 | |
| 62 | CPIO_FILES= ${COPYRIGHT} |
| 63 | CPIO_FILES+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat |
| 64 | CPIO_CPIO= bin/chmod bin/cat bin/cp bin/dd bin/df bin/mv bin/pwd bin/stty |
| 65 | CPIO_CPIO+= etc/protocols etc/remote etc/services etc/spwd.db |
| 66 | CPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_isofs |
| 67 | CPIO_CPIO+= sbin/reboot sbin/route sbin/slattach |
| 68 | CPIO_CPIO+= tmp |
| 69 | CPIO_CPIO+= usr/bin/awk usr/bin/chgrp usr/bin/ftp |
| 70 | CPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip |
| 71 | CPIO_CPIO+= usr/bin/elvis usr/bin/ex usr/bin/vi usr/bin/view |
| 72 | CPIO_CPIO+= usr/sbin/update usr/sbin/chown |
| 73 | CPIO_CPIO_DIRS= var var/tmp var/run var/spool var/spool/lock |
| 74 | |
| 75 | CRYPT_LIB= lib/libcrypt |
| 76 | CRYPT_SRCS= bin/ed bin/rcp |
| 77 | CRYPT_SRCS+= libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind |
| 78 | CRYPT_SRCS+= libexec/rshd libexec/telnetd libexec/uucpd |
| 79 | CRYPT_SRCS+= usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd |
| 80 | CRYPT_SRCS+= usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet |
| 81 | CRYPT_DIRS= bin usr usr/bin usr/lib usr/libexec |
| 82 | |
| 83 | all clean cleandir depend etc install lint: |
| 84 | |
| 85 | crypt: |
| 86 | rm -f ${LIBCRYPT}; |
| 87 | (cd ${.CURDIR}/../${CRYPT_LIB}; \ |
| 88 | ${MAKE} cleandir obj depend all install) |
| 89 | for i in ${CRYPT_SRCS}; do \ |
| 90 | cd ${.CURDIR}/../$$i; \ |
| 91 | ${MAKE} cleandir obj depend all; \ |
| 92 | done |
| 93 | |
| 94 | non-crypt: |
| 95 | rm -f ${LIBCRYPT} |
| 96 | for i in ${CRYPT_SRCS}; do \ |
| 97 | cd ${.CURDIR}/../$$i; \ |
| 98 | ${MAKE} cleandir obj depend all; \ |
| 99 | done |
| 100 | |
| 101 | distribution: distrib-dirs |
| 102 | install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc |
| 103 | install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc |
| 104 | install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc |
| 105 | install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root |
| 106 | install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log |
| 107 | install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc |
| 108 | pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd |
| 109 | install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ |
| 110 | MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev |
| 111 | .if defined(CDROMDIST) |
| 112 | (cd ${DESTDIR}/dev; sh MAKEDEV all) |
| 113 | .endif |
| 114 | (cd root; \ |
| 115 | install -c -o root -g wheel -m 644 dot.cshrc \ |
| 116 | ${DESTDIR}/root/.cshrc; \ |
| 117 | install -c -o root -g wheel -m 644 dot.klogin \ |
| 118 | ${DESTDIR}/root/.klogin; \ |
| 119 | install -c -o root -g wheel -m 644 dot.login \ |
| 120 | ${DESTDIR}/root/.login; \ |
| 121 | install -c -o root -g wheel -m 644 dot.profile \ |
| 122 | ${DESTDIR}/root/.profile; \ |
| 123 | rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ |
| 124 | ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ |
| 125 | ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) |
| 126 | cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ |
| 127 | ${DESTDIR}/etc/mtree |
| 128 | cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ |
| 129 | ${DESTDIR}/etc/namedb |
| 130 | install -c -o ${BINOWN} -g operator -m 664 /dev/null \ |
| 131 | ${DESTDIR}/etc/dumpdates |
| 132 | install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ |
| 133 | ${DESTDIR}/var/db/locate.database |
| 134 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 135 | ${DESTDIR}/var/log/lpd-errs |
| 136 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 137 | ${DESTDIR}/var/log/maillog |
| 138 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 139 | ${DESTDIR}/var/log/lastlog |
| 140 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 141 | ${DESTDIR}/var/log/messages |
| 142 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 143 | ${DESTDIR}/var/log/wtmp |
| 144 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 145 | ${DESTDIR}/var/run/utmp |
| 146 | (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ |
| 147 | fstab.* ${DESTDIR}/etc) |
| 148 | .if defined(NOCRYPT) |
| 149 | ${MAKE} non-crypt |
| 150 | (cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install) |
| 151 | .else |
| 152 | ${MAKE} crypt |
| 153 | (cd ..; ${MAKE} install) |
| 154 | .endif |
| 155 | (cd ../usr.sbin/sendmail/src; \ |
| 156 | ${MAKE} install; \ |
| 157 | cd ../cf/cf; \ |
| 158 | ${MAKE} tcpproto.cf; \ |
| 159 | install -o root -g wheel -m 644 tcpproto.cf \ |
| 160 | ${DESTDIR}/etc/sendmail.cf) |
| 161 | (cd ../; \ |
| 162 | install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) |
| 163 | (cd ..; ${MAKE} mdec; ) |
| 164 | .if ${MACHINE} == "tahoe" |
| 165 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ |
| 166 | ${DESTDIR}/) |
| 167 | .endif |
| 168 | .if ${MACHINE} == "vax" |
| 169 | (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ |
| 170 | ${DESTDIR}/) |
| 171 | .endif |
| 172 | |
| 173 | hcx9-distribution: |
| 174 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ |
| 175 | ${DESTDIR}/) |
| 176 | |
| 177 | kcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT |
| 178 | (cd ../sys/compile; rm -rf GENERICAH GENERICBT) |
| 179 | (cd ../sys/i386/conf; config GENERICAH; config GENERICBT) |
| 180 | (cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \ |
| 181 | install -c -o root -g wheel -m 755 386bsd \ |
| 182 | ${DESTDIR}/386bsd.GENERICAH) |
| 183 | (cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \ |
| 184 | install -c -o root -g wheel -m 755 386bsd \ |
| 185 | ${DESTDIR}/386bsd.GENERICBT) |
| 186 | |
| 187 | kcopy-floppy: |
| 188 | disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ |
| 189 | /usr/mdec/fdboot /usr/mdec/bootfd |
| 190 | newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space \ |
| 191 | r${FLOPPY}a ${FLOPPY_TYPE} |
| 192 | mount /dev/${FLOPPY}a ${MOUNT} |
| 193 | chown root.wheel ${MOUNT}/. |
| 194 | chmod 755 ${MOUNT}/. |
| 195 | (cd ${DESTDIR}/; \ |
| 196 | ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT}) |
| 197 | (cd ${MOUNT}/dev; \ |
| 198 | sh ${DESTDIR}/dev/MAKEDEV std; \ |
| 199 | rm -rf fd; \ |
| 200 | sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0 sd1) |
| 201 | (cd ${DESTDIR}/; \ |
| 202 | ls ${KC_FILES} | cpio -pdamuv ${MOUNT}) |
| 203 | install -c -o root -g wheel -m 755 etc.i386/kc.profile \ |
| 204 | ${MOUNT}/.profile |
| 205 | |
| 206 | kcopy-ah-floppy: |
| 207 | ${MAKE} kcopy-floppy |
| 208 | (cd ../sys/compile/GENERICAH; \ |
| 209 | install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) |
| 210 | df -ik ${MOUNT} |
| 211 | umount /dev/${FLOPPY}a |
| 212 | fsck /dev/r${FLOPPY}a |
| 213 | dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/kcopy-ah-floppy \ |
| 214 | bs=15b count=160 |
| 215 | gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy-ah-floppy \ |
| 216 | >${RELEASEDIR}/floppies/kcopy-ah-floppy.gz |
| 217 | |
| 218 | kcopy-bt-floppy: |
| 219 | ${MAKE} kcopy-floppy |
| 220 | (cd ../sys/compile/GENERICBT; \ |
| 221 | install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) |
| 222 | df -ik ${MOUNT} |
| 223 | umount /dev/${FLOPPY}a |
| 224 | fsck /dev/r${FLOPPY}a |
| 225 | dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/kcopy-bt-floppy \ |
| 226 | bs=15b count=160 |
| 227 | gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy-bt-floppy \ |
| 228 | >${RELEASEDIR}/floppies/kcopy-bt-floppy.gz |
| 229 | |
| 230 | filesystem-floppy: |
| 231 | disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ |
| 232 | /usr/mdec/fdboot /usr/mdec/bootfd |
| 233 | newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \ |
| 234 | r${FLOPPY}a ${FLOPPY_TYPE} |
| 235 | mount /dev/${FLOPPY}a ${MOUNT} |
| 236 | chown root.wheel ${MOUNT}/. |
| 237 | chmod 755 ${MOUNT}/. |
| 238 | (cd ${DESTDIR}/; \ |
| 239 | ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) |
| 240 | (cd ${MOUNT}/dev; \ |
| 241 | sh ${DESTDIR}/dev/MAKEDEV std; \ |
| 242 | rm -rf fd; \ |
| 243 | sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 sd0 sd1; \ |
| 244 | rm -f rfd1[b-z] fd1[b-z]) |
| 245 | (cd ${DESTDIR}/; \ |
| 246 | ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}) |
| 247 | install -c -o root -g wheel -m 755 etc.i386/inst1.profile \ |
| 248 | ${MOUNT}/.profile |
| 249 | install -c -o root -g wheel -m 755 etc.i386/inst1.install \ |
| 250 | ${MOUNT}/install |
| 251 | (cd ${MOUNT}/; \ |
| 252 | ls ${FILESYSTEM_FILES} >/tmp/filelist; \ |
| 253 | ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ |
| 254 | find ${FILESYSTEM_TREES} >>/tmp/filelist; \ |
| 255 | sort -u /tmp/filelist >filelist; \ |
| 256 | rm /tmp/filelist) |
| 257 | df -ik ${MOUNT} |
| 258 | umount /dev/${FLOPPY}a |
| 259 | fsck /dev/r${FLOPPY}a |
| 260 | dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/filesystem-floppy \ |
| 261 | bs=15b count=160 |
| 262 | gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesystem-floppy \ |
| 263 | >${RELEASEDIR}/floppies/filesystem-floppy.gz |
| 264 | |
| 265 | cpio-floppy: |
| 266 | disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ |
| 267 | /usr/mdec/fdboot /usr/mdec/bootfd |
| 268 | newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \ |
| 269 | r${FLOPPY}a ${FLOPPY_TYPE} |
| 270 | mount /dev/${FLOPPY}a ${MOUNT} |
| 271 | chown root.wheel ${MOUNT}/. |
| 272 | chmod 755 ${MOUNT}/. |
| 273 | (cd ${DESTDIR}/; \ |
| 274 | ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) |
| 275 | (cd ${DESTDIR}/; \ |
| 276 | (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ |
| 277 | cpio -oav | gzip -9 >${MOUNT}/inst2.cpio.gz) |
| 278 | install -c -o root -g wheel -m 755 etc.i386/inst2.profile \ |
| 279 | ${MOUNT}/.profile |
| 280 | install -c -o root -g wheel -m 755 etc.i386/inst2.install \ |
| 281 | ${MOUNT}/install |
| 282 | df -ik ${MOUNT} |
| 283 | umount /dev/${FLOPPY}a |
| 284 | fsck /dev/r${FLOPPY}a |
| 285 | dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/cpio-floppy \ |
| 286 | bs=15b count=160 |
| 287 | gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio-floppy \ |
| 288 | >${RELEASEDIR}/floppies/cpio-floppy.gz |
| 289 | |
| 290 | bin-tarball: |
| 291 | (cd ${DESTDIR}; \ |
| 292 | tar cf - . | \ |
| 293 | gzip --no-name -9 -c | \ |
| 294 | split -b 240640 - \ |
| 295 | ${RELEASEDIR}/tarballs/bin_tgz.) |
| 296 | |
| 297 | srcbase-tarball: |
| 298 | (cd ${DESTDIR}; \ |
| 299 | tar -cf - usr/src/[A-Z]* | \ |
| 300 | gzip --no-name -9 -c | \ |
| 301 | split -b 240640 - \ |
| 302 | ${RELEASEDIR}/tarballs/srcbase_tgz.) |
| 303 | |
| 304 | srcbin-tarball: |
| 305 | (cd ${DESTDIR}; \ |
| 306 | tar -cf - usr/src/bin | \ |
| 307 | gzip --no-name -9 -c | \ |
| 308 | split -b 240640 - \ |
| 309 | ${RELEASEDIR}/tarballs/srcbin_tgz.) |
| 310 | |
| 311 | srccontrib-tarball: |
| 312 | (cd ${DESTDIR}; \ |
| 313 | tar -cf - usr/src/contrib | \ |
| 314 | gzip --no-name -9 -c | \ |
| 315 | split -b 240640 - \ |
| 316 | ${RELEASEDIR}/tarballs/srccontrib_tgz.) |
| 317 | |
| 318 | srcetc-tarball: |
| 319 | (cd ${DESTDIR}; \ |
| 320 | tar -cf - usr/src/etc | \ |
| 321 | gzip --no-name -9 -c | \ |
| 322 | split -b 240640 - \ |
| 323 | ${RELEASEDIR}/tarballs/srcetc_tgz.) |
| 324 | |
| 325 | srcgames-tarball: |
| 326 | (cd ${DESTDIR}; \ |
| 327 | tar -cf - usr/src/games | \ |
| 328 | gzip --no-name -9 -c | \ |
| 329 | split -b 240640 - \ |
| 330 | ${RELEASEDIR}/tarballs/srcgames_tgz.) |
| 331 | |
| 332 | srcgnu-tarball: |
| 333 | (cd ${DESTDIR}; \ |
| 334 | tar -cf - usr/src/gnu | \ |
| 335 | gzip --no-name -9 -c | \ |
| 336 | split -b 240640 - \ |
| 337 | ${RELEASEDIR}/tarballs/srcgnu_tgz.) |
| 338 | |
| 339 | srcinclude-tarball: |
| 340 | (cd ${DESTDIR}; \ |
| 341 | tar -cf - usr/src/include | \ |
| 342 | gzip --no-name -9 -c | \ |
| 343 | split -b 240640 - \ |
| 344 | ${RELEASEDIR}/tarballs/srcinclude_tgz.) |
| 345 | |
| 346 | srclib-tarball: |
| 347 | (cd ${DESTDIR}; \ |
| 348 | tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src/lib | \ |
| 349 | gzip --no-name -9 -c | \ |
| 350 | split -b 240640 - \ |
| 351 | ${RELEASEDIR}/tarballs/srclib_tgz.) |
| 352 | |
| 353 | srclibcrypt-tarball: |
| 354 | (cd ${DESTDIR}; \ |
| 355 | tar -cf - usr/src/${CRYPT_LIB} | \ |
| 356 | gzip --no-name -9 -c | \ |
| 357 | split -b 240640 - \ |
| 358 | ${RELEASEDIR}/tarballs/srclibcrypt_tgz.) |
| 359 | |
| 360 | srclibexec-tarball: |
| 361 | (cd ${DESTDIR}; \ |
| 362 | tar -cf - usr/src/libexec | \ |
| 363 | gzip --no-name -9 -c | \ |
| 364 | split -b 240640 - \ |
| 365 | ${RELEASEDIR}/tarballs/srclibexec_tgz.) |
| 366 | |
| 367 | srcsbin-tarball: |
| 368 | (cd ${DESTDIR}; \ |
| 369 | tar -cf - usr/src/sbin | \ |
| 370 | gzip --no-name -9 -c | \ |
| 371 | split -b 240640 - \ |
| 372 | ${RELEASEDIR}/tarballs/srcsbin_tgz.) |
| 373 | |
| 374 | srcshare-tarball: |
| 375 | (cd ${DESTDIR}; \ |
| 376 | tar -cf - usr/src/share | \ |
| 377 | gzip --no-name -9 -c | \ |
| 378 | split -b 240640 - \ |
| 379 | ${RELEASEDIR}/tarballs/srcshare_tgz.) |
| 380 | |
| 381 | srcsys-tarball: |
| 382 | (cd ${DESTDIR}; \ |
| 383 | tar -cf - usr/src/sys | \ |
| 384 | gzip --no-name -9 -c | \ |
| 385 | split -b 240640 - \ |
| 386 | ${RELEASEDIR}/tarballs/srcsys_tgz.) |
| 387 | |
| 388 | srcusrbin-tarball: |
| 389 | (cd ${DESTDIR}; \ |
| 390 | tar -cf - usr/src/usr.bin | \ |
| 391 | gzip --no-name -9 -c | \ |
| 392 | split -b 240640 - \ |
| 393 | ${RELEASEDIR}/tarballs/srcusrbin_tgz.) |
| 394 | |
| 395 | srcusrsbin-tarball: |
| 396 | (cd ${DESTDIR}; \ |
| 397 | tar -cf - usr/src/usr.sbin | \ |
| 398 | gzip --no-name -9 -c | \ |
| 399 | split -b 240640 - \ |
| 400 | ${RELEASEDIR}/tarballs/srcusrsbin_tgz.) |
| 401 | |
| 402 | src-tarball: srcbase-tarball srcbin-tarball srccontrib-tarball srcetc-tarball \ |
| 403 | srcgames-tarball srcgnu-tarball srcinclude-tarball srclib-tarball \ |
| 404 | srclibcrypt-tarball srclibexec-tarball srcsbin-tarball \ |
| 405 | srcshare-tarball srcsys-tarball srcusrbin-tarball \ |
| 406 | srcusrsbin-tarball |
| 407 | |
| 408 | des-tarball: |
| 409 | rm -rf ${RELEASEDIR}/tmpdes |
| 410 | mkdir ${RELEASEDIR}/tmpdes |
| 411 | for i in ${CRYPT_DIRS}; do \ |
| 412 | cd ${RELEASEDIR}/tmpdes; \ |
| 413 | mkdir $$i; \ |
| 414 | chown ${BINOWN}.${GRPOWN} $$i; \ |
| 415 | chmod 755 $$i; \ |
| 416 | done |
| 417 | # This is ugly, it force installs a /usr/lib/libcrypt.a so |
| 418 | # that the other makes will be built with des. |
| 419 | # |
| 420 | (cd ${.CURDIR}/../${CRYPT_LIB}; \ |
| 421 | unset NOCRYPT; \ |
| 422 | DESTDIR=; export DESTDIR; \ |
| 423 | ${MAKE} cleandir obj depend all install; \ |
| 424 | NOMAN=noman; export NOMAN; \ |
| 425 | DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ |
| 426 | ${MAKE} cleandir obj depend all install) |
| 427 | for i in ${CRYPT_SRCS}; do \ |
| 428 | unset NOCRYPT; \ |
| 429 | DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ |
| 430 | NOMAN=noman; export NOMAN; \ |
| 431 | cd ${.CURDIR}/../$$i; \ |
| 432 | ${MAKE} cleandir obj depend all install; \ |
| 433 | done |
| 434 | (cd ${RELEASEDIR}/tmpdes; \ |
| 435 | tar cf - . | \ |
| 436 | gzip --no-name -9 -c | \ |
| 437 | split -b 240640 - \ |
| 438 | ${RELEASEDIR}/tarballs/des_tgz.) |
| 439 | rm -rf ${RELEASEDIR}/tmpdes |
| 440 | |
| 441 | distrib-dirs: |
| 442 | mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ |
| 443 | mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var |
| 444 | mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr |
| 445 | .if defined(CDROMDIST) |
| 446 | mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local |
| 447 | .endif |
| 448 | cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys |
| 449 | |
| 450 | floppies: kcopy-ah-floppy kcopy-bt-floppy filesystem-floppy \ |
| 451 | cpio-floppy |
| 452 | |
| 453 | release: release-dirs distribution kcopy-kernels floppies \ |
| 454 | bin-tarball des-tarball |
| 455 | |
| 456 | release-dirs: |
| 457 | rm -rf ${RELEASEDIR}/filesystem |
| 458 | mkdir ${RELEASEDIR}/filesystem |
| 459 | chown root.wheel ${RELEASEDIR}/filesystem |
| 460 | chmod 755 ${RELEASEDIR}/filesystem |
| 461 | rm -rf ${RELEASEDIR}/tarballs |
| 462 | mkdir ${RELEASEDIR}/tarballs |
| 463 | chown root.wheel ${RELEASEDIR}/tarballs |
| 464 | chmod 755 ${RELEASEDIR}/tarballs |
| 465 | rm -rf ${RELEASEDIR}/floppies |
| 466 | mkdir ${RELEASEDIR}/floppies |
| 467 | chown root.wheel ${RELEASEDIR}/floppies |
| 468 | chmod 755 ${RELEASEDIR}/floppies |
| 469 | |
| 470 | .include <bsd.prog.mk> |