# $Id$ PNAME="dmidecode" PVER="2.10" PBUILD="r2" PCATEGORIE="sys-apps" STATE="unstable" 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 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 bz2" 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 }