head	1.5;
access;
symbols
	caudium_1_4_9:1.4.2.4
	caudium_1_4_8:1.4.2.4
	caudium_1_4_7:1.4.2.1
	caudium_1_4_6:1.4.2.1
	caudium_1_2_35:1.3.2.2
	caudium_1_2_34:1.3.2.2
	caudium_1_4_5:1.4
	caudium_1_4_4:1.4
	caudium_1_4_3:1.4
	caudium_1_4_2:1.4
	caudium_1_5_1:1.4
	caudium_1_4_1:1.4
	stable_1_4:1.4.0.2
	caudium_1_3_33:1.4
	caudium_1_3_32:1.4
	caudium_1_3_31:1.4
	caudium_1_3_30:1.4
	caudium_1_3_29:1.4
	caudium_1_2_33:1.3.2.2
	caudium_1_2_32:1.3.2.2
	caudium_1_3_23:1.3
	caudium_1_3_22:1.3
	caudium_1_3_21:1.3
	caudium_1_3_20:1.3
	caudium_1_3_19:1.3
	caudium_1_3_18:1.3
	caudium_1_2_31:1.3.2.1
	caudium_1_2_30:1.3.2.1
	caudium_1_2_29:1.3.2.1
	caudium_1_2_28:1.3.2.1
	caudium_1_3_17:1.3
	caudium_1_3_16:1.3
	caudium_1_2_27:1.3.2.1
	caudium_1_2_26:1.3.2.1
	caudium_1_2_25:1.3.2.1
	caudium_1_2_24:1.3.2.1
	caudium_1_0_57:1.1.4.1
	caudium_1_0_56:1.1.4.1
	caudium_1_3_15:1.3
	caudium_1_3_14:1.3
	caudium_1_2_23:1.3.2.1
	caudium_1_2_22:1.3.2.1
	caudium_1_2_21:1.3.2.1
	caudium_1_2_20:1.3.2.1
	caudium_1_0_55:1.1.4.1
	caudium_1_0_54:1.1.4.1
	caudium_1_3_13:1.3
	caudium_1_3_12:1.3
	caudium_1_3_11:1.3
	caudium_1_3_10:1.3
	caudium_1_2_19:1.3.2.1
	caudium_1_2_18:1.3.2.1
	caudium_1_3_9:1.3
	caudium_1_3_8:1.3
	caudium_1_3_7:1.3
	caudium_1_3_6:1.3
	caudium_1_2_17:1.3.2.1
	caudium_1_2_16:1.3.2.1
	caudium_1_2_15:1.3.2.1
	caudium_1_2_14:1.3.2.1
	caudium_1_2_12:1.3.2.1
	caudium_1_2_10:1.3.2.1
	caudium_1_3_5:1.3
	caudium_1_3_4:1.3
	caudium_1_2_9:1.3.2.1
	caudium_1_2_8:1.3.2.1
	caudium_1_3_3:1.3
	caudium_1_2_7:1.3.2.1
	caudium_1_2_6:1.3.2.1
	caudium_1_0_53:1.1.4.1
	caudium_1_0_52:1.1.4.1
	caudium_1_0_51:1.1.4.1
	caudium_1_0_50:1.1.4.1
	caudium_1_0_45:1.1.4.1
	caudium_1_0_44:1.1.4.1
	caudium_1_0_43:1.1.4.1
	caudium_1_0_42:1.1.4.1
	Caudium_1_3_2:1.3
	caudium_1_2_5:1.3.2.1
	caudium_1_2_4:1.3.2.1
	caudium_1_0_41:1.1.4.1
	caudium_1_0_40:1.1.4.1
	caudium_1_0_39:1.1.4.1
	Caudium_1_0_38:1.1.4.1
	caudium_1_2_3:1.3
	caudium_1_2_2:1.3
	caudium_1_3_1:1.3
	caudium_1_2_1:1.3
	stable_1_2:1.3.0.2
	caudium_1_0_37:1.1.4.1
	caudium_1_0_36:1.1.4.1
	caudium_1_1_5:1.2
	caudium_1_1_4:1.2
	caudium_1_1_3:1.1
	caudium_1_1_2:1.1
	caudium_1_0_32:1.1
	caudium_1_0_30:1.1
	caudium_1_0_28:1.1
	caudium_1_0_24:1.1
	caudium_1_0_22:1.1
	caudium_1_0_20:1.1
	caudium_1_0_18:1.1
	caudium_1_0_17:1.1
	caudium_1_0_16:1.1
	caudium_1_0_15:1.1
	caudium_1_0_14:1.1
	caudium_1_0_13:1.1
	caudium_1_0_12:1.1
	caudium_1_0_11:1.1
	caudium_1_0_10:1.1
	stable_1_0:1.1.0.4
	caudium_1_0_9:1.1
	caudium_1_0_8:1.1
	caudium_1_0_7:1.1
	caudium_1_0_6:1.1
	caudium_1_0_5:1.1
	caudium_1_0_4:1.1
	caudium_1_0_3:1.1
	caudium_1_0_2:1.1;
