diff options
author | MATSUU Takuto <matsuu@gentoo.org> | 2008-10-29 00:03:25 +0900 |
---|---|---|
committer | MATSUU Takuto <matsuu@gentoo.org> | 2008-10-29 00:03:25 +0900 |
commit | e2a64648d9f5a0ee6e6334763c56d52c815926ad (patch) | |
tree | 06cd537ff613cfb10442a9347c5fc26dfda55b44 /net-wireless | |
parent | Added net-wireless/broadcom-sta and netwireless/ndiswrapper for DELL Inspiron... (diff) | |
download | matsuu-e2a64648d9f5a0ee6e6334763c56d52c815926ad.tar.gz matsuu-e2a64648d9f5a0ee6e6334763c56d52c815926ad.tar.bz2 matsuu-e2a64648d9f5a0ee6e6334763c56d52c815926ad.zip |
Removed subdirectories.
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/broadcom-sta/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/broadcom-sta/broadcom-sta-5.10.27.6.ebuild | 37 | ||||
-rw-r--r-- | net-wireless/broadcom-sta/files/broadcom-sta-5.10.27.6-gentoo.patch | 102 | ||||
-rw-r--r-- | net-wireless/ndiswrapper/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/ndiswrapper/ndiswrapper-9999.ebuild | 119 |
5 files changed, 263 insertions, 0 deletions
diff --git a/net-wireless/broadcom-sta/Manifest b/net-wireless/broadcom-sta/Manifest new file mode 100644 index 0000000..0b056ac --- /dev/null +++ b/net-wireless/broadcom-sta/Manifest @@ -0,0 +1,4 @@ +AUX broadcom-sta-5.10.27.6-gentoo.patch 3962 RMD160 f856c79a4bcacc0dba5068d968d2f07a078e8acc SHA1 163b8bfebc56c9410cb5e3766d5f2fe3ce720588 SHA256 4d0d2f63974312067e47ca946b1e491e09c183a8377a1749abe093aaee4ab526 +DIST hybrid-portsrc-x86_32_5_10_27_6.tar.gz 523655 RMD160 b5d42ec69821cb2272cba693af4423d9e41e084d SHA1 88035832af2a56eabdc3f070cd8f668423b62ff1 SHA256 0772dcd51659112a62379b61f6525d9038d640057f3c66d6354ee67bb222ef7e +DIST hybrid-portsrc-x86_64_5_10_27_6.tar.gz 521899 RMD160 a85ec25c0196e3b2b97e904e19b0a42f3e05a829 SHA1 d9546198d294bf2c837f675a6c77735487fd9d11 SHA256 1be5400eec995d276e6a14e35ab94edd1fa79fb19b43e33226b7bf931405af29 +EBUILD broadcom-sta-5.10.27.6.ebuild 983 RMD160 e9ecf1379ec18f49d6052a313b59124e6b4a6e37 SHA1 ccd5ae816bd8ed53f38c884f560ba8b9a6b96c8c SHA256 a15953a48b76317edb2951af37ede35e7723135786f22c1fc3f8ca1815ace40e diff --git a/net-wireless/broadcom-sta/broadcom-sta-5.10.27.6.ebuild b/net-wireless/broadcom-sta/broadcom-sta-5.10.27.6.ebuild new file mode 100644 index 0000000..3bf8b3d --- /dev/null +++ b/net-wireless/broadcom-sta/broadcom-sta-5.10.27.6.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/iwlwifi/iwlwifi-1.2.23.ebuild,v 1.1 2008/01/22 05:08:58 compnerd Exp $ + +inherit eutils linux-mod + +MY_PV="${PV//./_}" +DESCRIPTION="Broadcom 802.11 Linux STA driver" +HOMEPAGE="http://www.broadcom.com/support/802.11/linux_sta.php" +SRC_URI="x86? ( http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_32_${MY_PV}.tar.gz ) + amd64? ( http://www.broadcom.com/docs/linux_sta/hybrid-portsrc-x86_64_${MY_PV}.tar.gz )" + +LICENSE="Broadcom" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=virtual/linux-sources-2.6.22" + +S="${WORKDIR}" + +pkg_setup() { + MODULE_NAMES="wl(net:${S}:${S})" + CONFIG_CHECK="IEEE80211" + linux-mod_pkg_setup + if use_m; then + BUILD_PARAMS="-C ${KV_DIR} M=${S}" + BUILD_TARGETS=" " + else + die "please use a kernel >=2.6.6" + fi +} +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-gentoo.patch" +} diff --git a/net-wireless/broadcom-sta/files/broadcom-sta-5.10.27.6-gentoo.patch b/net-wireless/broadcom-sta/files/broadcom-sta-5.10.27.6-gentoo.patch new file mode 100644 index 0000000..499a5e5 --- /dev/null +++ b/net-wireless/broadcom-sta/files/broadcom-sta-5.10.27.6-gentoo.patch @@ -0,0 +1,102 @@ +diff -Naur hybrid-portsrc-x86_64_5_10_27_6.orig/src/wl/sys/wl_iw.c hybrid-portsrc-x86_64_5_10_27_6/src/wl/sys/wl_iw.c +--- hybrid-portsrc-x86_64_5_10_27_6.orig/src/wl/sys/wl_iw.c 2008-07-02 13:31:02.000000000 +0900 ++++ hybrid-portsrc-x86_64_5_10_27_6/src/wl/sys/wl_iw.c 2008-10-27 17:22:17.000000000 +0900 +@@ -881,6 +881,13 @@ + } + #endif + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27) && !defined(IW_REQUEST_FLAG_COMPAT) ++#define iwe_stream_add_event(a, b, c, d, e) iwe_stream_add_event(b, c, d, e) ++#define iwe_stream_add_point(a, b, c, d, e) iwe_stream_add_point(b, c, d, e) ++#define iwe_stream_add_value(a, b, c, d, e, f) \ ++ iwe_stream_add_value(b, c, d, e, f) ++#endif ++ + static int + wl_iw_get_scan( + struct net_device *dev, +@@ -931,12 +938,12 @@ + iwe.cmd = SIOCGIWAP; + iwe.u.ap_addr.sa_family = ARPHRD_ETHER; + memcpy(iwe.u.ap_addr.sa_data, &bi->BSSID, ETHER_ADDR_LEN); +- event = iwe_stream_add_event(event, end, &iwe, IW_EV_ADDR_LEN); ++ event = iwe_stream_add_event(info, event, end, &iwe, IW_EV_ADDR_LEN); + + iwe.u.data.length = dtoh32(bi->SSID_len); + iwe.cmd = SIOCGIWESSID; + iwe.u.data.flags = 1; +- event = iwe_stream_add_point(event, end, &iwe, bi->SSID); ++ event = iwe_stream_add_point(info, event, end, &iwe, bi->SSID); + + if (dtoh16(bi->capability) & (DOT11_CAP_ESS | DOT11_CAP_IBSS)) { + iwe.cmd = SIOCGIWMODE; +@@ -944,7 +951,7 @@ + iwe.u.mode = IW_MODE_INFRA; + else + iwe.u.mode = IW_MODE_ADHOC; +- event = iwe_stream_add_event(event, end, &iwe, IW_EV_UINT_LEN); ++ event = iwe_stream_add_event(info, event, end, &iwe, IW_EV_UINT_LEN); + } + + iwe.cmd = SIOCGIWFREQ; +@@ -952,13 +959,13 @@ + CHSPEC_CHANNEL(bi->chanspec) <= CH_MAX_2G_CHANNEL ? + WF_CHAN_FACTOR_2_4_G : WF_CHAN_FACTOR_5_G); + iwe.u.freq.e = 6; +- event = iwe_stream_add_event(event, end, &iwe, IW_EV_FREQ_LEN); ++ event = iwe_stream_add_event(info, event, end, &iwe, IW_EV_FREQ_LEN); + + iwe.cmd = IWEVQUAL; + iwe.u.qual.qual = rssi_to_qual(dtoh16(bi->RSSI)); + iwe.u.qual.level = 0x100 + dtoh16(bi->RSSI); + iwe.u.qual.noise = 0x100 + bi->phy_noise; +- event = iwe_stream_add_event(event, end, &iwe, IW_EV_QUAL_LEN); ++ event = iwe_stream_add_event(info, event, end, &iwe, IW_EV_QUAL_LEN); + + #if WIRELESS_EXT > 17 + +@@ -970,7 +977,7 @@ + if ((ie = bcm_parse_tlvs(ptr, ptr_len, DOT11_MNG_RSN_ID))) { + iwe.cmd = IWEVGENIE; + iwe.u.data.length = ie->len + 2; +- event = iwe_stream_add_point(event, end, &iwe, (char *)ie); ++ event = iwe_stream_add_point(info, event, end, &iwe, (char *)ie); + } + ptr = ((uint8 *)bi) + sizeof(wl_bss_info_t); + while ((ie = bcm_parse_tlvs(ptr, ptr_len, DOT11_MNG_WPA_ID))) { +@@ -978,7 +985,7 @@ + if (ie_is_wps_ie(((uint8 **)&ie), &ptr, &ptr_len)) { + iwe.cmd = IWEVGENIE; + iwe.u.data.length = ie->len + 2; +- event = iwe_stream_add_point(event, end, &iwe, (char *)ie); ++ event = iwe_stream_add_point(info, event, end, &iwe, (char *)ie); + break; + } + } +@@ -989,7 +996,7 @@ + if (ie_is_wpa_ie(((uint8 **)&ie), &ptr, &ptr_len)) { + iwe.cmd = IWEVGENIE; + iwe.u.data.length = ie->len + 2; +- event = iwe_stream_add_point(event, end, &iwe, (char *)ie); ++ event = iwe_stream_add_point(info, event, end, &iwe, (char *)ie); + goto done; + } + } +@@ -1003,7 +1010,7 @@ + else + iwe.u.data.flags = IW_ENCODE_DISABLED; + iwe.u.data.length = 0; +- event = iwe_stream_add_point(event, end, &iwe, (char *)event); ++ event = iwe_stream_add_point(info, event, end, &iwe, (char *)event); + + if (bi->rateset.count) { + value = event + IW_EV_LCP_LEN; +@@ -1012,7 +1019,7 @@ + iwe.u.bitrate.fixed = iwe.u.bitrate.disabled = 0; + for (j = 0; j < bi->rateset.count && j < IW_MAX_BITRATES; j++) { + iwe.u.bitrate.value = (bi->rateset.rates[j] & 0x7f) * 500000; +- value = iwe_stream_add_value(event, value, end, &iwe, ++ value = iwe_stream_add_value(info, event, value, end, &iwe, + IW_EV_PARAM_LEN); + } + event = value; diff --git a/net-wireless/ndiswrapper/Manifest b/net-wireless/ndiswrapper/Manifest new file mode 100644 index 0000000..6aabedb --- /dev/null +++ b/net-wireless/ndiswrapper/Manifest @@ -0,0 +1 @@ +EBUILD ndiswrapper-9999.ebuild 3036 RMD160 c868a78faab37a5104cc6c6392c848013e6b21dd SHA1 529a6320c41dcddbe7ee1401373b03112cc03742 SHA256 fc140f4ebbb40bb48561ba3d2e3ec64fb55d844ec8f5413dc55dd877e0518292 diff --git a/net-wireless/ndiswrapper/ndiswrapper-9999.ebuild b/net-wireless/ndiswrapper/ndiswrapper-9999.ebuild new file mode 100644 index 0000000..80f96f7 --- /dev/null +++ b/net-wireless/ndiswrapper/ndiswrapper-9999.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.53.ebuild,v 1.1 2008/05/30 10:33:36 peper Exp $ + +inherit eutils linux-mod subversion + +ESVN_REPO_URI="http://ndiswrapper.svn.sourceforge.net/svnroot/ndiswrapper/trunk/ndiswrapper" +DESCRIPTION="Wrapper for using Windows drivers for some wireless cards" +HOMEPAGE="http://ndiswrapper.sourceforge.net/" +#SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +SRC_URI="" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="debug usb" + +DEPEND="sys-apps/pciutils" +RDEPEND="${DEPEND} + net-wireless/wireless-tools" + +CONFIG_CHECK="WIRELESS_EXT" + +MODULE_NAMES="ndiswrapper(misc:${S}/driver)" +BUILD_TARGETS="all" +MODULESD_NDISWRAPPER_ALIASES=("wlan0 ndiswrapper") + +ERROR_USB="You need to enable USB support in your kernel +to use usb support in ndiswrapper." + +pkg_setup() { + echo + einfo "See http://www.gentoo.org/doc/en/gentoo-kernel.xml" + einfo "for a list of supported kernels." + echo + + use usb && CONFIG_CHECK="${CONFIG_CHECK} USB" + linux-mod_pkg_setup +} + +src_unpack() { + subversion_src_unpack + convert_to_m "${S}/driver/Makefile" +} + +src_compile() { + local params + + # Enable verbose debugging information + if use debug; then + params="DEBUG=3" + use usb && params="${params} USB_DEBUG=1" + fi + + cd utils + emake || die "Compile of utils failed!" + + use usb || params="DISABLE_USB=1" + + # Does not like parallel builds + # http://bugs.gentoo.org/show_bug.cgi?id=154213 + # KBUILD value can't be quoted + # http://bugs.gentoo.org/show_bug.cgi?id=156319 + BUILD_PARAMS="KSRC=${KV_DIR} KVERS=${KV_FULL} KBUILD=${KV_OUT_DIR} ${params} -j1" + linux-mod_src_compile +} + +src_install() { + dodoc AUTHORS ChangeLog INSTALL README + doman ndiswrapper.8 || die + + keepdir /etc/ndiswrapper + + linux-mod_src_install + + cd utils + emake DESTDIR="${D}" install || die "emake install failed" +} + +pkg_postinst() { + linux-mod_pkg_postinst + + echo + elog "NDISwrapper requires .inf and .sys files from a Windows(tm) driver" + elog "to function. Download these to /root for example, then" + elog "run 'ndiswrapper -i /root/foo.inf'. After that you can delete them." + elog "They will be copied to /etc/ndiswrapper/." + elog "Once done, please run 'update-modules'." + elog + + elog "Please look at ${HOMEPAGE}" + elog "for the FAQ, HowTos, tips, configuration, and installation" + elog "information." + elog + + local i=$(lspci -n | egrep 'Class (0280|0200):' | cut -d' ' -f4) + if [[ -n "${i}" ]] ; then + elog "Possible hardware: ${i}" + elog + fi + + elog "NDISwrapper devs need support (_hardware_, cash)." + elog "Don't hesitate if you can help." + elog "See ${HOMEPAGE} for details." + echo + + if [[ ${ROOT} == "/" ]]; then + + einfo "Attempting to automatically reinstall any Windows drivers" + einfo "you might already have." + echo + + local driver + for driver in $(ls /etc/ndiswrapper) ; do + einfo "Driver: ${driver}" + mv "/etc/ndiswrapper/${driver}" "${T}" + ndiswrapper -i "${T}/${driver}/${driver}.inf" + done + fi +} |