summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-12-09 08:40:58 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-12-09 08:40:58 +0000
commitf92d879acd7f1561fb43b98e956039fff9615f0d (patch)
treee85c03eb44fda5f186d46568a035fab18214df9f /sys-apps/yaboot
parentprofiles now have sys-boot/ instead of sys-apps/ (diff)
downloadgentoo-2-f92d879acd7f1561fb43b98e956039fff9615f0d.tar.gz
gentoo-2-f92d879acd7f1561fb43b98e956039fff9615f0d.tar.bz2
gentoo-2-f92d879acd7f1561fb43b98e956039fff9615f0d.zip
removed the bootloaders from here and plopped them into sys-boot
Diffstat (limited to 'sys-apps/yaboot')
-rw-r--r--sys-apps/yaboot/ChangeLog94
-rw-r--r--sys-apps/yaboot/Manifest13
-rw-r--r--sys-apps/yaboot/files/digest-yaboot-1.3.101
-rw-r--r--sys-apps/yaboot/files/digest-yaboot-1.3.10-r11
-rw-r--r--sys-apps/yaboot/files/digest-yaboot-1.3.10-r24
-rw-r--r--sys-apps/yaboot/files/digest-yaboot-1.3.111
-rw-r--r--sys-apps/yaboot/files/yabootconfig697
-rw-r--r--sys-apps/yaboot/files/yabootconfig-1.3.10.patch78
-rw-r--r--sys-apps/yaboot/files/yabootconfig-1.3.11.patch78
-rw-r--r--sys-apps/yaboot/metadata.xml5
-rw-r--r--sys-apps/yaboot/yaboot-1.3.10-r1.ebuild37
-rw-r--r--sys-apps/yaboot/yaboot-1.3.10-r2.ebuild39
-rw-r--r--sys-apps/yaboot/yaboot-1.3.10.ebuild37
-rw-r--r--sys-apps/yaboot/yaboot-1.3.11.ebuild39
14 files changed, 0 insertions, 1124 deletions
diff --git a/sys-apps/yaboot/ChangeLog b/sys-apps/yaboot/ChangeLog
deleted file mode 100644
index 87eaa0a6fa93..000000000000
--- a/sys-apps/yaboot/ChangeLog
+++ /dev/null
@@ -1,94 +0,0 @@
-# ChangeLog for sys-apps/yaboot
-# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/yaboot/ChangeLog,v 1.19 2003/12/04 14:50:51 pvdabeel Exp $
-
- 04 Dec 2003; Pieter Van den Abeele <pvdabeel@gentoo.org> :
- New yaboot release with G5 support
-
- 22 Jun 2003; <rac@gentoo.org> yaboot-1.3.10-r2.ebuild:
- emergency keyword fix
-
- 13 Apr 2003; Luca Barbato <lu_zero@gentoo.org> yaboot-1.3.10-r2.ebuild:
- fix ebuild to set CC if isn't already set (bug 18765)
-
-*yaboot-1.3.10-r2 (26 Mar 2003)
-
- 26 Mar 2003; Zach Welch <zwelch@gentoo.org> yaboot-1.3.10-r2.ebuild:
- fix ebuild to respect CC for distcc builds (bug 18243)
-
-*yaboot-1.3.10-r1 (15 Mar 2003)
-
- 15 Mar 2003; Mark Guertin <gerk@gentoo.org> yaboot-1.3.10-r1.ebuild,
- files/yabootconfig-1.3.10.patch:
- fixed typo in yabootconfig which caused invalid macosx= in yaboot.conf, rev
- bumped to ensure people update
-
-*yaboot-1.3.10 (26 Feb 2003)
-
- 10 Mar 2003; Seemant Kulleen <seemant@gentoo.org> yaboot-1.3.10.ebuild:
- use epatch instead
-
- 26 Feb 2003; Mark Guertin <gerk@gentoo.org> yaboot-1.3.10.ebuild files/digest-yaboot-1.3.10 files/yabootconfig-1.3.10.patch :
- New yaboot version, fixes up ofpath issues upstream, also has support for
- latest powermac machines. Important fixes, set as ppc
-
-*yaboot-1.3.9.ebuild (Feb 12 2003)
-
- 12 Feb 2003; Pieter Van den Abeele <pvdabeel@gentoo.org> yaboot-1.3.9.ebuild
- new release with newest powerbook support
-
-*yaboot-1.3.8-r1.ebuild (Dec 20 2002)
-
- 06 Jan 2003; Seemant Kulleen <seemant@gentoo.org> *.ebuild :
-
- PROVIDE=virtual/bootloader
-
- 20 Dec 2002; Mark Guertin <gerk@gentoo.org> yaboot-1.3.8-r1.ebuild:
- Added a patched yabootconfig that detects and adds dual boot configs
- for OS X and Mac OS. Added -alpha to keywords and promoted this
- to stable.
-
-*yaboot-1.3.8 (12-11-02)
-
- 11 Dec 2002; Calum Selkirk <cselkirk@gentoo.org> yaboot-1.3.8.ebuild
- files/digest-yaboot-1.3.8 :
-
- New ebuild. This release adds support for the PMac Windtunnel and Xserve.
-
- 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
-
-*yaboot-1.3.7 (Nov 16 2002); cselkirk <cselkirk@gentoo.org>
-
- 16 Nov 2002; Calum Selkirk <cselkirk@gentoo.org> yaboot-1.3.7.ebuild
- digest-yaboot-1.3.7 :
-
- new ebuild. This mainly an upstream maintaince release with some small
- buxfixes, it's KEYWORDED ~ppc but should be safe to KEYWORD ppc after some
- testing
-
-*yaboot-1.3.6-r1 (June 21 2002); Gerk (gerk@gentoo.org)
-
- 04 Sept 2002; Calum Selkirk <cselkirk@gentoo.org> yaboot-1.3.6-r1 :
-
- Fixed the path to /usr/lib/yaboot/
-
- 20 Jul 2002; Mark Guertin <gerk@gentoo.org> yaboot-1.3.6.ebuild :
- Adjusted keywords
-
- 14 Jul 2002; phoen][x <phoenix@gentoo.org> yaboot-1.3.6.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
-
- Adjusted ARCH check and added RDEPEND, SLOT, LICENSE to build
- (no -r1 as no need to recompile for this)
-
-*yaboot-1.3.6-r1 (Wed Apr 24 17:09:25 2002 CEST); pvdabeel <pvdabeel@gentoo.org>:
-
-Wed Apr 24 17:09:45 2002 CEST; pvdabeel <pvdabeel@gentoo.org>:
-
- Install manpages in /usr/share instead of /usr/usr/share
-
-*yaboot-1.3.6 (Sun Mar 17 23:27:28 CST 2002)
-
-Sun Mar 17 23:29:06 CST 2002; Kain <kain@kain.org> all:
-
- This is an initial .ebuild for yaboot 1.3.6 for ppc machines.
diff --git a/sys-apps/yaboot/Manifest b/sys-apps/yaboot/Manifest
deleted file mode 100644
index 0a72035e9936..000000000000
--- a/sys-apps/yaboot/Manifest
+++ /dev/null
@@ -1,13 +0,0 @@
-MD5 cfb24d5e5cc68107f86c117504e501d0 ChangeLog 3299
-MD5 52f9d8e98c8931645c57a3de1c36727d metadata.xml 156
-MD5 d369b536e8cf03c303263ca25818d5e4 yaboot-1.3.10-r1.ebuild 986
-MD5 c4255a6355a4aab2941410a7eaeeb29d yaboot-1.3.10-r2.ebuild 1026
-MD5 ccfc3e43406cc52904d4ee43950d0456 yaboot-1.3.10.ebuild 983
-MD5 2349ad56f588625835cdfc855dc1605d yaboot-1.3.11.ebuild 1024
-MD5 b23ffae9719feba081f90bcb62ed4928 files/digest-yaboot-1.3.10 65
-MD5 b23ffae9719feba081f90bcb62ed4928 files/digest-yaboot-1.3.10-r1 65
-MD5 cdcf832620e73598eb112a6000509afd files/digest-yaboot-1.3.10-r2 270
-MD5 22f651a4c0cd422e1245d3a905f9ce31 files/yabootconfig 18898
-MD5 05ad83c8ec8ac7914cd6224a148daef6 files/yabootconfig-1.3.10.patch 1987
-MD5 79f1707ceab2b7d7daa98a62e15ca98c files/digest-yaboot-1.3.11 65
-MD5 05ad83c8ec8ac7914cd6224a148daef6 files/yabootconfig-1.3.11.patch 1987
diff --git a/sys-apps/yaboot/files/digest-yaboot-1.3.10 b/sys-apps/yaboot/files/digest-yaboot-1.3.10
deleted file mode 100644
index 89c08fc0aa93..000000000000
--- a/sys-apps/yaboot/files/digest-yaboot-1.3.10
+++ /dev/null
@@ -1 +0,0 @@
-MD5 9770dc5128b2aa45d16d2002a9565002 yaboot-1.3.10.tar.gz 273454
diff --git a/sys-apps/yaboot/files/digest-yaboot-1.3.10-r1 b/sys-apps/yaboot/files/digest-yaboot-1.3.10-r1
deleted file mode 100644
index 89c08fc0aa93..000000000000
--- a/sys-apps/yaboot/files/digest-yaboot-1.3.10-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 9770dc5128b2aa45d16d2002a9565002 yaboot-1.3.10.tar.gz 273454
diff --git a/sys-apps/yaboot/files/digest-yaboot-1.3.10-r2 b/sys-apps/yaboot/files/digest-yaboot-1.3.10-r2
deleted file mode 100644
index 4961040bb594..000000000000
--- a/sys-apps/yaboot/files/digest-yaboot-1.3.10-r2
+++ /dev/null
@@ -1,4 +0,0 @@
-MD5 22f651a4c0cd422e1245d3a905f9ce31 /files/yabootconfig 18898
-MD5 05ad83c8ec8ac7914cd6224a148daef6 /files/yabootconfig-1.3.10.patch 1987
-MD5 8529059f433cd6b9345a43f6596386a6 /yaboot-1.3.10-r2.ebuild 1007
-MD5 9770dc5128b2aa45d16d2002a9565002 yaboot-1.3.10.tar.gz 273454
diff --git a/sys-apps/yaboot/files/digest-yaboot-1.3.11 b/sys-apps/yaboot/files/digest-yaboot-1.3.11
deleted file mode 100644
index a881271edca5..000000000000
--- a/sys-apps/yaboot/files/digest-yaboot-1.3.11
+++ /dev/null
@@ -1 +0,0 @@
-MD5 338be176b2767498fd42e9e9c2f4f3da yaboot-1.3.11.tar.gz 272953
diff --git a/sys-apps/yaboot/files/yabootconfig b/sys-apps/yaboot/files/yabootconfig
deleted file mode 100644
index 5efc4a5cf5da..000000000000
--- a/sys-apps/yaboot/files/yabootconfig
+++ /dev/null
@@ -1,697 +0,0 @@
-#! /bin/sh
-
-###############################################################################
-##
-## yabootconfig generates a simple /etc/yaboot.conf
-## Copyright (C) 2001 Ethan Benson
-## Patched for Gentoo and dual boot - Mark Guertin <gerk@gentoo.org>
-##
-## This program is free software; you can redistribute it and/or
-## modify it under the terms of the GNU General Public License
-## as published by the Free Software Foundation; either version 2
-## of the License, or (at your option) any later version.
-##
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-##
-###############################################################################
-
-PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"
-## allow to run out of /target in boot-floppies
-if [ -n "$PATH_PREFIX" ] ; then
- PATH="${PATH}:${PATH_PREFIX}/sbin:${PATH_PREFIX}/bin:${PATH_PREFIX}/usr/sbin:${PATH_PREFIX}/usr/bin:${PATH_PREFIX}/usr/local/sbin:${PATH_PREFIX}/usr/local/bin"
-fi
-PRG="${0##*/}"
-VERSION=1.0.5
-CHROOT=/
-## $CONFIG is relative to $CHROOT
-CONFIG=etc/yaboot.conf
-NOINSTALL=0
-QUIET=0
-DEBUG=0
-SIGINT="$PRG: Interrupt caught ... exiting"
-export LC_COLLATE=C
-
-## catch signals, clean up temporary file
-trap "cleanup" 0
-trap "exit 129" 1
-trap "echo 1>&2 $SIGINT ; exit 130" 2
-trap "exit 131" 3
-trap "exit 143" 15
-
-## check for printf, use it if possible otherwise fall back on
-## unreliable echo -e -n ("SUS" says echo shall support no switches)
-if [ "$(printf printf_test 2>/dev/null)" = printf_test ] ; then
- PRINTF=printf
-else
- PRINTF="echo -e -n"
-fi
-
-## make sure echo is not lame if we must use it.
-if [ "$PRINTF" != printf ] ; then
- if [ "$(echo -e -n echo_test)" != "echo_test" ] ; then
- echo 1>&2 "$PRG: printf unavailable and echo is broken, sorry."
- exit 1
- fi
-fi
-
-## make fake `id' if its missing, outputs 0 since if its missing we
-## are probably running on boot floppies and thus are root.
-if (command -v id > /dev/null 2>&1) ; then
- true
-else
- id()
- {
- echo 0
- }
-fi
-
-## --version output
-version()
-{
-echo \
-"$PRG $VERSION
-Written by Ethan Benson
-
-Copyright (C) 2001 Ethan Benson
-This is free software; see the source for copying conditions. There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-}
-
-## --help output.
-usage()
-{
-echo \
-"Usage: $PRG [OPTION]...
-Generate a working /etc/yaboot.conf.
-
- -t, --chroot set root directory $PRG should work from
- -r, --root set root partition, Example: /dev/hda3
- default: determined from {chroot}/etc/fstab
- -b, --boot set bootstrap partition, Example: /dev/hda2
- default: first type: Apple_Bootstrap partition
- --kernel-args add an append= line with specified arguments
- -q, --quiet don't ask any questions/confirmation
- --noinstall don't automatically run mkofboot
- -h, --help display this help and exit
- -V, --version output version information and exit"
-}
-
-debug()
-{
- [ "$DEBUG" = 0 ] && return 0
- $PRINTF 1>&2 "$PRG: DEBUG: $1"
-}
-
-confirm()
-{
- $PRINTF \
-"yaboot is the Linux Loader for PowerPC. $PRG sets up your system to boot directly
-from your hard disk, without the need for a boot CD, floppy or a network boot.\n"
-[ "$NOINSTALL" = 0 ] && $PRINTF "Install yaboot bootstrap on $BOOT to boot Linux from $ROOT? [Yes] "
-[ "$NOINSTALL" = 1 ] && $PRINTF "Create simple ${CHROOT}${CONFIG} to boot Linux from $ROOT? [Yes] "
- read ans
- case "$ans" in
- Y|y|Yes|yes|YES|"")
- echo "Creating a simple ${CHROOT}${CONFIG}..."
- return 0
- ;;
- *)
- if [ "$NOINSTALL" = 0 ] ; then
- $PRINTF "Create simple ${CHROOT}${CONFIG} without installing the bootstrap? [Yes] "
- read ans
- case "$ans" in
- Y|y|Yes|yes|YES|"")
- NOINSTALL=1
- echo 1>&2 "Creating a simple ${CHROOT}${CONFIG}..."
- return 0
- ;;
- *)
- echo "OK, quitting"
- return 1
- ;;
- esac
- else
- echo "OK, quitting"
- return 1
- fi
- ;;
- esac
-}
-
-## find out whether we have mac-fdisk or pdisk (they work the same)
-ckmacfdisk()
-{
- if (command -v mac-fdisk > /dev/null 2>&1) ; then
- FDISK=mac-fdisk
- elif (command -v pdisk > /dev/null 2>&1) ; then
- FDISK=pdisk
- else
- echo 1>&2 "$PRG: Unable to locate mac-fdisk"
- return 1
- fi
-
- if [ ! -x `command -v $FDISK` 2> /dev/null ] ; then
- echo 1>&2 "$PRG: `command -v $FDISK`: Permission denied"
- return 1
- fi
- debug "mac-fdisk is: $FDISK\n"
- return 0
-}
-
-## find out if we have ddisk or fdisk (fdisk for dos labels) debian
-## uses both names
-ckfdisk()
-{
- if (command -v ddisk > /dev/null 2>&1) ; then
- FDISK=ddisk
- elif (command -v fdisk > /dev/null 2>&1) ; then
- FDISK=fdisk
- else
- echo 1>&2 "$PRG: Unable to locate fdisk"
- return 1
- fi
-
- if [ ! -x `command -v $FDISK` 2> /dev/null ] ; then
- echo 1>&2 "$PRG: `command -v $FDISK`: Permission denied"
- return 1
- fi
- debug "fdisk is: $FDISK\n"
- return 0
-}
-
-## find bootstrap partition, supports IBM CHRP with msdos disklabels
-findbootblock()
-{
- ## mac partition table magic == ER
- if [ "$(dd if="$DISK" bs=2 count=1 2> /dev/null)" = ER ] ; then
- ckmacfdisk || return 1
- if [ "$FDISK" = pdisk ] ; then
- ## handle braindamaged pdisk
- debug "dealing with pdisk deficiency...\n"
- BOOT="$(v=`$FDISK -l "$DISK" 2>/dev/null | grep '\<Apple_Bootstrap\>'` ; echo ${v%%:*})"
- debug "BOOT before fixup: $BOOT\n"
- if [ -n "$BOOT" ] ; then
- BOOT="${DISK}${BOOT}"
- fi
- debug "BOOT after fixup: $BOOT\n"
- else
- BOOT="$(v=`$FDISK -l "$DISK" 2>/dev/null | grep '\<Apple_Bootstrap\>'` ; echo ${v%%[ ]*})"
- debug "BOOT=$BOOT\n"
- fi
- if [ -z "$BOOT" ] ; then
- echo 1>&2 "$PRG: Unable to locate bootstrap partition on $DISK..."
- echo 1>&2 "$PRG: You must create an 800K type: Apple_Bootstrap partition to make the disk bootable"
- return 1
- fi
- else
- ckfdisk || return 1
- BOOT="$(v=`$FDISK -l "$DISK" 2>/dev/null | grep '\<PPC PReP Boot\>'` ; echo ${v%%[ ]*})"
- debug "BOOT=$BOOT\n"
- if [ -z "$BOOT" ] ; then
- echo 1>&2 "$PRG: Unable to locate bootstrap partition on $DISK..."
- echo 1>&2 "$PRG: You must create an 800K type: 0x41 PPC PReP Boot partition to make the disk bootable"
- return 1
- fi
- fi
- return 0
-}
-
-## if readlink is missing use a kludge
-if (command -v readlink > /dev/null 2>&1) ; then
- true
-else
- readlink()
- {
- SYMTARGET="$(v=`ls -l "$2" 2>/dev/null` ; echo ${v##*> })"
- if [ -n "$SYMTARGET" ] ; then
- echo "$SYMTARGET"
- return 0
- else
- return 1
- fi
- }
-fi
-
-## we have to do some things differently with a retarded devfs name.
-ckdevfs()
-{
- case "$1" in
- /dev/ide/*|/dev/scsi/*|/dev/discs/*)
- return 0
- ;;
- *)
- return 1
- ;;
- esac
-}
-
-cleanup()
-{
- if [ -n "$TMPCONF" ] ; then rm -f "$TMPCONF" ; fi
- return 0
-}
-
-dualboot()
-{
- DRIVELIST=`ls -d /dev/?d?* | grep "[sh]d[abcdefghijkl]" | cut -b 6-8 | sort -u`
-
- for i in $DRIVELIST
- do
- HFS=`mac-fdisk -l "/dev/$i" | grep '\<Apple_HFS\>' | grep -v "CDROM" | cut -d" " -f1`
- for h in $HFS
- do
- if [ !-x `hpmount -r $h` > /dev/null 2>&1 ] ; then
- if [ `hpls mach_kernel 2>/dev/null` ] ; then
- [ "$QUIET" = 0 ] && echo "Found possible OS X partition at $h"
- OSX=$h
- fi
- if [ "`hpls "System Folder" 2>/dev/null`" ] ; then
- [ "$QUIET" = 0 ] && echo "Found possible Mac OS partition at $h"
- MACOS=$h
- fi
- hpumount $h > /dev/null 2>&1
- fi
- done
- done
-}
-
-##########
-## Main ##
-##########
-
-if [ $# != 0 ] ; then
- while true ; do
- case "$1" in
- -V|--version)
- version
- exit 0
- ;;
- -h|--help)
- usage
- exit 0
- ;;
- -t|--chroot)
- if [ -n "$2" ] ; then
- CHROOT="$2"
- shift 2
- else
- echo 1>&2 "$PRG: option requires an argument $1"
- echo 1>&2 "Try \`$PRG --help' for more information."
- exit 1
- fi
- ;;
- -b|--boot)
- if [ -n "$2" ] ; then
- BOOT="$2"
- shift 2
- else
- echo 1>&2 "$PRG: option requires an argument $1"
- echo 1>&2 "Try \`$PRG --help' for more information."
- exit 1
- fi
- ;;
- -r|--root)
- if [ -n "$2" ] ; then
- ROOT="$2"
- shift 2
- else
- echo 1>&2 "$PRG: option requires an argument $1"
- echo 1>&2 "Try \`$PRG --help' for more information."
- exit 1
- fi
- ;;
- --kernel-args)
- if [ -n "$2" ] ; then
- KERNARGS="$2"
- shift 2
- else
- echo 1>&2 "$PRG: option requires an argument $1"
- echo 1>&2 "Try \`$PRG --help' for more information."
- exit 1
- fi
- ;;
- -q|--quiet)
- QUIET=1
- shift 1
- ;;
- --noinstall)
- NOINSTALL=1
- shift 1
- ;;
- --debug)
- DEBUG=1
- shift 1
- ;;
- "")
- break
- ;;
- *)
- echo 1>&2 "$PRG: unrecognized option \`$1'"
- echo 1>&2 "Try \`$PRG --help' for more information."
- exit 1
- ;;
- esac
- done
-fi
-
-if [ `id -u` != 0 ] ; then
- echo 1>&2 "$PRG: You are not root, go away"
- exit 1
-fi
-
-## we need /proc because df does
-if [ ! -f /proc/uptime ] ; then
- echo 1>&2 "$PRG: This utility requires the /proc filesystem"
- exit 1
-fi
-
-## check that chroot exists
-if [ -d "$CHROOT" ] ; then
- ## HACK: add trailing / to chroot, otherwise are paths later get b0rked.
- case "$CHROOT" in
- */)
- true
- ;;
- *)
- CHROOT="${CHROOT}/"
- ;;
- esac
-elif [ ! -e "$CHROOT" ] ; then
- echo 1>&2 "$PRG: $CHROOT: No such file or directory"
- exit 1
-elif [ ! -d "$CHROOT" ] ; then
- echo 1>&2 "$PRG: $CHROOT: Not a directory"
- exit 1
-fi
-
-## make sure the chroot is an actual root filesystem
-if [ ! -f "${CHROOT}etc/fstab" ] ; then
- echo 1>&2 "$PRG: $CHROOT does not appear to be a valid root filesystem"
- exit 1
-fi
-
-## find / device
-if [ -z "$ROOT" ] ; then
- ## IMPORTANT! that last substitution is [<space><tab>] thats all ash will grok
- ROOT="$(v=`grep '[[:blank:]]/[[:blank:]]' ${CHROOT}etc/fstab` ; echo ${v%%[ ]*})"
- debug "ROOT=$ROOT\n"
- if [ -z "$ROOT" ] ; then
- echo 1>&2 "$PRG: Could not determine root partition, aborting..."
- exit 1
- fi
-fi
-
-## make sure root device exists
-if [ ! -e "$ROOT" ] ; then
- echo 1>&2 "$PRG: $ROOT: No such file or directory"
- exit 1
-fi
-
-## find root disk.
-if ckdevfs "$ROOT" ; then
- DISK="${ROOT%/*}/disc"
-else
- DISK="${ROOT%%[0-9]*}"
-fi
-if [ -z "$DISK" ] ; then
- echo 1>&2 "$PRG: Could not determine root disk, aborting..."
- exit 1
-fi
-
-## make sure main disk exists
-if [ ! -e "$DISK" ] ; then
- echo 1>&2 "$PRG: $DISK: No such file or directory"
- exit 1
-fi
-
-## find bootstrap partition
-if [ -z "$BOOT" ] ; then
- findbootblock || exit 1
-fi
-
-## make sure bootstrap device exists
-if [ ! -e "$BOOT" ] ; then
- echo 1>&2 "$PRG: $BOOT: No such file or directory"
- exit 1
-fi
-
-## sanity check
-for i in "$DISK" "$ROOT" "$BOOT" ; do
- if [ ! -b "$i" ] ; then
- echo 1>&2 "$PRG: $i: Not a block device"
- exit 1
- fi
-done
-
-
-## unless --quiet ask permission to proceed
-if [ "$QUIET" = 0 ] ; then
- confirm || exit 2
-fi
-
-## find the kernel in the usual places and (if not --quiet) ask the
-## user if we cannot find one.
-if [ -f "${CHROOT}vmlinux" ] ; then
- KERNEL="${CHROOT}vmlinux"
-elif [ -f "${CHROOT}boot/vmlinux" ] ; then
- KERNEL="${CHROOT}boot/vmlinux"
-elif [ -f "${CHROOT}boot/vmlinux-`uname -r`" ] ; then
- KERNEL="${CHROOT}boot/vmlinux-`uname -r`"
-elif [ -f "${CHROOT}vmlinux-`uname -r`" ] ; then
- KERNEL="${CHROOT}vmlinux-`uname -r`"
-elif [ "$QUIET" = 0 ] ; then
- echo 1>&2 "$PRG: Cannot find a kernel, please locate one"
- while true ; do
- $PRINTF 1>&2 "Enter path to a kernel image: "
- read KERN
- if [ -f "$KERN" ] ; then
- KERNEL="$KERN"
- break
- elif [ ! -e "$KERN" ] ; then
- echo 1>&2 "$PRG: $KERN: No such file or directory"
- elif [ -d "$KERN" ] ; then
- echo 1>&2 "$PRG: $KERN: Is a directory"
- else
- echo 1>&2 "$PRG: $KERN: Is not a regular file"
- fi
- done
-else
- echo 1>&2 "$PRG: Cannot find a kernel, aborting..."
- exit 1
-fi
-
-debug "KERNEL=$KERNEL\n"
-
-## get partition number the kernel lives on, and the OF device= name
-## of the whole disk.
-KERNDEV="$(v=`df "$KERNEL" 2> /dev/null | grep ^/dev/` ; echo ${v%%[ ]*})"
-KERNDIR="$(v=`df "$KERNEL" 2> /dev/null | grep ^/dev/` ; echo ${v##*[ ]})"
-LINKDEV="$(v=`df "${KERNEL%/*}/" 2>/dev/null | grep ^/dev/` ; echo ${v%%[ ]*})"
-PARTITION="${KERNDEV##*[a-z]}"
-
-if ckdevfs "$KERNDEV" ; then
- KERNELDISK="${KERNDEV%/*}/disc"
-else
- KERNELDISK="${KERNDEV%%[0-9]*}"
-fi
-
-debug "KERNEL=$KERNEL\nKERNDEV=$KERNDEV\nKERNDIR=$KERNDIR\nLINKDEV=$LINKDEV\nPARTITION=$PARTITION\nKERNELDISK=$KERNELDISK\n"
-
-## sanity check
-for i in "$KERNDEV" "$KERNDIR" "$LINKDEV" "$PARTITION" "$KERNELDISK" ; do
- if [ -z "$i" ] ; then
- echo 1>&2 "$PRG: Could not determine necessary information, aborting..."
- echo 1>&2 "$PRG: Are you using chroot $PRG instead of $PRG --chroot ?"
- exit 1
- fi
-done
-
-## check for cross device symlink
-if [ -L "$KERNEL" ] ; then
- if [ "$KERNDEV" != "$LINKDEV" ] ; then
- echo 1>&2 "$PRG: Warning: Cross device symlink $KERNEL, using it's target instead"
- KERNEL="$(readlink -f "$KERNEL" 2>/dev/null)"
- if [ ! -f "$KERNEL" ] ; then
- echo 1>&2 "$PRG: Unable to canonicalize symlink's target. Do not create cross device symlinks."
- exit 1
- fi
- fi
-fi
-
-## only powermacs appear to need device=
-if (cat /proc/cpuinfo 2>/dev/null | grep -q pmac-generation 2> /dev/null) ; then
- DEVICE="\ndevice=$(ofpath $KERNELDISK)"
- if [ $? != 0 ] ; then
- echo 1>&2 "$PRG: Unable to determine OpenFirmware device name to $KERNELDISK, aborting..."
- exit 1
- fi
-fi
-
-## if there is a separate /boot partition we must strip off the /boot
-## mountpoint or else yaboot will not find the kernel.
-if [ "$KERNDIR" != "$CHROOT" ] ; then
- IMAGE="${KERNEL##*$KERNDIR}"
-else
- IMAGE="$KERNEL"
-fi
-
-## fix chrooted path
-if [ "$CHROOT" != / ] ; then
- IMAGE="${IMAGE##*$CHROOT}"
-fi
-
-## fix relative path (caused by chroot path fix)
-case "$IMAGE" in
- /*)
- true
- ;;
- *)
- IMAGE="/${IMAGE}"
- ;;
-esac
-
-## figure out if yaboot is installed in /usr/local or not
-if [ -f /usr/local/lib/yaboot/yaboot ] ; then
- INSTALL=/usr/local/lib/yaboot/yaboot
-elif [ -f /usr/lib/yaboot/yaboot ] ; then
- INSTALL=/usr/lib/yaboot/yaboot
-else
- echo 1>&2 "$PRG: yaboot is not installed correctly"
- exit 1
-fi
-
-## newworld powermacs need the ofboot first stage loader
-if [ "$(v=`cat /proc/cpuinfo 2>/dev/null | grep pmac-generation` ; echo ${v##*:})" = NewWorld ] ; then
- if [ -f /usr/local/lib/yaboot/ofboot ] ; then
- OFBOOT="\nmagicboot=/usr/local/lib/yaboot/ofboot"
- elif [ -f /usr/lib/yaboot/ofboot ] ; then
- OFBOOT="\nmagicboot=/usr/lib/yaboot/ofboot"
- else
- echo 1>&2 "$PRG: yaboot is not installed correctly"
- exit 1
- fi
-fi
-
-## check for properly (read debian) packaged yaboot.
-if [ -d ${CHROOT}usr/share/doc/yaboot/examples ] ; then
- HEADER="## see also: /usr/share/doc/yaboot/examples for example configurations.\n"
-fi
-
-## setup append line
-if [ -n "$KERNARGS" ] ; then
- APPEND="\tappend=\"${KERNARGS}\"\n"
-fi
-
-## setup any Mac OS/OS X partitions
-dualboot
-if [ -n "$MACOS" ] ; then
- MACOSBOOT="macos=${MACOS}\n"
-fi
-if [ -n "OSX" ] ; then
- OSXBOOT="macosx=${OSX}\n"
-fi
-
-
-## generate global section of yaboot.conf
-GLOBAL="## yaboot.conf generated by $PRG $VERSION
-##
-## run: \"man yaboot.conf\" for details. Do not make changes until you have!!
-${HEADER}##
-## For a dual-boot menu, add one or more of:
-## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ\n
-boot=${BOOT}${DEVICE:-}
-partition=$PARTITION
-root=$ROOT
-timeout=30
-delay=5
-install=${INSTALL}${OFBOOT:-}\n"
-
-## generate image= section
-IMAGES="
-image=$IMAGE
-\tlabel=Linux
-\tread-only\n${APPEND:-}\n${OSXBOOT:-}\n${MACOSBOOT:-}"
-
-## safely create a tmp file then move it into place after we are sure
-## it was written.
-TMPCONF=`mktemp -q "${CHROOT}${CONFIG}.XXXXXX"`
-if [ $? != 0 ] ; then
- echo 1>&2 "$PRG: Unable to write to ${CHROOT}${CONFIG%/*}"
- exit 1
-fi
-
-$PRINTF "${GLOBAL}${IMAGES}" > "$TMPCONF"
-if [ $? != 0 ] ; then
- echo 1>&2 "$PRG: Unable to write temporary file ${TMPCONF}, aborting..."
- exit 1
-fi
-
-## rotate backups of /etc/yaboot.conf, 3 backups are kept
-if [ -f "${CHROOT}${CONFIG}.old" ] ; then
- for i in 1 0 ; do
- if [ -f "${CHROOT}${CONFIG}.old.${i}" ] ; then
- mv -f "${CHROOT}${CONFIG}.old.$i" "${CHROOT}${CONFIG}.old.$(($i + 1))"
- if [ $? != 0 ] ; then
- echo 1>&2 "$PRG: Unable to make backup of existing ${CHROOT}${CONFIG}.old.$i, aborting..."
- exit 1
- fi
- fi
- done
-
- mv -f "${CHROOT}${CONFIG}.old" "${CHROOT}${CONFIG}.old.0"
- if [ $? != 0 ] ; then
- echo 1>&2 "$PRG: Unable to make backup of existing ${CHROOT}${CONFIG}.old, aborting..."
- exit 1
- fi
-fi
-
-## backup /etc/yaboot.conf
-if [ -f "${CHROOT}${CONFIG}" ] ; then
- mv -f "${CHROOT}${CONFIG}" "${CHROOT}${CONFIG}.old"
- if [ $? != 0 ] ; then
- echo 1>&2 "$PRG: Unable to make backup of existing ${CHROOT}${CONFIG}, aborting..."
- exit 1
- fi
-fi
-
-## move new config into place
-mv -f "${TMPCONF}" "${CHROOT}${CONFIG}"
-if [ $? != 0 ] ; then
- echo "$PRG: Unable to write file ${CHROOT}${CONFIG}"
- exit 1
-else
- ## nothing sensitive in generated config, comply with debian policy
- chmod 644 "${CHROOT}${CONFIG}"
-fi
-
-## tell mkofboot where to find the config file if necessary
-if [ "${CHROOT}${CONFIG}" != /etc/yaboot.conf ] ; then
- YBINARGS="-C ${CHROOT}${CONFIG}"
-fi
-
-## run mkofboot to install the bootstrap, unless --noinstall
-if [ "$NOINSTALL" = 0 ] ; then
- if (command -v mkofboot 2>&1 > /dev/null) ; then
- [ "$QUIET" = 0 ] && echo "Running mkofboot to make the disk bootable..."
- mkofboot -f $YBINARGS || exit 1
- [ "$QUIET" = 0 ] && echo "Done"
- else
- echo 1>&2 "$PRG: yaboot is not installed correctly, not running mkofboot"
- exit 1
- fi
-fi
-
-## Give user a warning about possible b0rkage
-
-[ "$QUIET" = 0 ] && echo -e "\nConfiguration complete. If there are no errors above you should
-have a working configuration. see "man yaboot.conf" if you run into
-any errors."
-
-exit 0
diff --git a/sys-apps/yaboot/files/yabootconfig-1.3.10.patch b/sys-apps/yaboot/files/yabootconfig-1.3.10.patch
deleted file mode 100644
index a6824f524517..000000000000
--- a/sys-apps/yaboot/files/yabootconfig-1.3.10.patch
+++ /dev/null
@@ -1,78 +0,0 @@
---- ybin/yabootconfig.orig 2003-02-08 23:53:46.000000000 -0500
-+++ ybin/yabootconfig 2003-02-26 15:07:50.000000000 -0500
-@@ -4,6 +4,7 @@
- ##
- ## yabootconfig generates a simple /etc/yaboot.conf
- ## Copyright (C) 2001, 2002, 2003 Ethan Benson
-+## Patched for Gentoo and dual boot - Mark Guertin <gerk@gentoo.org>
- ##
- ## This program is free software; you can redistribute it and/or
- ## modify it under the terms of the GNU General Public License
-@@ -264,6 +265,31 @@
- return 0
- }
-
-+dualboot()
-+{
-+ DRIVELIST=`ls -d /dev/?d?* | grep "[sh]d[abcdefghijkl]" | cut -b 6-8 | sort -u`
-+
-+ for i in $DRIVELIST
-+ do
-+ HFS=`mac-fdisk -l "/dev/$i" | grep '\<Apple_HFS\>' | grep -v "CDROM" | cut -d" " -f1`
-+ for h in $HFS
-+ do
-+ if [ !-x `hpmount -r $h` > /dev/null 2>&1 ] ; then
-+ if [ `hpls mach_kernel 2>/dev/null` ] ; then
-+ [ "$QUIET" = 0 ] && echo "Found possible OS X/Darwin partition at $h"
-+ OSX=$h
-+ fi
-+ if [ "`hpls "System Folder" 2>/dev/null`" ] ; then
-+ [ "$QUIET" = 0 ] && echo "Found possible Mac OS partition at $h"
-+ MACOS=$h
-+ fi
-+ hpumount $h > /dev/null 2>&1
-+ fi
-+ done
-+ done
-+}
-+
-+
- ##########
- ## Main ##
- ##########
-@@ -579,6 +605,15 @@
- fi
- fi
-
-+## setup any Mac OS/OS X partitions
-+dualboot
-+if [ -n "$MACOS" ] ; then
-+ MACOSBOOT="macos=${MACOS}\n"
-+fi
-+if [ -n "$OSX" ] ; then
-+ OSXBOOT="macosx=${OSX}\n"
-+fi
-+
- ## generate global section of yaboot.conf
- GLOBAL="## yaboot.conf generated by $PRG $VERSION
- ##
-@@ -596,7 +631,7 @@
- IMAGES="
- image=$IMAGE
- \tlabel=Linux
--\tread-only\n${APPEND:-}"
-+\tread-only\n${APPEND:-}\n${OSXBOOT:-}\n${MACOSBOOT:-}"
-
- ## safely create a tmp file then move it into place after we are sure
- ## it was written.
-@@ -667,4 +702,10 @@
- fi
- fi
-
-+## Give user a warning about possible b0rkage
-+
-+[ "$QUIET" = 0 ] && echo -e "\nConfiguration complete. If there are no errors above you should
-+have a working configuration. see man yaboot.conf if you run into
-+any errors."
-+
- exit 0
diff --git a/sys-apps/yaboot/files/yabootconfig-1.3.11.patch b/sys-apps/yaboot/files/yabootconfig-1.3.11.patch
deleted file mode 100644
index a6824f524517..000000000000
--- a/sys-apps/yaboot/files/yabootconfig-1.3.11.patch
+++ /dev/null
@@ -1,78 +0,0 @@
---- ybin/yabootconfig.orig 2003-02-08 23:53:46.000000000 -0500
-+++ ybin/yabootconfig 2003-02-26 15:07:50.000000000 -0500
-@@ -4,6 +4,7 @@
- ##
- ## yabootconfig generates a simple /etc/yaboot.conf
- ## Copyright (C) 2001, 2002, 2003 Ethan Benson
-+## Patched for Gentoo and dual boot - Mark Guertin <gerk@gentoo.org>
- ##
- ## This program is free software; you can redistribute it and/or
- ## modify it under the terms of the GNU General Public License
-@@ -264,6 +265,31 @@
- return 0
- }
-
-+dualboot()
-+{
-+ DRIVELIST=`ls -d /dev/?d?* | grep "[sh]d[abcdefghijkl]" | cut -b 6-8 | sort -u`
-+
-+ for i in $DRIVELIST
-+ do
-+ HFS=`mac-fdisk -l "/dev/$i" | grep '\<Apple_HFS\>' | grep -v "CDROM" | cut -d" " -f1`
-+ for h in $HFS
-+ do
-+ if [ !-x `hpmount -r $h` > /dev/null 2>&1 ] ; then
-+ if [ `hpls mach_kernel 2>/dev/null` ] ; then
-+ [ "$QUIET" = 0 ] && echo "Found possible OS X/Darwin partition at $h"
-+ OSX=$h
-+ fi
-+ if [ "`hpls "System Folder" 2>/dev/null`" ] ; then
-+ [ "$QUIET" = 0 ] && echo "Found possible Mac OS partition at $h"
-+ MACOS=$h
-+ fi
-+ hpumount $h > /dev/null 2>&1
-+ fi
-+ done
-+ done
-+}
-+
-+
- ##########
- ## Main ##
- ##########
-@@ -579,6 +605,15 @@
- fi
- fi
-
-+## setup any Mac OS/OS X partitions
-+dualboot
-+if [ -n "$MACOS" ] ; then
-+ MACOSBOOT="macos=${MACOS}\n"
-+fi
-+if [ -n "$OSX" ] ; then
-+ OSXBOOT="macosx=${OSX}\n"
-+fi
-+
- ## generate global section of yaboot.conf
- GLOBAL="## yaboot.conf generated by $PRG $VERSION
- ##
-@@ -596,7 +631,7 @@
- IMAGES="
- image=$IMAGE
- \tlabel=Linux
--\tread-only\n${APPEND:-}"
-+\tread-only\n${APPEND:-}\n${OSXBOOT:-}\n${MACOSBOOT:-}"
-
- ## safely create a tmp file then move it into place after we are sure
- ## it was written.
-@@ -667,4 +702,10 @@
- fi
- fi
-
-+## Give user a warning about possible b0rkage
-+
-+[ "$QUIET" = 0 ] && echo -e "\nConfiguration complete. If there are no errors above you should
-+have a working configuration. see man yaboot.conf if you run into
-+any errors."
-+
- exit 0
diff --git a/sys-apps/yaboot/metadata.xml b/sys-apps/yaboot/metadata.xml
deleted file mode 100644
index 034c09eb248a..000000000000
--- a/sys-apps/yaboot/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>ppc</herd>
-</pkgmetadata>
diff --git a/sys-apps/yaboot/yaboot-1.3.10-r1.ebuild b/sys-apps/yaboot/yaboot-1.3.10-r1.ebuild
deleted file mode 100644
index dd4cc6920cb6..000000000000
--- a/sys-apps/yaboot/yaboot-1.3.10-r1.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/yaboot/yaboot-1.3.10-r1.ebuild,v 1.5 2003/09/15 18:01:16 seemant Exp $
-
-inherit eutils
-
-S=${WORKDIR}/${P}
-DESCRIPTION="PPC Bootloader"
-SRC_URI="http://penguinppc.org/projects/yaboot/${P}.tar.gz"
-HOMEPAGE="http://penguinppc.org/projects/yaboot/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="ppc -x86 -amd64 -alpha -arm -hppa -mips -sparc"
-
-DEPEND="sys-apps/powerpc-utils
- sys-fs/hfsutils
- sys-fs/hfsplusutils"
-
-PROVIDE="virtual/bootloader"
-
-MAKEOPTS='PREFIX=/usr MANDIR=share/man'
-
-src_compile() {
- export -n CFLAGS
- export -n CXXFLAGS
- # dual boot patch
- epatch ${FILESDIR}/yabootconfig-${PV}.patch
- emake ${MAKEOPTS} || die
-}
-
-src_install() {
- cp etc/yaboot.conf etc/yaboot.conf.bak
- sed -e 's/\/local//' etc/yaboot.conf >| etc/yaboot.conf.edit
- mv -f etc/yaboot.conf.edit etc/yaboot.conf
- make ROOT=${D} ${MAKEOPTS} install || die
-}
diff --git a/sys-apps/yaboot/yaboot-1.3.10-r2.ebuild b/sys-apps/yaboot/yaboot-1.3.10-r2.ebuild
deleted file mode 100644
index 2279233c3984..000000000000
--- a/sys-apps/yaboot/yaboot-1.3.10-r2.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/yaboot/yaboot-1.3.10-r2.ebuild,v 1.7 2003/09/15 18:01:16 seemant Exp $
-
-inherit eutils
-
-S=${WORKDIR}/${P}
-DESCRIPTION="PPC Bootloader"
-SRC_URI="http://penguinppc.org/projects/yaboot/${P}.tar.gz"
-HOMEPAGE="http://penguinppc.org/projects/yaboot/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="ppc -x86 -amd64 -alpha -arm -hppa -mips -sparc"
-
-DEPEND="sys-apps/powerpc-utils
- sys-fs/hfsutils
- sys-fs/hfsplusutils"
-
-PROVIDE="virtual/bootloader"
-
-MAKEOPTS='PREFIX=/usr MANDIR=share/man'
-
-src_compile() {
- export -n CFLAGS
- export -n CXXFLAGS
- [ -n "${CC}" ] || CC="gcc"
- # dual boot patch
- epatch ${FILESDIR}/yabootconfig-${PV}.patch
- emake ${MAKEOPTS} CC="${CC}" || die
-}
-
-src_install() {
- cp etc/yaboot.conf etc/yaboot.conf.bak
- sed -e 's/\/local//' etc/yaboot.conf >| etc/yaboot.conf.edit
- mv -f etc/yaboot.conf.edit etc/yaboot.conf
- make ROOT=${D} ${MAKEOPTS} install || die
-}
-
diff --git a/sys-apps/yaboot/yaboot-1.3.10.ebuild b/sys-apps/yaboot/yaboot-1.3.10.ebuild
deleted file mode 100644
index 7414ac303fd1..000000000000
--- a/sys-apps/yaboot/yaboot-1.3.10.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/yaboot/yaboot-1.3.10.ebuild,v 1.6 2003/09/15 18:01:16 seemant Exp $
-
-inherit eutils
-
-S=${WORKDIR}/${P}
-DESCRIPTION="PPC Bootloader"
-SRC_URI="http://penguinppc.org/projects/yaboot/${P}.tar.gz"
-HOMEPAGE="http://penguinppc.org/projects/yaboot/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="ppc -x86 -amd64 -alpha -arm -hppa -mips -sparc"
-
-DEPEND="sys-apps/powerpc-utils
- sys-fs/hfsutils
- sys-fs/hfsplusutils"
-
-PROVIDE="virtual/bootloader"
-
-MAKEOPTS='PREFIX=/usr MANDIR=share/man'
-
-src_compile() {
- export -n CFLAGS
- export -n CXXFLAGS
- # dual boot patch
- epatch ${FILESDIR}/yabootconfig-${PV}.patch
- emake ${MAKEOPTS} || die
-}
-
-src_install() {
- cp etc/yaboot.conf etc/yaboot.conf.bak
- sed -e 's/\/local//' etc/yaboot.conf >| etc/yaboot.conf.edit
- mv -f etc/yaboot.conf.edit etc/yaboot.conf
- make ROOT=${D} ${MAKEOPTS} install || die
-}
diff --git a/sys-apps/yaboot/yaboot-1.3.11.ebuild b/sys-apps/yaboot/yaboot-1.3.11.ebuild
deleted file mode 100644
index e388c06331e1..000000000000
--- a/sys-apps/yaboot/yaboot-1.3.11.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/yaboot/yaboot-1.3.11.ebuild,v 1.1 2003/12/04 14:50:51 pvdabeel Exp $
-
-inherit eutils
-
-S=${WORKDIR}/${P}
-DESCRIPTION="PPC Bootloader"
-SRC_URI="http://penguinppc.org/projects/yaboot/${P}.tar.gz"
-HOMEPAGE="http://penguinppc.org/projects/yaboot/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="ppc -x86 -amd64 -alpha -arm -hppa -mips -sparc"
-
-DEPEND="sys-apps/powerpc-utils
- sys-fs/hfsutils
- sys-fs/hfsplusutils"
-
-PROVIDE="virtual/bootloader"
-
-MAKEOPTS='PREFIX=/usr MANDIR=share/man'
-
-src_compile() {
- export -n CFLAGS
- export -n CXXFLAGS
- [ -n "${CC}" ] || CC="gcc"
- # dual boot patch
- epatch ${FILESDIR}/yabootconfig-${PV}.patch
- emake ${MAKEOPTS} CC="${CC}" || die
-}
-
-src_install() {
- cp etc/yaboot.conf etc/yaboot.conf.bak
- sed -e 's/\/local//' etc/yaboot.conf >| etc/yaboot.conf.edit
- mv -f etc/yaboot.conf.edit etc/yaboot.conf
- make ROOT=${D} ${MAKEOPTS} install || die
-}
-