locks; strict;
comment	@# @;


1.5
date	2005.11.29.20.46.56;	author grendel;	state Exp;
branches;
next	1.4;

1.4
date	2003.12.01.03.30.16;	author grendel;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2002.01.03.17.05.36;	author grendel;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2001.07.17.15.50.47;	author grendel;	state Exp;
branches;
next	1.1;

1.1
date	2000.09.25.14.20.57;	author grendel;	state Exp;
branches
	1.1.4.1;
next	;

1.1.4.1
date	2001.08.23.12.35.10;	author grendel;	state Exp;
branches;
next	;

1.3.2.1
date	2002.01.30.13.06.07;	author grendel;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2003.11.20.17.49.39;	author grendel;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2005.04.03.22.45.18;	author grendel;	state Exp;
branches;
next	;

1.4.2.1
date	2005.04.21.23.32.37;	author grendel;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2005.10.30.01.35.47;	author grendel;	state Exp;
branches;
next	1.4.2.3;

1.4.2.3
date	2005.10.31.15.18.31;	author grendel;	state Exp;
branches;
next	1.4.2.4;

1.4.2.4
date	2005.10.31.15.39.45;	author grendel;	state Exp;
branches;
next	;


desc
@@


1.5
log
@debian mods
@
text
@#! /bin/sh
# postrm script for caudium
#
# $Id: postrm,v 1.4.2.4 2005/10/31 15:39:45 grendel Exp $
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postrm> `remove'
#        * <postrm> `purge'
#        * <old-postrm> `upgrade' <new-version>
#        * <new-postrm> `failed-upgrade' <old-version>
#        * <new-postrm> `abort-install'
#        * <new-postrm> `abort-install' <old-version>
#        * <new-postrm> `abort-upgrade' <old-version>
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see /usr/share/doc/packaging-manual/

BFILE=/var/backups/caudium.tar.gz

