Contents of /branches/magellan-next/core/ethtool/ethtool-3.1-r2.smage2
Parent Directory | Revision Log
Revision 9584 -
(show annotations)
(download)
Mon Dec 19 16:31:25 2011 UTC (12 years, 9 months ago) by niro
File size: 1185 byte(s)
Mon Dec 19 16:31:25 2011 UTC (12 years, 9 months ago) by niro
File size: 1185 byte(s)
-fixed sbindir
1 | # $Id$ |
2 | |
3 | PNAME="ethtool" |
4 | PVER="3.1" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="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.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mbuild mtools |
18 | |
19 | SRC_URI=( |
20 | http://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 http://www.kernel.org/pub/software/network/${PNAME}/ | grep ${PNAME}- | firsttarball" |
27 | |
28 | src_compile() |
29 | { |
30 | cd ${SRCDIR} |
31 | mconfigure --sbindir=/sbin || die |
32 | mmake || die |
33 | } |
34 | |
35 | src_install() |
36 | { |
37 | cd ${SRCDIR} |
38 | mmake DESTDIR=${BINDIR} install || die |
39 | |
40 | # install systemd initscript for wol service |
41 | minstallconf wol.confd wol || die |
42 | minstallunit wol.service 'wol@.service' || die |
43 | |
44 | minstalldocs AUTHORS COPYING ChangeLog LICENSE NEWS README || die |
45 | } |
46 | |
47 | postinstall() |
48 | { |
49 | echo |
50 | echo 'To enable WOL for your interfaces symlink the wol@service to your desired NIC:' |
51 | echo 'ln -snf /lib/systemd/system/wol\@service /etc/systemd/system/multi-user.target.wants/wol\@eth1.service' |
52 | echo |
53 | } |