# $Id$ PNAME="dmidecode" PVER="2.12" PBUILD="r1" PCAT="sys-apps" DESCRIPTION="Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard." HOMEPAGE="http://www.nongnu.org/dmidecode/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild msetfeature "!check" SRC_URI=( http://download.savannah.gnu.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd 'http://download.savannah.gnu.org/releases/${PNAME}/?C=M;O=A' | lasttarball" src_prepare() { munpack ${SRCFILE} cd ${SRCDIR} # fix some hardcoded pathes sed -i "/^prefix/s:/usr/local:/usr:" Makefile || die sed -i "/^docdir/s:dmidecode:${PNAME}-${PVER}:" Makefile || die } src_compile() { cd ${SRCDIR} mmake CFLAGS="${CFLAGS}" || die }