Changeset 58012 in vbox for trunk/src/VBox/Installer/linux
- Timestamp:
- Oct 2, 2015 2:41:12 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103043
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/Makefile.kmk
r57812 r58012 53 53 $(addprefix $(VBOX_LNX_INST_STAGE_DIR)/,\ 54 54 install.sh \ 55 vboxdrv.sh \56 55 VirtualBox.tar.bz2 \ 57 56 LICENSE) \ 58 57 $(wildcard $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-*) \ 59 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/,\ 60 vboxdrv.sh \ 61 install.sh) 58 $(VBOX_LNX_INST_OUT_DIR)/install.sh 62 59 63 60 # … … 77 74 vboxballoonctrl-service.sh \ 78 75 VBoxCreateUSBNode.sh \ 76 vboxdrv.sh \ 79 77 vboxweb-service.sh \ 80 78 VBox.sh=>VBox.sh \ … … 92 90 vboxautostart-service.sh \ 93 91 vboxballoonctrl-service.sh \ 92 vboxdrv.sh \ 94 93 vboxweb-service.sh 95 94 … … 364 363 $(VBOX_VERSION_STAMP) \ 365 364 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \ 366 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh \367 365 $(VBOX_LNX_INST_OUT_DIR)/install.sh \ 368 366 $(VBOX_PATH_LNX_INST_SRC)/installer-common.sh \ … … 371 369 $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/VirtualBox-*.run) 372 370 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(VBOX_LNX_INST_STAGE_DIR)/LICENSE) 373 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh $(VBOX_LNX_INST_STAGE_DIR)/374 371 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/install.sh $(VBOX_LNX_INST_STAGE_DIR)/ 375 372 $(QUIET)$(RM) -f $@ 376 373 $(QUIET)$(VBOX_MAKESELF) --follow --nocomp $(VBOX_LNX_INST_STAGE_DIR) $@ \ 377 374 "VirtualBox for Linux installation" ./install.sh "\$$0 1> /dev/null" 378 379 # files that needs editing before they can be included in the generic installer.380 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxdrv.sh.in | $$(dir $$@)381 $(QUIET)$(SED_EXT) \382 -e "s|%NOLSB%|yes|g" \383 -e "s|%DEBIAN%||g" \384 -e "s|%PACKAGE%|virtualbox|g" \385 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \386 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \387 --output $@ \388 $<389 390 $(PATH_STAGE_BIN)/vboxdrv.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxdrv.sh.in | $$(dir $$@)391 $(QUIET)$(SED_EXT) \392 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \393 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \394 --output $@ \395 $<396 $(QUIET)$(CHMOD) 0755 $@397 375 398 376 $(VBOX_LNX_INST_OUT_DIR)/install.sh: $(VBOX_PATH_LNX_INST_SRC)/install.sh $(VBOX_PATH_LNX_INST_SRC)/installer-common.sh $(VBOX_VERSION_STAMP) $(VBOX_SVN_REV_KMK).ts | $$(dir $$@) -
trunk/src/VBox/Installer/linux/debian/rules
r57969 r58012 245 245 dh_desktop 246 246 $(if $(NOMODS),,dh_installmodules) 247 sed \ 248 -e 's|%NOLSB%||g' \ 249 -e 's|%DEBIAN%|yes|g' \ 250 -e 's|%PACKAGE%|virtualbox|g' \ 251 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \ 252 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \ 253 $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > $(prefix)/usr/lib/$(package)/vboxdrv.sh 247 cp $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh $(prefix)/usr/lib/$(package) 254 248 cp $(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh $(prefix)/usr/lib/$(package) 255 249 cp $(vboxroot)/src/VBox/Installer/linux/vboxautostart-service.sh $(prefix)/usr/lib/$(package) -
trunk/src/VBox/Installer/linux/rpm/rules
r57812 r58012 243 243 -e '}' \ 244 244 rpm/VirtualBox.tmpl.spec > $(archdir)/VirtualBox.spec 245 sed \ 246 -e 's|%NOLSB%|yes|g' \ 247 -e 's|%DEBIAN%||g' \ 248 -e 's|%PACKAGE%|virtualbox|g' \ 249 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \ 250 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \ 251 vboxdrv.sh.in > $(archdir)/vboxdrv.sh 245 cp vboxdrv.sh $(archdir) 252 246 cp vboxballoonctrl-service.sh $(archdir) 253 247 cp vboxautostart-service.sh $(archdir) -
trunk/src/VBox/Installer/linux/vboxdrv.sh
r57986 r58012 27 27 ### END INIT INFO 28 28 29 ## @todo get rid of the autogeneration, perhaps write "group" to30 ## a configuration file in /etc31 32 29 PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH 33 30 DEVICE=/dev/vboxdrv … … 46 43 47 44 if [ -n "$INSTALL_DIR" ]; then 45 VIRTUALBOX="$INSTALL_DIR/VirtualBox" 48 46 VBOXMANAGE="$INSTALL_DIR/VBoxManage" 49 47 MODULE_SRC="$INSTALL_DIR/src/vboxhost" 50 48 else 49 VIRTUALBOX="/usr/lib/virtualbox/VirtualBox" 51 50 VBOXMANAGE="/usr/lib/virtualbox/VBoxManage" 52 51 MODULE_SRC="/usr/share/virtualbox/src/vboxhost" 53 52 fi 54 53 BUILDINTMP="$MODULE_SRC/build_in_tmp" 54 if test -u "${VIRTUALBOX}"; then 55 GROUP=root 56 else 57 GROUP=vboxusers 58 fi 55 59 56 60 # silently exit if the package was uninstalled but not purged, … … 132 136 fi 133 137 # ensure permissions 134 if ! chown : %GROUP%$DEVICE 2>/dev/null; then138 if ! chown :"${GROUP}" $DEVICE 2>/dev/null; then 135 139 rmmod vboxpci 2>/dev/null 136 140 rmmod vboxnetadp 2>/dev/null 137 141 rmmod vboxnetflt 2>/dev/null 138 142 rmmod vboxdrv 2>/dev/null 139 failure "Cannot change group %GROUP%for device $DEVICE"143 failure "Cannot change group ${GROUP} for device $DEVICE" 140 144 fi 141 145 if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then
Note:
See TracChangeset
for help on using the changeset viewer.