# $Id$ PNAME="hwinfo" PVER="18.5" PBUILD="r1" PCATEGORIE="sys-apps" DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." HOMEPAGE="http://www.suse.com/" DEPEND=">= sys-libs/libx86emu-1.1 >= sys-apps/dbus-1.4" 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 ) #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} # add intel pineview to known x11 drivers mpatch -Np1 ${PNAME}-${PVER}-add-intel-pineview-x11-drivers-i386.patch # use r128 module for all ati rage cards mpatch -Np1 ${PNAME}-${PVER}-use-r128-module-for-ati-rage-cards-i386.patch # use mach64 module for all ati mach64 cards mpatch -Np1 ${PNAME}-${PVER}-use-mach64-module-for-ati-mach64-cards-i386.patch || die # add a bunch of via drivers to known x11 drivers mpatch -Np1 ${PNAME}-${PVER}-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 }