Magellan Linux

Annotation of /branches/magellan-next/core/ethtool/ethtool-2.6.39-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8976 - (hide annotations) (download)
Fri Aug 26 20:15:15 2011 UTC (12 years, 9 months ago) by niro
File size: 1100 byte(s)
-typo
1 niro 8975 # $Id$
2    
3     PNAME="ethtool"
4     PVER="2.6.39"
5     PBUILD="r1"
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_install()
29     {
30     cd ${SRCDIR}
31     mmake DESTDIR=${BINDIR} install || die
32    
33     # install systemd initscript for wol service
34 niro 8976 minstallconf wol.confd wol || die
35 niro 8975 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 /lib/systemd/system/wol\@service /etc/systemd/system/multi-user.target/wol\@eth1.service'
45     echo
46     }