wok rev 20396
Fix nvidia-173xx
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 25 16:12:29 2018 +0200 (2018-06-25) |
parents | bb88d5d1c8fb |
children | cb426389dd18 |
files | ndiswrapper-driver/receipt ndiswrapper-driver64/receipt nvidia-173xx/receipt |
line diff
1.1 --- a/ndiswrapper-driver/receipt Mon Jun 25 13:36:38 2018 +0200 1.2 +++ b/ndiswrapper-driver/receipt Mon Jun 25 16:12:29 2018 +0200 1.3 @@ -34,3 +34,14 @@ 1.4 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \ 1.5 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz 1.6 } 1.7 + 1.8 +# Post install/remove commands for Tazpkg. 1.9 +post_install() 1.10 +{ 1.11 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.12 +} 1.13 + 1.14 +post_remove() 1.15 +{ 1.16 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.17 +}
2.1 --- a/ndiswrapper-driver64/receipt Mon Jun 25 13:36:38 2018 +0200 2.2 +++ b/ndiswrapper-driver64/receipt Mon Jun 25 16:12:29 2018 +0200 2.3 @@ -37,3 +37,14 @@ 2.4 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \ 2.5 $fs/lib/modules/${kvers}-slitaz64/kernel/misc/ndiswrapper.ko.xz 2.6 } 2.7 + 2.8 +# Post install/remove commands for Tazpkg. 2.9 +post_install() 2.10 +{ 2.11 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 2.12 +} 2.13 + 2.14 +post_remove() 2.15 +{ 2.16 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 2.17 +}
3.1 --- a/nvidia-173xx/receipt Mon Jun 25 13:36:38 2018 +0200 3.2 +++ b/nvidia-173xx/receipt Mon Jun 25 16:12:29 2018 +0200 3.3 @@ -22,6 +22,7 @@ 3.4 compile_rules() 3.5 { 3.6 cd $src/usr/src/nv/ 3.7 + sed -i 's|.*utsname.*|&\n#include <linux/acpi.h>|' nv-linux.h 3.8 sed -i 's|uname -m|echo i486|' Makefile* 3.9 # Only use .unblocked_ioctl since 2.6.36 3.10 sed -i 's|\.ioctl|// &|' nv.c