Magellan Linux

Contents of /trunk/core/wireless-tools/wireless-tools-30_pre6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1214 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/wireless-tools/wireless-tools-30_pre6-r1.smage2,v 1.1 2008/03/27 20:36:14 niro Exp $
2
3 PNAME="wireless-tools"
4 PVER="30_pre6"
5 PBUILD="r1"
6
7 PCATEGORIE="net-wlan"
8 STATE="unstable"
9
10 DESCRIPTION="Utils to configure wireless-lan cards."
11 HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/"
12
13 DEPEND=">= virtual/glibc"
14 SDEPEND=">= sys-apps/sed-4"
15
16 SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}"
18
19 SRC_URI=(
20 http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd ${HOMEPAGE}/Tools.html | grep 'Wireless Tools.*beta' | sed 's/.*\[.*\].* \(.*\) .*/\1/;s/-/_/'"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # fore use of our CFLAGS
32 sed -i "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Makefile || die
33
34 # fix man path
35 sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die
36
37 # honor mlibdir()
38 sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44 mmake CC=gcc || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50 mmake PREFIX=${BINDIR}/usr install || die
51 minstalldocs CHANGELOG* COPYING *.txt README* || die
52 }

Properties

Name Value
svn:keywords Id