Annotation of /trunk/core/ethtool/ethtool-4.16-r1.smage2
Parent Directory | Revision Log
Revision 30817 -
(hide annotations)
(download)
Mon Apr 23 11:20:19 2018 UTC (6 years, 5 months ago) by niro
File size: 1117 byte(s)
Mon Apr 23 11:20:19 2018 UTC (6 years, 5 months ago) by niro
File size: 1117 byte(s)
auto added: ver bump to 4.16-r1
1 | niro | 30817 | # $Id$ |
2 | |||
3 | PNAME="ethtool" | ||
4 | PVER="4.16" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="net-misc" | ||
8 | |||
9 | DESCRIPTION="A utility for controlling network drivers and hardware." | ||
10 | HOMEPAGE="http://www.kernel.org/pub/software/network/ethtool/" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME}-${PVER}.tar.xz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
16 | |||
17 | sminclude mbuild mtools systemd | ||
18 | |||
19 | SRC_URI=( | ||
20 | https://www.kernel.org/pub/software/network/${PNAME}/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | mirror://${PNAME}/wol.confd | ||
23 | mirror://${PNAME}/wol.service | ||
24 | ) | ||
25 | |||
26 | UP2DATE="updatecmd https://www.kernel.org/pub/software/network/${PNAME}/ | grep ${PNAME}- | highesttarball xz" | ||
27 | |||
28 | src_install() | ||
29 | { | ||
30 | cd ${SRCDIR} | ||
31 | mmake DESTDIR=${BINDIR} install || die | ||
32 | |||
33 | # install systemd initscript for wol service | ||
34 | minstallconf wol.confd wol || die | ||
35 | minstallunit wol.service 'wol@.service' || die | ||
36 | |||
37 | minstalldocs AUTHORS COPYING ChangeLog LICENSE NEWS README || die | ||
38 | } | ||
39 | |||
40 | postinstall() | ||
41 | { | ||
42 | echo | ||
43 | echo 'To enable WOL for your interfaces symlink the wol@service to your desired NIC:' | ||
44 | echo 'ln -snf /usr/lib/systemd/system/wol\@service /etc/systemd/system/multi-user.target.wants/wol\@eth1.service' | ||
45 | echo | ||
46 | } | ||
47 |