# HG changeset patch # User diego # Date 1237627917 0 # Node ID 1edc6f775ff48d304e7fc85c0e260cbe539b0f5e # Parent d903e09def747b3fa360fbefb45a83a8e6ed6d61 Remove postinst script that asks for a TrueType font to use as default. This also gets rid of the libconfhelper-perl dependency; a package that no longer exists in current Debian versions, rendering the generated Debian package uninstallable. patch by Vladislav Naumov, vladislav.naumov gmail com diff -r d903e09def74 -r 1edc6f775ff4 debian/control --- a/debian/control Sat Mar 21 09:18:36 2009 +0000 +++ b/debian/control Sat Mar 21 09:31:57 2009 +0000 @@ -7,7 +7,7 @@ Package: mplayer Architecture: any -Depends: ${shlibs:Depends},debconf,libconfhelper-perl +Depends: ${shlibs:Depends},debconf Description: The Ultimate Movie Player MPlayer is a movie player for LINUX (runs on many other Unices, and non-x86 CPUs, see the ports section). It plays most MPEG, VOB, AVI, OGG/OGM, VIVO, diff -r d903e09def74 -r 1edc6f775ff4 debian/postinst --- a/debian/postinst Sat Mar 21 09:18:36 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,58 +0,0 @@ -#!/usr/bin/perl -w - -# mplayer postinst - -require ConfHelper; - -use Debconf::Client::ConfModule qw(:all); -use IO::Handle; -use Fcntl; -my $version = version(2.0); -my $didupgrade = 0; - -dealwithupgrades(); - -my $mcfg = new ConfHelper('mplayer', "/etc/mplayer/mplayer.conf"); - - - -my $dcarea = "" ; -my $font = scalar(get("mplayer/ttfont")) ; - $dcarea .= "#truetype font\nfont=" . $font . "\n" if $font; -$mcfg->setconfarea($dcarea); - - - -sub dealwithupgrades { - open(OLDCONF, "hasconfarea()); - undef $mconf; - - if ((get('mplayer/replace-existing-files') eq 'true') && - (fget('mplayer/replace-existing-files', 'isdefault') eq 'false')) { - $didupgrade = 1; - for my $file ("/etc/mplayer/mplayer.conf" ) { - debug("Moving away $file"); - rename($file,$file . ".old"); - } - } else { - debug("Upgrade refused, exiting"); - exit 0; - } -} - -sub debug { - print STDERR @_, "\n"; -} - - -# pass control to debhelper scripts.. -# -my $temp="set -e\nset -- @ARGV\n" . << 'DEBHELPER_EOF_'; -#DEBHELPER# -DEBHELPER_EOF_ -system ($temp) / 256 == 0 - or die "Problem with debhelper scripts: $!";