Magellan Linux

Contents of /trunk/core/ethtool/ethtool-3.4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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