Contents of /smage/trunk/core/wireless-tools/wireless-tools-30_pre9-r2.smage2
Parent Directory | Revision Log
Revision 1570 -
(show annotations)
(download)
Thu Mar 3 14:34:04 2011 UTC (13 years, 6 months ago) by niro
File size: 1256 byte(s)
Thu Mar 3 14:34:04 2011 UTC (13 years, 6 months ago) by niro
File size: 1256 byte(s)
-rev bump for mass rebuild
1 | # $Id: wireless-tools-30_pre8-r2.smage2 163 2010-04-26 20:03:37Z niro $ |
2 | |
3 | PNAME="wireless-tools" |
4 | PVER="30_pre9" |
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=">= virtual/sed" |
15 | |
16 | SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}" |
18 | |
19 | MCORE_ONLY_KEEP="usr/sbin/iwconfig usr/sbin/iwlist" |
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 | } |