summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/madwifi-ng-svn')
-rw-r--r--net-wireless/madwifi-ng-svn/Manifest15
-rw-r--r--net-wireless/madwifi-ng-svn/files/digest-madwifi-ng-svn-26280
-rw-r--r--net-wireless/madwifi-ng-svn/files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch12
-rw-r--r--net-wireless/madwifi-ng-svn/files/svnversion.h1
-rw-r--r--net-wireless/madwifi-ng-svn/madwifi-ng-svn-2628.ebuild96
5 files changed, 124 insertions, 0 deletions
diff --git a/net-wireless/madwifi-ng-svn/Manifest b/net-wireless/madwifi-ng-svn/Manifest
new file mode 100644
index 0000000..efc113e
--- /dev/null
+++ b/net-wireless/madwifi-ng-svn/Manifest
@@ -0,0 +1,15 @@
+AUX madwifi-ng-0.9.3-uudecode-gcda-fix.patch 340 RMD160 2a18fc4f9e66aa131e901e7e46930e08e2ece7ea SHA1 3c84bf4e203ab3c810c734816dd1291ba19b0005 SHA256 be6e7a66acad56044c25ab56d9cbd7d5326c4ba21f5d9ed25caef56a9577bdc8
+MD5 c2c1ef3c395377312cfa0e012ded2777 files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch 340
+RMD160 2a18fc4f9e66aa131e901e7e46930e08e2ece7ea files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch 340
+SHA256 be6e7a66acad56044c25ab56d9cbd7d5326c4ba21f5d9ed25caef56a9577bdc8 files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch 340
+AUX svnversion.h 31 RMD160 60c40ab1d1d279755f03500be468b3641e2f3911 SHA1 acc4d46344a5039b5f164d8c8d6aeb6b678cb944 SHA256 324eba8a6a569f232685235246d44f12f8ce37562c4b8f9326a8bdb7c939e28b
+MD5 5a01caed0045fa730a8a8a873ccb40f3 files/svnversion.h 31
+RMD160 60c40ab1d1d279755f03500be468b3641e2f3911 files/svnversion.h 31
+SHA256 324eba8a6a569f232685235246d44f12f8ce37562c4b8f9326a8bdb7c939e28b files/svnversion.h 31
+EBUILD madwifi-ng-svn-2628.ebuild 2363 RMD160 e5b425c9187459cc00759907841ace5099754b73 SHA1 7615ac3a28213e7950b12a23c1e725d89e1f4e53 SHA256 e5f40225a2afae07fd5284bea0a941b044a1a58e483acef5a6543e0ab76b8d78
+MD5 65f7aa3712eb1020f688bcce031887d6 madwifi-ng-svn-2628.ebuild 2363
+RMD160 e5b425c9187459cc00759907841ace5099754b73 madwifi-ng-svn-2628.ebuild 2363
+SHA256 e5f40225a2afae07fd5284bea0a941b044a1a58e483acef5a6543e0ab76b8d78 madwifi-ng-svn-2628.ebuild 2363
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-madwifi-ng-svn-2628 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-madwifi-ng-svn-2628 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-madwifi-ng-svn-2628 0
diff --git a/net-wireless/madwifi-ng-svn/files/digest-madwifi-ng-svn-2628 b/net-wireless/madwifi-ng-svn/files/digest-madwifi-ng-svn-2628
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/net-wireless/madwifi-ng-svn/files/digest-madwifi-ng-svn-2628
diff --git a/net-wireless/madwifi-ng-svn/files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch b/net-wireless/madwifi-ng-svn/files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch
new file mode 100644
index 0000000..686958c
--- /dev/null
+++ b/net-wireless/madwifi-ng-svn/files/madwifi-ng-0.9.3-uudecode-gcda-fix.patch
@@ -0,0 +1,12 @@
+Index: ath_hal/Makefile
+===================================================================
+--- ath_hal/Makefile (revision 1648)
++++ ath_hal/Makefile (working copy)
+@@ -61,6 +61,7 @@
+ ath_hal-objs := ah_osdep.o ${TARGET}.hal.o
+
+ hostprogs-y := uudecode
++uudecode-objs := uudecode.o
+
+ # For older 2.6 kernels
+ host-progs := $(hostprogs-y)
diff --git a/net-wireless/madwifi-ng-svn/files/svnversion.h b/net-wireless/madwifi-ng-svn/files/svnversion.h
new file mode 100644
index 0000000..eacce4f
--- /dev/null
+++ b/net-wireless/madwifi-ng-svn/files/svnversion.h
@@ -0,0 +1 @@
+#define SVNVERSION "svn r2628"
diff --git a/net-wireless/madwifi-ng-svn/madwifi-ng-svn-2628.ebuild b/net-wireless/madwifi-ng-svn/madwifi-ng-svn-2628.ebuild
new file mode 100644
index 0000000..bdb60ea
--- /dev/null
+++ b/net-wireless/madwifi-ng-svn/madwifi-ng-svn-2628.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+# This ebuild is intended for macbook pro users.
+
+inherit linux-mod subversion flag-o-matic
+
+ESVN_REPO_URI="http://svn.madwifi.org/trunk/"
+ESVN_UPDATE_CMD="svn -r 2628 update"
+ESVN_PROJECT="madwifi-ng"
+
+DESCRIPTION="Wireless-ng driver for Atheros chipset a/b/g cards"
+HOMEPAGE="http://www.madwifi.org/"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+DEPEND="app-arch/sharutils"
+RDEPEND=""
+S=${WORKDIR}/madwifi
+
+CONFIG_CHECK="CRYPTO SYSCTL"
+ERROR_CRYPTO="${P} requires Cryptographic API support (CONFIG_CRYPTO)."
+ERROR_SYSCTL="${P} requires Sysctl support (CONFIG_SYSCTL)."
+
+pkg_setup() {
+
+ if ! ( kernel_is 2 6 22 ); then
+ die "This only works on 2.6.22 kernels"
+ fi
+
+ linux-mod_pkg_setup
+
+ use x86 && ARCH=i386
+ use amd64 && ARCH=x86_64
+ MODULE_NAMES="ath_hal(net:${S}/ath_hal)
+ wlan(net:${S}/net80211)
+ wlan_acl(net:${S}/net80211)
+ wlan_ccmp(net:${S}/net80211)
+ wlan_tkip(net:${S}/net80211)
+ wlan_wep(net:${S}/net80211)
+ wlan_xauth(net:${S}/net80211)
+ wlan_scan_sta(net:${S}/net80211)
+ wlan_scan_ap(net:${S}/net80211)
+ ath_rate_amrr(net:${S}/ath_rate/amrr)
+ ath_rate_onoe(net:${S}/ath_rate/onoe)
+ ath_rate_sample(net:${S}/ath_rate/sample)
+ ath_rate_minstrel(net:${S}/ath_rate/minstrel)
+ ath_pci(net:${S}/ath)"
+ BUILD_PARAMS="KERNELPATH=${ROOT}${KV_OUT_DIR} KERNELRELEASE=${KV_FULL}
+ ARCH=${ARCH} TOOLPREFIX=/usr/bin/"
+ BUILD_TARGETS="all"
+}
+
+src_unpack() {
+ subversion_src_unpack
+
+ epatch ${FILESDIR}/madwifi-ng-0.9.3-uudecode-gcda-fix.patch
+
+ for dir in ath ath_hal net80211 ath_rate/amrr ath_rate/onoe ath_rate/sample ath_rate/minstrel
+ do
+ convert_to_m ${S}/${dir}/Makefile
+ done
+
+ cp ${FILESDIR}/svnversion.h ${S}
+}
+
+src_compile() {
+ emake DESTDIR="${D}"|| die "emake failed"
+}
+
+src_install() {
+ linux-mod_src_install
+
+ cd ${S}
+
+ dodoc README COPYRIGHT
+
+# install headers for use by
+# net-wireless/wpa_supplicant and net-wireless/hostapd
+ insinto /usr/include/madwifi/include/
+ doins ${S}/include/*.h
+ insinto /usr/include/madwifi/include/sys/
+ doins ${S}/include/sys/*.h
+ insinto /usr/include/madwifi/net80211
+ doins ${S}/net80211/*.h
+
+ cd ${S}/tools
+ make install DESTDIR=${D} BINDIR=/sbin
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ einfo ""
+ einfo "The madwifi drivers create an interface named 'wifiX'"
+ einfo ""
+}