summaryrefslogtreecommitdiff
path: root/distrib/hppa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-08-10 02:28:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-08-10 02:28:54 +0000
commit96805ebe46da2202241c971700657e6dae1ee5bc (patch)
tree957b44347f47ef1d04a39f84819e20f8dc7b6295 /distrib/hppa
parent8155b52c252be9c12352983ea9889ce1f4100b17 (diff)
a somewhat crude way to generate installXX.iso files based on
intermediate snapshot components. uses some knowledge from our internal build scheme to link together base and X sets.
Diffstat (limited to 'distrib/hppa')
-rw-r--r--distrib/hppa/iso/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/distrib/hppa/iso/Makefile b/distrib/hppa/iso/Makefile
new file mode 100644
index 00000000000..abccd3a7f82
--- /dev/null
+++ b/distrib/hppa/iso/Makefile
@@ -0,0 +1,51 @@
+# $OpenBSD: Makefile,v 1.1 2007/08/10 02:28:53 deraadt Exp $
+
+TOP= ${.CURDIR}/..
+
+.include "${TOP}/Makefile.inc"
+
+CDROM= install${REV}.iso
+RELXDIR= /home/relx-hppa
+RELDIR?= /home/rel-hppa
+all: ${CDROM}
+
+${CDROM}:
+ -rm -rf ${.OBJDIR}/cd-dir
+ mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/hppa
+
+ cp -p ${RELDIR}/{base,comp,etc,game,man,misc}${OSrev}.tgz \
+ ${.OBJDIR}/cd-dir/${OSREV}/hppa
+ cp -p ${RELDIR}/{bsd,bsd.rd} \
+ ${.OBJDIR}/cd-dir/${OSREV}/hppa
+ cp -p ${RELXDIR}/{xbase,xetc,xfont,xserv,xshare}${OSrev}.tgz \
+ ${.OBJDIR}/cd-dir/${OSREV}/hppa
+ cp -p ${RELDIR}/INSTALL.hppa \
+ ${.OBJDIR}/cd-dir/${OSREV}/hppa
+
+ ln -f ${.OBJDIR}/cd-dir/${OSREV}/hppa/bsd.rd \
+ ${.OBJDIR}/cd-dir/bsd.rd
+
+ mkhybrid -R -T -L -d -D -N \
+ -A "OpenBSD ${OSREV} hppa Install CD" \
+ -P "Copyright (c) `date +%Y` Theo de Raadt, The OpenBSD project" \
+ -p "Theo de Raadt <deraadt@openbsd.org>" \
+ -V "OpenBSD/hppa ${OSREV} Install CD" \
+ -o ${.OBJDIR}/${CDROM} ${.OBJDIR}/cd-dir
+ dd if=${DESTDIR}/usr/mdec/cdboot of=${.OBJDIR}/${CDROM} \
+ bs=32k count=1 conv=notrunc
+ vnconfig -v -c svnd0 ${.OBJDIR}/${CDROM}
+ disklabel -w svnd0 fakecdrom "OpenBSD/hppa "
+ vnconfig -u svnd0
+ dd if=/dev/zero bs=64k count=1 >> ${.OBJDIR}/${CDROM}
+
+install:
+ cp ${CDROM} ${RELDIR}/
+
+clean cleandir:
+ /bin/rm -rf cd-dir ${CDROM}
+
+unconfig:
+ -vnconfig -u svnd0
+
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>