~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-09-07 15:57:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040907155757-pgypftl9bt2uqyyl
Tags: 0.59r-16
* layer2.c: Fix buffer overflow in layer2 decoder (CVE ID CAN-2004-0805).
* Makefile: Fix compiler options to build for generic targets on ARM,
  but optimise for xscale. Closes: #261255
* README.3DNOW, dct36_3dnow.s, dct64_3dnow.s, decode_3dnow.s,
  decode_i386.c, equalizer_3dnow.s, getcpuflags.s, layer3.c, mpg123.c,
  mpg123.h, tabinit.c, debian/rules: Apply patch by KIMURA Takuhiro and
  Syuuhei Kashiyama to fix errors in 3dnow-optimised decoding.
  Thanks to Alberto Garcia for the patch-merging. Closes: #242212
* debian/prerm: De-register mp3-decoder alternative. Closes: #222982
* debian/changelog: Convert to utf8.
* debian/control: Bump standards version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
PACKAGE="@PACKAGE@"
 
4
FILENAME="@FILENAME@"
 
5
 
 
6
case "$1" in
 
7
        configure)
 
8
                if [ -x /usr/sbin/update-mime ]; then
 
9
                        /usr/sbin/update-mime
 
10
                fi
 
11
 
 
12
                update-alternatives --install \
 
13
                        /usr/bin/mpg123 mpg123 "/usr/bin/$FILENAME" \
 
14
                        "@PRIORITY@" \
 
15
                        --slave /usr/share/man/man1/mpg123.1.gz mpg123.1.gz \
 
16
                        "/usr/share/man/man1/$FILENAME.1.gz"
 
17
        
 
18
                update-alternatives --install \
 
19
                        /usr/bin/mp3-decoder mp3-decoder "/usr/bin/$FILENAME" \
 
20
                        "@PRIORITY@" \
 
21
                        --slave /usr/share/man/man1/mp3-decoder.1.gz \
 
22
                        mp3-decoder.1.gz \
 
23
                        "/usr/share/man/man1/$FILENAME.1.gz"
 
24
                ;;
 
25
        abort-upgrade|abort-remove|abort-deconfigure)
 
26
                ;;
 
27
        *)
 
28
                echo "postinst called with unknown argument \'$1\'" >&2
 
29
                exit 0
 
30
esac
 
31
 
 
32
exit 0
 
33