summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEisNerd <FlorianManschwetus@gmx.de>2007-07-07 14:28:46 +0000
committerEisNerd <FlorianManschwetus@gmx.de>2007-07-07 14:28:46 +0000
commit8d44c7337a6f8a2b402bb3e65b4a7df1e7c8ab83 (patch)
tree3b54f8b898edd06cb270cdd497e111a77ce6754e /net-wireless
parentnet-wireless/iwlwifi-ucode: rename to support iwl4965 (diff)
downloadsunrise-reviewed-8d44c7337a6f8a2b402bb3e65b4a7df1e7c8ab83.tar.gz
sunrise-reviewed-8d44c7337a6f8a2b402bb3e65b4a7df1e7c8ab83.tar.bz2
sunrise-reviewed-8d44c7337a6f8a2b402bb3e65b4a7df1e7c8ab83.zip
net-wireless/iwlwifi4965-ucode: add to support iwl4965
svn path=/sunrise/; revision=4181
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/mac80211/mac80211-8.0.1.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/net-wireless/mac80211/mac80211-8.0.1.ebuild b/net-wireless/mac80211/mac80211-8.0.1.ebuild
new file mode 100644
index 000000000..30820cf00
--- /dev/null
+++ b/net-wireless/mac80211/mac80211-8.0.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit linux-mod
+
+DESCRIPTION="mac80211 subsystem"
+HOMEPAGE="http://intellinuxwireless.org/?p=mac80211"
+SRC_URI="http://intellinuxwireless.org/${PN}/downloads/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+MOD="${P}"
+S="${WORKDIR}/${MOD}/compatible/net"
+
+MODULE_NAMES="mac80211(net/mac80211:${S}/mac80211)
+ rc80211_simple(net/mac80211:${S}/mac80211)
+ cfg80211(net/wireless:${S}/wireless)"
+BUILD_TARGETS="modules"
+CONFIG_CHECK="NET_SCHED WIRELESS_EXT LEDS_TRIGGERS"
+
+pkg_setup() {
+ if kernel_is ge 2 6 22 ; then
+ CONFIG_CHECK="${CONFIG_CHECK} !MAC80211"
+ ERROR_MAC80211="MAC80211 support already enabled in kernel. You do not need this ebuild."
+ fi
+
+ linux-mod_pkg_setup
+ BUILD_PARAMS="CONFIG_MAC80211_LEDS=y CONFIG_MAC80211=m CONFIG_CFG80211=m
+ -C ${KV_DIR} M=\${PWD}"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${WORKDIR}"/${MOD}
+ make unmodified KSRC="${KV_DIR}" || die "make unmodified failed"
+ for i in "${S}"/mac80211 "${S}"/wireless ; do
+ echo "CFLAGS += -I${WORKDIR}/${MOD}/compatible/include" \
+ "-DCONFIG_MAC80211_LEDS=y" >> $i/Makefile
+ done
+}
+
+src_install() {
+ cd "${WORKDIR}"/${MOD}/compatible
+ for i in include/net include/linux ; do
+ insinto /usr/include/${i/include/mac80211}
+ doins $i/*.h
+ done
+
+ insinto /usr/include/mac80211/net/mac80211
+ doins net/mac80211/*.h
+
+ linux-mod_src_install
+}