From db6699ae24db8cb9315dacf93ab3d172b0cd0da4 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 21 Mar 2009 09:31:57 +0000 Subject: 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29020 b3059339-0415-0410-9bf9-f77b7e298cf2 --- debian/control | 2 +- debian/postinst | 58 --------------------------------------------------------- 2 files changed, 1 insertion(+), 59 deletions(-) delete mode 100755 debian/postinst diff --git a/debian/control b/debian/control index 30f00aa24f..cef6880d0b 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Build-Depends: libgtk1.2-dev | libgtk2.0-dev, libpng12-dev, zlib1g-dev, x11proto 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 --git a/debian/postinst b/debian/postinst deleted file mode 100755 index e8fb6367ab..0000000000 --- a/debian/postinst +++ /dev/null @@ -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: $!"; -- cgit v1.2.3