masqmail-0.2

diff debian/masqmail.config @ 1:af25f5c39d90

added diff from debian (masqmail-0.2.21-4)
author meillo@marmaro.de
date Fri, 26 Sep 2008 20:56:23 +0200
parents 08114f7dcc23
children
line diff
     1.1 --- a/debian/masqmail.config	Fri Sep 26 17:05:23 2008 +0200
     1.2 +++ b/debian/masqmail.config	Fri Sep 26 20:56:23 2008 +0200
     1.3 @@ -8,29 +8,6 @@
     1.4  # This conf script is capable of backing up
     1.5  db_capb backup
     1.6  
     1.7 -if [ x"$1" = x"configure" ] ; then
     1.8 -    if [ -n $2 ] ; then
     1.9 -	if dpkg --compare-versions "$2" lt "0.2.10-0.2" ; then
    1.10 -	    PCMCIA_SCRIPT_UP=/etc/pcmcia/ip-up.d/1masqmail
    1.11 -	    PCMCIA_SCRIPT_DOWN=/etc/pcmcia/ip-down.d/99masqmail
    1.12 -	    if [ -x $PCMCIA_SCRIPT_UP ] || [ -x $PCMCIA_SCRIPT_DOWN ] ; then
    1.13 -		chmod -x $PCMCIA_SCRIPT_UP $PCMCIA_SCRIPT_DOWN
    1.14 -		db_input high masqmail/note_pcmcia_scripts || true;
    1.15 -		db_go
    1.16 -	    fi
    1.17 -	fi
    1.18 -    fi
    1.19 -fi
    1.20 -
    1.21 -if [ x"$1" = x"configure" ] ; then
    1.22 -    if [ -n $2 ] ; then
    1.23 -	if dpkg --compare-versions "$2" lt "0.2.17-1" ; then
    1.24 -	    db_input medium masqmail/note_moved_tpl || true;
    1.25 -	    db_go
    1.26 -	fi
    1.27 -    fi
    1.28 -fi
    1.29 -
    1.30  # shamelessly copied from xserver-common.config.
    1.31  # Thanks to Branden. :-)
    1.32  
    1.33 @@ -172,9 +149,6 @@
    1.34  	fi
    1.35  done
    1.36   	
    1.37 -db_input medium masqmail/you_are_not_finished || true
    1.38 -db_go
    1.39 -
    1.40  # dpkg-reconfigure does not stop services:
    1.41  # (cause of Bug#151528)
    1.42  # in debhelper version < 1.2.9
    1.43 @@ -183,8 +157,12 @@
    1.44  
    1.45  if dpkg --compare-versions $DH_VERSION lt "1.2.9" ; then
    1.46      if [ x"$1" = x"reconfigure" ] ; then
    1.47 -	if [ -x "/etc/init.d/masqmail" ]; then
    1.48 -	    /etc/init.d/masqmail stop || true
    1.49 +	if which invoke-rc.d >/dev/null 2>&1; then
    1.50 +		invoke-rc.d masqmail stop 
    1.51 +	else
    1.52 +		if [ -x "/etc/init.d/masqmail" ]; then
    1.53 +	    		/etc/init.d/masqmail stop || true
    1.54 +		fi
    1.55  	fi
    1.56      fi
    1.57  fi