/[gentoo-x86]/net-wireless/rtl8187/rtl8187-1.10.ebuild
Gentoo

Contents of /net-wireless/rtl8187/rtl8187-1.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Sep 4 01:52:57 2009 UTC (10 years, 10 months ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
remove net-wireless/rtl8187, bug 180008

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl8187/rtl8187-1.10.ebuild,v 1.4 2007/05/09 20:00:14 genstef Exp $
4
5 inherit eutils linux-mod
6
7 FILE="rtl8187_linux_26.1010.zip"
8
9 DESCRIPTION="Driver for the RTL8187 wireless chipset"
10 HOMEPAGE="http://www.realtek.com.tw"
11 SRC_URI="ftp://61.56.69.18/cn/wlan/${FILE}
12 ftp://209.216.61.149/cn/wlan/${FILE}"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="x86"
17 IUSE=""
18
19 DEPEND="app-arch/unzip"
20
21 S=${WORKDIR}/rtl8187_linux_26.1010.0622.2006
22
23 MODULE_NAMES="ieee80211_crypt-rtl(net:${S}/ieee80211) ieee80211_crypt_wep-rtl(net:${S}/ieee80211)
24 ieee80211_crypt_tkip-rtl(net:${S}/ieee80211) ieee80211_crypt_ccmp-rtl(net:${S}/ieee80211)
25 ieee80211-rtl(net:${S}/ieee80211) r8187(net:${S}/beta-8187)"
26 BUILD_TARGETS=" "
27 MODULESD_R8187_ALIASES=("wlan0 r8187")
28
29 pkg_setup() {
30 if ! kernel_is 2 6 ; then
31 eerror "This driver is for kernel version 2.6 or greater only!"
32 die "No kernel version 2.6 or greater detected!"
33 fi
34
35 linux-mod_pkg_setup
36
37 # Needs NET_RADIO in kernel, for wireless_send_event
38 local CONFIG_CHECK="NET_RADIO CRYPTO CRYPTO_ARC4 CRC32 !IEEE80211"
39 local ERROR_IEEE80211="${P} requires the in-kernel version of the IEEE802.11 subsystem to be disabled (CONFIG_IEEE80211)"
40 check_extra_config
41
42 BUILD_PARAMS="KSRC=${KV_DIR}"
43 }
44
45 src_unpack() {
46 unpack ${A}
47 cd "${S}"
48
49 unpack ./stack.tar.gz
50 unpack ./drv.tar.gz
51
52 edos2unix beta-8187/r8187_core.c || die
53 edos2unix beta-8187/r8187.h || die
54
55 cp -f ieee80211/readme ieee80211.txt
56 rm -f beta-8187/*~
57
58 epatch "${FILESDIR}/kernel-2.6.19.patch"
59
60 einfo "Ignore the 'ieee80211* undefined' warnings."
61 }
62
63 src_install() {
64 linux-mod_src_install
65
66 dodoc *.txt wlan0* beta-8187/{authors,changes,readme}
67 }
68
69 pkg_postinst() {
70 linux-mod_pkg_postinst
71
72 elog "You may want to add the following modules to"
73 elog "/etc/modules.autoload.d/kernel-2.6"
74 elog
75 elog "The module itself: r8187"
76 elog "WEP and WPA encryption: ieee80211_crypt-rtl"
77 elog "WEP encryption: ieee80211_crypt_wep-rtl"
78 elog "WPA TKIP encryption: ieee80211_crypt_tkip-rtl"
79 elog "WPA CCMP encryption: ieee80211_crypt_ccmp-rtl"
80 elog "For the r8187 module: ieee80211-rtl"
81 }

  ViewVC Help
Powered by ViewVC 1.1.20