[arch-commits] Commit in ndiswrapper/repos (8 files)

Tobias Powalowski tpowa at nymeria.archlinux.org
Sun May 26 11:40:18 EDT 2013


    Date: Sunday, May 26, 2013 @ 17:40:18
  Author: tpowa
Revision: 91717

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  ndiswrapper/repos/community-testing-i686/
  ndiswrapper/repos/community-testing-i686/PKGBUILD
    (from rev 91716, ndiswrapper/trunk/PKGBUILD)
  ndiswrapper/repos/community-testing-i686/ndiswrapper-1.58-add_taint.patch
    (from rev 91716, ndiswrapper/trunk/ndiswrapper-1.58-add_taint.patch)
  ndiswrapper/repos/community-testing-i686/ndiswrapper.install
    (from rev 91716, ndiswrapper/trunk/ndiswrapper.install)
  ndiswrapper/repos/community-testing-x86_64/
  ndiswrapper/repos/community-testing-x86_64/PKGBUILD
    (from rev 91716, ndiswrapper/trunk/PKGBUILD)
  ndiswrapper/repos/community-testing-x86_64/ndiswrapper-1.58-add_taint.patch
    (from rev 91716, ndiswrapper/trunk/ndiswrapper-1.58-add_taint.patch)
  ndiswrapper/repos/community-testing-x86_64/ndiswrapper.install
    (from rev 91716, ndiswrapper/trunk/ndiswrapper.install)

-----------------------------------------------------------+
 community-testing-i686/PKGBUILD                           |   56 ++++++++++++
 community-testing-i686/ndiswrapper-1.58-add_taint.patch   |   24 +++++
 community-testing-i686/ndiswrapper.install                |   17 +++
 community-testing-x86_64/PKGBUILD                         |   56 ++++++++++++
 community-testing-x86_64/ndiswrapper-1.58-add_taint.patch |   24 +++++
 community-testing-x86_64/ndiswrapper.install              |   17 +++
 6 files changed, 194 insertions(+)

