mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
virtualbox rebuild added vboxsf-dkms
This commit is contained in:
parent
33cf032d67
commit
d2c9d4e53e
@ -11,7 +11,8 @@ pkgname=('virtualbox'
|
||||
'virtualbox-ext-vnc'
|
||||
'virtualbox-ext-oracle')
|
||||
pkgver=5.2.22
|
||||
pkgrel=1
|
||||
pkgrel=3
|
||||
_vboxsf_commit='9451f61e6787e95aa51e42b6381db6b059bc49da'
|
||||
arch=('x86_64')
|
||||
url='https://www.virtualbox.org'
|
||||
license=('GPL')
|
||||
@ -57,8 +58,12 @@ makedepends=('alsa-lib'
|
||||
source=("http://download.virtualbox.org/virtualbox/$pkgver/VirtualBox-$pkgver.tar.bz2"
|
||||
"http://download.virtualbox.org/virtualbox/$pkgver/VBoxGuestAdditions_$pkgver.iso"
|
||||
"http://download.virtualbox.org/virtualbox/$pkgver/Oracle_VM_VirtualBox_Extension_Pack-$pkgver.vbox-extpack"
|
||||
# We need to build a modified version of vboxsf for Linux 4.16
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1481630#c65
|
||||
"git+https://github.com/jwrdegoede/vboxsf#commit=$_vboxsf_commit"
|
||||
'virtualbox-host-dkms.conf'
|
||||
'virtualbox-guest-dkms.conf'
|
||||
'virtualbox-vboxsf-dkms.conf'
|
||||
'virtualbox.sysusers'
|
||||
'virtualbox-guest-utils.sysusers'
|
||||
'60-vboxdrv.rules'
|
||||
@ -85,8 +90,10 @@ noextract=(VBoxGuestAdditions_$pkgver.iso
|
||||
sha256sums=('5580e875349341a1aabc6d5d2f697d242f277487316faaf1fbe68d9014f788d4'
|
||||
'e51e33500a265b5c2d7bb2d03d32208df880523dfcb1e2dde2c78a0e0daa0603'
|
||||
'779250666551b2f5426e86c2d21ceb0209b46174536971611025f753535131ef'
|
||||
'SKIP'
|
||||
'deb03efa7ad0376aa55a087f2e882afe00935f10b0e7aa853ba9147090d341ec'
|
||||
'c328376b05183d269f98319ec660f54c55e298f77d229977606862b064651a7c'
|
||||
'e37712bcbbafbdee47230a962446d63b0ae882801a89931d93ad9e704e70ad4b'
|
||||
'2101ebb58233bbfadf3aa74381f22f7e7e508559d2b46387114bc2d8e308554c'
|
||||
'da4c49f6ca94e047e196cdbcba2c321199f4760056ea66e0fbc659353e128c9e'
|
||||
'9c5238183019f9ebc7d92a8582cad232f471eab9d3278786225abc1a1c7bf66e'
|
||||
@ -335,8 +342,14 @@ package_virtualbox-guest-dkms() {
|
||||
install -Dm644 "$srcdir/$pkgname.conf" "$_p"
|
||||
sed -i "s,@VERSION@,$pkgver," "$_p"
|
||||
|
||||
install -dm 755 "$pkgdir/var/lib/dkms/vboxguest/$pkgver"
|
||||
ln -s "/usr/src/vboxguest-${pkgver}_OSE/" "$pkgdir/var/lib/dkms/vboxguest/$pkgver/source"
|
||||
# vboxsf module for Linux 4.16 and later
|
||||
install -d "$pkgdir/usr/src/vboxsf-${pkgver}_OSE"
|
||||
cp -rT "$srcdir/vboxsf" "$pkgdir/usr/src/vboxsf-${pkgver}_OSE/vboxsf"
|
||||
rm -rf "$pkgdir/usr/src/vboxsf-${pkgver}_OSE/vboxsf/.git"
|
||||
echo "obj-m = vboxsf/" >"$pkgdir/usr/src/vboxsf-${pkgver}_OSE/Makefile"
|
||||
local _p="$pkgdir/usr/src/vboxsf-${pkgver}_OSE/dkms.conf"
|
||||
install -Dm0644 "$srcdir/virtualbox-vboxsf-dkms.conf" "$_p"
|
||||
sed -i "s,@VERSION@,$pkgver," "$_p"
|
||||
}
|
||||
|
||||
package_virtualbox-guest-utils() {
|
||||
|
10
virtualbox/virtualbox-vboxsf-dkms.conf
Normal file
10
virtualbox/virtualbox-vboxsf-dkms.conf
Normal file
@ -0,0 +1,10 @@
|
||||
PACKAGE_NAME="vboxsf"
|
||||
PACKAGE_VERSION=@VERSION@_OSE
|
||||
AUTOINSTALL=yes
|
||||
|
||||
# Build only for Linux 4.16 and later (until it gets upstreamed...)
|
||||
BUILD_EXCLUSIVE_KERNEL="^(4\.(1[6-9]|2[0-9])\..*|5\..*)"
|
||||
|
||||
BUILT_MODULE_NAME[0]="vboxsf"
|
||||
BUILT_MODULE_LOCATION[0]="vboxsf"
|
||||
DEST_MODULE_LOCATION[0]="/kernel/misc"
|
Loading…
Reference in New Issue
Block a user