aboutsummaryrefslogtreecommitdiffstats
path: root/community/virtualbox-guest-additions/APKBUILD
blob: 436cb09b3dc944c1346727ca417a0882d967a6dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Maintainer: Ben Allen <bensallen@me.com>
# Contributor: Ben Allen <bensallen@me.com>

_flavor=${FLAVOR:-grsec}

pkgname=virtualbox-guest-additions
pkgver=5.1.12

pkgrel=0
pkgdesc="VirtualBox Addtions userland components"
arch='x86_64'
url='http://virtualbox.org'
license="GPL custom"
install="$pkgname.pre-install"
makedepends="sed kbuild lvm2-dev yasm zlib-dev libressl-dev curl-dev"
depends="virtualbox-guest-modules-$_flavor"
source="http://download.virtualbox.org/virtualbox/$pkgver/VirtualBox-$pkgver.tar.bz2
	futimens.patch 
	musl-fix-headers.patch
	musl-no-glibc.patch
	musl-fix-stat-nsec.patch
	musl-sched_yield.patch
	uclibc-gnu_linux.patch
	vboxguestlib-makefile-nox11.patch
	virtualbox-guest-additions-localconfig
	$pkgname.initd
	"

_builddir="$srcdir"/VirtualBox-$pkgver

prepare() {
	cd "$_builddir"
	rm -rf $_builddir/kBuild/bin $_builddir/tools
	local i
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	cp $srcdir/$pkgname-localconfig LocalConfig.kmk
}

build() {
	cd "$_builddir"
	./configure --nofatal \
		--disable-dbus \
		--disable-xpcom \
		--disable-sdl-ttf \
		--disable-pulse \
		--disable-alsa \
		--disable-kmods \
		--build-headless
	source env.sh
	# Build Guest Additions
	kmk KBUILD_VERBOSE=2
}

package() {
	cd "$_builddir"
	install -v -Dm755 "$_builddir/out/linux.amd64/release/bin/additions/VBoxService" "$pkgdir/usr/sbin/VBoxService"
	install -v -Dm755 "$_builddir/out/linux.amd64/release/bin/additions/VBoxControl" "$pkgdir/usr/bin/VBoxControl"
	install -v -Dm755 "$_builddir/out/linux.amd64/release/bin/additions/mount.vboxsf" "$pkgdir/usr/sbin/mount.vboxsf"
        install -v -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

md5sums="58fd51b90358ac42811e044988d53438  VirtualBox-5.1.12.tar.bz2
10f65154d3ff17d88fad5ed384e20276  futimens.patch
81a2ebe27e166219a03858f87eb57518  musl-fix-headers.patch
2d8119cc2bb88a1dc8e1bcd2a6abf36e  musl-no-glibc.patch
9b6a45f250956232f33911ea26d1355e  musl-fix-stat-nsec.patch
5de14e453e1e7c92afdd73ef60bd4fe9  musl-sched_yield.patch
072ee2114b3771e7bdbff5211f342755  uclibc-gnu_linux.patch
b5e6069e20db86cb2e00f1431b202ca4  vboxguestlib-makefile-nox11.patch
8a6525395f4791b8261f245be1eec552  virtualbox-guest-additions-localconfig
c4fea5734564528cd7f9cc5d73c71aa2  virtualbox-guest-additions.initd"
sha256sums="e6f10b1b6f3eb1be2c5223f60569f8ce35468a4354ed53db12f4c9b419393d0d  VirtualBox-5.1.12.tar.bz2
deaa739129ec23a05d5aa43ad8af3e93086ca340696fde3e5d1539e1c7347adb  futimens.patch
d5085e8921b5fa7dca26d2a8da6d1174f7971491c356b6bea5126e6dda0d863c  musl-fix-headers.patch
d0bc2e84675741a54b42b59c9746f255799264512b11a565ce3d435f1398a874  musl-no-glibc.patch
aab58b5dd854551c52063876e8b4186892ba0b3cf9d907c3abe9cff93b8be7fc  musl-fix-stat-nsec.patch
5f478eee88c170b502f5d73181e282e8f4306b1609243bbe152642e3410a641f  musl-sched_yield.patch
1bf547f849bf325e443f74ce7fbfb3657d9b2918b4c888efac304eac929a0fae  uclibc-gnu_linux.patch
19d156225f205245abeca94aac72b90d6dec2d830b4fb30b6c6ce790011e97ac  vboxguestlib-makefile-nox11.patch
555a92cc4741419f7ffd6b9698600b85dc14ddfc6fed6df792d13caf7116e2af  virtualbox-guest-additions-localconfig
9f163a04d5e829a314c084ba00e01038fba697a360c21e0c6c611918ce869273  virtualbox-guest-additions.initd"
sha512sums="0e63f778595aada4389a0d4f390aaa56fc1fb0ed0c4ce999f060787ce6d29462329d6543f34572111d2538cf49a54b799263fe04ebd115c2426506c28c809516  VirtualBox-5.1.12.tar.bz2
1da850bc30399ecde501eba5403ef1add1ae108d38394b01cd7f5cdf0462b855793d564d3adc1f770983b36529d77f3f7b0269fb65152468084a0a44c38e1638  futimens.patch
0169a620d62aa3de8124e0084f4b747b602fbdcab7892fe075606459e0200d412321c86da4c5d98309f4d7479ae1b5267ed28bea6c6e64fd8be88cab74f8e94c  musl-fix-headers.patch
b1c47cb910ac751df7bd4bc10c5501e91d88a9b3e4fe181b02755d433df8e89a160a38422912266f0cc51ba0c09854dad513ba6f2634fc76c59cee7989b259eb  musl-no-glibc.patch
2c329085915f0ffa43828a14d8b29d0d876e48e18a0190ad146cd0731af7eca11cdf41d2e533c9cc73aa75506b9b91e3a08f2272cd8884e0d929722730b99862  musl-fix-stat-nsec.patch
ddeca1cf8dd7d749e3c649b7861d3b12d246882dc0fbd2a980efc2c5a33dac94c5b40b07a49d26cd3ea1bb9917ce0485abc4ee8ff3e6291534433263a54050d4  musl-sched_yield.patch
d2bba9de80c40bc258b025a8e3395a4b0b7781d70d5528993f0fff57e9fc015306b483d4da14e22aed3f188ffda8685aa51e13943f48c17ae18a2a66d15d7bbb  uclibc-gnu_linux.patch
0ced8df03a354e211fd0631d3971246d75de3a60c2347b5fe33236405d55911422d53eb7c679ae6fc18dc8f57c245d5701fa02ae740d1f0bd1e1cbb0b715bf2f  vboxguestlib-makefile-nox11.patch
1b14e0239e91d2d1515250272eb485b442d785dac98bdd7b1cca2fad123f853fe138b6cfad2566c8cb35cab3b77151a49a9422fbad3c13489fa12f3f43d550b9  virtualbox-guest-additions-localconfig
a2325a3bdc2655a0d245c674400bbb44ecbce159044176fc2faa7b959986d39a327d4dfcbf1d1b815459c157087fb75650b525344f561cd44edb071c29263f2d  virtualbox-guest-additions.initd"