# $Id$ PNAME="hwinfo" PVER="17.0" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="hwinfo is the hardware detection tool used in SuSE Linux." HOMEPAGE="http://www.suse.com/" DEPEND=">= sys-libs/libx86emu-1.1 >= sys-fs/sysfsutils-2 >= sys-apps/dbus-1.3" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" MCORE_ONLY_KEEP="usr/sbin/hwinfo usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" sminclude mtools mcore-split SRC_URI=( http://ftp.de.debian.org/debian/pool/main/h/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-16.10-debian-all-1.patch mirror://${PNAME}/${PNAME}-13.41-remove-sbin.patch mirror://${PNAME}/${PNAME}-${PVER}-scsi-u8-fix.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} # apply debian patches mpatch ${PNAME}-16.10-debian-all-1.patch || die # remove empty $(destdir)/sbin from makefile mpatch ${PNAME}-13.41-remove-sbin.patch || die # fix build issues with newer linux-headers # see: http://lists.busybox.net/pipermail/buildroot/2009-December/030773.html mpatch ${PNAME}-${PVER}-scsi-u8-fix.patch || die } src_compile() { cd ${SRCDIR} mmake -j1 EXTRA_FLAGS="${CFLAGS}" LIBDIR=/usr/$(mlibdir) || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die mkeepdir /var/lib/hardware/udi || die minstallman doc/hwinfo.8 || die minstalldocs Changelog COPYING README VERSION || die }