# $Id$ PNAME="hdparm" PVER="9.15" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Utility to change hard drive performance parameters." HOMEPAGE="http://sourceforge.net/projects/hdparm/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools RC_CVS_REV=1.4 SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/hdparm.confd mirror://${PNAME}/hdparm.rc-${RC_CVS_REV} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix CFLAGS sed -i "/^CFLAGS/ s:-O2:${CFLAGS}:" Makefile || die } src_compile() { cd ${SRCDIR} mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /sbin || die minstalldir /usr/share/man/man8 || die mmake DESTDIR=${BINDIR} install || die # install our initscript minstallrc hdparm.rc-${RC_CVS_REV} hdparm || die # rc config minstallconf hdparm.confd hdparm || die # compress and install docs minstalldocs Changelog LICENSE* README* hdparm-sysconfig hdparm.lsm || die }