wok diff virtualbox-ose-modules/receipt @ rev 25591
enet: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 22 11:01:59 2023 +0000 (14 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/virtualbox-ose-modules/receipt Thu Jun 22 11:01:59 2023 +0000 1.3 @@ -0,0 +1,47 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="virtualbox-ose-modules" 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 + 1.16 +DEPENDS="linux" 1.17 +BUILD_DEPENDS="linux-module-headers xz" 1.18 +SUGGESTED="virtualbox-ose" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 + 1.22 +compile_rules() 1.23 +{ 1.24 + KERN_DIR=/usr/src/linux make -C "$src/out/linux.x86/release/bin/src" && 1.25 + xz $src/out/linux.x86/release/bin/src/*.ko 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + EXTRAVERSION=_$kvers 1.32 + mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc 1.33 + cp $src/out/linux.x86/release/bin/src/*.ko.xz \ 1.34 + $fs/lib/modules/$kvers-slitaz/kernel/misc 1.35 +} 1.36 + 1.37 +post_install() 1.38 +{ 1.39 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.40 + chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt 1.41 + grep -qs vboxdrv "$1/etc/rcS.conf" || 1.42 + sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \ 1.43 + "$1/etc/rcS.conf" 1.44 +} 1.45 + 1.46 +post_remove() 1.47 +{ 1.48 + sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf" 1.49 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.50 +}