diff --git a/srcpkgs/virtualbox-ose/files/virtualbox-ose-dkms.udev b/srcpkgs/virtualbox-ose/files/virtualbox-ose-dkms.udev index 0c3d8bc3740..37403ae2f2f 100644 --- a/srcpkgs/virtualbox-ose/files/virtualbox-ose-dkms.udev +++ b/srcpkgs/virtualbox-ose/files/virtualbox-ose-dkms.udev @@ -1,5 +1,5 @@ -KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600" -SUBSYSTEM=="usb_device", ACTION=="add", RUN="/usr/lib/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers" -SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="/usr/lib/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers" -SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/usr/lib/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor" -SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/usr/lib/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor" +KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600" ENV{ACL_MANAGE}="1" +SUBSYSTEM=="usb_device", ACTION=="add", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers" +SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers" +SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor" +SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor" diff --git a/srcpkgs/virtualbox-ose/template b/srcpkgs/virtualbox-ose/template index 4e3865df0d4..fb970155013 100644 --- a/srcpkgs/virtualbox-ose/template +++ b/srcpkgs/virtualbox-ose/template @@ -3,6 +3,7 @@ pkgname=virtualbox-ose _vbox_distver=4.0.10 version=${_vbox_distver} patch_args="-Np1" +revision=1 wrksrc="VirtualBox-${version}_OSE" distfiles="http://download.virtualbox.org/virtualbox/$version/VirtualBox-$version.tar.bz2" build_style=custom-install @@ -43,8 +44,6 @@ Add_dependency run libIDL Add_dependency run glib Add_dependency run libpulseaudio Add_dependency run ${pkgname}-dkms ">=${version}" -Add_dependency run gcc -Add_dependency run coreutils Add_dependency run hicolor-icon-theme Add_dependency run desktop-file-utils @@ -123,6 +122,10 @@ do_install() # locales install -m0755 nls/*.qm -t ${DESTDIR}/usr/share/virtualbox/nls + # scripts + install -m0755 VBoxCreateUSBNode.sh VBoxSysInfo.sh \ + -t ${DESTDIR}/usr/share/virtualbox + # icons and desktop install -D -m0644 VBox.png ${DESTDIR}/usr/share/pixmaps/VBox.png install -D -m0644 virtualbox.desktop \ diff --git a/srcpkgs/virtualbox-ose/virtualbox-ose-dkms.template b/srcpkgs/virtualbox-ose/virtualbox-ose-dkms.template index c6060857193..47dac3020af 100644 --- a/srcpkgs/virtualbox-ose/virtualbox-ose-dkms.template +++ b/srcpkgs/virtualbox-ose/virtualbox-ose-dkms.template @@ -8,6 +8,7 @@ long_desc="${long_desc} use of these modules. Kernel sources or headers are required to compile this module." +revision=1 dkms_modules="virtualbox-ose ${_vbox_distver}" noarch=yes