Changeset 34603 in vbox for trunk/debian
- Timestamp:
- Dec 2, 2010 12:35:37 PM (14 years ago)
- Location:
- trunk/debian
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debian/postinst.in
r32543 r34603 63 63 > /etc/udev/rules.d/10-vboxdrv.rules 64 64 if [ "$INSTALL_NO_GROUP" != "1" ]; then 65 echo "SUBSYSTEM=${udev_fix}\"usb_device\", GROUP=\"vboxusers\", MODE=\"0664\"" \ 65 usb_group=vboxusers 66 else 67 usb_group=root 68 fi 69 usb_createnode="/usr/share/virtualbox/VBoxCreateUSBNode.sh" 70 echo "SUBSYSTEM=${udev_fix}\"usb_device\", ACTION=${udev_fix}\"add\", RUN=${usb_createnode} \$major \$minor \$attr{bDeviceClass}\"" ${usb_group} \ 66 71 >> /etc/udev/rules.d/10-vboxdrv.rules 67 echo "SUBSYSTEM=${udev_fix}\"usb\", ENV{DEVTYPE}==\"usb_device\", GROUP=\"vboxusers\", MODE=\"0664\""\72 echo "SUBSYSTEM=${udev_fix}\"usb\", ACTION=${udev_fix}\"add\", ENV{DEVTYPE}==\"usb_device\", RUN=${usb_createnode} \$major \$minor \$attr{bDeviceClass}\"" ${usb_group} \ 68 73 >> /etc/udev/rules.d/10-vboxdrv.rules 69 else 70 echo "SUBSYSTEM=${udev_fix}\"usb_device\", GROUP=\"root\", MODE=\"0664\"" \ 74 echo "SUBSYSTEM=${udev_fix}\"usb_device\", ACTION=${udev_fix}\"remove\", RUN=${usb_createnode} --remove \$major \$minor\"" \ 71 75 >> /etc/udev/rules.d/10-vboxdrv.rules 72 echo "SUBSYSTEM=${udev_fix}\"usb\", ENV{DEVTYPE}==\"usb_device\", GROUP=\"root\", MODE=\"0664\"" \76 echo "SUBSYSTEM=${udev_fix}\"usb\", ACTION=${udev_fix}\"remove\", ENV{DEVTYPE}==\"usb_device\", RUN=${usb_createnode} --remove \$major \$minor\"" \ 73 77 >> /etc/udev/rules.d/10-vboxdrv.rules 74 fi75 78 fi 76 79 # Remove old udev description file … … 78 81 rm -f /etc/udev/rules.d/60-vboxdrv.rules 2> /dev/null 79 82 fi 80 # Push the permissions to the USB device nodes. One of these should match. 81 # Rather nasty to use udevadm trigger for this, but I don't know of any 82 # better way. 83 udevadm trigger --subsystem-match=usb > /dev/null 2>&1 84 udevtrigger --subsystem-match=usb > /dev/null 2>&1 85 udevtrigger --subsystem-match=usb_device > /dev/null 2>&1 86 udevplug -Busb > /dev/null 2>&1 83 # Build our device tree 84 for i in /sys/bus/usb/devices/*; do 85 if test -r "$i/dev"; then 86 dev="`cat "$i/dev" 2> /dev/null`" 87 major="`expr "$dev" : '\(.*\):' 2> /dev/null`" 88 minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null`" 89 class="`cat $i/bDeviceClass 2> /dev/null`" 90 sh ${usb_createnode} "$major" "$minor" "$class" ${usb_group} 2>/dev/null 91 fi 92 done 87 93 88 94 # create users groups (disable with INSTALL_NO_GROUP=1 in /etc/default/virtualbox) -
trunk/debian/prerm.in
r32543 r34603 23 23 rm -f /etc/vbox/license_agreed 24 24 rm -f /etc/vbox/module_not_compiled 25 26 # remove our USB device tree 27 rm -rf /dev/vboxusb 2> /dev/null 25 28 26 29 # defaults … … 62 65 fi 63 66 64 # Stop vboxnet/vboxdrv manually as we use our own error handling in postrm67 # stop vboxnet/vboxdrv manually as we use our own error handling in postrm 65 68 if [ -x "/etc/init.d/vboxdrv" ]; then 66 69 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then -
trunk/debian/rules
r34319 r34603 153 153 rm -f debian/AutoConfig.kmk debian/configure.log debian/env.sh 154 154 rm -f debian/modules-stamp debian/build-stamp debian/configure-stamp 155 rm -f debian/virtualbox-*.substvars debian/virtualbox*.debhelper 156 rm -f debian/$(verpkg).mime 155 157 rm -rf $(builddir) $(moddir) 156 158 dh_clean … … 176 178 $(prefix)/usr/share/applications/virtualbox.desktop) 177 179 install -d -g 0 -o 0 $(prefix)/usr/share/pixmaps 180 install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor 181 cd $(archdir)/icons; for i in *; do \ 182 install -d -g 0 -o 0 $(prefix)/usr/share/icons/hicolor/$$i/mimetypes; \ 183 mv $$i/* $(prefix)/usr/share/icons/hicolor/$$i/mimetypes; \ 184 rmdir $$i; \ 185 done 186 rmdir $(archdir)/icons 187 mv $(archdir)/virtualbox.xml debian/$(verpkg).sharedmimeinfo 178 188 install -d -g 0 -o 0 $(prefix)/usr/share/lintian/overrides 179 189 sed \ … … 206 216 install -D -g 0 -o 0 -m 644 debian/VBox.sh $(prefix)/usr/bin/VBox 207 217 mv $(archdir)/VBoxSysInfo.sh $(prefix)/usr/share/$(package) 218 mv $(archdir)/VBoxCreateUSBNode.sh $(prefix)/usr/share/$(package) 208 219 for i in VBoxManage VBoxSVC $(if $(HEADLESS),,VBoxSDL) \ 209 220 $(if $(NOQT),,VirtualBox) VBoxHeadless \ … … 256 267 usr/share/virtualbox/src/vboxhost usr/src/vboxhost-$(ver) 257 268 dh_desktop 258 dh_installmenu259 269 $(if $(NOMODS),,dh_installmodules) 260 270 sed \ … … 276 286 dh_installchangelogs 277 287 dh_installmenu 288 dh_installmime 278 289 dh_link 279 290 ifeq ($(DEBUG),)
Note:
See TracChangeset
for help on using the changeset viewer.