~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to debian/libnspr4-0d.prerm

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2011-01-11 14:55:23 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110111145523-hb3ap33jpgf838lt
Tags: 4.8.7-0ubuntu1
* New upstream release v4.8.7 (NSPR_4_8_7_RTM)
* Refresh patches
  - update debian/patches/30_config_64bits.patch
  - update debian/patches/99_configure.patch
* Drop the link shuffeling now, as all upgraders to this version will be
  using a fixed package anyway
  - remove debian/libnspr4-0d.postinst
  - remove debian/libnspr4-0d.postrm
  - remove debian/libnspr4-0d.preinst
  - remove debian/libnspr4-0d.prerm
* Drop arch-specific symbols files for architectures we don't support
  - remove debian/libnspr4-0d.symbols.hurd_i386
  - remove debian/libnspr4-0d.symbols.ia64
  - remove debian/libnspr4-0d.symbols.lpia
* Ship the main SO files in an unversioned binary, as we don't have
  versioned SO's in Ubuntu. Maintain a transitional versioned binary
  package containing the versioned symlinks, to maintain compatibility with
  Debian
  - update debian/control
  - mass rename debian/libnspr4-0d* => debian/libnspr4*
  - update debian/rules
* Fix postinst-must-call-ldconfig - dh_makeshlibs doesn't seem to add
  the maintainer script hooks with the unversioned SO files, so add them
  manually
  - add debian/libnspr4.postinst
  - add debian/libnspr4.postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
migratious_files="libnspr4.so libplc4.so libplds4.so"
6
 
 
7
 
if [ "$1" = "abort-upgrade" -o "$1" = "failed-upgrade" ]; then
8
 
 
9
 
        for f in $migratious_files; do
10
 
                if [ -e /usr/lib/XNOLDCONFIG_$f.new-migration ]; then
11
 
                        rm -f /usr/lib/$f
12
 
                        mv /usr/lib/XNOLDCONFIG_$f.new-migration /usr/lib/$f
13
 
                fi
14
 
                if [ -e /usr/lib/XNOLDCONFIG_$f.0d.new-migration ]; then
15
 
                        rm -f /usr/lib/$f.0d
16
 
                        mv /usr/lib/XNOLDCONFIG_$f.0d.new-migration /usr/lib/$f.0d
17
 
                fi
18
 
        done
19
 
 
20
 
fi
21
 
 
22
 
 
23
 
# old-prerm upgrade version
24
 
# this is the dowgrade cas where we need to reshuffle links before the upgrade happens
25
 
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" "le" "4.7.1+1.9-1ubuntu1~"; then
26
 
 
27
 
        for f in $migratious_files; do
28
 
                if [ -L /usr/lib/$f.0d ]; then
29
 
                        rm -f /usr/lib/XNOLDCONFIG_$f.old-migration
30
 
                        mv /usr/lib/$f.0d /usr/lib/XNOLDCONFIG_$f.0d.old-migration
31
 
                fi
32
 
                if [ -r /usr/lib/$f -a ! -L /usr/lib/$f ]; then
33
 
                        rm -f /usr/lib/XNOLDCONFIG_$f.old-migration
34
 
                        mv /usr/lib/$f /usr/lib/XNOLDCONFIG_$f.old-migration
35
 
                fi
36
 
        done
37
 
 
38
 
fi
39
 
 
40
 
#DEBHELPER#