blob: 18dc19aac4cadc367f91f0d856cbb0871e0a4619 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit linux-mod
DESCRIPTION="Intel (R) PRO/Wireless 3945ABG Network Connection"
HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi"
SRC_URI="http://intellinuxwireless.org/${PN}/downloads/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="net-wireless/mac80211"
RDEPEND="net-wireless/iwlwifi-3945-ucode"
S="${WORKDIR}/${P}/compatible"
MODULE_NAMES="iwl3945(net/wireless)"
BUILD_TARGETS="modules"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="-C ${KV_DIR} M=${S} CONFIG_IWL3945=m"
}
src_unpack() {
unpack ${A}
cd ${P}
sed -i -e 's/\(.*chmod\)/#\1/' Makefile
make compatible/kversion KSRC="${KV_DIR}" \
MAC80211_INC=/usr/include/mac80211/net/ || die "make unmodified failed"
sed -i -e 's%\.\./\(net/mac80211/\)%\1%' ${S}/*.c ${S}/*.h
echo "CFLAGS += -I/usr/include/mac80211 -DCONFIG_IWLWIFI_DEBUG=y" \
"-DCONFIG_IWLWIFI_SPECTRUM_MEASUREMENT=y" >> ${S}/Makefile
}
|