summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-05-08 14:03:12 +0000
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2014-05-16 16:35:38 +0100
commit617aeb5a3c13f4a46423e8c2fb560449403ad56d (patch)
tree67a356c1a0964b90212f2db179c7457586cc298b
parentfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (diff)
downloadVirtualBox-baserock/morph.tar.gz
VirtualBox Guest Additions morphologybaserock/morph
-rw-r--r--vboxguest.morph35
1 files changed, 35 insertions, 0 deletions
diff --git a/vboxguest.morph b/vboxguest.morph
new file mode 100644
index 00000000..68341286
--- /dev/null
+++ b/vboxguest.morph
@@ -0,0 +1,35 @@
+name: vboxguest
+kind: chunk
+description: |
+ VirtualBox guest additions
+build-system: manual
+max-jobs: 1
+build-commands:
+ # Disable the PAM build because we don't have libpam to hand right now
+ - truncate -s0 src/VBox/Additions/common/pam/Makefile.kmk
+ # Yes, this is all very x86_64 specific right now, I can fix that later
+ - env PATH="${PATH}:$(pwd)/kBuild/bin/linux.amd64/" VBOX_ONLY_ADDITIONS=1 VBOX_ONLY_BUILD=1 kmk
+ - cd out/linux.amd64/release/bin/additions/src/ && make M="$(pwd)" -C /usr/src/linux modules
+install-commands:
+ - cd out/linux.amd64/release/bin/additions/src && make M="$(pwd)" -C /usr/src/linux INSTALL_MOD_PATH="$DESTDIR" modules_install
+ - install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/mount.vboxsf "$DESTDIR/sbin/mount.vboxsf"
+ - install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/VBoxService "$DESTDIR/sbin/VBoxService"
+ - install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/VBoxControl "$DESTDIR/sbin/VBoxControl"
+ - |
+ install -m 644 -D -o 0 -g 0 /proc/self/fd/0 "$DESTDIR/lib/systemd/system/virtualbox-guest.service" <<EOS
+ [Unit]
+ Description=VirtualBox Guest Additions
+
+ [Service]
+ ExecStart=/sbin/VBoxService -f
+ Restart=always
+ EOS
+ - mkdir -p "$DESTDIR/lib/systemd/system/basic.target.wants"
+ - ln -s "/lib/systemd/system/virtualbox-guest.service" "$DESTDIR/lib/systemd/system/basic.target.wants/virtualbox-guest.service"
+ - mkdir -p "$DESTDIR/etc/modules-load.d"
+ - echo vboxsf > "$DESTDIR/etc/modules-load.d/virtualbox-guest-filesystem.conf"
+system-integration:
+ vboxguest-misc:
+ 00-depmod:
+ - depmod -a $(cd /lib/modules; ls | head -n 1)
+