Copied: ndiswrapper/repos/community-testing-i686/PKGBUILD (from rev 91716, ndiswrapper/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-05-26 15:40:18 UTC (rev 91717)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer:  Thorsten Töpper <atsutane-tu at freethoughts.de>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+_extramodules=extramodules-3.9-ARCH
+pkgname=ndiswrapper
+pkgver=1.58
+pkgrel=10
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors."
+license=('GPL')
+arch=('i686' 'x86_64')
+url="http://ndiswrapper.sourceforge.net"
+install=ndiswrapper.install
+depends=('linux>=3.9' 'linux<3.10' 'wireless_tools' 'perl')
+makedepends=('linux-headers')
+provides=("$pkgname-utils" "$pkgname-bin")
+replaces=("$pkgname-utils" "$pkgname-bin")
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+        ndiswrapper-1.58-add_taint.patch)
+options=('!strip')
+sha1sums=('a256812b3136648ed93e04146d2276a3ca70957c'
+          'f2c8bd7553f87a647b2e221b01fbd5d0d07eff8c')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  # https://bugs.gentoo.org/show_bug.cgi?id=467956 3.9 kernels
+  patch -Np1 -i "$srcdir/ndiswrapper-1.58-add_taint.patch"
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  _kver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  # modinfo path fix
+  sed -i "/modinfo/s/s/usr\//" driver/Makefile
+
+  # make sure we point to the right build directory
+  sed -i "/^KBUILD/ s,.*,KBUILD = $(readlink -f /usr/lib/modules/$_kver/build)," driver/Makefile
+
+  make KVERS=$_kver
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  _kver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  make INST_DIR="usr/lib/modules/$_extramodules" \
+    KVERS=$_kver DESTDIR="$pkgdir/" install
+
+  gzip "$pkgdir/usr/lib/modules/$_extramodules/$pkgname.ko"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ndiswrapper/repos/community-testing-i686/ndiswrapper-1.58-add_taint.patch (from rev 91716, ndiswrapper/trunk/ndiswrapper-1.58-add_taint.patch)
===================================================================
--- community-testing-i686/ndiswrapper-1.58-add_taint.patch	                        (rev 0)
+++ community-testing-i686/ndiswrapper-1.58-add_taint.patch	2013-05-26 15:40:18 UTC (rev 91717)
@@ -0,0 +1,24 @@
+diff -ur ndiswrapper-1.58.orig/driver/loader.c ndiswrapper-1.58/driver/loader.c
+--- ndiswrapper-1.58.orig/driver/loader.c	2013-05-01 09:48:34.910000000 +0900
++++ ndiswrapper-1.58/driver/loader.c	2013-05-01 09:48:59.870000000 +0900
+@@ -575,7 +575,7 @@
+ 	} else {
+ 		printk(KERN_INFO "%s: driver %s (%s) loaded\n",
+ 		       DRIVER_NAME, wrap_driver->name, wrap_driver->version);
+-		add_taint(TAINT_PROPRIETARY_MODULE);
++		add_taint(TAINT_PROPRIETARY_MODULE, LOCKDEP_STILL_OK);
+ 		EXIT1(return 0);
+ 	}
+ }
+diff -ur ndiswrapper-1.58.orig/driver/wrapper.c ndiswrapper-1.58/driver/wrapper.c
+--- ndiswrapper-1.58.orig/driver/wrapper.c	2013-02-20 03:00:37.000000000 +0900
++++ ndiswrapper-1.58/driver/wrapper.c	2013-05-01 09:54:30.140000000 +0900
+@@ -72,7 +72,7 @@
+ static int __init wrapper_init(void)
+ {
+ #ifdef TAINT_OOT_MODULE
+-	add_taint(TAINT_OOT_MODULE);
++	add_taint(TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
+ #endif
+ 	printk(KERN_INFO "%s version %s loaded (smp=%s, preempt=%s)\n",
+ 	       DRIVER_NAME, DRIVER_VERSION,

Copied: ndiswrapper/repos/community-testing-i686/ndiswrapper.install (from rev 91716, ndiswrapper/trunk/ndiswrapper.install)
===================================================================
--- community-testing-i686/ndiswrapper.install	                        (rev 0)
+++ community-testing-i686/ndiswrapper.install	2013-05-26 15:40:18 UTC (rev 91717)
@@ -0,0 +1,17 @@
+post_install()
+{
+  post_upgrade
+}
+
+post_upgrade()
+{
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove()
+{
+  post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ndiswrapper/repos/community-testing-x86_64/PKGBUILD (from rev 91716, ndiswrapper/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-05-26 15:40:18 UTC (rev 91717)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer:  Thorsten Töpper <atsutane-tu at freethoughts.de>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+
+_extramodules=extramodules-3.9-ARCH
+pkgname=ndiswrapper
+pkgver=1.58
+pkgrel=10
+pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors."
+license=('GPL')
+arch=('i686' 'x86_64')
+url="http://ndiswrapper.sourceforge.net"
+install=ndiswrapper.install
+depends=('linux>=3.9' 'linux<3.10' 'wireless_tools' 'perl')
+makedepends=('linux-headers')
+provides=("$pkgname-utils" "$pkgname-bin")
+replaces=("$pkgname-utils" "$pkgname-bin")
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
+        ndiswrapper-1.58-add_taint.patch)
+options=('!strip')
+sha1sums=('a256812b3136648ed93e04146d2276a3ca70957c'
+          'f2c8bd7553f87a647b2e221b01fbd5d0d07eff8c')
+
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+  # https://bugs.gentoo.org/show_bug.cgi?id=467956 3.9 kernels
+  patch -Np1 -i "$srcdir/ndiswrapper-1.58-add_taint.patch"
+}
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  _kver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  # modinfo path fix
+  sed -i "/modinfo/s/s/usr\//" driver/Makefile
+
+  # make sure we point to the right build directory
+  sed -i "/^KBUILD/ s,.*,KBUILD = $(readlink -f /usr/lib/modules/$_kver/build)," driver/Makefile
+
+  make KVERS=$_kver
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  _kver="$(cat /usr/lib/modules/${_extramodules}/version)"
+
+  make INST_DIR="usr/lib/modules/$_extramodules" \
+    KVERS=$_kver DESTDIR="$pkgdir/" install
+
+  gzip "$pkgdir/usr/lib/modules/$_extramodules/$pkgname.ko"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: ndiswrapper/repos/community-testing-x86_64/ndiswrapper-1.58-add_taint.patch (from rev 91716, ndiswrapper/trunk/ndiswrapper-1.58-add_taint.patch)
===================================================================
--- community-testing-x86_64/ndiswrapper-1.58-add_taint.patch	                        (rev 0)
+++ community-testing-x86_64/ndiswrapper-1.58-add_taint.patch	2013-05-26 15:40:18 UTC (rev 91717)
@@ -0,0 +1,24 @@
+diff -ur ndiswrapper-1.58.orig/driver/loader.c ndiswrapper-1.58/driver/loader.c
+--- ndiswrapper-1.58.orig/driver/loader.c	2013-05-01 09:48:34.910000000 +0900
++++ ndiswrapper-1.58/driver/loader.c	2013-05-01 09:48:59.870000000 +0900
+@@ -575,7 +575,7 @@
+ 	} else {
+ 		printk(KERN_INFO "%s: driver %s (%s) loaded\n",
+ 		       DRIVER_NAME, wrap_driver->name, wrap_driver->version);
+-		add_taint(TAINT_PROPRIETARY_MODULE);
++		add_taint(TAINT_PROPRIETARY_MODULE, LOCKDEP_STILL_OK);
+ 		EXIT1(return 0);
+ 	}
+ }
+diff -ur ndiswrapper-1.58.orig/driver/wrapper.c ndiswrapper-1.58/driver/wrapper.c
+--- ndiswrapper-1.58.orig/driver/wrapper.c	2013-02-20 03:00:37.000000000 +0900
++++ ndiswrapper-1.58/driver/wrapper.c	2013-05-01 09:54:30.140000000 +0900
+@@ -72,7 +72,7 @@
+ static int __init wrapper_init(void)
+ {
+ #ifdef TAINT_OOT_MODULE
+-	add_taint(TAINT_OOT_MODULE);
++	add_taint(TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
+ #endif
+ 	printk(KERN_INFO "%s version %s loaded (smp=%s, preempt=%s)\n",
+ 	       DRIVER_NAME, DRIVER_VERSION,

Copied: ndiswrapper/repos/community-testing-x86_64/ndiswrapper.install (from rev 91716, ndiswrapper/trunk/ndiswrapper.install)
===================================================================
--- community-testing-x86_64/ndiswrapper.install	                        (rev 0)
+++ community-testing-x86_64/ndiswrapper.install	2013-05-26 15:40:18 UTC (rev 91717)
@@ -0,0 +1,17 @@
+post_install()
+{
+  post_upgrade
+}
+
+post_upgrade()
+{
+  EXTRAMODULES='extramodules-3.9-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove()
+{
+  post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list