1
0
forked from pool/virtualbox

Accepting request 173472 from Virtualization

- Move udev rules to /usr/lib/udev/rules.d for openSUSE 12.3 (and
  later) and to /lib/udev/rules.d for older distributions. (forwarded request 173455 from fcrozat)

OBS-URL: https://build.opensuse.org/request/show/173472
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=68
This commit is contained in:
Stephan Kulow 2013-04-26 17:22:11 +00:00 committed by Git OBS Bridge
commit 7b55da1ea6
2 changed files with 19 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 26 08:10:58 UTC 2013 - fcrozat@suse.com
- Move udev rules to /usr/lib/udev/rules.d for openSUSE 12.3 (and
later) and to /lib/udev/rules.d for older distributions.
-------------------------------------------------------------------
Fri Apr 19 14:56:41 UTC 2013 - coolo@suse.com

View File

@ -18,6 +18,12 @@
%define _vbox_instdir /usr/lib/virtualbox
%if 0%{?suse_version} >= 1230
%define _udevrulesdir /usr/lib/udev
%else
%define _udevrulesdir /lib/udev
%endif
Name: virtualbox
%if %suse_version > 1230
BuildRequires: which
@ -375,7 +381,7 @@ echo "create directory structure"
%__install -d -m 755 %{buildroot}%{_sysconfdir}/default
%__install -d -m 755 %{buildroot}%{_sysconfdir}/init.d
%__install -d -m 755 %{buildroot}%{_sysconfdir}/vbox
%__install -d -m 755 %{buildroot}%{_sysconfdir}/udev/rules.d
%__install -d -m 755 %{buildroot}%{_udevrulesdir}
%__install -d -m 755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
####################################################################################
@ -407,7 +413,7 @@ echo "entering guest-tools install section"
%__ln_s %{_sysconfdir}/init.d/vboxadd \
%{buildroot}%{_sbindir}/rcvboxadd
# udev rule for guest (virtualbox-guest-tools)
%__install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/udev/rules.d/60-vboxguest.rules
%__install -m 644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/60-vboxguest.rules
#
##############################################################
echo "entering guest-x11 install section"
@ -518,7 +524,7 @@ popd
%__install -m 644 out/linux.*/release/bin/VBox.png \
%{buildroot}%{_datadir}/pixmaps/virtualbox.png
# install udev rule for host (virtualbox)
%__install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/udev/rules.d/60-vboxdrv.rules
%__install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/60-vboxdrv.rules
# install config with session shutdown defs
%__install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/default/virtualbox
#install wrapper script
@ -546,7 +552,7 @@ echo -e "#settings for vboxwebsrn\nVBOXWEB_USER=root" > \
%{buildroot}%{_sysconfdir}/vbox/vbox.cfg
# install udev helper script for creating usb devices
install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh \
$RPM_BUILD_ROOT/lib/udev/VBoxCreateUSBNode.sh
$RPM_BUILD_ROOT%{_udevrulesdir}/../VBoxCreateUSBNode.sh
######################################################
echo "entrering python-virtualbox install section"
######################################################
@ -740,7 +746,7 @@ exit 0
%{_vbox_instdir}/components/*.xpt
%dir %{_datadir}/virtualbox
%config %{_sysconfdir}/default/virtualbox
%config(noreplace) %{_sysconfdir}/udev/rules.d/60-vboxdrv.rules
%{_udevrulesdir}/60-vboxdrv.rules
%config %{_sysconfdir}/init.d/vboxdrv
%dir %{_sysconfdir}/vbox
%config %{_sysconfdir}/vbox/vbox.cfg
@ -748,7 +754,7 @@ exit 0
%{_var}/adm/fillup-templates/sysconfig.vbox
%{_sbindir}/rcvboxes
%{_sbindir}/rcvboxdrv
/lib/udev/VBoxCreateUSBNode.sh
%{_udevrulesdir}/../VBoxCreateUSBNode.sh
%if %suse_version >= 1140
%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxNetDHCP
%else
@ -798,7 +804,7 @@ exit 0
%{_bindir}/VBoxControl
%{_bindir}/VBoxService
/sbin/mount.vboxsf
%config(noreplace) %{_sysconfdir}/udev/rules.d/60-vboxguest.rules
%{_udevrulesdir}/60-vboxguest.rules
%config %{_sysconfdir}/init.d/vboxadd
%{_sbindir}/rcvboxadd
#