# -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
BIN3= daily weekly monthly
-MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist
+MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist
NAMEDB= localhost.rev named.boot root.cache
PCS= pcs750.bin
WCS1= wcs fppwcs poc poc1 poc2 fppoc
#
# Floppy drive name and files for building FreeBSD Floppies
FLOPPY?= fd0
-MOUNT= /mnt
+MOUNT?= /mnt
+FLOPPY_TYPE?= floppy5
#
MDEC= usr/mdec/bootfd usr/mdec/fdboot
MDEC+= usr/mdec/bootsd usr/mdec/sdboot
CPIO_FILES= ${COPYRIGHT}
CPIO_FILES+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat
CPIO_CPIO= bin/chmod bin/cat bin/cp bin/dd bin/df bin/mv bin/pwd bin/stty
-CPIO_CPIO+= etc/protocols etc/services etc/spwd.db
+CPIO_CPIO+= etc/protocols etc/remote etc/services etc/spwd.db
CPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_isofs
CPIO_CPIO+= sbin/reboot sbin/route sbin/slattach
CPIO_CPIO+= tmp
CPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip
CPIO_CPIO+= usr/bin/elvis usr/bin/ex usr/bin/vi usr/bin/view
CPIO_CPIO+= usr/sbin/update usr/sbin/chown
-CPIO_CPIO_DIRS= var var/tmp
-
-DOS_FILES= ${COPYRIGHT}
-DOS_FILES+= bin/ed
-DOS_FILES+= usr/bin/cksum usr/bin/mt
-DOS_FILES+= sbin/ping sbin/shutdown sbin/st
+CPIO_CPIO_DIRS= var var/tmp var/run var/spool var/spool/lock
CRYPT_LIB= lib/libcrypt
CRYPT_SRCS= bin/ed bin/rcp
(cd ../; \
install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/)
(cd ..; ${MAKE} mdec; )
+ (cd ../share/man; ${MAKE} makedb; )
.if ${MACHINE} == "tahoe"
(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
${DESTDIR}/)
${DESTDIR}/386bsd.GENERICBT)
kcopy-floppy:
- disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
- newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space r${FLOPPY}a floppy5
+ disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \
+ /usr/mdec/fdboot /usr/mdec/bootfd
+ newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space \
+ r${FLOPPY}a ${FLOPPY_TYPE}
mount /dev/${FLOPPY}a ${MOUNT}
chown root.wheel ${MOUNT}/.
chmod 755 ${MOUNT}/.
>${RELEASEDIR}/floppies/kcopy-bt-floppy.gz
filesystem-floppy:
- disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
- newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space r${FLOPPY}a floppy5
+ disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \
+ /usr/mdec/fdboot /usr/mdec/bootfd
+ newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \
+ r${FLOPPY}a ${FLOPPY_TYPE}
mount /dev/${FLOPPY}a ${MOUNT}
chown root.wheel ${MOUNT}/.
chmod 755 ${MOUNT}/.
>${RELEASEDIR}/floppies/filesystem-floppy.gz
cpio-floppy:
- disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
- newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space r${FLOPPY}a floppy5
+ disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \
+ /usr/mdec/fdboot /usr/mdec/bootfd
+ newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \
+ r${FLOPPY}a ${FLOPPY_TYPE}
mount /dev/${FLOPPY}a ${MOUNT}
chown root.wheel ${MOUNT}/.
chmod 755 ${MOUNT}/.
gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio-floppy \
>${RELEASEDIR}/floppies/cpio-floppy.gz
-dos-floppy:
- mount -t pcfs /dev/${FLOPPY}a ${MOUNT}
- (cd ${.CURDIR}/../; \
- cp sys/i386/floppy/* ${MOUNT}; \
- cp ${DOS_FILES} ${MOUNT})
- df -ik ${MOUNT}
- umount /dev/${FLOPPY}a
- dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/dos-floppy \
- bs=15b count=160
- gzip --no-name -9 -c ${RELEASEDIR}/floppies/dos-floppy \
- >${RELEASEDIR}/floppies/dos-floppy.gz
-
bin-tarball:
(cd ${DESTDIR}; \
- tar cf - . | gzip --no-name -9 -c | \
- split -b 240640 - \
- ${RELEASEDIR}/tarballs/bin_tgz.)
+ tar cf - . | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/bin_tgz.)
-src-tarball:
+srcbase-tarball:
(cd ${DESTDIR}; \
- tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src | gzip --no-name -9 -c | \
- split -b 240640 - \
- ${RELEASEDIR}/tarballs/src_tgz.)
+ tar -cf - usr/src/[A-Z]* | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcbase_tgz.)
-ssrc-tarball:
+srcbin-tarball:
(cd ${DESTDIR}; \
- tar -cf - usr/src/${CRYPT_LIB} | gzip --no-name -9 -c | \
- split -b 240640 - \
- ${RELEASEDIR}/tarballs/ssrc_tgz.)
+ tar -cf - usr/src/bin | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcbin_tgz.)
+
+srccontrib-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/contrib | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srccontrib_tgz.)
+
+srcetc-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/etc | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcetc_tgz.)
+
+srcgames-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/games | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcgames_tgz.)
+
+srcgnu-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/gnu | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcgnu_tgz.)
+
+srcinclude-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/include | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcinclude_tgz.)
+
+srclib-tarball:
+ (cd ${DESTDIR}; \
+ tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src/lib | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srclib_tgz.)
+
+srclibcrypt-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/${CRYPT_LIB} | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srclibcrypt_tgz.)
+
+srclibexec-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/libexec | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srclibexec_tgz.)
+
+srcsbin-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/sbin | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcsbin_tgz.)
+
+srcshare-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/share | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcshare_tgz.)
+
+srcsys-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/sys | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcsys_tgz.)
+
+srcusrbin-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/usr.bin | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcusrbin_tgz.)
+
+srcusrsbin-tarball:
+ (cd ${DESTDIR}; \
+ tar -cf - usr/src/usr.sbin | \
+ gzip --no-name -9 -c | \
+ split -b 240640 - \
+ ${RELEASEDIR}/tarballs/srcusrsbin_tgz.)
+
+src-tarball: srcbase-tarball srcbin-tarball srccontrib-tarball srcetc-tarball \
+ srcgames-tarball srcgnu-tarball srcinclude-tarball srclib-tarball \
+ srclibcrypt-tarball srclibexec-tarball srcsbin-tarball \
+ srcshare-tarball srcsys-tarball srcusrbin-tarball \
+ srcusrsbin-tarball
des-tarball:
rm -rf ${RELEASEDIR}/tmpdes
${MAKE} cleandir obj depend all install; \
done
(cd ${RELEASEDIR}/tmpdes; \
- tar cf - . | gzip --no-name -9 -c | \
+ tar cf - . | \
+ gzip --no-name -9 -c | \
split -b 240640 - \
${RELEASEDIR}/tarballs/des_tgz.)
rm -rf ${RELEASEDIR}/tmpdes