Contents of /smage/branches/alx-0_6_0/core/wireless-tools/wireless-tools-30_pre9-r1.smage2
Parent Directory | Revision Log
Revision 2506 -
(show annotations)
(download)
Thu Jun 30 13:55:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1201 byte(s)
Thu Jun 30 13:55:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1201 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 | # $Id$ |
2 | |
3 | PNAME="wireless-tools" |
4 | PVER="30_pre9" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-wlan" |
8 | |
9 | DESCRIPTION="Utils to configure wireless-lan cards." |
10 | HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= virtual/sed" |
14 | |
15 | SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}" |
17 | |
18 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
19 | ALX_ONLY_KEEP="usr/sbin/iwconfig usr/sbin/iwlist" |
20 | sminclude alx-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 | alx_generic_src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | mmake PREFIX=${BINDIR}/usr install || die |
54 | minstalldocs CHANGELOG* COPYING *.txt README* || die |
55 | } |