VirtualBox

Changeset 57808 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Sep 17, 2015 4:09:23 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux and tinderclient: use Qt from build server for RPM builds - changed the wrong line in tinderclient.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/Makefile.kmk

    r57711 r57808  
    210210          ExtensionPacks/VNC/ExtPack-license.rtf \
    211211          ExtensionPacks/VNC/ExtPack-license.txt,) \
     212        postinst-common.sh \
     213        prerm-common.sh \
     214        routines.sh \
    212215        VBoxSysInfo.sh \
    213216        vboxautostart-service.sh \
  • trunk/src/VBox/Installer/linux/install.sh

    r57711 r57808  
    348348    fi
    349349
    350     cp uninstall.sh routines.sh $INSTALLATION_DIR
    351     echo "routines.sh" >> $CONFIG_DIR/$CONFIG_FILES
     350    cp uninstall.sh $INSTALLATION_DIR
    352351    echo "uninstall.sh" >> $CONFIG_DIR/$CONFIG_FILES
    353352
  • trunk/src/VBox/Installer/linux/prerm-common.sh

    r57712 r57808  
    5050remove_init_script vboxweb-service
    5151# Stop kernel module and uninstall runlevel script
    52 stop_init_script vboxdrv
     52stop_init_script vboxdrv 2>/dev/null
    5353delrunlevel vboxdrv
    5454remove_init_script vboxdrv
  • trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec

    r57789 r57808  
    171171  mv accessible $RPM_BUILD_ROOT/usr/lib/virtualbox
    172172fi
    173 install -D -m 755 vboxdrv.init $RPM_BUILD_ROOT%{_initrddir}/vboxdrv
    174 ln -sf %{_initrddir}/vboxdrv $RPM_BUILD_ROOT/sbin/rcvboxdrv
    175 install -D -m 755 vboxballoonctrl-service.init $RPM_BUILD_ROOT%{_initrddir}/vboxballoonctrl-service
    176 install -D -m 755 vboxautostart-service.init $RPM_BUILD_ROOT%{_initrddir}/vboxautostart-service
    177 install -D -m 755 vboxweb-service.init $RPM_BUILD_ROOT%{_initrddir}/vboxweb-service
    178 %if %{?rpm_suse:1}%{!?rpm_suse:0}
    179 ln -sf ../etc/init.d/vboxballoonctrl-service $RPM_BUILD_ROOT/sbin/rcvboxballoonctrl-service
    180 ln -sf ../etc/init.d/vboxautostart-service $RPM_BUILD_ROOT/sbin/rcvboxautostart-service
    181 ln -sf ../etc/init.d/vboxweb-service $RPM_BUILD_ROOT/sbin/rcvboxweb-service
    182 %endif
     173mv vboxdrv.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
     174ln -sf /usr/lib/virtualbox/vboxdrv.sh $RPM_BUILD_ROOT/sbin/rcvboxdrv
     175mv vboxballoonctrl-service.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
     176ln -sf /usr/lib/virtualbox/vboxballoonctrl-service.sh $RPM_BUILD_ROOT/sbin/rcvboxballoonctrl-service
     177mv vboxautostart-service.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
     178ln -sf /usr/lib/virtualbox/vboxautostart-service.sh $RPM_BUILD_ROOT/sbin/rcvboxautostart-service
     179mv vboxweb-service.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
     180ln -sf /usr/lib/virtualbox/vboxweb-service.sh $RPM_BUILD_ROOT/sbin/rcvboxweb-service
     181mv postinst-common.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
     182mv prerm-common.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
     183mv routines.sh $RPM_BUILD_ROOT/usr/lib/virtualbox
    183184ln -s VBox $RPM_BUILD_ROOT/usr/bin/VirtualBox
    184185ln -s VBox $RPM_BUILD_ROOT/usr/bin/virtualbox
     
    204205
    205206%pre
     207set -x
     208echo Running pre...
    206209# defaults
    207210[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
    208 
    209 # check for active VMs of the installed (old) package
    210 VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true`
    211 if [ -n "$VBOXSVC_PID" ]; then
    212   # executed before the new package is installed!
    213   if [ -f /etc/init.d/vboxballoonctrl-service ]; then
    214     # try graceful termination; terminate the balloon control service first
    215     /etc/init.d/vboxballoonctrl-service stop 2>/dev/null || true
    216   fi
    217   if [ -f /etc/init.d/vboxautostart-service ]; then
    218     # try graceful termination; terminate the autostart service first
    219     /etc/init.d/vboxautostart-service stop 2>/dev/null || true
    220   fi
    221   if [ -f /etc/init.d/vboxweb-service ]; then
    222     # try graceful termination; terminate the webservice first
    223     /etc/init.d/vboxweb-service stop 2>/dev/null || true
    224   fi
    225   # ask the daemon to terminate immediately
    226   kill -USR1 $VBOXSVC_PID
    227   sleep 1
    228   if pidof VBoxSVC > /dev/null 2>&1; then
    229     echo "A copy of VirtualBox is currently running.  Please close it and try again."
    230     echo "Please note that it can take up to ten seconds for VirtualBox (in particular"
    231     echo "the VBoxSVC daemon) to finish running."
    232     exit 1
    233   fi
    234 fi
    235211
    236212# check for old installation
     
    246222fi
    247223
     224# check for active VMs of the installed (old) package
     225# Execute the installed packages pre-uninstaller if present.
     226/usr/lib/virtualbox/prerm-common.sh 2>/dev/null
     227# Stop services from older versions without pre-uninstaller.
     228/etc/init.d/vboxballoonctrl-service stop 2>/dev/null
     229/etc/init.d/vboxautostart-service stop 2>/dev/null
     230/etc/init.d/vboxweb-service stop 2>/dev/null
     231VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true`
     232if [ -n "$VBOXSVC_PID" ]; then
     233  # ask the daemon to terminate immediately
     234  kill -USR1 $VBOXSVC_PID
     235  sleep 1
     236  if pidof VBoxSVC > /dev/null 2>&1; then
     237    echo "A copy of VirtualBox is currently running.  Please close it and try again."
     238    echo "Please note that it can take up to ten seconds for VirtualBox (in particular"
     239    echo "the VBoxSVC daemon) to finish running."
     240    exit 1
     241  fi
     242fi
     243
    248244# XXX remove old modules from previous versions (disable with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox)
    249245if [ "$INSTALL_NO_VBOXDRV" != "1" ]; then
     
    256252
    257253%post
     254set -x
     255echo Running post...
    258256#include installer-common.sh
    259257
     
    290288# and /dev/vboxdrv and /dev/vboxusb/*/* device nodes
    291289install_device_node_setup root 0600 /usr/share/virtualbox "${usb_group}"
    292 %if %{?rpm_redhat:1}%{!?rpm_redhat:0}
    293 /sbin/chkconfig --add vboxdrv
    294 /sbin/chkconfig --add vboxballoonctrl-service
    295 /sbin/chkconfig --add vboxautostart-service
    296 /sbin/chkconfig --add vboxweb-service
    297 %endif
    298 %if %{?rpm_suse:1}%{!?rpm_suse:0}
    299 %{fillup_and_insserv -f -y -Y vboxdrv vboxballoonctrl-service vboxautostart-service vboxweb-service}
    300 %endif
    301290%if %{?rpm_mdv:1}%{!?rpm_mdv:0}
    302291/sbin/ldconfig
    303 %_post_service vboxdrv
    304 %_post_service vboxballoonctrl-service
    305 %_post_service vboxautostart-service
    306 %_post_service vboxweb-service
    307292%update_menus
    308293%endif
     
    335320fi
    336321if [ $BUILD_MODULES -eq 1 ]; then
    337   /etc/init.d/vboxdrv setup || true
     322  /sbin/rcvboxdrv setup || true
    338323else
    339324  if lsmod | grep -q "vboxdrv[^_-]"; then
    340     /etc/init.d/vboxdrv stop || true
     325    /sbin/rcvboxdrv stop || true
    341326  fi
    342327  if [ $REGISTER_MODULES -eq 1 ]; then
     
    346331    fi
    347332  fi
    348   /etc/init.d/vboxdrv start > /dev/null
    349 fi
    350 /etc/init.d/vboxballoonctrl-service start > /dev/null
    351 /etc/init.d/vboxautostart-service start > /dev/null
    352 /etc/init.d/vboxweb-service start > /dev/null
     333fi
     334# Install and start the new service scripts.
     335/usr/lib/virtualbox/prerm-common.sh
     336/usr/lib/virtualbox/postinst-common.sh /usr/lib/virtualbox --start > /dev/null
    353337
    354338
    355339%preun
     340set -x
     341echo Running preun...
    356342# $1==0: remove the last version of the package
    357343# $1==1: install the first time
    358344# $1>=2: upgrade
    359 %if %{?rpm_suse:1}%{!?rpm_suse:0}
    360 %stop_on_removal vboxballoonctrl-service
    361 %stop_on_removal vboxautostart-service
    362 %stop_on_removal vboxweb-service
    363 %endif
    364 %if %{?rpm_mdv:1}%{!?rpm_mdv:0}
    365 %_preun_service vboxballoonctrl-service
    366 %_preun_service vboxautostart-service
    367 %_preun_service vboxweb-service
    368 %endif
    369 %if %{?rpm_redhat:1}%{!?rpm_redhat:0}
    370345if [ "$1" = 0 ]; then
    371   /sbin/service vboxballoonctrl-service stop > /dev/null
    372   /sbin/chkconfig --del vboxballoonctrl-service
    373   /sbin/service vboxautostart-service stop > /dev/null
    374   /sbin/chkconfig --del vboxautostart-service
    375   /sbin/service vboxweb-service stop > /dev/null
    376   /sbin/chkconfig --del vboxweb-service
    377 fi
    378 %endif
    379 
    380 if [ "$1" = 0 ]; then
    381   # check for active VMs
    382   VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true`
    383   if [ -n "$VBOXSVC_PID" ]; then
    384     kill -USR1 $VBOXSVC_PID
    385     sleep 1
    386     if pidof VBoxSVC > /dev/null 2>&1; then
    387       echo "A copy of VirtualBox is currently running.  Please close it and try again."
    388       echo "Please note that it can take up to ten seconds for VirtualBox (in particular"
    389       echo "the VBoxSVC daemon) to finish running."
    390       exit 1
    391     fi
    392   fi
    393 fi
    394 %if %{?rpm_suse:1}%{!?rpm_suse:0}
    395 %stop_on_removal vboxdrv
    396 %endif
    397 %if %{?rpm_mdv:1}%{!?rpm_mdv:0}
    398 %_preun_service vboxdrv
    399 %endif
    400 if [ "$1" = 0 ]; then
    401 %if %{?rpm_redhat:1}%{!?rpm_redhat:0}
    402   /sbin/service vboxdrv stop > /dev/null
    403   /sbin/chkconfig --del vboxdrv
    404 %endif
     346  /usr/lib/virtualbox/prerm-common.sh || exit 1
    405347  rm -f /etc/udev/rules.d/60-vboxdrv.rules
    406348  rm -f /etc/vbox/license_agreed
     
    414356
    415357%postun
    416 %if %{?rpm_redhat:1}%{!?rpm_redhat:0}
    417 if [ "$1" -ge 1 ]; then
    418   /sbin/service vboxdrv restart > /dev/null 2>&1
    419   /sbin/service vboxballoonctrl-service restart > /dev/null 2>&1
    420   /sbin/service vboxautostart-service restart > /dev/null 2>&1
    421   /sbin/service vboxweb-service restart > /dev/null 2>&1
    422 fi
    423 %endif
    424 %if %{?rpm_suse:1}%{!?rpm_suse:0}
    425 %restart_on_update vboxdrv vboxballoonctrl-service vboxautostart-service vboxweb-service
    426 %insserv_cleanup
    427 %endif
     358set -x
     359echo Running postun...
    428360%if %{?rpm_mdv:1}%{!?rpm_mdv:0}
    429361/sbin/ldconfig
     
    447379%doc UserManual*.pdf
    448380%doc %{!?is_ose: VirtualBox*.chm}
    449 %{_initrddir}/vboxdrv
    450 %{_initrddir}/vboxballoonctrl-service
    451 %{_initrddir}/vboxautostart-service
    452 %{_initrddir}/vboxweb-service
    453381%{?rpm_suse: %{py_sitedir}/*}
    454382%{!?rpm_suse: %{python_sitelib}/*}
    455383/sbin/rcvboxdrv
    456 %{?rpm_suse: /sbin/rcvboxballoonctrl-service}
    457 %{?rpm_suse: /sbin/rcvboxautostart-service}
    458 %{?rpm_suse: /sbin/rcvboxweb-service}
     384/sbin/rcvboxballoonctrl-service
     385/sbin/rcvboxautostart-service
     386/sbin/rcvboxweb-service
    459387/etc/vbox
    460388/usr/bin/*
  • trunk/src/VBox/Installer/linux/rpm/rules

    r57807 r57808  
    249249            -e "s|%VERSION%|$(VBOX_VERSION_STRING)|g" \
    250250            -e "s|%GROUP%|$(if $(VBOX_WITHOUT_HARDENING),vboxusers,root)|g" \
    251             vboxdrv.sh.in > $(archdir)/vboxdrv.init
    252         cp vboxballoonctrl-service.sh $(archdir)/vboxballoonctrl-service.init
    253         cp vboxautostart-service.sh $(archdir)/vboxautostart-service.init
    254         cp vboxweb-service.sh $(archdir)/vboxweb-service.init
     251            vboxdrv.sh.in > $(archdir)/vboxdrv.sh
     252        cp vboxballoonctrl-service.sh $(archdir)
     253        cp vboxautostart-service.sh $(archdir)
     254        cp vboxweb-service.sh $(archdir)
    255255        cp VBox.sh $(archdir)
    256256        mv rpm/VirtualBox-$(ver) rpm/$(rpmname)
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