# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Maarten Thibaut A=`echo ${P}|sed 's/sparc-utils-/sparc-utils_/'`.orig.tar.gz S=${WORKDIR}/${P}.orig DESCRIPTION="SPARC/UltraSPARC Improved Loader, a boot loader for sparc" SRC_URI="http://http.us.debian.org/debian/pool/main/s/sparc-utils/${A}" HOMEPAGE="http://www.debian.org" DEPEND="sys-kernel/linux-headers" RDEPEND="virtual/glibc" src_unpack() { unpack ${A} cat ${FILESDIR}/sparc-utils_1.9-2.diff | patch -p0 -l || die } src_compile() { CFLAGS="-O3" cd ${S} emake -C elftoaout-2.3 CFLAGS="$CFLAGS" || die emake -C src piggyback piggyback64 CFLAGS="$CFLAGS" || die emake -C prtconf-1.3 all || die # TODO: Fix compile issue # Not compiling at this time, commented out #emake -C sparc32-1.1 emake -C audioctl-1.3 || die } src_install() { mkdir -p ${D}/usr/bin ${D}/usr/sbin ${D}/etc/init.d ${D}/etc/default dodir /usr/bin install -s elftoaout-2.3/elftoaout ${D}/usr/bin install -s src/piggyback src/piggyback64 ${D}/usr/bin #install -s sparc32-1.1/sparc32 ${D}/usr/bin dodir /usr/sbin install -s prtconf-1.3/prtconf ${D}/usr/sbin/prtconf install -s prtconf-1.3/eeprom ${D}/usr/sbin/eeprom #ln -sf sparc32 ${D}/usr/bin/sparc64 install -s audioctl-1.3/audioctl ${D}/usr/bin # install /etc/init.d script & /etc/default scripts install -d -m 755 ${D}/etc ${D}/etc/init.d ${D}/etc/default #install -m 755 debian/audioctl ${D}/etc/init.d install -m 755 debian/audioctl.def ${D}/etc/default/audioctl # Todo: Somehow set this automatically echo "==============================================================" echo "WARNING - You should make sure /dev/openprom exists. If you're" echo "not using devfs and /dev/openprom does not exist, then issue the" echo "command:" echo "cd /dev; mknod openprom c 10 139" echo "==============================================================" }