VirtualBox

Changeset 34573 in vbox for trunk/src


Ignore:
Timestamp:
Dec 1, 2010 2:54:18 PM (14 years ago)
Author:
vboxsync
Message:

rpm/deb: more fixes

Location:
trunk/src/VBox/Installer/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/debian/postinst.in

    r34572 r34573  
    9191    fi
    9292  done
    93   # Push the permissions to the USB device nodes.  One of these should match.
    94   # Rather nasty to use udevadm trigger for this, but I don't know of any
    95   # better way.
    96   udevadm trigger --subsystem-match=usb > /dev/null 2>&1
    97   udevtrigger --subsystem-match=usb > /dev/null 2>&1
    98   udevtrigger --subsystem-match=usb_device > /dev/null 2>&1
    99   udevplug -Busb > /dev/null 2>&1
    10093
    10194  # create users groups (disable with INSTALL_NO_GROUP=1 in /etc/default/virtualbox)
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r34572 r34573  
    6868install -m 755 -d $RPM_BUILD_ROOT/usr/share/pixmaps
    6969install -m 755 -d $RPM_BUILD_ROOT/usr/share/icons/hicolor
    70 cd icons
    71   for i in *; do
    72     install -d -g 0 -o 0 $RPM_BUILD_ROOT/usr/share/icons/hicolor/$i/mimetypes
    73     mv $i/* $(prefix)/usr/share/icons/hicolor/$i/mimetypes
    74     rmdir $i
    75   done
    76 cd -
    7770install -m 755 -d $RPM_BUILD_ROOT%{_defaultdocdir}/virtualbox
    7871install -m 755 -d $RPM_BUILD_ROOT/usr/lib/virtualbox
    7972install -m 755 -d $RPM_BUILD_ROOT/usr/share/virtualbox
     73install -m 755 -d $RPM_BUILD_ROOT/usr/share/mime/packages
    8074mv VBoxEFI32.fd $RPM_BUILD_ROOT/usr/lib/virtualbox || true
    8175mv VBoxEFI64.fd $RPM_BUILD_ROOT/usr/lib/virtualbox || true
     
    10195mv VBoxSysInfo.sh $RPM_BUILD_ROOT/usr/share/virtualbox
    10296mv VBoxCreateUSBNode.sh $RPM_BUILD_ROOT/usr/share/virtualbox
     97cd icons
     98  for i in *; do
     99    install -d -g 0 -o 0 $RPM_BUILD_ROOT/usr/share/icons/hicolor/$i/mimetypes
     100    mv $i/* $(prefix)/usr/share/icons/hicolor/$i/mimetypes
     101    rmdir $i
     102  done
     103cd -
     104rmdir icons
     105mv virtualbox.xml /usr/share/mime/packages
    103106for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless vboxwebsrv webtest; do
    104107  mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done
     
    259262  fi
    260263done
    261 # Push the permissions to the USB device nodes.  One of these should match.
    262 # Rather nasty to use udevadm trigger for this, but I don't know of any
    263 # better way.
    264 udevadm trigger --subsystem-match=usb > /dev/null 2>&1
    265 udevtrigger --subsystem-match=usb > /dev/null 2>&1
    266 udevtrigger --subsystem-match=usb_device > /dev/null 2>&1
    267 udevplug -Busb > /dev/null 2>&1
    268264
    269265# XXX SELinux: allow text relocation entries
     
    302298%update_menus
    303299%endif
     300update-mime-database /usr/share/mime &> /dev/null || :
     301touch --no-create /usr/share/icons/hicolor
     302gtk-update-icon-cache -q /usr/share/icons/hicolor 2> /dev/null || :
    304303
    305304# Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox
     
    409408%clean_menus
    410409%endif
     410update-mime-database /usr/share/mime &> /dev/null || :
     411touch --no-create /usr/share/icons/hicolor
     412gtk-update-icon-cache -q /usr/share/icons/hicolor 2> /dev/null || :
    411413
    412414
     
    433435/usr/lib/virtualbox
    434436/usr/share/applications
     437/usr/share/icons
     438/usr/share/mime/packages
    435439/usr/share/pixmaps
    436440/usr/share/virtualbox
    437 /usr/share/icons
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette