# $Header: /magellan-cvs/smage/kudzu-knoppix/kudzu-knoppix-1.1.36-r5.smage2,v 1.2 2008/02/07 14:23:41 niro Exp $ PNAME="kudzu-knoppix" PVER="1.1.36" PBUILD="r5" PCATEGORIE="sys-apps" STATE="testing" DESCRIPTION="kudzu - knoppix version." HOMEPAGE="http://www.knopper.net" DEPEND=">= dev-libs/newt-0.50.35" SDEPEND=">= sys-apps/pciutils-2.1 >= dev-libs/dietlibc-0.23" PLEVEL="2" SRCFILE="${PNAME}_${PVER}-${PLEVEL}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/-knoppix/}-${PVER}" sminclude mtools SRC_URI=( http://debian-knoppix.alioth.debian.org/sources/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix module file location # we rebuild the modprobe.conf in the boot process !! sed -i "s:/etc/modutils/kudzu:/etc/modules.d/kudzu:g" *.* || die # fix asm build issues with gcc4 and newest binutils # ( at time of writing: 2.16.91.0.3 20050821) sed -i "s:movl %:mov %:g" ddcprobe/lrmi.c || die # fix gcc4 issues with pci.c sed -i "s:byte:u_int8_t:g" pci.c || die } src_compile() { cd ${SRCDIR} mmake || die if [[ ${ARCH} = i*86 ]] then cd ddcprobe || die mmake || die fi } src_install() { cd ${SRCDIR} # needed directories minstalldir /sbin || die minstall DESTDIR=${BINDIR} \ PREFIX=/usr \ MANDIR=/usr/share/man \ install-program || die if [[ ${ARCH} = i*86 ]] then cd ${SRCDIR}/ddcprobe minstallexec svgamodes /sbin || die minstallexec modetest /sbin || die minstallexec ddcxinfo /sbin || die minstallexec ddcprobe /sbin || die fi cd ${SRCDIR}; minstalldocs CHANGELOG COPYING README || die }