wok-6.x view virtualbox-ose-modules64/receipt @ rev 23844
linld/readmenu: do not forget to lseek
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 13 10:41:01 2020 +0000 (2020-06-13) |
parents | cc07895be981 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="virtualbox-ose-modules64"
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"
12 PROVIDE="virtualbox-ose-modules:linux64"
14 DEPENDS="linux64"
15 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64"
16 SUGGESTED="virtualbox-ose"
18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8("
20 # Rules to configure and make the package.
22 compile_rules()
23 {
24 KERN_DIR=/usr/src/linux BUILD_TARGET_ARCH=amd64 \
25 make -C "$src/out/linux.amd64/release/bin/src" &&
26 xz $src/out/linux.amd64/release/bin/src/*.ko
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 EXTRAVERSION=_$kvers
33 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc
34 cp $src/out/linux.amd64/release/bin/src/*.ko.xz \
35 $fs/lib/modules/$kvers-slitaz64/kernel/misc
36 }
38 post_install()
39 {
40 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
41 chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt
42 grep -qs vboxdrv "$1/etc/rcS.conf" ||
43 sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \
44 "$1/etc/rcS.conf"
45 }
47 post_remove()
48 {
49 sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf"
50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64
51 }