# $Id$ PNAME="ethtool" PVER="3.1" PBUILD="r2" PCATEGORIE="net-misc" DESCRIPTION="A utility for controlling network drivers and hardware." HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( http://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/wol.confd mirror://${PNAME}/wol.service ) UP2DATE="updatecmd http://www.kernel.org/pub/software/network/${PNAME}/ | grep ${PNAME}- | firsttarball" src_compile() { cd ${SRCDIR} mconfigure --sbindir=/sbin || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install systemd initscript for wol service minstallconf wol.confd wol || die minstallunit wol.service 'wol@.service' || die minstalldocs AUTHORS COPYING ChangeLog LICENSE NEWS README || die } postinstall() { echo echo 'To enable WOL for your interfaces symlink the wol@service to your desired NIC:' echo 'ln -snf /lib/systemd/system/wol\@service /etc/systemd/system/multi-user.target.wants/wol\@eth1.service' echo }