1 |
commit: 9a53249a6325dc6e479f6d512d1a3cc96bdfab57 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 5 03:59:40 2020 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 5 03:59:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a53249a |
7 |
|
8 |
net-wireless/ndiswrapper: drop last-rited pkg |
9 |
|
10 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
11 |
|
12 |
net-wireless/ndiswrapper/Manifest | 1 - |
13 |
.../files/ndiswrapper-1.59-cflags.patch | 13 -- |
14 |
.../files/ndiswrapper-1.61-kernel-4.11.patch | 55 ------ |
15 |
.../files/ndiswrapper-1.61-kernel-4.13.patch | 27 --- |
16 |
.../files/ndiswrapper-1.61-kernel-4.15.patch | 199 --------------------- |
17 |
net-wireless/ndiswrapper/metadata.xml | 12 -- |
18 |
net-wireless/ndiswrapper/ndiswrapper-1.61.ebuild | 105 ----------- |
19 |
profiles/package.mask | 6 - |
20 |
8 files changed, 418 deletions(-) |
21 |
|
22 |
diff --git a/net-wireless/ndiswrapper/Manifest b/net-wireless/ndiswrapper/Manifest |
23 |
deleted file mode 100644 |
24 |
index f0cba5f9146..00000000000 |
25 |
--- a/net-wireless/ndiswrapper/Manifest |
26 |
+++ /dev/null |
27 |
@@ -1 +0,0 @@ |
28 |
-DIST ndiswrapper-1.61.tar.gz 202240 BLAKE2B 1b9b60bdd389bb04e56b4b2986503063c4193d78fb06e34f6c91f67d214b112f498cc8d0fdd08c372da73bde8cb9d10c893b05020d81bf35e144e64c81a24797 SHA512 67a50071a2e04113b91259e0d5236b4bf02b46a0d60ecae779c34e047f678c70b18e3191bad1435525c8499e554bd26794a03a79a71e1e603987432f4c590b43 |
29 |
|
30 |
diff --git a/net-wireless/ndiswrapper/files/ndiswrapper-1.59-cflags.patch b/net-wireless/ndiswrapper/files/ndiswrapper-1.59-cflags.patch |
31 |
deleted file mode 100644 |
32 |
index 25359c7c30c..00000000000 |
33 |
--- a/net-wireless/ndiswrapper/files/ndiswrapper-1.59-cflags.patch |
34 |
+++ /dev/null |
35 |
@@ -1,13 +0,0 @@ |
36 |
-diff --git a/utils/Makefile b/utils/Makefile |
37 |
-index 0e763c6..d555dda 100644 |
38 |
---- a/utils/Makefile |
39 |
-+++ b/utils/Makefile |
40 |
-@@ -6,7 +6,7 @@ HEADERS = $(DRIVER_DIR)/loader.h $(DRIVER_DIR)/ndiswrapper.h |
41 |
- |
42 |
- CC = gcc |
43 |
- HOSTCC = $(CC) |
44 |
--CFLAGS = -g -Wall -I$(DRIVER_DIR) |
45 |
-+CFLAGS += -I$(DRIVER_DIR) |
46 |
- |
47 |
- DISTFILES=Makefile ndiswrapper loadndisdriver.c ndiswrapper-buginfo |
48 |
- |
49 |
|
50 |
diff --git a/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.11.patch b/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.11.patch |
51 |
deleted file mode 100644 |
52 |
index f39c7bde4d2..00000000000 |
53 |
--- a/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.11.patch |
54 |
+++ /dev/null |
55 |
@@ -1,55 +0,0 @@ |
56 |
-commit fa2aeeccd5366378ca2eb83c6daee64b511fe792 |
57 |
-Author: Felix Yan <felixonmars@×××××××××.org> |
58 |
-Date: Tue May 16 01:32:56 2017 +0800 |
59 |
- |
60 |
- Add support for Linux 4.11+ |
61 |
- |
62 |
-diff --git a/ndiswrapper/driver/ndis.c b/ndiswrapper/driver/ndis.c |
63 |
-index c1913a05..2ab4dd21 100644 |
64 |
---- a/driver/ndis.c |
65 |
-+++ b/driver/ndis.c |
66 |
-@@ -2258,7 +2258,9 @@ wstdcall void NdisMIndicateReceivePacket(struct ndis_mp_block *nmb, |
67 |
- WARNING("empty packet ignored"); |
68 |
- continue; |
69 |
- } |
70 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) |
71 |
- wnd->net_dev->last_rx = jiffies; |
72 |
-+#endif |
73 |
- /* get total number of bytes in packet */ |
74 |
- NdisGetFirstBufferFromPacketSafe(packet, &buffer, &virt, |
75 |
- &length, &total_length, |
76 |
-@@ -2346,7 +2348,9 @@ wstdcall void EthRxIndicateHandler(struct ndis_mp_block *nmb, void *rx_ctx, |
77 |
- ERROR("nmb is NULL"); |
78 |
- EXIT3(return); |
79 |
- } |
80 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) |
81 |
- wnd->net_dev->last_rx = jiffies; |
82 |
-+#endif |
83 |
- |
84 |
- if (look_ahead_size < packet_size) { |
85 |
- struct ndis_packet *packet; |
86 |
-@@ -2461,7 +2465,9 @@ wstdcall void NdisMTransferDataComplete(struct ndis_mp_block *nmb, |
87 |
- WARNING("illegal packet"); |
88 |
- EXIT3(return); |
89 |
- } |
90 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) |
91 |
- wnd->net_dev->last_rx = jiffies; |
92 |
-+#endif |
93 |
- oob_data = NDIS_PACKET_OOB_DATA(packet); |
94 |
- skb_size = sizeof(oob_data->header) + oob_data->look_ahead_size + |
95 |
- bytes_txed; |
96 |
-diff --git a/ndiswrapper/driver/ntoskernel.h b/ndiswrapper/driver/ntoskernel.h |
97 |
-index 3c4c6ff0..f1c52e51 100644 |
98 |
---- a/driver/ntoskernel.h |
99 |
-+++ b/driver/ntoskernel.h |
100 |
-@@ -296,6 +296,10 @@ static inline void (INIT_WORK)(struct work_struct *work, work_func_t func) |
101 |
- #define add_taint(flag, lockdep_ok) add_taint(flag) |
102 |
- #endif |
103 |
- |
104 |
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) |
105 |
-+#include <linux/sched/signal.h> |
106 |
-+#endif |
107 |
-+ |
108 |
- #include "winnt_types.h" |
109 |
- #include "ndiswrapper.h" |
110 |
- #include "pe_linker.h" |
111 |
|
112 |
diff --git a/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.13.patch b/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.13.patch |
113 |
deleted file mode 100644 |
114 |
index 052c4d9b9bf..00000000000 |
115 |
--- a/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.13.patch |
116 |
+++ /dev/null |
117 |
@@ -1,27 +0,0 @@ |
118 |
-commit eeac7ab831b3097005dadc64dd323f54ade30323 |
119 |
-Author: Felix Yan <felixonmars@×××××××××.org> |
120 |
-Date: Mon Sep 11 12:52:36 2017 +0800 |
121 |
- |
122 |
- Add support for linux 4.13+ |
123 |
- |
124 |
-diff --git a/ndiswrapper/driver/ntoskernel.h b/ndiswrapper/driver/ntoskernel.h |
125 |
-index f1c52e51..1422bd4d 100644 |
126 |
---- a/driver/ntoskernel.h |
127 |
-+++ b/driver/ntoskernel.h |
128 |
-@@ -119,9 +119,16 @@ static cpumask_t cpumasks[NR_CPUS]; |
129 |
- */ |
130 |
- #include <asm/dma-mapping.h> |
131 |
- |
132 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 13, 0) |
133 |
- #define PCI_DMA_ALLOC_COHERENT(pci_dev,size,dma_handle) \ |
134 |
- dma_alloc_coherent(&pci_dev->dev,size,dma_handle, \ |
135 |
- GFP_KERNEL | __GFP_REPEAT) |
136 |
-+#else |
137 |
-+#define PCI_DMA_ALLOC_COHERENT(pci_dev,size,dma_handle) \ |
138 |
-+ dma_alloc_coherent(&pci_dev->dev,size,dma_handle, \ |
139 |
-+ GFP_KERNEL | __GFP_RETRY_MAYFAIL) |
140 |
-+#endif |
141 |
-+ |
142 |
- #define PCI_DMA_FREE_COHERENT(pci_dev,size,cpu_addr,dma_handle) \ |
143 |
- dma_free_coherent(&pci_dev->dev,size,cpu_addr,dma_handle) |
144 |
- #define PCI_DMA_MAP_SINGLE(pci_dev,addr,size,direction) \ |
145 |
|
146 |
diff --git a/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.15.patch b/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.15.patch |
147 |
deleted file mode 100644 |
148 |
index 8e87ece0364..00000000000 |
149 |
--- a/net-wireless/ndiswrapper/files/ndiswrapper-1.61-kernel-4.15.patch |
150 |
+++ /dev/null |
151 |
@@ -1,199 +0,0 @@ |
152 |
-From: Seth Forshee <seth.forshee@×××××××××.com> |
153 |
-Date: Wed, 13 Dec 2017 15:53:31 -0600 |
154 |
-Subject: [PATCH] Build fixes for Linux 4.15 |
155 |
- |
156 |
-Fixes two build issues for 4.15: |
157 |
- |
158 |
- - init_timer() was eliminated in 4.15, and all callers were |
159 |
- converted to using timer_setup(). The callback prototype has |
160 |
- also changed to pass a timer_list argument instead of callback |
161 |
- data, and from_timer() must be used to get to the object in |
162 |
- which the timer is embedded. |
163 |
- |
164 |
- - usb_get_status() was changed to take an additional argument, |
165 |
- and usb_get_std_status() was added as a wrapper for callers to |
166 |
- use as a replacment. Call the wrapper in 4.15 and later. |
167 |
- |
168 |
-LP: #1737749 |
169 |
---- |
170 |
- driver/ntoskernel.c | 19 ++++++++++++++++++- |
171 |
- driver/usb.c | 10 ++++++++-- |
172 |
- driver/wrapndis.c | 28 ++++++++++++++++++++++++++++ |
173 |
- 3 files changed, 54 insertions(+), 3 deletions(-) |
174 |
- |
175 |
-diff --git a/driver/ntoskernel.c b/driver/ntoskernel.c |
176 |
-index 4fe0dc1..156c688 100644 |
177 |
---- a/driver/ntoskernel.c |
178 |
-+++ b/driver/ntoskernel.c |
179 |
-@@ -77,7 +77,6 @@ u64 wrap_ticks_to_boot; |
180 |
- #if defined(CONFIG_X86_64) |
181 |
- static struct timer_list shared_data_timer; |
182 |
- struct kuser_shared_data kuser_shared_data; |
183 |
--static void update_user_shared_data_proc(unsigned long data); |
184 |
- #endif |
185 |
- |
186 |
- WIN_SYMBOL_MAP("KeTickCount", &jiffies) |
187 |
-@@ -91,7 +90,11 @@ DEFINE_PER_CPU(struct irql_info, irql_info); |
188 |
- #endif |
189 |
- |
190 |
- #if defined(CONFIG_X86_64) |
191 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
192 |
- static void update_user_shared_data_proc(unsigned long data) |
193 |
-+#else |
194 |
-+static void update_user_shared_data_proc(struct timer_list *t) |
195 |
-+#endif |
196 |
- { |
197 |
- /* timer is supposed to be scheduled every 10ms, but bigger |
198 |
- * intervals seem to work (tried up to 50ms) */ |
199 |
-@@ -407,9 +410,15 @@ static void initialize_object(struct dispatcher_header *dh, enum dh_type type, |
200 |
- InitializeListHead(&dh->wait_blocks); |
201 |
- } |
202 |
- |
203 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
204 |
- static void timer_proc(unsigned long data) |
205 |
- { |
206 |
- struct wrap_timer *wrap_timer = (struct wrap_timer *)data; |
207 |
-+#else |
208 |
-+static void timer_proc(struct timer_list *t) |
209 |
-+{ |
210 |
-+ struct wrap_timer *wrap_timer = from_timer(wrap_timer, t, timer); |
211 |
-+#endif |
212 |
- struct nt_timer *nt_timer; |
213 |
- struct kdpc *kdpc; |
214 |
- |
215 |
-@@ -452,9 +461,13 @@ void wrap_init_timer(struct nt_timer *nt_timer, enum timer_type type, |
216 |
- return; |
217 |
- } |
218 |
- |
219 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
220 |
- init_timer(&wrap_timer->timer); |
221 |
- wrap_timer->timer.data = (unsigned long)wrap_timer; |
222 |
- wrap_timer->timer.function = timer_proc; |
223 |
-+#else |
224 |
-+ timer_setup(&wrap_timer->timer, timer_proc, 0); |
225 |
-+#endif |
226 |
- wrap_timer->nt_timer = nt_timer; |
227 |
- #ifdef TIMER_DEBUG |
228 |
- wrap_timer->wrap_timer_magic = WRAP_TIMER_MAGIC; |
229 |
-@@ -2559,9 +2572,13 @@ int ntoskernel_init(void) |
230 |
- #if defined(CONFIG_X86_64) |
231 |
- memset(&kuser_shared_data, 0, sizeof(kuser_shared_data)); |
232 |
- *((ULONG64 *)&kuser_shared_data.system_time) = ticks_1601(); |
233 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
234 |
- init_timer(&shared_data_timer); |
235 |
- shared_data_timer.function = update_user_shared_data_proc; |
236 |
- shared_data_timer.data = 0; |
237 |
-+#else |
238 |
-+ timer_setup(&shared_data_timer, update_user_shared_data_proc, 0); |
239 |
-+#endif |
240 |
- #endif |
241 |
- return 0; |
242 |
- } |
243 |
-diff --git a/driver/usb.c b/driver/usb.c |
244 |
-index 3e7021a..e55c2c6 100644 |
245 |
---- a/driver/usb.c |
246 |
-+++ b/driver/usb.c |
247 |
-@@ -750,6 +750,12 @@ static USBD_STATUS wrap_set_clear_feature(struct usb_device *udev, |
248 |
- USBEXIT(return NT_URB_STATUS(nt_urb)); |
249 |
- } |
250 |
- |
251 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
252 |
-+#define wrap_usb_get_status usb_get_status |
253 |
-+#else |
254 |
-+#define wrap_usb_get_status usb_get_std_status |
255 |
-+#endif |
256 |
-+ |
257 |
- static USBD_STATUS wrap_get_status_request(struct usb_device *udev, |
258 |
- struct irp *irp) |
259 |
- { |
260 |
-@@ -776,8 +782,8 @@ static USBD_STATUS wrap_get_status_request(struct usb_device *udev, |
261 |
- return NT_URB_STATUS(nt_urb); |
262 |
- } |
263 |
- assert(status_req->transfer_buffer_length == sizeof(u16)); |
264 |
-- ret = usb_get_status(udev, type, status_req->index, |
265 |
-- status_req->transfer_buffer); |
266 |
-+ ret = wrap_usb_get_status(udev, type, status_req->index, |
267 |
-+ status_req->transfer_buffer); |
268 |
- if (ret >= 0) { |
269 |
- assert(ret <= status_req->transfer_buffer_length); |
270 |
- status_req->transfer_buffer_length = ret; |
271 |
-diff --git a/driver/wrapndis.c b/driver/wrapndis.c |
272 |
-index 870e4c2..f653440 100644 |
273 |
---- a/driver/wrapndis.c |
274 |
-+++ b/driver/wrapndis.c |
275 |
-@@ -1093,9 +1093,15 @@ send_assoc_event: |
276 |
- EXIT2(return); |
277 |
- } |
278 |
- |
279 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
280 |
- static void iw_stats_timer_proc(unsigned long data) |
281 |
- { |
282 |
- struct ndis_device *wnd = (struct ndis_device *)data; |
283 |
-+#else |
284 |
-+static void iw_stats_timer_proc(struct timer_list *t) |
285 |
-+{ |
286 |
-+ struct ndis_device *wnd = from_timer(wnd, t, iw_stats_timer); |
287 |
-+#endif |
288 |
- |
289 |
- ENTER2("%d", wnd->iw_stats_interval); |
290 |
- if (wnd->iw_stats_interval > 0) { |
291 |
-@@ -1111,8 +1117,12 @@ static void add_iw_stats_timer(struct ndis_device *wnd) |
292 |
- return; |
293 |
- if (wnd->iw_stats_interval < 0) |
294 |
- wnd->iw_stats_interval *= -1; |
295 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
296 |
- wnd->iw_stats_timer.data = (unsigned long)wnd; |
297 |
- wnd->iw_stats_timer.function = iw_stats_timer_proc; |
298 |
-+#else |
299 |
-+ timer_setup(&wnd->iw_stats_timer, iw_stats_timer_proc, 0); |
300 |
-+#endif |
301 |
- mod_timer(&wnd->iw_stats_timer, jiffies + wnd->iw_stats_interval); |
302 |
- } |
303 |
- |
304 |
-@@ -1124,9 +1134,15 @@ static void del_iw_stats_timer(struct ndis_device *wnd) |
305 |
- EXIT2(return); |
306 |
- } |
307 |
- |
308 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
309 |
- static void hangcheck_proc(unsigned long data) |
310 |
- { |
311 |
- struct ndis_device *wnd = (struct ndis_device *)data; |
312 |
-+#else |
313 |
-+static void hangcheck_proc(struct timer_list *t) |
314 |
-+{ |
315 |
-+ struct ndis_device *wnd = from_timer(wnd, t, hangcheck_timer); |
316 |
-+#endif |
317 |
- |
318 |
- ENTER3("%d", wnd->hangcheck_interval); |
319 |
- if (wnd->hangcheck_interval > 0) { |
320 |
-@@ -1147,8 +1163,12 @@ void hangcheck_add(struct ndis_device *wnd) |
321 |
- wnd->hangcheck_interval = hangcheck_interval * HZ; |
322 |
- if (wnd->hangcheck_interval < 0) |
323 |
- wnd->hangcheck_interval *= -1; |
324 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
325 |
- wnd->hangcheck_timer.data = (unsigned long)wnd; |
326 |
- wnd->hangcheck_timer.function = hangcheck_proc; |
327 |
-+#else |
328 |
-+ timer_setup(&wnd->hangcheck_timer, hangcheck_proc, 0); |
329 |
-+#endif |
330 |
- mod_timer(&wnd->hangcheck_timer, jiffies + wnd->hangcheck_interval); |
331 |
- EXIT2(return); |
332 |
- } |
333 |
-@@ -2138,9 +2158,17 @@ static NTSTATUS ndis_add_device(struct driver_object *drv_obj, |
334 |
- wnd->dma_map_count = 0; |
335 |
- wnd->dma_map_addr = NULL; |
336 |
- wnd->nick[0] = 0; |
337 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
338 |
- init_timer(&wnd->hangcheck_timer); |
339 |
-+#else |
340 |
-+ timer_setup(&wnd->hangcheck_timer, NULL, 0); |
341 |
-+#endif |
342 |
- wnd->scan_timestamp = 0; |
343 |
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,15,0) |
344 |
- init_timer(&wnd->iw_stats_timer); |
345 |
-+#else |
346 |
-+ timer_setup(&wnd->iw_stats_timer, NULL, 0); |
347 |
-+#endif |
348 |
- wnd->iw_stats_interval = 10 * HZ; |
349 |
- wnd->ndis_pending_work = 0; |
350 |
- memset(&wnd->essid, 0, sizeof(wnd->essid)); |
351 |
|
352 |
diff --git a/net-wireless/ndiswrapper/metadata.xml b/net-wireless/ndiswrapper/metadata.xml |
353 |
deleted file mode 100644 |
354 |
index 446cae60518..00000000000 |
355 |
--- a/net-wireless/ndiswrapper/metadata.xml |
356 |
+++ /dev/null |
357 |
@@ -1,12 +0,0 @@ |
358 |
-<?xml version="1.0" encoding="UTF-8"?> |
359 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
360 |
-<pkgmetadata> |
361 |
- <!--maintainer-needed--> |
362 |
- <longdescription lang="en">ndiswrapper provides a kernel module and utility for |
363 |
- implementing the Windows(tm) NDIS API. This serves to provide drivers |
364 |
- for wireless cards that have no native support. |
365 |
- </longdescription> |
366 |
- <upstream> |
367 |
- <remote-id type="sourceforge">ndiswrapper</remote-id> |
368 |
- </upstream> |
369 |
-</pkgmetadata> |
370 |
|
371 |
diff --git a/net-wireless/ndiswrapper/ndiswrapper-1.61.ebuild b/net-wireless/ndiswrapper/ndiswrapper-1.61.ebuild |
372 |
deleted file mode 100644 |
373 |
index b815a61fcb1..00000000000 |
374 |
--- a/net-wireless/ndiswrapper/ndiswrapper-1.61.ebuild |
375 |
+++ /dev/null |
376 |
@@ -1,105 +0,0 @@ |
377 |
-# Copyright 1999-2018 Gentoo Authors |
378 |
-# Distributed under the terms of the GNU General Public License v2 |
379 |
- |
380 |
-EAPI=7 |
381 |
-inherit linux-mod readme.gentoo-r1 toolchain-funcs |
382 |
- |
383 |
-DESCRIPTION="Wrapper for using Windows drivers for some wireless cards" |
384 |
-HOMEPAGE="http://ndiswrapper.sourceforge.net/" |
385 |
-SRC_URI="mirror://sourceforge/${PN}/stable/${P}.tar.gz" |
386 |
- |
387 |
-LICENSE="GPL-2" |
388 |
-KEYWORDS="amd64 x86" |
389 |
-IUSE="debug usb" |
390 |
- |
391 |
-DEPEND="sys-apps/pciutils" |
392 |
-RDEPEND="${DEPEND} |
393 |
- net-wireless/wireless-tools |
394 |
-" |
395 |
- |
396 |
-DOC_CONTENTS=" |
397 |
- NDISwrapper requires .inf and .sys files from a Windows(tm) driver |
398 |
- to function. Download these to /root for example, then |
399 |
- run 'ndiswrapper -i /root/foo.inf'. After that you can delete them. |
400 |
- They will be copied to /etc/ndiswrapper/. Once done, please run 'update-modules'. |
401 |
- Please look at http://ndiswrapper.sourceforge.net/for the FAQ, HowTos, tips, |
402 |
- configuration, and installation information. |
403 |
-" |
404 |
- |
405 |
-PATCHES=( |
406 |
- "${FILESDIR}"/${PN}-1.59-cflags.patch |
407 |
- "${FILESDIR}"/${PN}-1.61-kernel-4.11.patch |
408 |
- "${FILESDIR}"/${PN}-1.61-kernel-4.13.patch |
409 |
- "${FILESDIR}"/${PN}-1.61-kernel-4.15.patch |
410 |
-) |
411 |
- |
412 |
-MODULE_NAMES="ndiswrapper(misc:${S}/driver)" |
413 |
-BUILD_TARGETS="all" |
414 |
-MODULESD_NDISWRAPPER_ALIASES=("wlan0 ndiswrapper") |
415 |
- |
416 |
-pkg_pretend() { |
417 |
- CONFIG_CHECK="~WEXT_PRIV" |
418 |
- use usb && CONFIG_CHECK="${CONFIG_CHECK} ~USB" |
419 |
- ERROR_USB="You need to enable USB support in your kernel to use usb support in ndiswrapper." |
420 |
- 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" |
421 |
- linux-mod_pkg_setup |
422 |
-} |
423 |
- |
424 |
-src_compile() { |
425 |
- local params |
426 |
- |
427 |
- # Enable verbose debugging information |
428 |
- if use debug; then |
429 |
- params="DEBUG=3" |
430 |
- use usb && params="${params} USB_DEBUG=1" |
431 |
- fi |
432 |
- |
433 |
- cd utils |
434 |
- emake CC=$(tc-getCC) |
435 |
- |
436 |
- use usb || params="${params} DISABLE_USB=1" |
437 |
- |
438 |
- BUILD_PARAMS="KSRC=${KV_DIR} KVERS=${KV_FULL} KBUILD='${KV_OUT_DIR}' ${params}" |
439 |
- linux-mod_src_compile |
440 |
-} |
441 |
- |
442 |
-src_install() { |
443 |
- einstalldocs |
444 |
- doman ndiswrapper.8 |
445 |
- |
446 |
- keepdir /etc/ndiswrapper |
447 |
- |
448 |
- linux-mod_src_install |
449 |
- |
450 |
- cd utils |
451 |
- emake DESTDIR="${D}" install |
452 |
- readme.gentoo_create_doc |
453 |
-} |
454 |
- |
455 |
-pkg_postinst() { |
456 |
- linux-mod_pkg_postinst |
457 |
- |
458 |
- readme.gentoo_print_elog |
459 |
- |
460 |
- for i in $(lspci -n | egrep '(0280|0200):' | cut -d' ' -f1) |
461 |
- do |
462 |
- i_desc=$(lspci -nn | grep "$i" | awk -F': ' '{print $2}' | awk -F'[' '{print $1}') |
463 |
- if [[ -n "${i_desc}" ]] ; then |
464 |
- elog "Possible hardware: ${i_desc}" |
465 |
- fi |
466 |
- done |
467 |
- |
468 |
- if [[ ${ROOT} == "/" ]]; then |
469 |
- |
470 |
- einfo "Attempting to automatically reinstall any Windows drivers" |
471 |
- einfo "you might already have." |
472 |
- echo |
473 |
- |
474 |
- local driver |
475 |
- for driver in $(ls /etc/ndiswrapper) ; do |
476 |
- einfo "Driver: ${driver}" |
477 |
- mv "/etc/ndiswrapper/${driver}" "${T}" |
478 |
- ndiswrapper -i "${T}/${driver}/${driver}.inf" |
479 |
- done |
480 |
- fi |
481 |
-} |
482 |
|
483 |
diff --git a/profiles/package.mask b/profiles/package.mask |
484 |
index 0c4b9b07341..a1baa7bbc6e 100644 |
485 |
--- a/profiles/package.mask |
486 |
+++ b/profiles/package.mask |
487 |
@@ -706,12 +706,6 @@ sci-astronomy/casacore |
488 |
# Removal in 30 days. Bug #602024. |
489 |
app-laptop/nvidiabl |
490 |
|
491 |
-# Michał Górny <mgorny@g.o> (2019-12-05) |
492 |
-# Unmaintained since 2016. Last touched in 2018. Pending bump since |
493 |
-# Feb 2019. Does not build anymore. |
494 |
-# Removal in 30 days. Bug #695580. |
495 |
-net-wireless/ndiswrapper |
496 |
- |
497 |
# Michał Górny <mgorny@g.o> (2019-12-01) |
498 |
# Added in 2013 and not updated since. Unmaintained upstream since |
499 |
# inception. Never had any keywords. |