Contents of /smage/trunk/core/wireless-tools/wireless-tools-30_pre9-r8.smage2
Parent Directory | Revision Log
Revision 14059 -
(show annotations)
(download)
Fri Jul 3 08:18:10 2020 UTC (4 years, 2 months ago) by niro
File size: 1161 byte(s)
Fri Jul 3 08:18:10 2020 UTC (4 years, 2 months ago) by niro
File size: 1161 byte(s)
auto added: ver bump to 30_pre9-r8
1 | # $Id$ |
2 | |
3 | PNAME="wireless-tools" |
4 | PVER="30_pre9" |
5 | PBUILD="r8" |
6 | |
7 | PCAT="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 | ALX_PKG_KEEP="usr/sbin/iwconfig usr/sbin/iwlist" |
19 | sminclude alx-split |
20 | |
21 | SRC_URI=( |
22 | http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd ${HOMEPAGE}/Tools.html | grep 'Wireless Tools.*beta' | sed 's/.*\[.*\].* \(.*\) .*/\1/;s/-/_/'" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # fore use of our CFLAGS |
34 | sed -i "s:^CFLAGS=:CFLAGS=${CFLAGS} :" Makefile || die |
35 | |
36 | # fix man path |
37 | sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die |
38 | |
39 | # honor mlibdir() |
40 | sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR} |
46 | mmake CC=gcc || die |
47 | } |
48 | |
49 | alx_generic_src_install() |
50 | { |
51 | cd ${SRCDIR} |
52 | mmake PREFIX=${BINDIR}/usr install || die |
53 | minstalldocs CHANGELOG* COPYING *.txt README* || die |
54 | } |