version 1.154, 2000/06/20 06:00:28 |
version 1.154.2.3, 2000/10/01 21:53:31 |
|
|
TZDIR= /usr/share/zoneinfo |
TZDIR= /usr/share/zoneinfo |
LOCALTIME?= US/Pacific |
LOCALTIME?= US/Pacific |
|
|
|
# Flags for creating ISO CDROM image |
|
# mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrecord |
|
MKISOFS?= mkisofs |
|
MKISOFS_FLAGS+= -J -l \ |
|
-r -T -v \ |
|
-P "The NetBSD Project" \ |
|
-m "${RELEASEDIR}/instalation/cdrom" |
|
|
# setting NOOBJ prevents "make obj" from doing anything; |
# setting NOOBJ prevents "make obj" from doing anything; |
# an objdir would break the installation stuff below |
# an objdir would break the installation stuff below |
MKOBJ= no |
MKOBJ= no |
Line 80 BIN1+= bootptab changelist csh.cshrc csh |
|
Line 88 BIN1+= bootptab changelist csh.cshrc csh |
|
mailer.conf man.conf monthly monthly.conf mrouted.conf \ |
mailer.conf man.conf monthly monthly.conf mrouted.conf \ |
netconfig networks newsyslog.conf nsswitch.conf ntp.conf \ |
netconfig networks newsyslog.conf nsswitch.conf ntp.conf \ |
phones printcap profile protocols rbootd.conf rc rc.conf \ |
phones printcap profile protocols rbootd.conf rc rc.conf \ |
rc.lkm rc.local rc.subr rc.shutdown rc.wscons remote rpc \ |
rc.lkm rc.local rc.subr rc.shutdown remote rpc \ |
security security.conf services shells sysctl.conf syslog.conf \ |
security security.conf services shells sysctl.conf syslog.conf \ |
weekly weekly.conf wscons.conf \ |
weekly weekly.conf wscons.conf \ |
etc.${MACHINE}/ttys etc.${MACHINE}/disktab |
etc.${MACHINE}/ttys etc.${MACHINE}/disktab |
|
|
mkdir -p ${KERNOBJDIR} |
mkdir -p ${KERNOBJDIR} |
|
|
.ifndef DESTDIR |
.ifndef DESTDIR |
distribution distrib-dirs release snapshot: |
distribution distrib-dirs release snapshot iso-image: |
@echo setenv DESTDIR before doing that! |
@echo setenv DESTDIR before doing that! |
@false |
@false |
.else |
.else |
Line 158 distribution: distrib-dirs |
|
Line 166 distribution: distrib-dirs |
|
rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ |
rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ |
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ |
ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ |
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) |
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) |
|
(cd default; ${MAKE} install) |
(cd mtree; ${MAKE} install) |
(cd mtree; ${MAKE} install) |
(cd namedb; \ |
(cd namedb; \ |
${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ |
${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ |
|
|
cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys |
cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys |
|
|
.if !defined(RELEASEDIR) |
.if !defined(RELEASEDIR) |
release snapshot snap_pre snap_md_pre snap_md_post: |
release snapshot snap_pre snap_md_pre snap_md_post iso-image: |
@echo setenv RELEASEDIR before doing that! |
@echo setenv RELEASEDIR before doing that! |
@false |
@false |
.else |
.else |
Line 251 release snapshot: distribution snap_pre |
|
Line 260 release snapshot: distribution snap_pre |
|
(cd ../distrib/sets; ${MAKE} sets) |
(cd ../distrib/sets; ${MAKE} sets) |
sh ../distrib/sets/makesums -t ${RELEASEDIR}/binary/kernel '*.gz' |
sh ../distrib/sets/makesums -t ${RELEASEDIR}/binary/kernel '*.gz' |
|
|
|
# Standalone target to create a CDROM image after the release |
|
# was composed. Should be run after "make build" in both src and xsrc |
|
iso-image: iso-image_md_post |
|
|
|
iso-image_mi: iso-image_md_pre |
|
@if ${MKISOFS} --version; then \ |
|
mkdir -p ${RELEASEDIR}/installation/cdrom ; \ |
|
${MKISOFS} ${MKISOFS_FLAGS} \ |
|
-o ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \ |
|
${RELEASEDIR} ; \ |
|
sh ../distrib/sets/makesums -t ${RELEASEDIR}/installation/cdrom '*.iso' ; \ |
|
else \ |
|
echo "install pkgsrc/sysutils/cdrecord and type 'make iso-image'." ; \ |
|
fi |
|
|
|
# Setup the $RELEASEDIR to produce a bootable CD image: |
|
iso-image_md_pre: |
|
# nothing here -- look in the machine-dependent Makefile.inc |
|
|
|
# Fixup the CD-image to be bootable |
|
iso-image_md_post: iso-image_mi |
|
# nothing here -- look in the machine-dependent Makefile.inc |
|
|
snap_pre: |
snap_pre: |
/bin/rm -rf ${RELEASEDIR} |
/bin/rm -rf ${RELEASEDIR} |
${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR} |
${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR} |