mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
60 lines
1.8 KiB
Bash
60 lines
1.8 KiB
Bash
# Copyright 1999-2009 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
DESCRIPTION="Stable kernel pre-release wifi subsystem backport"
|
|
HOMEPAGE="http://wireless.kernel.org/en/users/Download/stable"
|
|
|
|
##Stable
|
|
MY_P=${P/_rc/-rc}
|
|
SRC_URI="http://www.orbit-lab.org/kernel/compat-wireless-2.6-stable/v2.6.32/${MY_P}.tar.bz2"
|
|
|
|
inherit linux-mod linux-info
|
|
|
|
DEPEND="=sys-kernel/linux-firmware-99999999"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 x86"
|
|
IUSE="kernel_linux +injection"
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
CONFIG_CHECK="!DYNAMIC_FTRACE"
|
|
RESTRICT="strip"
|
|
|
|
pkg_setup() {
|
|
linux-mod_pkg_setup
|
|
linux_chkconfig_module MAC80211 || die "CONFIG_MAC80211 must be built as a _module_ !"
|
|
linux_chkconfig_module CFG80211 || die "CONFIG_CFG80211 must be built as a _module_ !"
|
|
}
|
|
|
|
src_compile() {
|
|
if use injection; then epatch "${FILESDIR}"/400[24]_*.patch; fi
|
|
if use injection; then epatch "${FILESDIR}"/mac80211.compat08082009.wl_frag+ack_v1.patch; fi
|
|
if use injection; then epatch "${FILESDIR}"/compat-chaos.patch; fi
|
|
epatch "${FILESDIR}"/whynot-2.6.32.patch
|
|
# merged in 2.6.32_rc7
|
|
# epatch "${FILESDIR}"/blinky.patch
|
|
# epatch "${FILESDIR}"/led-oops.patch
|
|
addpredict "${KERNEL_DIR}"
|
|
use amd64 && export ARCH="x86_64"
|
|
use x86 && export ARCH="x86"
|
|
emake KVER="${KV_FULL}" || die "emake failed"
|
|
}
|
|
|
|
src_install() {
|
|
for file in `find ./ -name \*.ko`
|
|
do
|
|
MY_DIR="/lib/modules/${KV_FULL}/updates/$(dirname ${file})"
|
|
dodir "${MY_DIR}"
|
|
insinto "${MY_DIR}"
|
|
doins "${file}"
|
|
done
|
|
dosbin scripts/athenable scripts/b43load scripts/iwl-enable scripts/madwifi-unload scripts/athload
|
|
dosbin scripts/iwl-load scripts/modlib.sh scripts/b43enable scripts/load.sh scripts/unload.sh
|
|
dodoc README || die
|
|
}
|
|
|
|
pkg_postinst() {
|
|
update_depmod
|
|
}
|