sync lintian overrides against sid
[alioth/cvs.git] / debian / postinst
1 #! /bin/sh
2 # $MirOS: contrib/hosted/tg/deb/cvs/debian/postinst,v 1.3 2010/09/19 18:47:49 tg Exp $
3
4 set -e
5
6 # upgrade case from Debian CVS
7 nukes='/etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf /etc/cron.weekly/cvs'
8 for x in $nukes; do
9         test -e $x || continue
10         rm -f $nukes
11         test -x /usr/sbin/update-inetd && update-inetd --remove "^cvspserver"
12         break
13 done
14
15 case $1 in
16 configure)
17         addgroup --force-badname --system _cvsadmin
18         ;;
19
20 abort-upgrade|abort-remove|abort-deconfigure)
21         ;;
22
23 *)
24         echo "postinst called with unknown argument '$1'" >&2
25         exit 1
26         ;;
27 esac
28
29 # dh_installdeb will replace this with shell code automatically
30 # generated by other debhelper scripts.
31
32 #DEBHELPER#
33
34 exit 0