diff options
Diffstat (limited to '')
-rw-r--r-- | network/ndiswrapper-kernel/README | 11 | ||||
-rw-r--r-- | network/ndiswrapper-kernel/doinst.sh | 2 | ||||
-rw-r--r-- | network/ndiswrapper-kernel/kernel-3.14.patch | 53 | ||||
-rw-r--r-- | network/ndiswrapper-kernel/kernel-4.0.patch | 41 | ||||
-rw-r--r-- | network/ndiswrapper-kernel/ndiswrapper-kernel.SlackBuild | 97 | ||||
-rw-r--r-- | network/ndiswrapper-kernel/ndiswrapper-kernel.info | 10 | ||||
-rw-r--r-- | network/ndiswrapper-kernel/slack-desc | 19 |
7 files changed, 0 insertions, 233 deletions
diff --git a/network/ndiswrapper-kernel/README b/network/ndiswrapper-kernel/README deleted file mode 100644 index 209ae57a95..0000000000 --- a/network/ndiswrapper-kernel/README +++ /dev/null @@ -1,11 +0,0 @@ -ndiswrapper-kernel (kernel module for NDIS drivers) - -Some vendors do not release specifications of the hardware or -providea linux driver for their wireless network cards. This -project provides a linux kernel module that loads and runs NDIS -(Windows network driver API) drivers supplied by the vendors. - -If you'd like to build the module for a kernel that isn't currently -running on the system, you should be able to pass that kernel's -"uname -r" output on the command line as the value of KERNEL, as in: - KERNEL=3.12.2 ./ndiswrapper.SlackBuild diff --git a/network/ndiswrapper-kernel/doinst.sh b/network/ndiswrapper-kernel/doinst.sh deleted file mode 100644 index 2d24f838c4..0000000000 --- a/network/ndiswrapper-kernel/doinst.sh +++ /dev/null @@ -1,2 +0,0 @@ -chroot . /sbin/depmod -a @VERSION@ - diff --git a/network/ndiswrapper-kernel/kernel-3.14.patch b/network/ndiswrapper-kernel/kernel-3.14.patch deleted file mode 100644 index cc40e5c87c..0000000000 --- a/network/ndiswrapper-kernel/kernel-3.14.patch +++ /dev/null @@ -1,53 +0,0 @@ -Description: Kernel 3.14 changes - -This is a diff consisting of upstream revisions 3199, 3201, 3203. - -* Use prandom_seed() instead of net_srandom() on Linux 3.8+ -net_srandom() is going away. - -* Avoid preempt_enable_no_resched(), it's no longer available for modules -Use preempt_enable() instead. This makes nt_spin_unlock_irqrestore() -fully complementary to nt_spin_lock_irqsave(). - -* Define reinit_completion() based on the kernel version -Checking for INIT_COMPLETION was a temporary hack needed before Linux -3.13-rc1 was released. - -The last patch might not be really related to kernel 3.14, but is included -as well. - -Origin: upstream, http://sourceforge.net/p/ndiswrapper/code/ - ---- a/driver/crt.c -+++ b/driver/crt.c -@@ -467,7 +467,7 @@ noregparm int WIN_FUNC(_win_memcmp,3) - noregparm void WIN_FUNC(_win_srand,1) - (UINT seed) - { -- net_srandom(seed); -+ prandom_seed((__force u32)(seed)); - } - - noregparm int WIN_FUNC(rand,0) ---- a/driver/ntoskernel.h -+++ b/driver/ntoskernel.h -@@ -347,7 +347,7 @@ static inline void netif_poll_disable(st - #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); -@@ -797,9 +797,8 @@ do { \ - #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) diff --git a/network/ndiswrapper-kernel/kernel-4.0.patch b/network/ndiswrapper-kernel/kernel-4.0.patch deleted file mode 100644 index 97ef75d3ed..0000000000 --- a/network/ndiswrapper-kernel/kernel-4.0.patch +++ /dev/null @@ -1,41 +0,0 @@ -From: Julian Andres Klode <jak@debian.org> -Date: Tue, 12 May 2015 17:11:11 +0200 -Subject: Support kernel 4.0 - ---- - driver/ndis.c | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/driver/ndis.c b/driver/ndis.c -index 9ace34b..fafd2e7 100644 ---- 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; diff --git a/network/ndiswrapper-kernel/ndiswrapper-kernel.SlackBuild b/network/ndiswrapper-kernel/ndiswrapper-kernel.SlackBuild deleted file mode 100644 index 0f59df1f70..0000000000 --- a/network/ndiswrapper-kernel/ndiswrapper-kernel.SlackBuild +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/sh - -# Slackware build script for ndiswrapper - -# Copyright 2007 Martin Lefebvre <dadexter@sekurity.com> -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# Maintained by Robby Workman <rworkman@slackbuilds.org> now - -PRGNAM=ndiswrapper-kernel -BUILD=${BUILD:-1} -VERSION=${VERSION:-1.59} -TAG=${TAG:-_SBo} - -KERNEL=${KERNEL:-$(uname -r)} - -SRCNAM=ndiswrapper - -PKG_VERSION=${VERSION}_$(printf $KERNEL | tr - _) - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - # kernel modules can't be compiled with -fPIC - SLKCFLAGS="-O2" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -cd $SRCNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# Fixes for recent kernels (thanks to Arch) -patch -p1 < $CWD/kernel-3.14.patch -patch -p1 < $CWD/kernel-4.0.patch - -EXTRA_CFLAGS="$SLKCFLAGS" \ -make -C driver KVERS=$KERNEL V=1 -make install -C driver KVERS=$KERNEL DESTDIR=$PKG - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -sed "s%@VERSION@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-${PKG_VERSION}-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/ndiswrapper-kernel/ndiswrapper-kernel.info b/network/ndiswrapper-kernel/ndiswrapper-kernel.info deleted file mode 100644 index d1d7ab5c05..0000000000 --- a/network/ndiswrapper-kernel/ndiswrapper-kernel.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="ndiswrapper-kernel" -VERSION="1.59" -HOMEPAGE="http://sourceforge.net/projects/ndiswrapper/" -DOWNLOAD="http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.59.tar.gz" -MD5SUM="e26a7213468ccd6b0bb4c211c7aadeaa" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Robby Workman" -EMAIL="rworkman@slackbuilds.org" diff --git a/network/ndiswrapper-kernel/slack-desc b/network/ndiswrapper-kernel/slack-desc deleted file mode 100644 index 587628c0f0..0000000000 --- a/network/ndiswrapper-kernel/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -ndiswrapper-kernel: ndiswrapper-kernel (kernel module for NDIS drivers) -ndiswrapper-kernel: -ndiswrapper-kernel: Some vendors do not release specifications of the hardware or -ndiswrapper-kernel: providea linux driver for their wireless network cards. This -ndiswrapper-kernel: project provides a linux kernel module that loads and runs NDIS -ndiswrapper-kernel: (Windows network driver API) drivers supplied by the vendors. -ndiswrapper-kernel: -ndiswrapper-kernel: -ndiswrapper-kernel: -ndiswrapper-kernel: -ndiswrapper-kernel: |