diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2007-03-09 23:51:50 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2007-03-09 23:51:50 +0000 |
commit | c86559a3d6fde049949e8838a5e5681718f01caf (patch) | |
tree | 276abd7dd15a34034f71a140f558ba74efb30940 /sysutils | |
parent | 6c701f2296fc327600617efae3f0b6a530b09ac0 (diff) | |
download | pkgsrc-c86559a3d6fde049949e8838a5e5681718f01caf.tar.gz |
Update to 0.14.5:
This version adds support for NetBSD/amd64 with bootxx_cd9660, because
grub does not work in 64bit mode, so I've disabled the USE_GNU_GRUB
and GRUB_FILES_DIR options if it's amd64.
Enjoy!
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/mklivecd/Makefile | 10 | ||||
-rwxr-xr-x | sysutils/mklivecd/files/mklivecd.sh | 35 |
2 files changed, 36 insertions, 9 deletions
diff --git a/sysutils/mklivecd/Makefile b/sysutils/mklivecd/Makefile index dcd7e60cc82..f07306c4549 100644 --- a/sysutils/mklivecd/Makefile +++ b/sysutils/mklivecd/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.34 2007/01/07 09:14:12 rillig Exp $ +# $NetBSD: Makefile,v 1.35 2007/03/09 23:51:50 xtraeme Exp $ -DISTNAME= mklivecd-0.14.4 +DISTNAME= mklivecd-0.14.5 CATEGORIES= sysutils MASTER_SITES= # empty DISTFILES= # empty @@ -8,12 +8,16 @@ DISTFILES= # empty MAINTAINER= xtraeme@NetBSD.org COMMENT= Make your own NetBSD/i386 Live CD-ROM/DVD-ROM +.include "../../mk/bsd.prefs.mk" + DEPENDS+= {cdrtools,cdrtools-ossdvd}-[0-9]*:../../sysutils/cdrtools +.if ${MACHINE_ARCH} == "i386" DEPENDS+= grub>=0.97:../../sysutils/grub +.endif PKG_INSTALLATION_TYPES= overwrite pkgviews -ONLY_FOR_PLATFORM= NetBSD-*-i386 +ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64 WRKSRC= ${WRKDIR} EXTRACT_ONLY= # empty diff --git a/sysutils/mklivecd/files/mklivecd.sh b/sysutils/mklivecd/files/mklivecd.sh index 4c49b924c0b..77ff69be7f7 100755 --- a/sysutils/mklivecd/files/mklivecd.sh +++ b/sysutils/mklivecd/files/mklivecd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: mklivecd.sh,v 1.30 2006/12/02 01:04:47 xtraeme Exp $ +# $NetBSD: mklivecd.sh,v 1.31 2007/03/09 23:51:50 xtraeme Exp $ # # Copyright (c) 2004-2006 Juan Romero Pardines. # All rights reserved. @@ -47,8 +47,14 @@ : ${pkgsrc_mntstat:=$config_dir/pkgsrc_mount.stat} : ${pkgsrcdist_mntstat:=$config_dir/pkgsrcdist_mount.stat} : ${packages_mntstat:=$config_dir/packages_mount.stat} + +# +# Neeeded to disable GRUB on amd64. +# +: ${ARCH:=$(/sbin/sysctl -n hw.machine_arch)} + # -# NetBSD >= 4.0 has cdboot, no need to use grub here. +# NetBSD >= 4.0 has bootxx_cd9660, no need to use grub here. # : ${CDBOOT_IMG:=bootxx_cd9660} : ${BOOT_IMG:=boot} @@ -129,8 +135,11 @@ do_conf() MISC_VARS="ENABLE_X11 MKISOFS_BIN MKISOFS_ARGS CDRECORD_BIN CDRECORD_ARGS \ BLANK_BEFORE_BURN CDROM_DEVICE PERSONAL_CONFIG IMAGE_NAME \ - PKG_SYSCONFDIR REMOVE_DIRS USE_GNU_GRUB GRUB_FILES_DIR HOSTNAME \ - VND_COMPRESSION" + PKG_SYSCONFDIR REMOVE_DIRS HOSTNAME VND_COMPRESSION" + + if [ "${ARCH}" != "x86_64" ]; then + MISC_VARS="${MISC_VARS} USE_GNU_GRUB GRUB_FILES_DIR" + fi MNT_VARS="MNT_RAMFS_CMD MNT_RAMFS_ARGS" @@ -167,7 +176,11 @@ do_conf() : ${IMAGE_NAME:=NetBSD-LiveCD} : ${PKG_SYSCONFDIR:=usr/pkg/etc} : ${REMOVE_DIRS:=altroot usr/share/info} - : ${USE_GNU_GRUB:=yes} + if [ "${MACHINE_ARCH}" != "x86_64" ]; then + : ${USE_GNU_GRUB:=yes} + else + USE_GNU_GRUB=no + fi : ${GRUB_FILES_DIR:=@LOCALBASE@/lib/grub/@MACHINE_ARCH@-} : ${VND_COMPRESSION:=no} # @@ -217,6 +230,11 @@ EOF ) >> $config_file echo >> $config_file + # GNU Grub is not supported in 64bit. + if [ "$(/sbin/sysctl -n hw.machine_arch)" = "x86_64" ]; then + USE_GNU_GRUB=no + fi + echo "# Miscellaneous options" >> $config_file for var in $(echo $MISC_VARS | tr ' ' '\n' | sort -u) do @@ -557,7 +575,7 @@ do_cdlive() cat > $ISODIR/etc/rc.d/root <<_EOF_ #!/bin/sh # -# \$NetBSD: mklivecd.sh,v 1.30 2006/12/02 01:04:47 xtraeme Exp $ +# \$NetBSD: mklivecd.sh,v 1.31 2007/03/09 23:51:50 xtraeme Exp $ # # PROVIDE: root @@ -847,6 +865,11 @@ _EOF_ done ;; iso) + # To make sure that it's not defined + if [ "${ARCH}" = "x86_64" ]; then + unset USE_GNU_GRUB + fi + if [ "$VND_COMPRESSION" = "yes" ]; then cd $ISODIR |