wok-6.x annotate virtualbox-ose-modules64/receipt @ rev 23124
updated libxml2 and libxml2-dev (2.9.9 -> 2.9.10)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 13 10:03:47 2020 +0100 (2020-03-13) |
parents | cc07895be981 |
children |
rev | line source |
---|---|
pascal@21808 | 1 # SliTaz package receipt. |
pascal@21808 | 2 |
pascal@21808 | 3 PACKAGE="virtualbox-ose-modules64" |
pascal@21808 | 4 VERSION="4.2.6" |
pascal@21808 | 5 CATEGORY="base-system" |
pascal@21808 | 6 SHORT_DESC="virtualbox-ose kernel module." |
pascal@21808 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@21808 | 8 LICENSE="GPL2" |
pascal@21808 | 9 WEB_SITE="https://www.virtualbox.org/" |
pascal@21808 | 10 TAGS="virtualization" |
pascal@21808 | 11 WANTED="virtualbox-ose" |
pascal@21808 | 12 PROVIDE="virtualbox-ose-modules:linux64" |
pascal@21808 | 13 |
pascal@21808 | 14 DEPENDS="linux64" |
pascal@21808 | 15 BUILD_DEPENDS="linux64-module-headers xz uclibc-cross-compiler-x86_64" |
pascal@21808 | 16 SUGGESTED="virtualbox-ose" |
pascal@21808 | 17 |
pascal@21808 | 18 AUFS_NOT_RAMFS="uclibc-cross-compiler-x86_64 is not compatible with aufs+tmpfs 8(" |
pascal@21808 | 19 |
pascal@21808 | 20 # Rules to configure and make the package. |
pascal@21808 | 21 |
pascal@21808 | 22 compile_rules() |
pascal@21808 | 23 { |
pascal@21814 | 24 KERN_DIR=/usr/src/linux BUILD_TARGET_ARCH=amd64 \ |
pascal@21814 | 25 make -C "$src/out/linux.amd64/release/bin/src" && |
pascal@21808 | 26 xz $src/out/linux.amd64/release/bin/src/*.ko |
pascal@21808 | 27 } |
pascal@21808 | 28 |
pascal@21808 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21808 | 30 genpkg_rules() |
pascal@21808 | 31 { |
pascal@21808 | 32 EXTRAVERSION=_$kvers |
pascal@21808 | 33 mkdir -p $fs/lib/modules/$kvers-slitaz64/kernel/misc |
pascal@21808 | 34 cp $src/out/linux.amd64/release/bin/src/*.ko.xz \ |
pascal@21808 | 35 $fs/lib/modules/$kvers-slitaz64/kernel/misc |
pascal@21808 | 36 } |
pascal@21808 | 37 |
pascal@21808 | 38 post_install() |
pascal@21808 | 39 { |
pascal@21808 | 40 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@21808 | 41 chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt |
pascal@21808 | 42 grep -qs vboxdrv "$1/etc/rcS.conf" || |
pascal@21808 | 43 sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \ |
pascal@21808 | 44 "$1/etc/rcS.conf" |
pascal@21808 | 45 } |
pascal@21808 | 46 |
pascal@21808 | 47 post_remove() |
pascal@21808 | 48 { |
pascal@21808 | 49 sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf" |
pascal@21808 | 50 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz64 |
pascal@21808 | 51 } |