1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/wireless-tools-28_pre6.ebuild,v 1.2 2005/04/09 12:53:41 corsair Exp $
inherit toolchain-funcs
# The following works with both pre-releases and releases
MY_P=${PN/-/_}.${PV/_/.}
S=${WORKDIR}/${MY_P/\.pre*/}
DESCRIPTION="A collection of tools to configure wireless LAN cards"
SRC_URI="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/${MY_P}.tar.gz"
HOMEPAGE="http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html"
KEYWORDS="~x86 ~amd64 ~ppc ~hppa ~alpha ~mips ~ppc64"
SLOT="0"
LICENSE="GPL-2"
DEPEND="sys-apps/sed"
RDEPEND="virtual/libc"
IUSE="multicall nls"
src_unpack() {
unpack ${A}
sed -i "s:^\(CC\) = gcc:\1 = $(tc-getCC):" \
${S}/Makefile
sed -i "s:^\(AR\) = ar:\1 = $(tc-getAR):" \
${S}/Makefile
sed -i "s:^\(RANLIB\) = ranlib:\1 = $(tc-getRANLIB):" \
${S}/Makefile
sed -i "s:^\(CFLAGS=-Os\):#\1:" \
${S}/Makefile
sed -i "s:\(@\$(LDCONFIG).*\):#\1:" \
${S}/Makefile
sed -i "s:^\(INSTALL_MAN= \$(PREFIX)\)/man/:\1/share/man:" \
${S}/Makefile
}
src_compile() {
if use multicall
then
emake || die "emake failed"
emake iwmulticall || die "emake iwmulticall failed"
else
emake || die "emake failed"
fi
}
src_install() {
if use multicall
then
emake PREFIX=${D}/usr install || die "emake install failed"
# 'make install-iwmulticall will overwrite some of the tools
# with symlinks - this is intentional (brix)
emake PREFIX=${D}/usr install-iwmulticall || die "emake install-iwmulticall failed"
else
emake PREFIX=${D}/usr install || die "emake install failed"
fi
if use nls; then
insinto /usr/share/man/fr/man5
doins fr/iftab.5
insinto /usr/share/man/fr/man7
doins fr/wireless.7
insinto /usr/share/man/fr/man8
doins fr/{ifrename,iwconfig,iwevent,iwgetid,iwlist,iwpriv,iwspy}.8
dodoc README.fr
insinto /usr/share/man/cs/man5
doins cs/iftab.5
insinto /usr/share/man/cs/man7
doins cs/wireless.7
insinto /usr/share/man/cs/man8
doins cs/{ifrename,iwconfig,iwevent,iwgetid,iwlist,iwpriv,iwspy}.8
fi
dodoc CHANGELOG.h COPYING INSTALL HOTPLUG.txt PCMCIA.txt README
}
|