compat-wireless: version bump and adding arm keywords

This commit is contained in:
Zero_Chaos 2010-11-10 14:57:16 +00:00
parent d1095eb360
commit aaf0709272
3 changed files with 279 additions and 0 deletions

View file

@ -41,11 +41,13 @@ DIST compat-wireless-2.6.35-1.tar.bz2 2548928 RMD160 646c93e01ddd4dbfde402b00588
DIST compat-wireless-2.6.35-rc2.tar.bz2 2563653 RMD160 f9522b5928719de82b496ff9dc35cf58ad6250f7 SHA1 6b2f040c965bffd4a659a7f4771832a9b7b568e5 SHA256 609575850e62309e6c5cf3f75e6d04b3f979481b2683afef1a57a2501686e50b
DIST compat-wireless-2.6.35-rc4.tar.bz2 2557117 RMD160 c988116371cd0142c15450f9e69e2886c06c59a3 SHA1 2b1791674d34bf4965d23b9c2f41acc9430a1c18 SHA256 dff6ce7ae43a3528ad754e8ed16218299546576c46b2161e75551f444b258967
DIST compat-wireless-2.6.35-rc6.tar.bz2 2556693 RMD160 35b4bee74a1fa3efd68e43d01912d63cee430b51 SHA1 ec6c6085d115c0781cf730363fb4e884093ff186 SHA256 799bfc0787bd09b46d3c09f29914cc8abc1607a33ad389c02d8a11cd4241a033
DIST compat-wireless-2.6.36-5-spn.tar.bz2 2664927 RMD160 f45b6e106c024366b7a064f3571254d515b7ab6c SHA1 e2391cc37d762dab146c2e067534f3f20eb4469f SHA256 da4362445405bf7de55947b79ee72a3a9c56cf4a91e3eef74f7896aad59b02df
DIST compat-wireless-2.6.36-rc1-1.tar.bz2 2632314 RMD160 e318f058bc0bb5e6b079be5d287d40c24d456a1c SHA1 21637cc1b6f3922f2ef1d02df13695d483dce310 SHA256 e9308516f379d42e547498b7c8f6ae0bd03e4cc364f81af440018ddcff024e25
DIST compat-wireless-2.6.36-rc1-2.tar.bz2 2588755 RMD160 0d64a8fd4cb6268f2b32fe43cd5647ff0597d4ee SHA1 d11ba389a70726844b1b2b733d7ae4b2dd999f5c SHA256 8febfe7fa1cd71e1d6d97a88d1b46287c7ec8f53b8ec9cdb2b3cbf14fe60955c
DIST compat-wireless-2.6.36-rc2-1.tar.bz2 2588254 RMD160 1f4134a3dd3f28965696c513cf5cec3320c90e85 SHA1 4a804ba4b5ee16e34afc15cced9d250fab11eec9 SHA256 d9d0f559e9d7c8a8378d7acca93dcd3e3d31ecd7bc4b9a7d1b1f7bdc42faaf97
DIST compat-wireless-2.6.36-rc3-1.tar.bz2 2589039 RMD160 5025d8d98ddcdf16bdbad2a1cdf7cb95465421f4 SHA1 e34e2103f9aa5c8c6ee6bb7ebc942c3cc834b1ea SHA256 e2135d95ce3a1e3f81635d58b729d72d170e98d2de1bef0396f0868fabbd440e
DIST compat-wireless-2.6.36-rc5-2-s.tar.bz2 2600358 RMD160 43ff99f318ccf5a7fcb1ede073463c24ad0fd064 SHA1 4064d86b1b204cfbc1f5fc544ebd61832de88373 SHA256 c8312b6d8af12d35d5a32f58cdc466ed3823e7e7431cf884324a70d94595f689
DIST compat-wireless-2.6.37-rc1-1.tar.bz2 3848222 RMD160 ccf3320dd1750814d30671f16bd8d643171fe22e SHA1 60b1c6e9d421f039e22b62901de816a46931a603 SHA256 dc890a49009bd52d2c0357ee98b5a5a7b86afb7fba72417f48fdd4c5ce334bb2
EBUILD compat-wireless-2.6.32.8.ebuild 2368 RMD160 53d1a1401310d34cd03f2fa6bb41e60d2a16dcfd SHA1 c19445050e394bc0239c61fec11eab69e4f08daa SHA256 705bb5ad89ec2433edd4252488b3e7322c5137c49520203a3cbea44314ab9234
EBUILD compat-wireless-2.6.33-r1.ebuild 2747 RMD160 c120f1c92a7205097839c5dc42235bfd10cbf555 SHA1 2144302eab89dd5881eecf3725124d6c5b288f3f SHA256 0d425eec9472ed83cd1a29945ead1116612c938248c430653510011d56307a6b
EBUILD compat-wireless-2.6.34-r2.ebuild 3918 RMD160 48f91620cf68a993e63d3c9dfe565850650e6fc5 SHA1 44e4bec8543c93e456d3a2ac3e4ab1c7b55a8f01 SHA256 a729ecc6955dac802ed9b1585f23a48c54fdd45434d2673930322c792c77e159
@ -53,9 +55,11 @@ EBUILD compat-wireless-2.6.35-r1.ebuild 5471 RMD160 dcc6f3666823faee305165a846cd
EBUILD compat-wireless-2.6.35_rc2-r4.ebuild 5406 RMD160 0b6a7f0738dc629f67caecc1e69692985a4f5f5f SHA1 1fac755125e6506e802089391b7dce47b94e2bdb SHA256 17ec402349970a870b6918fe3740b3721b9f20a7d7788497dad8037ed24de00d
EBUILD compat-wireless-2.6.35_rc4.ebuild 5406 RMD160 0b6a7f0738dc629f67caecc1e69692985a4f5f5f SHA1 1fac755125e6506e802089391b7dce47b94e2bdb SHA256 17ec402349970a870b6918fe3740b3721b9f20a7d7788497dad8037ed24de00d
EBUILD compat-wireless-2.6.35_rc6.ebuild 5406 RMD160 0b6a7f0738dc629f67caecc1e69692985a4f5f5f SHA1 1fac755125e6506e802089391b7dce47b94e2bdb SHA256 17ec402349970a870b6918fe3740b3721b9f20a7d7788497dad8037ed24de00d
EBUILD compat-wireless-2.6.36.ebuild 5332 RMD160 c4a19864f8703fce0b9369fc597f165290c56661 SHA1 efb406e9ab4ea21021f0e09edbfdb2e5d2a08f7e SHA256 52f02128f594db9950425aa03cd90cf9d5ff54d6475b25db696c58cd8c0a75d2
EBUILD compat-wireless-2.6.36_rc1-r1.ebuild 5429 RMD160 d54bfcc4b6dbeb42c97beba82e2223d471e4707d SHA1 c908e5838bba617c3aac0e524585062011d574f2 SHA256 eea8153b811458a833e422e37f9873b1b0013b783640859a72a7bee518fb5738
EBUILD compat-wireless-2.6.36_rc1-r2.ebuild 5429 RMD160 d54bfcc4b6dbeb42c97beba82e2223d471e4707d SHA1 c908e5838bba617c3aac0e524585062011d574f2 SHA256 eea8153b811458a833e422e37f9873b1b0013b783640859a72a7bee518fb5738
EBUILD compat-wireless-2.6.36_rc2-r1.ebuild 5552 RMD160 20960d7eaa0b59b49fe220fa42027cf1d2adbccd SHA1 a17b9d179ffce76183df52c824a9516ebc997344 SHA256 a95954053ef405c653f16c79a91ff3ae1900b0c318f8029109692e3c4eeaa372
EBUILD compat-wireless-2.6.36_rc3-r1.ebuild 5552 RMD160 20960d7eaa0b59b49fe220fa42027cf1d2adbccd SHA1 a17b9d179ffce76183df52c824a9516ebc997344 SHA256 a95954053ef405c653f16c79a91ff3ae1900b0c318f8029109692e3c4eeaa372
EBUILD compat-wireless-2.6.36_rc5.ebuild 5324 RMD160 3a13c3478c6940708fadba66cad9d2fdf9487c28 SHA1 f1827886e67f1b0f6277526d9a932628ae6cf73e SHA256 431599d3e89ff794ed705b24e9ec4fd339138a9a68fff5626f148237fe169aa6
EBUILD compat-wireless-2.6.37_rc1.ebuild 5384 RMD160 a881f5a7eeb16290f519f96c879b8afbb0691194 SHA1 46e0c589c59b068c0b4b6d90b29ee0dc31fca089 SHA256 2916265d66558bf71fbf5f23cff97ae277366f876780f2c1a1ae92e0776252e0
MISC metadata.xml 228 RMD160 cd3fb26b5d8049ab5dba38f21d7654ec033aa0eb SHA1 3148dfbdced7a623a311d21c6f728ab9c7135dae SHA256 8715828d1bff71d5d96b991ba600bae9376c1c80c96f0f102260fc335ca22487

