wok annotate 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 |
rev | line source |
---|---|
pascal@21808 | 1 # SliTaz package receipt. |
pascal@21808 | 2 |
pascal@21808 | 3 PACKAGE="virtualbox-ose-modules" |
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 |
pascal@21808 | 13 DEPENDS="linux" |
pascal@21808 | 14 BUILD_DEPENDS="linux-module-headers xz" |
pascal@21808 | 15 SUGGESTED="virtualbox-ose" |
pascal@21808 | 16 |
pascal@21808 | 17 # Rules to configure and make the package. |
pascal@21808 | 18 |
pascal@21808 | 19 compile_rules() |
pascal@21808 | 20 { |
pascal@21808 | 21 KERN_DIR=/usr/src/linux make -C "$src/out/linux.x86/release/bin/src" && |
pascal@21808 | 22 xz $src/out/linux.x86/release/bin/src/*.ko |
pascal@21808 | 23 } |
pascal@21808 | 24 |
pascal@21808 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@21808 | 26 genpkg_rules() |
pascal@21808 | 27 { |
pascal@21808 | 28 EXTRAVERSION=_$kvers |
pascal@21808 | 29 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc |
pascal@21808 | 30 cp $src/out/linux.x86/release/bin/src/*.ko.xz \ |
pascal@21808 | 31 $fs/lib/modules/$kvers-slitaz/kernel/misc |
pascal@21808 | 32 } |
pascal@21808 | 33 |
pascal@21808 | 34 post_install() |
pascal@21808 | 35 { |
pascal@21808 | 36 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@21808 | 37 chroot "$1/" modprobe -a vboxdrv vboxnetadp vboxnetflt |
pascal@21808 | 38 grep -qs vboxdrv "$1/etc/rcS.conf" || |
pascal@21808 | 39 sed -i 's/LOAD_MODULES="/&vboxdrv vboxnetadp vboxnetflt /' \ |
pascal@21808 | 40 "$1/etc/rcS.conf" |
pascal@21808 | 41 } |
pascal@21808 | 42 |
pascal@21808 | 43 post_remove() |
pascal@21808 | 44 { |
pascal@21808 | 45 sed -i "s/vboxdrv vboxnetadp vboxnetflt //" "$1/etc/rcS.conf" |
pascal@21808 | 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
pascal@21808 | 47 } |