forked from tastytea/overlay
removed ndiswrapper
This commit is contained in:
parent
5cb1931bc4
commit
30c6cd1619
|
@ -1,5 +0,0 @@
|
|||
AUX ndiswrapper-1.59-3.14.patch 1282 SHA256 0c9dcf7520e586d8f66fda1b1495897c83ba62d3e48c055cb56213ab80e87373 SHA512 d85b2c9f6ecc5ea7724756d17c1ab703f84d301bac6b00c990081e33481d6788093bfbd0298ce72404120862c04205b588469e7747842eb3b48dabbed1bc5e7d WHIRLPOOL 39c005020bb44770865a66095238bd2bc910cbd4e4ac130a96c679bb58bda48383ab5426563d23768405caf0d92837a8044711b60980875b0521ed084ff97633
|
||||
AUX ndiswrapper-1.59-4.0.patch 1337 SHA256 b0cd47639d8f40c8693a7afdb83b6d85455512ef5760756d0dd590d51e81110b SHA512 64fd5ab1ec55920da36a8427d36a68c7b0edecf51fd050cfaa89c266b656ad21ff02bfc3053fa89fff80bc64df4bdc858ce5dbbdf9d9ff8fa188ea480efb4157 WHIRLPOOL 9289923acef2c84e9ab521c7a5fdb332999bbb2009643819c04c6dbbadd6a0f4217dec66830d60076b82aabf735f9a82bf5c2a3d5d7aba95aaeaec451a4e1490
|
||||
AUX ndiswrapper-1.59-cflags.patch 357 SHA256 3f1c98336b5ef582db9556c9f2b9b459084eafb1bedb639c2cb795fcda958919 SHA512 8c65a5af71bf3035e2d784b29ad45dc48bd70b155d988c2e6d511eb03d9a319d355d67f74e3270816e943abe051e442efe891de1d649e871b7e3b05690c71a9d WHIRLPOOL 6b14014639e1f8e275feae73bcc7b009cc46f52379cb2c5bf456bfddd453d567afac8eb97734950c39dc6d015ed2e2f194618b64d8a894e343affb7ab622e8fc
|
||||
DIST ndiswrapper-1.59.tar.gz 201257 SHA256 66a5d3ffb3fc8a63d87e381bbc627511597dfd25c4c37dda3b953ccf98f5d4bc SHA512 dd1d486b6178185e813217e4fff38f6ea6b21f8a3544c5cc25be9edbca60f34b21656e5d46b9d02cb1e43c8cc82856283aaa428964b8f85cb07146a41e40e44d WHIRLPOOL ae4dca59911625146de4e2da02b72bcf1b695e63c8d0d900a91ec9b0c5b7452c9ba0de37ad95129d330d96be16d9c4b488b5d40936f51af14dca2597281b7b84
|
||||
EBUILD ndiswrapper-1.59-r1.ebuild 2904 SHA256 963ba77b6b7022c3f2fd523fd26be2002791e050c856733470375d5cdd6ed0e5 SHA512 290927550a51f6963cd12960180ac3c71b6404757758e3e9c54fc7dd8e31897381e1466ecdd9e804673bd82cb19fb445ae49548d7d503299424edac771b48eec WHIRLPOOL d0d21cdff9060de8dcf62703447a161a7226dbb626a8c512fd8c209529b5a3ca6f12a11ac89cc14405f00d6e250f0929f44ffd72d1c5c1e42c4b91e5c2f5b02a
|
|
@ -1,48 +0,0 @@
|
|||
Index: driver/crt.c
|
||||
===================================================================
|
||||
--- driver/crt.c (revision 3197)
|
||||
+++ driver/crt.c (working copy)
|
||||
@@ -467,7 +467,7 @@
|
||||
noregparm void WIN_FUNC(_win_srand,1)
|
||||
(UINT seed)
|
||||
{
|
||||
- net_srandom(seed);
|
||||
+ prandom_seed(seed);
|
||||
}
|
||||
|
||||
noregparm int WIN_FUNC(rand,0)
|
||||
Index: driver/ntoskernel.h
|
||||
===================================================================
|
||||
--- driver/ntoskernel.h (revision 3197)
|
||||
+++ driver/ntoskernel.h (working copy)
|
||||
@@ -347,7 +347,7 @@
|
||||
#define netdev_notifier_info_to_dev(x) ((struct net_device *)(x))
|
||||
#endif
|
||||
|
||||
-#ifdef INIT_COMPLETION
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
|
||||
static inline void reinit_completion(struct completion *x)
|
||||
{
|
||||
INIT_COMPLETION(*x);
|
||||
@@ -354,6 +354,10 @@
|
||||
}
|
||||
#endif
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
|
||||
+#define prandom_seed(seed) net_srandom(seed)
|
||||
+#endif
|
||||
+
|
||||
/* TICK is 100ns */
|
||||
#define TICKSPERSEC 10000000
|
||||
#define TICKSPERMSEC 10000
|
||||
@@ -797,9 +801,8 @@
|
||||
#define nt_spin_unlock_irqrestore(lock, flags) \
|
||||
do { \
|
||||
nt_spin_unlock(lock); \
|
||||
- preempt_enable_no_resched(); \
|
||||
+ preempt_enable(); \
|
||||
local_irq_restore(flags); \
|
||||
- preempt_check_resched(); \
|
||||
} while (0)
|
||||
|
||||
static inline ULONG SPAN_PAGES(void *ptr, SIZE_T length)
|
|
@ -1,33 +0,0 @@
|
|||
Index: driver/ndis.c
|
||||
===================================================================
|
||||
--- a/driver/ndis.c
|
||||
+++ b/driver/ndis.c
|
||||
@@ -25,6 +25,10 @@
|
||||
#define MAX_ALLOCATED_NDIS_PACKETS TX_RING_SIZE
|
||||
#define MAX_ALLOCATED_NDIS_BUFFERS TX_RING_SIZE
|
||||
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
|
||||
+#define strncasecmp strnicmp
|
||||
+#endif
|
||||
+
|
||||
static struct work_struct ndis_work;
|
||||
static struct nt_list ndis_work_list;
|
||||
static spinlock_t ndis_work_list_lock;
|
||||
@@ -438,7 +442,7 @@ static int read_setting(struct nt_list *setting_list, char *keyname, int length,
|
||||
struct wrap_device_setting *setting;
|
||||
mutex_lock(&loader_mutex);
|
||||
nt_list_for_each_entry(setting, setting_list, list) {
|
||||
- if (strnicmp(keyname, setting->name, length) == 0) {
|
||||
+ if (strncasecmp(keyname, setting->name, length) == 0) {
|
||||
TRACE2("setting %s='%s'", keyname, setting->value);
|
||||
mutex_unlock(&loader_mutex);
|
||||
*param = ndis_encode_setting(setting, type);
|
||||
@@ -502,7 +506,7 @@ wstdcall void WIN_FUNC(NdisWriteConfiguration,4)
|
||||
|
||||
mutex_lock(&loader_mutex);
|
||||
nt_list_for_each_entry(setting, &nmb->wnd->wd->settings, list) {
|
||||
- if (strnicmp(keyname, setting->name, ansi.length) == 0) {
|
||||
+ if (strncasecmp(keyname, setting->name, ansi.length) == 0) {
|
||||
mutex_unlock(&loader_mutex);
|
||||
if (ndis_decode_setting(setting, param))
|
||||
*status = NDIS_STATUS_FAILURE;
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/utils/Makefile b/utils/Makefile
|
||||
index 0e763c6..d555dda 100644
|
||||
--- a/utils/Makefile
|
||||
+++ b/utils/Makefile
|
||||
@@ -6,7 +6,7 @@ HEADERS = $(DRIVER_DIR)/loader.h $(DRIVER_DIR)/ndiswrapper.h
|
||||
|
||||
CC = gcc
|
||||
HOSTCC = $(CC)
|
||||
-CFLAGS = -g -Wall -I$(DRIVER_DIR)
|
||||
+CFLAGS += -I$(DRIVER_DIR)
|
||||
|
||||
DISTFILES=Makefile ndiswrapper loadndisdriver.c ndiswrapper-buginfo
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/net-wireless/ndiswrapper/ndiswrapper-1.59.ebuild,v 1.4 2014/07/22 19:18:01 pacho Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit base linux-mod toolchain-funcs
|
||||
|
||||
DESCRIPTION="Wrapper for using Windows drivers for some wireless cards"
|
||||
HOMEPAGE="http://ndiswrapper.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/stable/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="debug usb"
|
||||
|
||||
DEPEND="sys-apps/pciutils"
|
||||
RDEPEND="${DEPEND}
|
||||
net-wireless/wireless-tools"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-cflags.patch
|
||||
"${FILESDIR}"/${P}-3.14.patch
|
||||
"${FILESDIR}"/${P}-4.0.patch )
|
||||
MODULE_NAMES="ndiswrapper(misc:${S}/driver)"
|
||||
BUILD_TARGETS="all"
|
||||
MODULESD_NDISWRAPPER_ALIASES=("wlan0 ndiswrapper")
|
||||
|
||||
pkg_pretend() {
|
||||
CONFIG_CHECK="~WEXT_PRIV"
|
||||
use usb && CONFIG_CHECK="${CONFIG_CHECK} ~USB"
|
||||
ERROR_USB="You need to enable USB support in your kernel to use usb support in ndiswrapper."
|
||||
ERROR_WEXT_PRIV="Your kernel does not support WEXT_PRIV. To enable it you need to enable a wireless driver that enables it, for example PRISM54 or IPW2200"
|
||||
linux-mod_pkg_setup
|
||||
}
|
||||
|
||||
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 CC=$(tc-getCC)
|
||||
|
||||
use usb || params="${params} DISABLE_USB=1"
|
||||
|
||||
BUILD_PARAMS="KSRC=${KV_DIR} KVERS=${KV_FULL} KBUILD='${KV_OUT_DIR}' ${params}"
|
||||
linux-mod_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc AUTHORS ChangeLog INSTALL README
|
||||
doman ndiswrapper.8
|
||||
|
||||
keepdir /etc/ndiswrapper
|
||||
|
||||
linux-mod_src_install
|
||||
|
||||
cd utils
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
||||
|
||||
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'."
|
||||
echo
|
||||
|
||||
elog "Please look at ${HOMEPAGE}"
|
||||
elog "for the FAQ, HowTos, tips, configuration, and installation"
|
||||
elog "information."
|
||||
echo
|
||||
|
||||
for i in $(lspci -n | egrep '(0280|0200):' | cut -d' ' -f1)
|
||||
do
|
||||
i_desc=$(lspci -nn | grep "$i" | awk -F': ' '{print $2}' | awk -F'[' '{print $1}')
|
||||
if [[ -n "${i_desc}" ]] ; then
|
||||
elog "Possible hardware: ${i_desc}"
|
||||
fi
|
||||
done
|
||||
|
||||
echo
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user