virtualbox-ose: use modules-load.d(8) to load DKMS modules.

This commit is contained in:
Juan RP 2012-09-15 16:53:54 +02:00
parent de65bdf007
commit dcd208eee4
6 changed files with 10 additions and 30 deletions

View File

@ -0,0 +1,3 @@
vboxguest
vboxsf
vboxvideo

View File

@ -1,12 +0,0 @@
[Unit]
Description=Virtualbox host (de)initialization
DefaultDependencies=no
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/modprobe -qa vboxguest vboxsf vboxvideo
ExecStop=/sbin/modprobe -rqa vboxvideo vboxsf vboxguest
[Install]
WantedBy=graphical.target

View File

@ -0,0 +1,3 @@
vboxdrv
vboxnetadp
vboxnetflt

View File

@ -1,12 +0,0 @@
[Unit]
Description=Virtualbox host (de)initialization
DefaultDependencies=no
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/modprobe -qa vboxdrv vboxnetadp vboxnetflt
ExecStop=/sbin/modprobe -rqa vboxnetflt vboxnetadp vboxdrv
[Install]
WantedBy=graphical.target

View File

@ -2,7 +2,7 @@
pkgname=virtualbox-ose
_vbox_distver=4.2.0
version=${_vbox_distver}
revision=1
revision=2
wrksrc="VirtualBox-${version}"
patch_args="-Np1"
depends="virtualbox-ose-dkms>=4.1.16 hicolor-icon-theme desktop-file-utils"
@ -17,7 +17,6 @@ fi
system_groups="vboxusers"
gtk_iconcache_dirs="/usr/share/icons/hicolor"
subpackages="${pkgname}-dkms ${pkgname}-guest ${pkgname}-guest-dkms"
systemd_services="virtualbox.service on"
short_desc="General-purpose full virtualizer for x86 hardware"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://virtualbox.org"
@ -101,6 +100,6 @@ do_install() {
install -m0644 ${wrksrc}/COPYING* \
${DESTDIR}/usr/share/licenses/${pkgname}
# Install systemd unit.
vinstall ${FILESDIR}/virtualbox.service 644 usr/lib/systemd/system
# Install modules-load.d file.
vinstall ${FILESDIR}/virtualbox.conf 644 usr/lib/modules-load.d
}

View File

@ -1,7 +1,6 @@
# Template file for 'virtualbox-ose-guest'.
#
depends="virtualbox-ose-guest-dkms>=$version"
systemd_services="virtualbox-guest.service on"
short_desc="${short_desc} - guest utilities"
long_desc="${long_desc}
@ -34,5 +33,5 @@ do_install() {
cd ${wrksrc}/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions
install -Dm755 pam_vbox.so ${DESTDIR}/usr/lib/security/pam_vbox.so
vinstall ${FILESDIR}/virtualbox-guest.service 644 usr/lib/systemd/system
vinstall ${FILESDIR}/virtualbox-guest.conf 644 usr/lib/modules-load.d
}