File: postinst

package info (click to toggle)
cvs 1.10.7-1.99.slink.y2k.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,892 kB
  • ctags: 5,463
  • sloc: ansic: 68,307; sh: 17,664; makefile: 1,640; perl: 902; yacc: 826; csh: 181; lisp: 7
file content (38 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
set -e

# Last version where postrm blindly remove pserver from inetd
LAST_BROKEN_INETD="1.10.4-1"

if [ "$1" = "configure" -a "$2" != "" -a -e /etc/cvs.conf ]; then
	if /usr/bin/dpkg --compare-versions "$2" le $LAST_BROKEN_INETD; then
		/usr/sbin/cvsconfig -s
		cat <<-EOF
		WARNING: If you were running a pserver, due to a bug in the packaging
		of your previous version of CVS, it will now have been disabled.
		
		For this reason, the status of your pserver will be recovered from
		/etc/cvs.conf now.
		
		If you setup the pserver manually, you will have to do so again.
		
		Press enter to continue.
		EOF
		read LINE
	fi
fi

if [ -e /etc/cvs.conf.isnew ]; then
	rm -f /etc/cvs.conf.isnew
	echo "Please run 'cvsconfig -u' to update your configuration."
	echo "Press enter to continue."
	read LINE
elif [ -e /etc/cvs.conf ]; then
	echo "cvsconfig hasn't been changed."
else 
	echo "Please run cvsconfig before using cvs."    
	echo "Press enter to continue."
	read LINE
fi

#DEBHELPER#