# $Id$ PNAME="ethtool" PVER="5.3" PBUILD="r1" PCAT="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.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools systemd SRC_URI=( https://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/wol.confd mirror://${PNAME}/wol.service ) UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | grep ${PNAME}- | highesttarball xz" 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 /usr/lib/systemd/system/wol\@service /etc/systemd/system/multi-user.target.wants/wol\@eth1.service' echo }