Contents of /branches/magellan-next/core/wireless-tools/wireless-tools-30_pre9-r1.smage2
Parent Directory | Revision Log
Revision 6232 -
(show annotations)
(download)
Thu Aug 19 21:24:14 2010 UTC (14 years, 1 month ago) by niro
File size: 1171 byte(s)
Thu Aug 19 21:24:14 2010 UTC (14 years, 1 month ago) by niro
File size: 1171 byte(s)
auto added: ver bump to 30_pre9-r1
1 | # $Id: wireless-tools-30_pre8-r2.smage2 3158 2009-10-13 22:45:42Z niro $ |
2 | |
3 | PNAME="wireless-tools" |
4 | PVER="30_pre9" |
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 | } |