From f192de6910e2043d86f9488bdf7b68c7bf8474f7 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 17 Apr 2009 03:58:54 +0000 Subject: [PATCH] For SHA256 hashes to be ready to go onto the install media, we must build the sets before we build the media. While there we can get rid of DESTDIR/snapshot too, and simply install straight into RELEASEDIR. (This also ends up saving an astounding amount of traffic/latency in a nfs environment) --- src/etc/Makefile | 27 +++++++++------------------ src/etc/etc.alpha/Makefile.inc | 18 +++++++++--------- src/etc/etc.amd64/Makefile.inc | 20 ++++++++++---------- src/etc/etc.armish/Makefile.inc | 13 ++++++------- src/etc/etc.aviion/Makefile.inc | 13 ++++++------- src/etc/etc.hp300/Makefile.inc | 15 +++++++-------- src/etc/etc.hppa/Makefile.inc | 13 ++++++------- src/etc/etc.hppa64/Makefile.inc | 13 ++++++------- src/etc/etc.i386/Makefile.inc | 25 +++++++++++++------------ src/etc/etc.landisk/Makefile.inc | 17 ++++++++--------- src/etc/etc.luna88k/Makefile.inc | 13 ++++--------- src/etc/etc.mac68k/Makefile.inc | 16 +++++----------- src/etc/etc.macppc/Makefile.inc | 23 ++++++++++------------- src/etc/etc.mvme68k/Makefile.inc | 13 ++++++------- src/etc/etc.mvme88k/Makefile.inc | 15 +++++++-------- src/etc/etc.mvmeppc/Makefile.inc | 17 ++++++++--------- src/etc/etc.sgi/Makefile.inc | 13 +++++-------- src/etc/etc.socppc/Makefile.inc | 13 ++++++------- src/etc/etc.sparc/Makefile.inc | 19 +++++++++---------- src/etc/etc.sparc64/Makefile.inc | 17 +++++++++-------- src/etc/etc.vax/Makefile.inc | 13 ++++++------- src/etc/etc.zaurus/Makefile.inc | 15 +++++++-------- 22 files changed, 162 insertions(+), 199 deletions(-) diff --git a/src/etc/Makefile b/src/etc/Makefile index 71dc7950..c177bec0 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.271 2009/04/14 23:09:04 deraadt Exp $ +# $OpenBSD: Makefile,v 1.272 2009/04/17 03:58:52 deraadt Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= Canada/Mountain @@ -30,6 +30,9 @@ BIN1+= wsconsctl.conf # -rw-rw-r-- BIN2= motd +MISETS= bsd base${OSrev}.tgz comp${OSrev}.tgz misc${OSrev}.tgz \ + man${OSrev}.tgz game${OSrev}.tgz etc${OSrev}.tgz + PCS= pcs750.bin # Use NOGZIP on architectures where the gzip'ing would take too much time @@ -264,27 +267,15 @@ release: @echo setenv RELEASEDIR before building a release. @false .else + release-sets: - cd ${.CURDIR}/../distrib/notes && ${MAKE} && exec ${SUDO} ${MAKE} install cd ${.CURDIR}/../distrib/sets && exec ${SUDO} sh maketars ${OSrev} -release: distribution snap_pre release-sets snap_md - -cp ${DESTDIR}/snapshot/*bsd* ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/*boot* ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/cdbr ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/*BOOT* ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/cd*.iso ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/Packages ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/INSTALL.* ${RELEASEDIR} - -cp ${DESTDIR}/snapshot/*.fs ${DESTDIR}/snapshot/*.fs.gz ${RELEASEDIR} +sha: -cd ${RELEASEDIR}; \ - md5 *bsd!(*.gz) *boot* cdbr *BOOT* INSTALL.* Packages *.fs \ - *.iso *.gz *.tgz > MD5 - -cd ${RELEASEDIR} && sort -o MD5 MD5 + sum -a sha256 bsd.rd INSTALL.`arch -ks` ${MDEXT} ${MISETS} > SHA256 -snap_pre: - ${SUDO} /bin/rm -rf ${DESTDIR}/snapshot - ${SUDO} ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot +release: distribution kernels release-sets distrib sha .endif @@ -306,7 +297,7 @@ update-moduli: ) > moduli .PHONY: distribution-etc-root-var distribution distrib-dirs \ - release allarchs snap_md m4 snap_pre + release allarchs kernels release-sets m4 SUBDIR+= etc.alpha etc.amd64 etc.armish etc.aviion etc.hp300 etc.hppa SUBDIR+= etc.hppa64 etc.i386 etc.landisk etc.luna88k etc.mac68k etc.macppc diff --git a/src/etc/etc.alpha/Makefile.inc b/src/etc/etc.alpha/Makefile.inc index d67fb38a..09fcff26 100644 --- a/src/etc/etc.alpha/Makefile.inc +++ b/src/etc/etc.alpha/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.15 2006/07/27 03:11:23 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.16 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/alpha/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/alpha/conf && config GENERIC @@ -11,10 +10,11 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/netboot ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/boot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/bootxx ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/netboot ${RELEASEDIR} -.PHONY: bsd bootblocks +MDEXT= cd${OSrev}.iso floppy${OSrev}.fs floppyB${OSrev}.fs \ + boot bootxx netboot -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.amd64/Makefile.inc b/src/etc/etc.amd64/Makefile.inc index a99dd581..6b10c491 100644 --- a/src/etc/etc.amd64/Makefile.inc +++ b/src/etc/etc.amd64/Makefile.inc @@ -1,11 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.7 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.8 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bsd.mp bootblocks distrib +kernels: bsd bsd.mp bootblocks cp ${.CURDIR}/../sys/arch/amd64/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd cp ${.CURDIR}/../sys/arch/amd64/compile/GENERIC.MP/bsd \ - ${DESTDIR}/snapshot/bsd.mp + ${RELEASEDIR}/bsd.mp bsd: cd ${.CURDIR}/../sys/arch/amd64/conf && config GENERIC @@ -18,10 +17,11 @@ bsd.mp: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/pxeboot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/cdboot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/cdbr ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/pxeboot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/cdboot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/cdbr ${RELEASEDIR} -.PHONY: bsd bsd.mp bootblocks +MDEXT= bsd.mp cd${OSrev}.iso floppy${OSrev}.fs \ + pxeboot cdboot cdbr -.endif # DESTDIR check +.PHONY: bsd bsd.mp bootblocks diff --git a/src/etc/etc.armish/Makefile.inc b/src/etc/etc.armish/Makefile.inc index 2373edc7..4ee665ee 100644 --- a/src/etc/etc.armish/Makefile.inc +++ b/src/etc/etc.armish/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.5 2006/08/30 21:40:05 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.6 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/armish/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/armish/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/boot ${RELEASEDIR} -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.aviion/Makefile.inc b/src/etc/etc.aviion/Makefile.inc index 85ee7110..e9aba84a 100644 --- a/src/etc/etc.aviion/Makefile.inc +++ b/src/etc/etc.aviion/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.2 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.3 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/aviion/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/aviion/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/* ${DESTDIR}/snapshot/ + cp ${DESTDIR}/usr/mdec/* ${RELEASEDIR}/ -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.hp300/Makefile.inc b/src/etc/etc.hp300/Makefile.inc index f7b1299b..645ddd69 100644 --- a/src/etc/etc.hp300/Makefile.inc +++ b/src/etc/etc.hp300/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.19 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.20 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/hp300/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/hp300/conf && config GENERIC @@ -11,9 +10,9 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/uboot.lif ${DESTDIR}/snapshot/SYS_UBOOT - cp ${DESTDIR}/usr/mdec/cdboot.lif ${DESTDIR}/snapshot/SYS_CDBOOT + cp ${DESTDIR}/usr/mdec/uboot.lif ${RELEASEDIR}/SYS_UBOOT + cp ${DESTDIR}/usr/mdec/cdboot.lif ${RELEASEDIR}/SYS_CDBOOT -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.hppa/Makefile.inc b/src/etc/etc.hppa/Makefile.inc index c8685a5d..e90b2856 100644 --- a/src/etc/etc.hppa/Makefile.inc +++ b/src/etc/etc.hppa/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.5 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.6 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bootblocks bsd distrib +kernels: bootblocks bsd cp ${.CURDIR}/../sys/arch/hppa/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/hppa/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/xxboot ${RELEASEDIR} -.PHONY: bsd bootblocks +MDEXT= cd${OSrev}.iso xxboot -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.hppa64/Makefile.inc b/src/etc/etc.hppa64/Makefile.inc index d3d7e692..dcf8a29c 100644 --- a/src/etc/etc.hppa64/Makefile.inc +++ b/src/etc/etc.hppa64/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.2 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.3 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bootblocks bsd distrib +kernels: bootblocks bsd cp ${.CURDIR}/../sys/arch/hppa64/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/hppa64/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/xxboot ${RELEASEDIR} -.PHONY: bootblocks bsd +MDEXT= -.endif # DESTDIR check +.PHONY: bootblocks bsd diff --git a/src/etc/etc.i386/Makefile.inc b/src/etc/etc.i386/Makefile.inc index 24e41f30..7434cd5d 100644 --- a/src/etc/etc.i386/Makefile.inc +++ b/src/etc/etc.i386/Makefile.inc @@ -1,11 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.16 2006/07/27 02:53:38 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.17 2009/04/17 03:58:53 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bsd.mp bootblocks notes distrib +kernels: bsd bsd.mp bootblocks linux-notes cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd cp ${.CURDIR}/../sys/arch/i386/compile/GENERIC.MP/bsd \ - ${DESTDIR}/snapshot/bsd.mp + ${RELEASEDIR}/bsd.mp bsd: cd ${.CURDIR}/../sys/arch/i386/conf && config GENERIC @@ -18,13 +17,15 @@ bsd.mp: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/pxeboot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/cdboot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/cdbr ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/pxeboot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/cdboot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/cdbr ${RELEASEDIR} -notes: - cp ${.CURDIR}/etc.i386/INSTALL.* ${DESTDIR}/snapshot +linux-notes: + cp ${.CURDIR}/etc.i386/INSTALL.* ${RELEASEDIR} -.PHONY: bsd bsd.mp bootblocks notes +MDEXT= bsd.mp cd${OSrev}.iso cdemu${OSrev}.iso \ + floppy${OSrev}.fs floppyB${OSrev}.fs floppyC${OSrev}.fs \ + pxeboot cdboot cdbr INSTALL.linux -.endif # DESTDIR check +.PHONY: bsd bsd.mp bootblocks diff --git a/src/etc/etc.landisk/Makefile.inc b/src/etc/etc.landisk/Makefile.inc index 8e2df705..0e7198c0 100644 --- a/src/etc/etc.landisk/Makefile.inc +++ b/src/etc/etc.landisk/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.2 2006/11/12 21:45:19 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.3 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/landisk/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/landisk/conf && config GENERIC @@ -12,10 +11,10 @@ bsd: # probably will be replaced by procedure to build 'miniroot' image bootblocks: - cp ${DESTDIR}/usr/mdec/mbr ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/xxboot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/mbr ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/xxboot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/boot ${RELEASEDIR} -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.luna88k/Makefile.inc b/src/etc/etc.luna88k/Makefile.inc index 1fb4b53f..f53c2f75 100644 --- a/src/etc/etc.luna88k/Makefile.inc +++ b/src/etc/etc.luna88k/Makefile.inc @@ -1,18 +1,13 @@ -# $OpenBSD: Makefile.inc,v 1.2 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.3 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd cp ${.CURDIR}/../sys/arch/luna88k/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/luna88k/conf && config GENERIC cd ${.CURDIR}/../sys/arch/luna88k/compile/GENERIC && \ ${MAKE} clean && ${MAKE} depend && ${MAKE} -bootblocks: - #none needed +.PHONY: bsd -.PHONY: bsd bootblocks - -.endif # DESTDIR check diff --git a/src/etc/etc.mac68k/Makefile.inc b/src/etc/etc.mac68k/Makefile.inc index dabfdfb7..48a425bb 100644 --- a/src/etc/etc.mac68k/Makefile.inc +++ b/src/etc/etc.mac68k/Makefile.inc @@ -1,20 +1,14 @@ -# $OpenBSD: Makefile.inc,v 1.10 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.11 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd cp ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd printf "disable ncrscsi\nenable sbc\nquit" | config -e \ - -o ${DESTDIR}/snapshot/bsdsbc ${DESTDIR}/snapshot/bsd + -o ${RELEASEDIR}/bsdsbc ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERIC cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC && \ ${MAKE} clean && ${MAKE} depend && exec ${MAKE} -bootblocks: - #none needed - -.PHONY: bsd bootblocks - -.endif # DESTDIR check +.PHONY: bsd diff --git a/src/etc/etc.macppc/Makefile.inc b/src/etc/etc.macppc/Makefile.inc index e2fdbc01..983ee079 100644 --- a/src/etc/etc.macppc/Makefile.inc +++ b/src/etc/etc.macppc/Makefile.inc @@ -1,11 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.10 2008/04/25 04:04:15 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.11 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bsd.mp bootblocks distrib gzip_bsd.rd +kernels: bsd bsd.mp bootblocks cp ${.CURDIR}/../sys/arch/macppc/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd cp ${.CURDIR}/../sys/arch/macppc/compile/GENERIC.MP/bsd \ - ${DESTDIR}/snapshot/bsd.mp + ${RELEASEDIR}/bsd.mp bsd: cd ${.CURDIR}/../sys/arch/macppc/conf && config GENERIC @@ -18,14 +17,12 @@ bsd.mp: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/ofwboot ${DESTDIR}/snapshot/ofwboot - cp ${DESTDIR}/usr/mdec/bsd.tbxi ${DESTDIR}/snapshot/bsd.tbxi - cp ${DESTDIR}/usr/mdec/boot.mac ${DESTDIR}/snapshot/boot.mac + cp ${DESTDIR}/usr/mdec/ofwboot ${RELEASEDIR}/ofwboot + cp ${DESTDIR}/usr/mdec/bsd.tbxi ${RELEASEDIR}/bsd.tbxi + cp ${DESTDIR}/usr/mdec/boot.mac ${RELEASEDIR}/boot.mac -gzip_bsd.rd: - gzip -9 ${DESTDIR}/snapshot/bsd.rd - mv ${DESTDIR}/snapshot/bsd.rd.gz ${DESTDIR}/snapshot/bsd.rd +MDEXT= bsd.mp cd${OSrev}.iso \ + ofwboot bsd.tbxi boot.mac -.PHONY: bootblocks bsd gzip_bsd.rd +.PHONY: bsd bsd.mp bootblocks -.endif # DESTDIR check diff --git a/src/etc/etc.mvme68k/Makefile.inc b/src/etc/etc.mvme68k/Makefile.inc index e318bd7c..3e246826 100644 --- a/src/etc/etc.mvme68k/Makefile.inc +++ b/src/etc/etc.mvme68k/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.9 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.10 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/mvme68k/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/mvme68k/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/* ${DESTDIR}/snapshot/ + cp ${DESTDIR}/usr/mdec/* ${RELEASEDIR}/ -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.mvme88k/Makefile.inc b/src/etc/etc.mvme88k/Makefile.inc index 3215651c..d79aaa7d 100644 --- a/src/etc/etc.mvme88k/Makefile.inc +++ b/src/etc/etc.mvme88k/Makefile.inc @@ -1,11 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.8 2007/11/09 18:15:22 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.9 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bsd.mp bootblocks distrib +kernels: bsd bsd.mp bootblocks cp ${.CURDIR}/../sys/arch/mvme88k/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd cp ${.CURDIR}/../sys/arch/mvme88k/compile/GENERIC.MP/bsd \ - ${DESTDIR}/snapshot/bsd.mp + ${RELEASEDIR}/bsd.mp bsd: cd ${.CURDIR}/../sys/arch/mvme88k/conf && config GENERIC @@ -18,8 +17,8 @@ bsd.mp: ${MAKE} clean && ${MAKE} depend && ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/* ${DESTDIR}/snapshot/ + cp ${DESTDIR}/usr/mdec/* ${RELEASEDIR}/ -.PHONY: bsd bsd.mp bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bsd.mp bootblocks diff --git a/src/etc/etc.mvmeppc/Makefile.inc b/src/etc/etc.mvmeppc/Makefile.inc index 4fe9955e..be477ef8 100644 --- a/src/etc/etc.mvmeppc/Makefile.inc +++ b/src/etc/etc.mvmeppc/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.4 2006/07/27 02:51:15 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/mvmeppc/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/mvmeppc/conf && config GENERIC @@ -11,10 +10,10 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/snapshot/bootxx - cp ${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/snapshot/bootsd - cp ${DESTDIR}/usr/mdec/installboot ${DESTDIR}/snapshot/installboot + cp ${DESTDIR}/usr/mdec/bootxx ${RELEASEDIR}/bootxx + cp ${DESTDIR}/usr/mdec/bootsd ${RELEASEDIR}/bootsd + cp ${DESTDIR}/usr/mdec/installboot ${RELEASEDIR}/installboot -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.sgi/Makefile.inc b/src/etc/etc.sgi/Makefile.inc index 5e264a79..97957a56 100644 --- a/src/etc/etc.sgi/Makefile.inc +++ b/src/etc/etc.sgi/Makefile.inc @@ -1,18 +1,15 @@ -# $OpenBSD: Makefile.inc,v 1.4 2006/07/27 02:53:55 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.5 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd cp ${.CURDIR}/../sys/arch/sgi/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/sgi/conf && config GENERIC cd ${.CURDIR}/../sys/arch/sgi/compile/GENERIC && \ ${MAKE} clean && ${MAKE} depend && exec ${MAKE} -bootblocks: - #none needed +MDEXT= -.PHONY: bsd bootblocks +.PHONY: bsd -.endif # DESTDIR check diff --git a/src/etc/etc.socppc/Makefile.inc b/src/etc/etc.socppc/Makefile.inc index f70f982d..d6ad4b30 100644 --- a/src/etc/etc.socppc/Makefile.inc +++ b/src/etc/etc.socppc/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.1 2008/05/13 19:39:58 kettenis Exp $ +# $OpenBSD: Makefile.inc,v 1.2 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/socppc/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/socppc/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot/boot + cp ${DESTDIR}/usr/mdec/boot ${RELEASEDIR}/boot -.PHONY: bsd bootblocks +MDEXT= -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.sparc/Makefile.inc b/src/etc/etc.sparc/Makefile.inc index b281e06e..5f16f567 100644 --- a/src/etc/etc.sparc/Makefile.inc +++ b/src/etc/etc.sparc/Makefile.inc @@ -1,13 +1,12 @@ -# $OpenBSD: Makefile.inc,v 1.14 2006/07/27 01:58:21 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.15 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/sparc/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd - s=`printf "find sd\nexit" | config -e ${DESTDIR}/snapshot/bsd | \ + ${RELEASEDIR}/bsd + s=`printf "find sd\nexit" | config -e ${RELEASEDIR}/bsd | \ grep scsibus | awk '{print $$1}'`; \ printf "add sd0\n%s\n%s\nchange %s\ny\n3\n\n\nquit\n" $$s $$s $$s | \ - config -e -o ${DESTDIR}/snapshot/bsd.scsi3 ${DESTDIR}/snapshot/bsd + config -e -o ${RELEASEDIR}/bsd.scsi3 ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/sparc/conf && config GENERIC @@ -15,10 +14,10 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/*boot* ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/*boot* ${RELEASEDIR} ${DESTDIR}/usr/mdec/binstall net /tmp && \ - mv /tmp/boot.sparc.openbsd ${DESTDIR}/snapshot/boot.net + mv /tmp/boot.sparc.openbsd ${RELEASEDIR}/boot.net -.PHONY: bsd bootblocks +MDEXT= bsd.scsi3 boot boot.net bootxx installboot -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.sparc64/Makefile.inc b/src/etc/etc.sparc64/Makefile.inc index 7354e139..f42737b7 100644 --- a/src/etc/etc.sparc64/Makefile.inc +++ b/src/etc/etc.sparc64/Makefile.inc @@ -1,11 +1,10 @@ -# $OpenBSD: Makefile.inc,v 1.5 2007/11/09 18:14:33 miod Exp $ +# $OpenBSD: Makefile.inc,v 1.6 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bsd.mp bootblocks distrib +kernels: bsd bsd.mp bootblocks cp ${.CURDIR}/../sys/arch/sparc64/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd cp ${.CURDIR}/../sys/arch/sparc64/compile/GENERIC.MP/bsd \ - ${DESTDIR}/snapshot/bsd.mp + ${RELEASEDIR}/bsd.mp bsd: cd ${.CURDIR}/../sys/arch/sparc64/conf && config GENERIC @@ -18,8 +17,10 @@ bsd.mp: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/*boot* ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/*boot* ${RELEASEDIR} -.PHONY: bsd bsd.mp bootblocks +MDEXT= bsd.mp cd${OSrev}.iso miniroot${OSrev}.fs \ + floppy${OSrev}.fs floppyB${OSrev}.fs \ + bootblk installboot ofwboot ofwboot.net -.endif # DESTDIR check +.PHONY: bsd bsd.mp bootblocks diff --git a/src/etc/etc.vax/Makefile.inc b/src/etc/etc.vax/Makefile.inc index 69171c06..8cd8656c 100644 --- a/src/etc/etc.vax/Makefile.inc +++ b/src/etc/etc.vax/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.6 2006/07/27 01:58:21 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.7 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/vax/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/vax/conf && config GENERIC @@ -11,8 +10,8 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - mopa.out ${DESTDIR}/usr/mdec/boot ${DESTDIR}/snapshot/boot.mop + mopa.out ${DESTDIR}/usr/mdec/boot ${RELEASEDIR}/boot.mop -.PHONY: bsd bootblocks +MDEXT= boot.mop -.endif # DESTDIR check +.PHONY: bsd bootblocks diff --git a/src/etc/etc.zaurus/Makefile.inc b/src/etc/etc.zaurus/Makefile.inc index 552277cd..1298dd1d 100644 --- a/src/etc/etc.zaurus/Makefile.inc +++ b/src/etc/etc.zaurus/Makefile.inc @@ -1,9 +1,8 @@ -# $OpenBSD: Makefile.inc,v 1.6 2006/07/27 01:58:21 deraadt Exp $ +# $OpenBSD: Makefile.inc,v 1.7 2009/04/17 03:58:54 deraadt Exp $ -.ifdef DESTDIR -snap_md: bsd bootblocks distrib +kernels: bsd bootblocks cp ${.CURDIR}/../sys/arch/zaurus/compile/GENERIC/bsd \ - ${DESTDIR}/snapshot/bsd + ${RELEASEDIR}/bsd bsd: cd ${.CURDIR}/../sys/arch/zaurus/conf && config GENERIC @@ -11,9 +10,9 @@ bsd: ${MAKE} clean && ${MAKE} depend && exec ${MAKE} bootblocks: - cp ${DESTDIR}/usr/mdec/zboot ${DESTDIR}/snapshot - cp ${DESTDIR}/usr/mdec/zbsdmod.o ${DESTDIR}/snapshot + cp ${DESTDIR}/usr/mdec/zboot ${RELEASEDIR} + cp ${DESTDIR}/usr/mdec/zbsdmod.o ${RELEASEDIR} -.PHONY: bsd bootblocks +MDEXT= zboot zbsdmod.o openbsd45_arm.ipk Packages -.endif # DESTDIR check +.PHONY: bsd bootblocks