- Timestamp:
- Sep 20, 2012 12:18:39 PM (12 years ago)
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 4 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/Makefile.kmk
r42423 r43365 34 34 VBOX_LNX_INST_OUT_DIR := $(PATH_TARGET)/Installer/linux 35 35 VBOX_LNX_INST_STAGE_DIR := $(PATH_TARGET)/Installer/linux/install 36 VBOX_LNX_INST_STAGE_DIR_REL := obj/Installer/linux/install 36 37 VBOX_LNX_DBG_PATH := usr/lib/debug/opt/VirtualBox 37 38 VBOX_LNX_PACKAGE_NAME = VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).run … … 50 51 $(addprefix $(VBOX_LNX_INST_STAGE_DIR)/,\ 51 52 install.sh \ 52 uninstall.sh \53 deffiles \54 routines.sh \55 vboxautostart-service.sh \56 vboxballoonctrl-service.sh \57 53 vboxdrv.sh \ 58 vboxweb-service.sh \59 54 VirtualBox.tar.bz2 \ 60 55 LICENSE) \ 61 56 $(wildcard $(VBOX_LNX_INST_OUT_DIR)/VirtualBox-*) \ 62 57 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/,\ 63 vboxballoonctrl-service.sh \64 58 vboxdrv.sh \ 65 vboxweb-service.sh \66 59 install.sh) 67 60 … … 77 70 VBox.sh=>VBox.sh \ 78 71 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py=>vboxshell.py,) 72 73 INSTALLS += linux-scripts 74 linux-scripts_INST = $(VBOX_LNX_INST_STAGE_DIR_REL)/ 75 linux-scripts_MODE = a+rx,u+w 76 linux-scripts_SOURCES = \ 77 deffiles \ 78 routines.sh \ 79 uninstall.sh \ 80 vboxautostart-service.sh \ 81 vboxballoonctrl-service.sh \ 82 vboxdrv-pardus.py \ 83 vboxweb-service.sh 79 84 80 85 INSTALLS += linux-misc … … 316 321 $(addprefix $(VBOX_LNX_INST_OUT_DIR)/archive-dbg/$(VBOX_LNX_DBG_PATH)/,$(VBOX_LNX_STRIP_BIN)) 317 322 318 319 323 # 320 324 # The generic installer. … … 323 327 $(VBOX_LNX_INST_STAGE_DIR)/VirtualBox.tar.bz2 \ 324 328 $(VBOX_VERSION_STAMP) \ 325 $(VBOX_PATH_LNX_INST_SRC)/routines.sh \326 $(VBOX_PATH_LNX_INST_SRC)/deffiles \327 329 $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \ 328 $(VBOX_LNX_INST_OUT_DIR)/vboxautostart-service.sh \329 $(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl-service.sh \330 330 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh \ 331 $(VBOX_LNX_INST_OUT_DIR)/vboxweb-service.sh \332 331 $(VBOX_LNX_INST_OUT_DIR)/install.sh \ 333 332 $(VBOX_PATH_LNX_INST_SRC)/installer-common.sh \ 334 $(VBOX_PATH_LNX_INST_SRC)/vboxdrv-pardus.py \ 335 $(VBOX_PATH_LNX_INST_SRC)/uninstall.sh 333 $$(linux-scripts_2_STAGE_TARGETS) 336 334 $(call MSG_TOOL,makeself,,$@) 337 335 $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/VirtualBox-*.run) 338 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/routines.sh $(VBOX_LNX_INST_STAGE_DIR)/339 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/deffiles $(VBOX_LNX_INST_STAGE_DIR)/340 336 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(VBOX_BRAND_LICENSE_TXT) $(VBOX_LNX_INST_STAGE_DIR)/LICENSE) 341 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxautostart-service.sh $(VBOX_LNX_INST_STAGE_DIR)/342 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl-service.sh $(VBOX_LNX_INST_STAGE_DIR)/343 337 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh $(VBOX_LNX_INST_STAGE_DIR)/ 344 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/vboxweb-service.sh $(VBOX_LNX_INST_STAGE_DIR)/345 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/vboxdrv-pardus.py $(VBOX_LNX_INST_STAGE_DIR)/346 338 $(QUIET)$(INSTALL) -m 0755 $(VBOX_LNX_INST_OUT_DIR)/install.sh $(VBOX_LNX_INST_STAGE_DIR)/ 347 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_LNX_INST_SRC)/uninstall.sh $(VBOX_LNX_INST_STAGE_DIR)/348 339 $(QUIET)$(RM) -f $@ 349 340 $(QUIET)$(VBOX_MAKESELF) --follow --nocomp $(VBOX_LNX_INST_STAGE_DIR) $@ \ … … 351 342 352 343 # files that needs editing before they can be included in the generic installer. 353 $(VBOX_LNX_INST_OUT_DIR)/vboxautostart-service.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxautostart-service.sh.in | $$(dir $$@)354 $(QUIET)$(SED_EXT) \355 -e "s|%NOLSB%|yes|g" \356 -e "s|%DEBIAN%||g" \357 -e "s|%PACKAGE%|virtualbox|g" \358 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \359 --output $@ \360 $<361 362 $(VBOX_LNX_INST_OUT_DIR)/vboxballoonctrl-service.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxballoonctrl-service.sh.in | $$(dir $$@)363 $(QUIET)$(SED_EXT) \364 -e "s|%NOLSB%|yes|g" \365 -e "s|%DEBIAN%||g" \366 -e "s|%PACKAGE%|virtualbox|g" \367 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \368 --output $@ \369 $<370 371 344 $(VBOX_LNX_INST_OUT_DIR)/vboxdrv.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxdrv.sh.in | $$(dir $$@) 372 345 $(QUIET)$(SED_EXT) \ … … 376 349 -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \ 377 350 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \ 378 --output $@ \379 $<380 381 $(VBOX_LNX_INST_OUT_DIR)/vboxweb-service.sh: $(VBOX_PATH_LNX_INST_SRC)/vboxweb-service.sh.in | $$(dir $$@)382 $(QUIET)$(SED_EXT) \383 -e "s|%NOLSB%|yes|g" \384 -e "s|%DEBIAN%||g" \385 -e "s|%PACKAGE%|virtualbox|g" \386 351 --output $@ \ 387 352 $< -
trunk/src/VBox/Installer/linux/debian/rules
r43122 r43365 331 331 $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init 332 332 dh_installinit --name=vboxdrv --noscripts 333 sed \ 334 -e 's|%NOLSB%||g' \ 335 -e 's|%DEBIAN%|yes|g' \ 336 -e 's|%PACKAGE%|virtualbox|g' \ 337 $(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in > debian/vboxballoonctrl-service.init 333 cp $(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh debian/vboxballoonctrl-service.init 338 334 dh_installinit --name=vboxballoonctrl-service --noscripts 339 sed \ 340 -e 's|%NOLSB%||g' \ 341 -e 's|%DEBIAN%|yes|g' \ 342 -e 's|%PACKAGE%|virtualbox|g' \ 343 $(vboxroot)/src/VBox/Installer/linux/vboxautostart-service.sh.in > debian/vboxautostart-service.init 335 cp $(vboxroot)/src/VBox/Installer/linux/vboxautostart-service.sh debian/vboxautostart-service.init 344 336 dh_installinit --name=vboxautostart-service --noscripts 345 sed \ 346 -e 's|%NOLSB%||g' \ 347 -e 's|%DEBIAN%|yes|g' \ 348 -e 's|%PACKAGE%|virtualbox|g' \ 349 $(vboxroot)/src/VBox/Installer/linux/vboxweb-service.sh.in > debian/vboxweb-service.init 337 cp $(vboxroot)/src/VBox/Installer/linux/vboxweb-service.sh debian/vboxweb-service.init 350 338 dh_installinit --name=vboxweb-service --noscripts 351 339 sed -e 's|%VER%|$(debver)|g' \ -
trunk/src/VBox/Installer/linux/rpm/rules
r43122 r43365 228 228 -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \ 229 229 vboxdrv.sh.in > $(archdir)/vboxdrv.init 230 sed \ 231 -e 's|%NOLSB%|yes|g' \ 232 -e 's|%DEBIAN%||g' \ 233 -e 's|%PACKAGE%|virtualbox|g' \ 234 vboxballoonctrl-service.sh.in > $(archdir)/vboxballoonctrl-service.init 235 sed \ 236 -e 's|%NOLSB%|yes|g' \ 237 -e 's|%DEBIAN%||g' \ 238 -e 's|%PACKAGE%|virtualbox|g' \ 239 vboxautostart-service.sh.in > $(archdir)/vboxautostart-service.init 240 sed \ 241 -e 's|%NOLSB%|yes|g' \ 242 -e 's|%DEBIAN%||g' \ 243 -e 's|%PACKAGE%|virtualbox|g' \ 244 vboxweb-service.sh.in > $(archdir)/vboxweb-service.init 230 cp vboxballoonctrl-service.sh $(archdir)/vboxballoonctrl-service.init 231 cp vboxautostart-service.sh $(archdir)/vboxautostart-service.init 232 cp vboxweb-service.sh $(archdir)/vboxweb-service.init 245 233 cp debian/VBox.sh $(archdir) 246 234 mv rpm/VirtualBox-$(ver) rpm/$(rpmname) -
trunk/src/VBox/Installer/linux/vboxautostart-service.sh
r43347 r43365 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 DEBIAN=%DEBIAN% 30 NOLSB=%NOLSB% 31 32 [ -f /lib/lsb/init-functions ] || NOLSB=yes 29 30 [ -f /etc/debian_release -a -f /lib/lsb/init-functions ] || NOLSB=yes 33 31 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg 34 32 … … 36 34 binary="$INSTALL_DIR/VBoxAutostart" 37 35 else 38 binary="/usr/lib/ %PACKAGE%/VBoxAutostart"36 binary="/usr/lib/virtualbox/VBoxAutostart" 39 37 fi 40 38 41 39 # silently exit if the package was uninstalled but not purged, 42 # applies to Debian packages only 43 [ -z "$DEBIAN"-o -x $binary ] || exit 044 45 [ -r /etc/default/ %PACKAGE% ] && . /etc/default/%PACKAGE%40 # applies to Debian packages only (but shouldn't hurt elsewhere) 41 [ ! -f /etc/debian_release -o -x $binary ] || exit 0 42 43 [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox 46 44 47 45 system=unknown -
trunk/src/VBox/Installer/linux/vboxballoonctrl-service.sh
r43347 r43365 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 DEBIAN=%DEBIAN% 30 NOLSB=%NOLSB% 31 32 [ -f /lib/lsb/init-functions ] || NOLSB=yes 29 30 [ -f /lib/lsb/init-functions -a -f /etc/debian_release ] || NOLSB=yes 33 31 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg 34 32 … … 36 34 binary="$INSTALL_DIR/VBoxBalloonCtrl" 37 35 else 38 binary="/usr/lib/ %PACKAGE%/VBoxBalloonCtrl"36 binary="/usr/lib/virtualbox/VBoxBalloonCtrl" 39 37 fi 40 38 41 39 # silently exit if the package was uninstalled but not purged, 42 # applies to Debian packages only 43 [ -z "$DEBIAN"-o -x $binary ] || exit 044 45 [ -r /etc/default/ %PACKAGE% ] && . /etc/default/%PACKAGE%40 # applies to Debian packages only (but shouldn't hurt elsewhere) 41 [ ! -f /etc/debian_release -o -x $binary ] || exit 0 42 43 [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox 46 44 47 45 system=unknown -
trunk/src/VBox/Installer/linux/vboxdrv.sh.in
r39358 r43365 30 30 DEVICE=/dev/vboxdrv 31 31 LOG="/var/log/vbox-install.log" 32 NOLSB=%NOLSB%33 DEBIAN=%DEBIAN%34 VERSION=%VERSION%35 32 MODPROBE=/sbin/modprobe 36 33 … … 39 36 fi 40 37 41 [ -f /lib/lsb/init-functions ] || NOLSB=yes 42 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg 38 [ -f /etc/debian_release -a -f /lib/lsb/init-functions ] || NOLSB=yes 39 if [ ! -f /etc/vbox/vbox.cfg ]; then 40 echo "/etc/vbox/vbox.cfg not found" # Fiddle this and do it nicely. 41 exit 1 42 fi 43 . /etc/vbox/vbox.cfg 43 44 export BUILD_TYPE 44 45 export USERNAME … … 49 50 MODULE_SRC="$INSTALL_DIR/src/vboxhost" 50 51 else 51 VBOXMANAGE="/usr/lib/ %PACKAGE%/VBoxManage"52 MODULE_SRC="/usr/share/ %PACKAGE%/src/vboxhost"52 VBOXMANAGE="/usr/lib/virtualbox/VBoxManage" 53 MODULE_SRC="/usr/share/virtualbox/src/vboxhost" 53 54 fi 54 55 BUILDINTMP="$MODULE_SRC/build_in_tmp" … … 56 57 57 58 # silently exit if the package was uninstalled but not purged, 58 # applies to Debian packages only 59 [ -z "$DEBIAN"-o -x $VBOXMANAGE -a -x $BUILDINTMP ] || exit 059 # applies to Debian packages only (but shouldn't hurt elsewhere) 60 [ ! -f /etc/debian_release -o -x $VBOXMANAGE -a -x $BUILDINTMP ] || exit 0 60 61 61 62 if [ -n "$NOLSB" ]; then … … 69 70 fi 70 71 71 [ -r /etc/default/ %PACKAGE% ] && . /etc/default/%PACKAGE%72 [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox 72 73 73 74 if [ -z "$NOLSB" ]; then … … 248 249 } 249 250 250 # enter the following variables in /etc/default/ %PACKAGE%:251 # enter the following variables in /etc/default/virtualbox: 251 252 # SHUTDOWN_USERS="foo bar" 252 253 # check for running VMs of user foo and user bar … … 323 324 fi 324 325 begin_msg "Trying to register the VirtualBox kernel modules using DKMS" 325 if ! $DODKMS install vboxhost $ VERSION>> $LOG; then326 if ! $DODKMS install vboxhost $INSTALL_VER >> $LOG; then 326 327 fail_msg "Failed, trying without DKMS" 327 328 begin_msg "Recompiling VirtualBox kernel modules" -
trunk/src/VBox/Installer/linux/vboxweb-service.sh
r43347 r43365 27 27 28 28 PATH=$PATH:/bin:/sbin:/usr/sbin 29 DEBIAN=%DEBIAN% 30 NOLSB=%NOLSB% 31 32 [ -f /lib/lsb/init-functions ] || NOLSB=yes 29 30 [ -f /etc/debian_release -a -f /lib/lsb/init-functions ] || NOLSB=yes 33 31 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg 34 32 … … 37 35 vboxmanage="$INSTALL_DIR/VBoxManage" 38 36 else 39 binary="/usr/lib/ %PACKAGE%/vboxwebsrv"40 vboxmanage="/usr/lib/ %PACKAGE%/VBoxManage"37 binary="/usr/lib/virtualbox/vboxwebsrv" 38 vboxmanage="/usr/lib/virtualbox/VBoxManage" 41 39 fi 42 40 43 41 # silently exit if the package was uninstalled but not purged, 44 # applies to Debian packages only 45 [ -z "$DEBIAN"-o -x $binary ] || exit 046 47 [ -r /etc/default/ %PACKAGE% ] && . /etc/default/%PACKAGE%42 # applies to Debian packages only (but shouldn't hurt elsewhere) 43 [ ! -f /etc/debian_release -o -x $binary ] || exit 0 44 45 [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox 48 46 49 47 system=unknown
Note:
See TracChangeset
for help on using the changeset viewer.