Contents of /smage/branches/alx-0_6_0/core/wireless-tools/wireless-tools-30_pre9-r1.smage2
Parent Directory | Revision Log
Revision 2045 -
(show annotations)
(download)
Wed May 11 19:01:14 2011 UTC (13 years ago) by niro
File size: 1218 byte(s)
Wed May 11 19:01:14 2011 UTC (13 years ago) by niro
File size: 1218 byte(s)
auto added: ver bump to 30_pre9-r1
1 | # $Id$ |
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=">= virtual/sed" |
15 | |
16 | SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}" |
18 | |
19 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 | ALX_ONLY_KEEP="usr/sbin/iwconfig usr/sbin/iwlist" |
21 | sminclude alx-split |
22 | |
23 | SRC_URI=( |
24 | http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2DATE="updatecmd ${HOMEPAGE}/Tools.html | grep 'Wireless Tools.*beta' | sed 's/.*\[.*\].* \(.*\) .*/\1/;s/-/_/'" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fore use of our CFLAGS |
36 | sed -i "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Makefile || die |
37 | |
38 | # fix man path |
39 | sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die |
40 | |
41 | # honor mlibdir() |
42 | sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | mmake CC=gcc || die |
49 | } |
50 | |
51 | alx_generic_src_install() |
52 | { |
53 | cd ${SRCDIR} |
54 | mmake PREFIX=${BINDIR}/usr install || die |
55 | minstalldocs CHANGELOG* COPYING *.txt README* || die |
56 | } |