Merge pull request #47998 from dingxiangfei2009/ndiswrapper
NDISWrapper
This commit is contained in:
commit
2d38bc682b
@ -1,7 +1,10 @@
|
||||
{ stdenv, fetchurl, kernel, perl, kmod }:
|
||||
|
||||
{ stdenv, fetchFromGitHub, kernel, perl, kmod, libelf }:
|
||||
let
|
||||
version = "1.62-pre";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "ndiswrapper-1.59-${kernel.version}";
|
||||
name = "ndiswrapper-${version}-${kernel.version}";
|
||||
inherit version;
|
||||
|
||||
hardeningDisable = [ "pic" ];
|
||||
|
||||
@ -11,6 +14,7 @@ stdenv.mkDerivation {
|
||||
kernel = kernel.dev;
|
||||
|
||||
buildPhase = "
|
||||
cd ndiswrapper
|
||||
echo make KBUILD=$(echo \$kernel/lib/modules/*/build);
|
||||
echo -n $kernel/lib/modules/*/build > kbuild_path
|
||||
export PATH=${kmod}/sbin:$PATH
|
||||
@ -27,17 +31,19 @@ stdenv.mkDerivation {
|
||||
'';
|
||||
|
||||
# should we use unstable?
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/ndiswrapper/ndiswrapper-1.59.tar.gz;
|
||||
sha256 = "1g6lynccyg4m7gd7vhy44pypsn8ifmibq6rqgvc672pwngzx79b6";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgiri";
|
||||
repo = "ndiswrapper";
|
||||
rev = "f4d16afb29ab04408d02e38d4ea1148807778e21";
|
||||
sha256 = "0iaw0vhchmqf1yh14v4a6whnbg4sx1hag8a4hrsh4fzgw9fx0ij4";
|
||||
};
|
||||
|
||||
buildInputs = [ perl ];
|
||||
buildInputs = [ perl libelf ];
|
||||
|
||||
meta = {
|
||||
description = "Ndis driver wrapper for the Linux kernel";
|
||||
homepage = https://sourceforge.net/projects/ndiswrapper;
|
||||
license = "GPL";
|
||||
broken = true;
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
diff -Naur ndiswrapper-1.59-orig/driver/Makefile ndiswrapper-1.59/driver/Makefile
|
||||
--- ndiswrapper-1.59-orig/driver/Makefile 2013-11-28 14:42:35.000000000 -0500
|
||||
+++ ndiswrapper-1.59/driver/Makefile 2014-01-04 18:31:43.242377375 -0500
|
||||
@@ -191,7 +191,7 @@
|
||||
diff --git a/ndiswrapper/driver/Makefile b/ndiswrapper/driver/Makefile
|
||||
index bf42f7bc..ad23aa2d 100644
|
||||
--- a/ndiswrapper/driver/Makefile
|
||||
+++ b/ndiswrapper/driver/Makefile
|
||||
@@ -191,7 +191,7 @@ clean:
|
||||
rm -rf .tmp_versions
|
||||
|
||||
install: config_check $(MODULE)
|
||||
|
Loading…
Reference in New Issue
Block a user