Magellan Linux

Contents of /smage/trunk/core/wireless-tools/wireless-tools-30_pre8-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 162 - (show annotations) (download)
Mon Apr 26 20:02:21 2010 UTC (14 years ago) by niro
File size: 1161 byte(s)
auto added: ver bump to 30_pre8-r2
1 # $Id$
2
3 PNAME="wireless-tools"
4 PVER="30_pre8"
5 PBUILD="r2"
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 MCORE_ONLY_KEEP=""
20 sminclude mcore-split
21
22 SRC_URI=(
23 http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE}/Tools.html | grep 'Wireless Tools.*beta' | sed 's/.*\[.*\].* \(.*\) .*/\1/;s/-/_/'"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fore use of our CFLAGS
35 sed -i "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Makefile || die
36
37 # fix man path
38 sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die
39
40 # honor mlibdir()
41 sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47 mmake CC=gcc || die
48 }
49
50 mcore_generic_src_install()
51 {
52 cd ${SRCDIR}
53 mmake PREFIX=${BINDIR}/usr install || die
54 minstalldocs CHANGELOG* COPYING *.txt README* || die
55 }

Properties

Name Value
svn:keywords Id