Contents of /smage/trunk/core/wireless-tools/wireless-tools-30_pre9-r9.smage2
Parent Directory | Revision Log
Revision 17035 -
(show annotations)
(download)
Fri Oct 20 10:19:37 2023 UTC (7 months, 2 weeks ago) by niro
File size: 1334 byte(s)
Fri Oct 20 10:19:37 2023 UTC (7 months, 2 weeks ago) by niro
File size: 1334 byte(s)
-fixed up2date
1 | # $Id$ |
2 | |
3 | PNAME="wireless-tools" |
4 | PVER="30_pre9" |
5 | PBUILD="r9" |
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 usr/$(mlibdir)/*.so.*" |
19 | sminclude alx-split |
20 | |
21 | SRC_URI=( |
22 | https://hewlettpackard.github.io/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2SEPERATOR="tools." |
27 | UP2DATE="updatecmd https://hewlettpackard.github.io/wireless-tools/Tools.html | highesttarball gz" |
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 | # fore use of our LDFLAGS |
38 | sed -i "s:^LDFLAGS=:LDFLAGS=${LDFLAGS} :" Makefile || die |
39 | |
40 | # fix man path |
41 | sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" Makefile || die |
42 | |
43 | # honor mlibdir() |
44 | sed -i "s:^\(INSTALL_LIB= \$(PREFIX)\)/lib/:\1/$(mlibdir):" Makefile || die |
45 | |
46 | # disable static build |
47 | sed -i '/BUILD_STATIC =/d' Makefile || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | mmake CC=gcc || die |
54 | } |
55 | |
56 | alx_generic_src_install() |
57 | { |
58 | cd ${SRCDIR} |
59 | mmake PREFIX=${BINDIR}/usr install || die |
60 | minstalldocs CHANGELOG* COPYING *.txt README* || die |
61 | } |