Changeset 36714 in vbox for trunk/src/VBox/Installer
- Timestamp:
- Apr 18, 2011 1:18:33 PM (14 years ago)
- Location:
- trunk/src/VBox/Installer/linux
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/debian/VBox.sh
r34687 r36714 3 3 # Oracle VM VirtualBox 4 4 # 5 # Copyright (C) 2006-201 0Oracle Corporation5 # Copyright (C) 2006-2011 Oracle Corporation 6 6 # 7 7 # This file is part of VirtualBox Open Source Edition (OSE), as … … 89 89 exec "/usr/lib/virtualbox/vboxwebsrv" "$@" 90 90 ;; 91 VBoxBalloonCtrl|vboxballoonctrl) 92 exec "/usr/lib/virtualbox/VBoxBalloonCtrl" "$@" 93 ;; 91 94 *) 92 95 echo "Unknown application - $APP" -
trunk/src/VBox/Installer/linux/debian/lintian-override.in
r35301 r36714 89 89 %VERPKG%: binary-or-shlib-defines-rpath ./usr/lib/virtualbox/components/VBoxXPCOMIPCC.so /usr/lib/virtualbox 90 90 %VERPKG%: binary-or-shlib-defines-rpath ./usr/lib/virtualbox/kchmviewer /usr/lib/virtualbox 91 %VERPKG%: binary-or-shlib-defines-rpath ./usr/lib/virtualbox/VBoxBalloonCtrl /usr/lib/virtualbox 91 92 %VERPKG%: binary-or-shlib-defines-rpath ./usr/lib/virtualbox/vboxwebsrv /usr/lib/virtualbox 92 93 %VERPKG%: binary-or-shlib-defines-rpath ./usr/lib/virtualbox/webtest /usr/lib/virtualbox -
trunk/src/VBox/Installer/linux/debian/postinst.in
r35363 r36714 1 1 #!/bin/sh 2 2 # 3 # Copyright (C) 2006-201 0Oracle Corporation3 # Copyright (C) 2006-2011 Oracle Corporation 4 4 # 5 5 # This file is part of VirtualBox Open Source Edition (OSE), as … … 129 129 130 130 if [ "$1" = "configure" ]; then 131 # Start vboxdrv/vbox web-service manually as we use our own error handling in postrm131 # Start vboxdrv/vboxballoonctrl/vboxweb-service manually as we use our own error handling in postrm 132 132 if [ -x "/etc/init.d/vboxdrv" ]; then 133 133 update-rc.d vboxdrv defaults >/dev/null … … 180 180 fi 181 181 fi 182 if [ -x "/etc/init.d/vboxballoonctrl-service" ]; then 183 update-rc.d vboxballoonctrl-service defaults >/dev/null 184 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then 185 invoke-rc.d vboxballoonctrl-service start || exit $? 186 else 187 /etc/init.d/vboxballoonctrl-service start || exit $? 188 fi 189 fi 182 190 if [ -x "/etc/init.d/vboxweb-service" ]; then 183 191 update-rc.d vboxweb-service defaults >/dev/null -
trunk/src/VBox/Installer/linux/debian/preinst.in
r32543 r36714 1 1 #!/bin/bash 2 2 # 3 # Copyright (C) 2006-201 0Oracle Corporation3 # Copyright (C) 2006-2011 Oracle Corporation 4 4 # 5 5 # This file is part of VirtualBox Open Source Edition (OSE), as … … 29 29 VBOXSVC_PID=`pidof VBoxSVC 2> /dev/null || true` 30 30 if [ -n "$VBOXSVC_PID" ]; then 31 if [ -f /etc/init.d/vboxballoonctrl-service ]; then 32 # try graceful termination; terminate the ballon control service first 33 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then 34 invoke-rc.d vboxballoonctrl-service stop || true 35 else 36 /etc/init.d/vboxballoonctrl-service stop || true 37 fi 38 fi 31 39 if [ -f /etc/init.d/vboxweb-service ]; then 32 40 # try graceful termination; terminate the webservice first … … 36 44 /etc/init.d/vboxweb-service stop || true 37 45 fi 38 kill -USR1 $VBOXSVC_PID39 46 fi 47 kill -USR1 $VBOXSVC_PID 40 48 sleep 1 41 49 if pidof VBoxSVC > /dev/null 2>&1; then -
trunk/src/VBox/Installer/linux/debian/prerm.in
r34603 r36714 38 38 VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null` 39 39 if [ -n "$VBOXSVC_PID" ]; then 40 # try graceful termination; terminate the balloon control servic first 41 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then 42 invoke-rc.d vboxballoonctrl-service stop || true 43 else 44 /etc/init.d/vboxballoonctrl-service stop || true 45 fi 40 46 # try graceful termination; terminate the webservice first 41 47 if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then -
trunk/src/VBox/Installer/linux/debian/rules
r36554 r36714 1 1 #!/usr/bin/make -f 2 2 # 3 # Copyright (C) 2006-201 0Oracle Corporation3 # Copyright (C) 2006-2011 Oracle Corporation 4 4 # 5 5 # This file is part of VirtualBox Open Source Edition (OSE), as … … 178 178 dh_testroot 179 179 rm -f debian/changelog debian/preinst debian/postinst debian/prerm 180 rm -f debian/$(package).init debian/vboxdrv.init debian/vboxweb-service.init 180 rm -f debian/$(package).init debian/vboxdrv.init 181 rm -f debian/vboxballoonctrl-service.init debian/vboxweb-service.init 181 182 rm -f debian/AutoConfig.kmk debian/configure.log debian/env.sh 182 183 rm -f debian/modules-stamp debian/build-stamp debian/configure-stamp … … 249 250 for i in VBoxManage VBoxSVC $(if $(HEADLESS),,VBoxSDL) \ 250 251 $(if $(NOQT),,VirtualBox) VBoxHeadless \ 251 VBoxExtPackHelperApp \252 VBoxExtPackHelperApp VBoxBalloonCtrl \ 252 253 $(if $(NOWEBSVC),,vboxwebsrv webtest); do \ 253 254 mv $(archdir)/$$i $(prefix)/usr/lib/$(package); done … … 295 296 usr/bin/VBox usr/bin/VBoxHeadless \ 296 297 usr/bin/VBox usr/bin/vboxheadless \ 298 usr/bin/VBox usr/bin/VBoxBalloonCtrl \ 299 usr/bin/VBox usr/bin/vboxballoonctrl \ 297 300 $(if $(NOWEBSVC),,usr/bin/VBox usr/bin/vboxwebsrv) \ 298 301 usr/share/virtualbox/src/vboxhost usr/src/vboxhost-$(ver) … … 306 309 $(vboxroot)/src/VBox/Installer/linux/vboxdrv.sh.in > debian/vboxdrv.init 307 310 dh_installinit --name=vboxdrv --noscripts 311 sed \ 312 -e 's|%NOLSB%||g' \ 313 -e 's|%DEBIAN%|yes|g' \ 314 -e 's|%PACKAGE%|virtualbox|g' \ 315 $(vboxroot)/src/VBox/Installer/linux/vboxballoonctrl-service.sh.in > debian/vboxballoonctrl-service.init 316 dh_installinit --name=vboxballoonctrl-service --noscripts 308 317 sed \ 309 318 -e 's|%NOLSB%||g' \ -
trunk/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec
r35363 r36714 4 4 5 5 # 6 # Copyright (C) 2006-201 0Oracle Corporation6 # Copyright (C) 2006-2011 Oracle Corporation 7 7 # 8 8 # This file is part of VirtualBox Open Source Edition (OSE), as … … 105 105 rmdir icons 106 106 mv virtualbox.xml $RPM_BUILD_ROOT/usr/share/mime/packages 107 for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxExtPackHelperApp vboxwebsrv webtest; do107 for i in VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxHeadless VBoxExtPackHelperApp VBoxBalloonCtrl vboxwebsrv webtest; do 108 108 mv $i $RPM_BUILD_ROOT/usr/lib/virtualbox; done 109 109 for i in VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl; do … … 138 138 ln -sf ../etc/init.d/vboxdrv $RPM_BUILD_ROOT/sbin/rcvboxdrv 139 139 %endif 140 install -D -m 755 vboxballoonctrl-service.init $RPM_BUILD_ROOT%{_initrddir}/vboxballoonctrl-service 140 141 install -D -m 755 vboxweb-service.init $RPM_BUILD_ROOT%{_initrddir}/vboxweb-service 141 142 %if %{?rpm_suse:1}%{!?rpm_suse:0} 143 ln -sf ../etc/init.d/vboxballoonctrl-service $RPM_BUILD_ROOT/sbin/rcvboxballoonctrl-service 142 144 ln -sf ../etc/init.d/vboxweb-service $RPM_BUILD_ROOT/sbin/rcvboxweb-service 143 145 %endif … … 151 153 ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxHeadless 152 154 ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxheadless 155 ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxBalloonCtrl 156 ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxballoonctrl 153 157 ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxwebsrv 154 158 ln -s /usr/share/virtualbox/src/vboxhost $RPM_BUILD_ROOT/usr/src/vboxhost-%VER% … … 165 169 if [ -n "$VBOXSVC_PID" ]; then 166 170 # executed before the new package is installed! 171 if [ -f /etc/init.d/vboxballoonctrl-service ]; then 172 # try graceful termination; terminate the balloon control service first 173 /etc/init.d/vboxballoonctrl-service stop 2>/dev/null || true 174 fi 167 175 if [ -f /etc/init.d/vboxweb-service ]; then 168 176 # try graceful termination; terminate the webservice first 169 177 /etc/init.d/vboxweb-service stop 2>/dev/null || true 170 # ask the daemon to terminate immediately171 kill -USR1 $VBOXSVC_PID172 fi178 fi 179 # ask the daemon to terminate immediately 180 kill -USR1 $VBOXSVC_PID 173 181 sleep 1 174 182 if pidof VBoxSVC > /dev/null 2>&1; then … … 275 283 chcon -t java_exec_t /usr/lib/virtualbox/VBoxHeadless > /dev/null 2>&1 276 284 chcon -t java_exec_t /usr/lib/virtualbox/VBoxExtPackHelperApp > /dev/null 2>&1 285 chcon -t java_exec_t /usr/lib/virtualbox/VBoxBalloonCtrl > /dev/null 2>&1 277 286 chcon -t java_exec_t /usr/lib/virtualbox/vboxwebsrv > /dev/null 2>&1 278 287 fi … … 288 297 %if %{?rpm_redhat:1}%{!?rpm_redhat:0} 289 298 /sbin/chkconfig --add vboxdrv 299 /sbin/chkconfig --add vboxballoonctrl-service 290 300 /sbin/chkconfig --add vboxweb-service 291 301 %endif 292 302 %if %{?rpm_suse:1}%{!?rpm_suse:0} 293 %{fillup_and_insserv -f -y -Y vboxdrv vbox web-service}303 %{fillup_and_insserv -f -y -Y vboxdrv vboxballoonctrl-service vboxweb-service} 294 304 %endif 295 305 %if %{?rpm_mdv:1}%{!?rpm_mdv:0} 296 306 /sbin/ldconfig 297 307 %_post_service vboxdrv 308 %_post_service vboxballoonctrl-service 298 309 %_post_service vboxweb-service 299 310 %update_menus … … 339 350 /etc/init.d/vboxdrv start > /dev/null 340 351 fi 352 /etc/init.d/vboxballoonctrl-service start > /dev/null 341 353 /etc/init.d/vboxweb-service start > /dev/null 342 354 … … 347 359 # $1>=2: upgrade 348 360 %if %{?rpm_suse:1}%{!?rpm_suse:0} 361 %stop_on_removal vboxballoonctrl-service 349 362 %stop_on_removal vboxweb-service 350 363 %endif 351 364 %if %{?rpm_mdv:1}%{!?rpm_mdv:0} 365 %_preun_service vboxballoonctrl-service 352 366 %_preun_service vboxweb-service 353 367 %endif 354 368 %if %{?rpm_redhat:1}%{!?rpm_redhat:0} 355 369 if [ "$1" = 0 ]; then 370 /sbin/service vboxballoonctrl-service stop > /dev/null 371 /sbin/chkconfig --del vboxballoonctrl-service 356 372 /sbin/service vboxweb-service stop > /dev/null 357 373 /sbin/chkconfig --del vboxweb-service … … 400 416 if [ "$1" -ge 1 ]; then 401 417 /sbin/service vboxdrv restart > /dev/null 2>&1 418 /sbin/service vboxballoonctrl-service restart > /dev/null 2>&1 402 419 /sbin/service vboxweb-service restart > /dev/null 2>&1 403 420 fi 404 421 %endif 405 422 %if %{?rpm_suse:1}%{!?rpm_suse:0} 406 %restart_on_update vboxdrv vbox web-service423 %restart_on_update vboxdrv vboxballoonctrl-service vboxweb-service 407 424 %insserv_cleanup 408 425 %endif … … 428 445 %doc VirtualBox*.chm 429 446 %{_initrddir}/vboxdrv 447 %{_initrddir}/vboxballoonctrl-service 430 448 %{_initrddir}/vboxweb-service 431 449 %{?rpm_suse: %{py_sitedir}/*} 432 450 %{!?rpm_suse: %{python_sitelib}/*} 433 451 %{?rpm_suse: /sbin/rcvboxdrv} 452 %{?rpm_suse: /sbin/rcvboxballoonctrl-service} 434 453 %{?rpm_suse: /sbin/rcvboxweb-service} 435 454 /lib/modules -
trunk/src/VBox/Installer/linux/rpm/rules
r36554 r36714 2 2 3 3 # 4 # Copyright (C) 2006-201 0Oracle Corporation4 # Copyright (C) 2006-2011 Oracle Corporation 5 5 # 6 6 # This file is part of VirtualBox Open Source Edition (OSE), as … … 182 182 -e 's|%DEBIAN%||g' \ 183 183 -e 's|%PACKAGE%|virtualbox|g' \ 184 vboxballoonctrl-service.sh.in > $(archdir)/vboxballoonctrl-service.init 185 sed \ 186 -e 's|%NOLSB%|yes|g' \ 187 -e 's|%DEBIAN%||g' \ 188 -e 's|%PACKAGE%|virtualbox|g' \ 184 189 vboxweb-service.sh.in > $(archdir)/vboxweb-service.init 185 190 cp debian/VBox.sh $(archdir)
Note:
See TracChangeset
for help on using the changeset viewer.