Annotation of /smage/trunk/core/wireless-tools/wireless-tools-30_pre8-r2.smage2
Parent Directory | Revision Log
Revision 163 -
(hide annotations)
(download)
Mon Apr 26 20:03:37 2010 UTC (14 years ago) by niro
File size: 1194 byte(s)
Mon Apr 26 20:03:37 2010 UTC (14 years ago) by niro
File size: 1194 byte(s)
auto added: ver bump to 30_pre8-r2
1 | niro | 162 | # $Id$ |
2 | |||
3 | PNAME="wireless-tools" | ||
4 | PVER="30_pre8" | ||
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=">= sys-apps/sed-4" | ||
15 | |||
16 | SRCFILE="${PNAME/-/_}.${PVER/_/.}.tar.gz" | ||
17 | SRCDIR="${BUILDDIR}/${PNAME/-/_}.${PVER/_pre*/}" | ||
18 | |||
19 | niro | 163 | MCORE_ONLY_KEEP="usr/sbin/iwconfig usr/sbin/iwlist" |
20 | niro | 162 | 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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |