# $Id$ PNAME="hwinfo" PVER="20.0" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." HOMEPAGE="http://www.suse.com/" DEPEND=">= sys-libs/libx86emu-1.1" SDEPEND=">= sys-apps/dbus-1.5" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch mirror://${PNAME}/${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch mirror://${PNAME}/${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch mirror://${PNAME}/${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch mirror://${PNAME}/${PNAME}-18.5-no-xen.patch mirror://${PNAME}/${PNAME}-18.5-tiocgdev-undefined.patch ) #UP2DATE="updatecmd http://ftp.de.debian.org/debian/pool/main/h/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).orig.*/\1/;$ p'" # fake - taken newest from suse UP2DATE="echo ${PVER}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # disable xen checks which are broken atm mpatch ${PNAME}-18.5-no-xen.patch || die # TIOCGDEV isn't supported in the mainline kernel mpatch ${PNAME}-18.5-tiocgdev-undefined.patch || die # add intel pineview to known x11 drivers mpatch -Np1 ${PNAME}-18.1-add-intel-pineview-x11-drivers-i386.patch # use r128 module for all ati rage cards mpatch -Np1 ${PNAME}-18.1-use-r128-module-for-ati-rage-cards-i386.patch # use mach64 module for all ati mach64 cards mpatch -Np1 ${PNAME}-18.1-use-mach64-module-for-ati-mach64-cards-i386.patch || die # add a bunch of via drivers to known x11 drivers mpatch -Np1 ${PNAME}-18.1-add-openchrome-x11-drivers-i386.patch || die } src_compile() { cd ${SRCDIR} mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die mkeepdir /var/lib/hardware/udi || die minstallman doc/hwinfo.8 || die minstalldocs Changelog COPYING README VERSION || die # broken Makefile, remove an empty dir rmdir ${BINDIR}/sbin || die }