~ubuntu-branches/ubuntu/vivid/virtualbox-ose/vivid

« back to all changes in this revision

Viewing changes to debian/virtualbox-ose.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Michael Meskes, Felix Geyer, Michael Meskes
  • Date: 2009-10-13 13:46:44 UTC
  • mfrom: (0.2.8 upstream)
  • mto: (0.4.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20091013134644-d5rdsy3tb3dflshf
Tags: 3.0.8-dfsg-1
[ Felix Geyer ]
* New Upstream Version
  - Fixes security vulnerability in VBoxNetAdpCtl (SunSolve #268188)
* Conflict with upstream proprietary packages
* Install vboxapi python module, closes: #549542
* Use an own cleaned-up virtualbox-ose init script instead of
  patching the upstream script
* Only restart virtualbox-ose after upgrade if it's not running; do not
  restart virtualbox-ose-guest-utils at all
* Call notify-reboot-required after guest utils upgrade
* Remove vboxusers group as it's not needed anymore
* Don't statically link VBoxClient with libstdc++
  - Add patch 22-no-static-libstdcpp.dpatch from Fedora
* Pass more build options through the command line, which allows us to drop
  02-config-kmk.dpatch, 03-localconf-kmk.dpatch and
  14-disable-registration-request.dpatch
* No longer reload udev rules in postinst as they are reloaded automatically
* Add lintian overrides for non-PIC code in /usr/lib/virtualbox/*.so

[ Michael Meskes ]
* Made debug package also depend on guest utilities package.
* Added option to close down all active VMs from init script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    rm_conffile virtualbox-ose /etc/network/if-post-down.d/virtualbox-ose
28
28
    rm_conffile virtualbox-ose /etc/network/if-pre-up.d/virtualbox-ose
29
29
    rm_conffile virtualbox-ose /etc/vbox/interfaces
 
30
 
30
31
    # Remove /etc/vbox/vbox.cfg
31
32
    if dpkg --compare-versions "$2" lt "2.2.2-dfsg-3"; then
32
33
      rm_conffile virtualbox-ose /etc/vbox/vbox.cfg
33
34
    fi
 
35
 
 
36
    # Remove vboxusers group
 
37
    if dpkg --compare-versions "$2" lt "3.0.8-dfsg-1"; then
 
38
      if [ -x /usr/sbin/delgroup ]; then
 
39
        # delgroup may return error status 3 if there is a non-system group
 
40
        # "vboxusers". The postrm should not fail in this case!
 
41
        delgroup --quiet --system vboxusers || true
 
42
      fi
 
43
    fi
34
44
  ;;
35
45
esac
36