virtualbox-ose-guest: added runit service.
This commit is contained in:
parent
95c0ff2506
commit
3b663223cc
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec VBoxService -f
|
|
@ -2,7 +2,7 @@
|
|||
pkgname=virtualbox-ose
|
||||
_vbox_distver=4.3.18
|
||||
version=${_vbox_distver}
|
||||
revision=3
|
||||
revision=4
|
||||
wrksrc="VirtualBox-${version}"
|
||||
patch_args="-Np1"
|
||||
short_desc="General-purpose full virtualizer for x86 hardware"
|
||||
|
@ -28,6 +28,7 @@ fi
|
|||
|
||||
depends="virtualbox-ose-dkms-${version}_${revision} hicolor-icon-theme desktop-file-utils"
|
||||
system_groups="vboxusers"
|
||||
build_options="systemd"
|
||||
|
||||
pre_configure() {
|
||||
# Use our path for dri drivers.
|
||||
|
@ -39,17 +40,14 @@ pre_configure() {
|
|||
|
||||
sed -i 's/^check_gcc$/#check_gcc/' configure
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
./configure --disable-docs --disable-java --enable-vde \
|
||||
--disable-python --disable-kmods --nofatal
|
||||
}
|
||||
|
||||
do_build() {
|
||||
source ./env.sh
|
||||
kmk ${makejobs} all
|
||||
}
|
||||
|
||||
do_install() {
|
||||
local f _osedir _guestdir
|
||||
|
||||
|
@ -135,10 +133,9 @@ virtualbox-ose-dkms_package() {
|
|||
usr/lib/udev/rules.d 60-virtualbox-ose-dkms.rules
|
||||
}
|
||||
}
|
||||
|
||||
virtualbox-ose-guest_package() {
|
||||
lib32disabled=yes
|
||||
systemd_services="vboxservice.service on"
|
||||
replaces="runit-void<20141013_2"
|
||||
depends="xserver-abi-video-18_1 virtualbox-ose-guest-dkms-${version}_${revision}"
|
||||
short_desc+=" - guest utilities"
|
||||
|
||||
|
@ -165,10 +162,12 @@ virtualbox-ose-guest_package() {
|
|||
install -Dm755 pam_vbox.so ${PKGDESTDIR}/usr/lib/security/pam_vbox.so
|
||||
|
||||
vinstall ${FILESDIR}/virtualbox-guest.conf 644 usr/lib/modules-load.d
|
||||
vinstall ${FILESDIR}/vboxservice.service 644 usr/lib/systemd/system
|
||||
if [ "$build_option_systemd" ]; then
|
||||
vinstall ${FILESDIR}/vboxservice.service 644 usr/lib/systemd/system
|
||||
fi
|
||||
vsv vboxservice
|
||||
}
|
||||
}
|
||||
|
||||
virtualbox-ose-guest-dkms_package() {
|
||||
short_desc+=" - guest addition module source for dkms"
|
||||
dkms_modules="virtualbox-ose-guest ${_vbox_distver}"
|
||||
|
|
Loading…
Reference in New Issue