View file

@ -0,0 +1,137 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit linux-mod linux-info versionator eutils
##Stable
MY_P=${P/_rc/-rc}
MY_PV=v$(get_version_component_range 1-3)
DESCRIPTION="Stable kernel pre-release wifi subsystem backport"
HOMEPAGE="http://wireless.kernel.org/en/users/Download/stable"
SRC_URI="http://www.orbit-lab.org/kernel/${PN}-2.6-stable/${MY_PV}/${MY_P}-5-spn.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 arm"
IUSE="atheros_obey_crda debugfs debug-driver full-debug injection noleds tinyversionoverride"
DEPEND=""
RDEPEND="=sys-kernel/linux-firmware-99999999"
S="${WORKDIR}"/"${MY_P}"-5-spn
RESTRICT="strip"
CONFIG_CHECK="!DYNAMIC_FTRACE"
pkg_setup() {
linux-mod_pkg_setup
kernel_is -lt 2 6 27 && die "kernel 2.6.27 or higher is required for compat wireless to be installed"
kernel_is -gt $(get_version_component_range 1) $(get_version_component_range 2) $(get_version_component_range 3) && die "The version of compat-wireless you are trying to install contains older modules than your kernel. Failing before downgrading your system."
if kernel_is -eq $(get_version_component_range 1) $(get_version_component_range 2) $(get_version_component_range 3); then
if use tinyversionoverride; then
ewarn "You have the tinyversionoverride use flag set which means you know for a fact that your"
ewarn "kernel is older than the compat-wireless you are installing."
ewarn "Most likely you have no clue what you are doing and should hit control-C now"
ewarn "before you downgrade your system. Ten seconds to think about it."
epause 10
else
ewarn "Your kernel version is most likely newer than the compat-wireless release you are"
ewarn "trying to install. If you are certain that your kernel is older then you can set"
ewarn "the tinyversionoverride use flag to override this safety check."
epause 5
die "Your kernel version is too close to the compat-wireless version to risk installation."
fi
fi
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_prepare() {
#this patch fixes a trivial typo in the config.mk
epatch "${FILESDIR}"/fix-typos-2.6.36_rc5.patch
#this patch is needed to forcibly enable new ralink chips because the shipped config.mk doesn't enable them
epatch "${FILESDIR}"/force-enable-new-ralink-pci-2.6.36-rc5.patch
#this may or may not HELP the channel -1 issue. this is not a fix
epatch "${FILESDIR}"/channel-negative-one-maxim.patch
#test patch for fixing iwlagn issues
epatch "${FILESDIR}"/reinette-test2.patch
#this patch ignores the regulatory settings of an atheros card and uses what CRDA thinks is right
if use atheros_obey_crda; then
ewarn "You have enabled atheros_obey_crda which doesn't do what you think."
ewarn "This use flag will cause the eeprom of the card to be ignored and force"
ewarn "world roaming on the device until crda provides a valid regdomain."
ewarn "Short version, this is not a way to break the law, this will automatically"
ewarn "make your card less functional unless you set a proper regdomain with iw/crda."
ewarn "Pausing for 10 secs..."
epause 10
epatch "${FILESDIR}"/ath_ignore_eeprom.patch
fi
if use injection; then
epatch "${FILESDIR}"/4002_mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch
epatch "${FILESDIR}"/4004_zd1211rw-2.6.28.patch
epatch "${FILESDIR}"/mac80211.compat08082009.wl_frag+ack_v1.patch
epatch "${FILESDIR}"/4013-runtime-enable-disable-of-mac80211-packet-injection.patch
epatch "${FILESDIR}"/compat-chaos.patch
epatch "${FILESDIR}"/rtl8187-mac80211-injection-speed-2.6.30-rc3.patch
# epatch "${FILESDIR}"/super_secret_patch.diff
fi
use noleds && epatch "${FILESDIR}"/leds-disable-strict.patch
use debug-driver && epatch "${FILESDIR}"/driver-debug.patch
use debugfs && sed -i '/DEBUGFS/s/^# *//' "${S}"/config.mk
if use full-debug; then
if use debug-driver ; then
sed -i '/CONFIG=/s/^# *//' "${S}"/config.mk
else
ewarn "Enabling full-debug includes debug-driver."
sed -i '/DEBUG=/s/^# *//' "${S}"/config.mk
fi
fi
}
src_compile() {
addpredict "${KERNEL_DIR}"
set_arch_to_kernel
emake KLIB_BUILD="${DESTDIR}"/lib/modules/"${KV_FULL}"/build || die "emake failed"
}
src_install() {
for file in $(find -name \*.ko); do
insinto "/lib/modules/${KV_FULL}/updates/$(dirname ${file})"
doins "${file}" || die "failed to install module ${file}"
done
dosbin scripts/athenable scripts/b43load scripts/iwl-enable \
scripts/madwifi-unload scripts/athload scripts/iwl-load \
scripts/b43enable scripts/load.sh \
scripts/unload.sh || die "script installation failed"
dodir /usr/lib/compat-wireless
exeinto /usr/lib/compat-wireless
doexe scripts/modlib.sh || die
dodoc README || die
dodir /$(get_libdir)/udev/rules.d/
insinto /$(get_libdir)/udev/rules.d/
doins udev/50-compat_firmware.rules
exeinto /$(get_libdir)/udev/
doexe udev/compat_firmware.sh
}
pkg_postinst() {
update_depmod
update_moduledb
einfo 'You may have problem if you do not run "depmod -ae" after this installation'
einfo 'To switch to the new drivers without reboot run unload.sh then load.sh'
}
pkg_postrm() {
remove_moduledb
}

View file

@ -0,0 +1,138 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit linux-mod linux-info versionator eutils
##Stable
MY_P=${P/_rc/-rc}
MY_PV=v$(get_version_component_range 1-3)
DESCRIPTION="Stable kernel pre-release wifi subsystem backport"
HOMEPAGE="http://wireless.kernel.org/en/users/Download/stable"
CRAZY_VERSIONING="1"
SRC_URI="http://www.orbit-lab.org/kernel/${PN}-2.6-stable/${MY_PV}/${MY_P}-${CRAZY_VERSIONING}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
IUSE="atheros_obey_crda debugfs debug-driver full-debug injection noleds tinyversionoverride"
DEPEND=""
RDEPEND="=sys-kernel/linux-firmware-99999999"
S="${WORKDIR}"/"${MY_P}"-${CRAZY_VERSIONING}
RESTRICT="strip"
CONFIG_CHECK="!DYNAMIC_FTRACE"
pkg_setup() {
linux-mod_pkg_setup
kernel_is -lt 2 6 27 && die "kernel 2.6.27 or higher is required for compat wireless to be installed"
kernel_is -gt $(get_version_component_range 1) $(get_version_component_range 2) $(get_version_component_range 3) && die "The version of compat-wireless you are trying to install contains older modules than your kernel. Failing before downgrading your system."
if kernel_is -eq $(get_version_component_range 1) $(get_version_component_range 2) $(get_version_component_range 3); then
if use tinyversionoverride; then
ewarn "You have the tinyversionoverride use flag set which means you know for a fact that your"
ewarn "kernel is older than the compat-wireless you are installing."
ewarn "Most likely you have no clue what you are doing and should hit control-C now"
ewarn "before you downgrade your system. Ten seconds to think about it."
epause 10
else
ewarn "Your kernel version is most likely newer than the compat-wireless release you are"
ewarn "trying to install. If you are certain that your kernel is older then you can set"
ewarn "the tinyversionoverride use flag to override this safety check."
epause 5
die "Your kernel version is too close to the compat-wireless version to risk installation."
fi
fi
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_prepare() {
#this patch fixes a trivial typo in the config.mk
epatch "${FILESDIR}"/fix-typos-2.6.36_rc5.patch
#this patch is needed to forcibly enable new ralink chips because the shipped config.mk doesn't enable them
epatch "${FILESDIR}"/force-enable-new-ralink-pci-2.6.36-rc5.patch
#this may or may not HELP the channel -1 issue. this is not a fix
epatch "${FILESDIR}"/channel-negative-one-maxim.patch
#test patch for fixing iwlagn issues
epatch "${FILESDIR}"/reinette-test2.patch
#this patch ignores the regulatory settings of an atheros card and uses what CRDA thinks is right
if use atheros_obey_crda; then
ewarn "You have enabled atheros_obey_crda which doesn't do what you think."
ewarn "This use flag will cause the eeprom of the card to be ignored and force"
ewarn "world roaming on the device until crda provides a valid regdomain."
ewarn "Short version, this is not a way to break the law, this will automatically"
ewarn "make your card less functional unless you set a proper regdomain with iw/crda."
ewarn "Pausing for 10 secs..."
epause 10
epatch "${FILESDIR}"/ath_ignore_eeprom.patch
fi
if use injection; then
epatch "${FILESDIR}"/4002_mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch
epatch "${FILESDIR}"/4004_zd1211rw-2.6.28.patch
epatch "${FILESDIR}"/mac80211.compat08082009.wl_frag+ack_v1.patch
epatch "${FILESDIR}"/4013-runtime-enable-disable-of-mac80211-packet-injection.patch
epatch "${FILESDIR}"/compat-chaos.patch
epatch "${FILESDIR}"/rtl8187-mac80211-injection-speed-2.6.30-rc3.patch
# epatch "${FILESDIR}"/super_secret_patch.diff
fi
use noleds && epatch "${FILESDIR}"/leds-disable-strict.patch
use debug-driver && epatch "${FILESDIR}"/driver-debug.patch
use debugfs && sed -i '/DEBUGFS/s/^# *//' "${S}"/config.mk
if use full-debug; then
if use debug-driver ; then
sed -i '/CONFIG=/s/^# *//' "${S}"/config.mk
else
ewarn "Enabling full-debug includes debug-driver."
sed -i '/DEBUG=/s/^# *//' "${S}"/config.mk
fi
fi
}
src_compile() {
addpredict "${KERNEL_DIR}"
set_arch_to_kernel
emake KLIB_BUILD="${DESTDIR}"/lib/modules/"${KV_FULL}"/build || die "emake failed"
}
src_install() {
for file in $(find -name \*.ko); do
insinto "/lib/modules/${KV_FULL}/updates/$(dirname ${file})"
doins "${file}" || die "failed to install module ${file}"
done
dosbin scripts/athenable scripts/b43load scripts/iwl-enable \
scripts/madwifi-unload scripts/athload scripts/iwl-load \
scripts/b43enable scripts/load.sh \
scripts/unload.sh || die "script installation failed"
dodir /usr/lib/compat-wireless
exeinto /usr/lib/compat-wireless
doexe scripts/modlib.sh || die
dodoc README || die
dodir /$(get_libdir)/udev/rules.d/
insinto /$(get_libdir)/udev/rules.d/
doins udev/50-compat_firmware.rules
exeinto /$(get_libdir)/udev/
doexe udev/compat_firmware.sh
}
pkg_postinst() {
update_depmod
update_moduledb
einfo 'You may have problem if you do not run "depmod -ae" after this installation'
einfo 'To switch to the new drivers without reboot run unload.sh then load.sh'
}
pkg_postrm() {
remove_moduledb
}