blob: fcd5c1c06fc9e13aeb69913f230c7fb72a979311 (
plain)
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/wireless-tools/wireless-tools-27-r1.ebuild,v 1.8 2006/04/24 07:37:28 brix Exp $
# 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 IEEE 802.11 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="amd64 hppa ~mips ppc ppc64 x86"
SLOT="0"
LICENSE="GPL-2"
DEPEND="sys-apps/sed"
RDEPEND="virtual/libc"
IUSE="nls"
src_unpack() {
unpack ${A}
sed -i \
-e "s:^CFLAGS=:CFLAGS=${CFLAGS} :" \
-e "s:\(@\$(LDCONFIG).*\):#\1:" \
${S}/Makefile
}
src_compile() {
emake WARN="" || die "emake failed"
}
src_install () {
emake PREFIX=${D}/ INSTALL_INC=${D}/usr/include INSTALL_MAN=${D}/usr/share/man install \
|| die "emake install failed"
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
fi
dodoc CHANGELOG.h COPYING INSTALL HOTPLUG.txt PCMCIA.txt README
}
|