Magellan Linux

Contents of /branches/R11-unstable/core/ethtool/ethtool-3.11-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24954 - (show annotations) (download)
Tue Nov 25 02:42:56 2014 UTC (9 years, 5 months ago) by niro
File size: 1111 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="ethtool"
4 PVER="3.11"
5 PBUILD="r2"
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.bz2"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mbuild mtools systemd
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_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