wok view virtualbox-ose-modules/receipt @ rev 22198
updated xorg-util-macros (1.17 -> 1.19.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Nov 11 10:42:03 2019 +0100 (2019-11-11) |
parents | |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="virtualbox-ose-modules"
4 VERSION="4.2.6"
5 CATEGORY="base-system"
6 SHORT_DESC="virtualbox-ose kernel module."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.virtualbox.org/"
10 TAGS="virtualization"
11 WANTED="virtualbox-ose"
13 DEPENDS="linux"
14 BUILD_DEPENDS="linux-module-headers xz"
15 SUGGESTED="virtualbox-ose"
17 # Rules to configure and make the package.
19 compile_rules()
20 {
21 KERN_DIR=/usr/src/linux make -C "$src/out/linux.x86/release/bin/src" &&
22 xz $src/out/linux.x86/release/bin/src/*.ko
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 EXTRAVERSION=_$kvers
29 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc
30 cp $src/out/linux.x86/release/bin/src/*.ko.xz \
31 $fs/lib/modules/$kvers-slitaz/kernel/misc
32 }
34 post_install()
35 {
36 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
37 chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt
38 grep -qs vboxdrv "$1/etc/rcS.conf" ||
39 sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \
40 "$1/etc/rcS.conf"
41 }
43 post_remove()
44 {
45 sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf"
46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }