Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19675 - (hide annotations) (download)
Thu Oct 10 11:26:32 2013 UTC (10 years, 8 months ago) by niro
Original Path: trunk/core/ethtool/ethtool-3.11-r2.smage2
File size: 1111 byte(s)
-rebuild using new systemd include which was splitted from mtools
1 niro 19675 # $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