case "$1" in
       purge)
	if [ -L /var/www/index.html ]; then
	  IFILE="`readlink /var/www/index.html`"
	  if [ "$IFILE" = "../../usr/share/doc/caudium/www/index.html" ]; then
	    rm -f /var/www/index.html
	  fi
	fi
	
	rm -f /etc/default/caudium
	rm -rf /etc/caudium
	
	# Remove the links to the vera fonts
	for f in /usr/lib/caudium/fonts/ttf/*.ttf; do
	  if [ -L $f ]; then
	    rm -f $f
	  fi
	done
	
	if [ -d /usr/share/caudium ]; then
	  rm -r /usr/share/caudium
	fi
	
	rm -rf /usr/lib/caudium/caudium-images
	
	# Try to remove the dirs, if they're empty	
	if [ -d /usr/local/share/caudium ]; then
	  if [ -d /usr/local/share/caudium/modules ]; then
            rmdir /usr/local/share/caudium/modules || true
	  fi
	  rmdir /usr/local/share/caudium || true
	fi
	
	#
	# Clean the cache files
	#
	rm -rf /var/cache/caudium /var/state/caudium
	
	if [ -f /var/run/caudium/caudium.pid ]; then
	  rm /var/run/caudium/caudium.pid
	fi
	;;
	
       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
        
        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 0

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#


exit 0
@


1.4
log
@something i forgot to commit
@
text
@d4 2
a24 11
	# Backup the config files
	#
	# Should we ask the user (using Debconf) whether to back the config
	# up?
	if test -d /etc/caudium; then
	    if test -f $BFILE; then
		rm -f $BFILE
	    fi
	    (cd /; tar czvf $BFILE etc/caudium || true)
	fi       

d31 1
a31 1

d35 21
d60 4
@


1.4.2.1
log
@debian stuff
@
text
@a3 2
# $Id: postrm,v 1.3.2.3 2005/04/03 22:45:18 grendel Exp $
#
d27 1
a27 1
	if [ -d /etc/caudium ]; then
d32 2
a33 2
	fi
	
d40 1
a40 1
	
a43 6
	# Remove the links to the vera fonts
	for f in /usr/lib/caudium/fonts/ttf/*.ttf; do
	  if [ -L $f ]; then
	    rm -f $f
	  fi
	done
@


1.4.2.2
log
@debian changes
@
text
@d4 1
a4 1
# $Id: postrm,v 1.4.2.1 2005/04/21 23:32:37 grendel Exp $
d25 11
@


1.4.2.3
log
@debian mods
@
text
@d4 1
a4 1
# $Id: postrm,v 1.4.2.2 2005/10/30 01:35:47 grendel Exp $
a40 23
	
	if [ -d /usr/share/caudium ]; then
	  rm -r /usr/share/caudium
	fi
	
	rm -rf /usr/lib/caudium/caudium-images/
	
	
	# Try to remove the dirs, if they're empty
        if [ -d /usr/lib/caudium ]; then
	  # We probably don't want that to fail - users might have put something in the
	  # modules directory there (seen that happen several times), but that shouldn't
	  # prevent the package from being removed.
	  rmdir /usr/lib/caudium || true
	fi
	
	if [ -d /usr/local/share/caudium ]; then
	  if [ -d /usr/local/share/caudium/modules ]; then
            rmdir /usr/local/share/caudium/modules || true
	  fi
	  rmdir /usr/local/share/caudium || true
	fi
	
a44 4
	
	if [ -f /var/run/caudium/caudium.pid ]; then
	  rm /var/run/caudium/caudium.pid
	fi
@


1.4.2.4
log
@more debian changes
@
text
@d4 1
a4 1
# $Id: postrm,v 1.4.2.3 2005/10/31 15:18:31 grendel Exp $
d46 10
a55 1
	rm -rf /usr/lib/caudium/caudium-images
a56 1
	# Try to remove the dirs, if they're empty	
@


1.3
log
@preparation for the official release
@
text
@d33 10
a42 2
	rm -f /etc/default/caudium  || true
	rm -rf /etc/caudium || true
d47 1
a47 1
	rm -rf /var/cache/caudium /var/state/caudium || true
@


1.3.2.1
log
@minor details
@
text
@a3 2
# $Id$
#
@


1.3.2.2
log
@some changes
@
text
@d4 1
a4 1
# $Id: postrm,v 1.3.2.1 2002/01/30 13:06:07 grendel Exp $
d29 1
a29 1
	if [ -d /etc/caudium ]; then
d34 3
a36 11
	fi
	
	if [ -L /var/www/index.html ]; then
	  IFILE="`readlink /var/www/index.html`"
	  if [ "$IFILE" = "../../usr/share/doc/caudium/www/index.html" ]; then
	    rm -f /var/www/index.html
	  fi
	fi
	
	rm -f /etc/default/caudium
	rm -rf /etc/caudium
d41 1
a41 1
	rm -rf /var/cache/caudium /var/state/caudium
@


1.3.2.3
log
@Fixing a Debian RC bug
@
text
@d4 1
a4 1
# $Id: postrm,v 1.3.2.2 2003/11/20 17:49:39 grendel Exp $
a45 6
	# Remove the links to the vera fonts
	for f in /usr/lib/caudium/fonts/ttf/*.ttf; do
	  if [ -L $f ]; then
	    rm -f $f
	  fi
	done
@


1.2
log
@fixes for debian
@
text
@d19 1
a19 1
BFILE=/var/backups/caudium-1.1.tar.gz
d27 1
a27 1
	if test -d /etc/caudium-1.1; then
d31 1
a31 1
	    (cd /; tar czvf $BFILE etc/caudium-1.1 || true)
d33 2
a34 2
	rm -f /etc/default/caudium-1.1  || true
	rm -rf /etc/caudium-1.1 || true
d39 1
a39 1
	rm -rf /var/cache/caudium-1.1 /var/state/caudium-1.1 || true
@


1.1
log
@Split modules into separate packages - -modules -ultralog -pixsl. Caudium
depends only on the first one now, the other are recommended. Fixed most of
the lintian-reported bugs. Caudium starts now as www-data.www-data by
default.
@
text
@d19 1
a19 1
BFILE=/var/backups/caudium.tar.gz
d27 1
a27 1
	if test -d /etc/caudium; then
d31 1
a31 1
	    (cd /; tar czvf $BFILE etc/caudium || true)
d33 2
a34 1
	rm -f /etc/caudium/start_options /etc/caudium/servers/* || true
d39 1
a39 1
	rm -rf /var/cache/caudium/* /var/state/caudium/.* || true
@


1.1.4.1
log
@- closed two debian bugs
- added Swedish translation of the debian config stuff
@
text
@d33 1
a33 1
	rm -rf /etc/caudium || true
d38 1
a38 1
	rm -rf /var/cache/caudium /var/state/caudium || true
@


