Magellan Linux

Contents of /tags/old-unstable-20120113/core/etherwake/etherwake-1.09-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9870 - (show annotations) (download)
Fri Jan 13 21:26:11 2012 UTC (12 years, 4 months ago) by niro
File size: 801 byte(s)
tagged 'old-unstable-20120113'
1 # $Id$
2
3 PNAME="etherwake"
4 PVER="1.09"
5 PBUILD="r9"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Sends Wake-On-Lan (WOL) 'Magic-Packets' to remote computer."
11 HOMEPAGE="http://www.scyld.com/wakeonlan.html"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="ether-wake.c-${PVER}"
16 MANFILE="etherwake.8-${PVER}"
17
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 mirror://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${MANFILE}
25 )
26
27 src_prepare()
28 {
29 install -d ${SRCDIR} || die
30
31 local i
32 for i in ${SRCFILE} ${MANFILE}
33 do
34 cp ${SOURCEDIR}/${PNAME}/${i} ${SRCDIR}/${i/-${PVER}/} || die
35 done
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41 gcc ${CFLAGS} -o etherwake ether-wake.c || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47 minstalldir /usr/bin || die
48 minstallexec etherwake || die
49 minstallman etherwake.8 || die
50 }

Properties

Name Value
svn:keywords Id