wok-current diff virtualbox-ose-modules64/receipt @ rev 21808
Add virtualbox-ose-modules*
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 17 16:23:26 2019 +0200 (2019-08-17) |
parents | |
children | 91e30acbe640 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/virtualbox-ose-modules64/receipt Sat Aug 17 16:23:26 2019 +0200 1.3 @@ -0,0 +1,50 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="virtualbox-ose-modules64" 1.7 +VERSION="4.2.6" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="virtualbox-ose kernel module." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://www.virtualbox.org/" 1.13 +TAGS="virtualization" 1.14 +WANTED="virtualbox-ose" 1.15 +PROVIDE="virtualbox-ose-modules:linux64" 1.16 + 1.17 +DEPENDS="linux64" 1.18 +BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64" 1.19 +SUGGESTED="virtualbox-ose" 1.20 + 1.21 +AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" 1.22 + 1.23 +# Rules to configure and make the package. 1.24 + 1.25 +compile_rules() 1.26 +{ 1.27 + KERN_DIR=/usr/src/linux make -C "$src/out/linux.amd64/release/bin/src" && 1.28 + xz $src/out/linux.amd64/release/bin/src/*.ko 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + EXTRAVERSION=_$kvers 1.35 + mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc 1.36 + cp $src/out/linux.amd64/release/bin/src/*.ko.xz \ 1.37 + $fs/lib/modules/$kvers-slitaz64/kernel/misc 1.38 +} 1.39 + 1.40 +post_install() 1.41 +{ 1.42 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 1.43 + chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt 1.44 + grep -qs vboxdrv "$1/etc/rcS.conf" || 1.45 + sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \ 1.46 + "$1/etc/rcS.conf" 1.47 +} 1.48 + 1.49 +post_remove() 1.50 +{ 1.51 + sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf" 1.52 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 1.53 +}