This file is indexed.

postinst is in uqwk 2.21-15.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
#!/bin/sh -e

. /usr/share/debconf/confmodule

# First do our own magic
if [ "$1" = configure ]; then
	update-alternatives --install /usr/bin/uqwk uqwk /usr/bin/uqwk.nntp 100 --slave /usr/share/man/man1/uqwk.1.gz uqwk.1.gz /usr/share/man/man1/uqwk.nntp.1.gz

	# This is mostly copied from slrn's postint script,
	# written by Joey Hess <joeyh@debian.org>

	# We used to use /etc/nntpserver. Policy now says use /etc/news/server.
	# Note that on some systems, /etc/news/server may be a link to
	# /etc/nntpserver.
	if [ -f /etc/news/server -a -f /etc/nntpserver -a ! -L /etc/news/server ] ; then
		rm -f /etc/nntpserver
	fi
	if [ -f /etc/news/server -a -f /etc/nntpserver -a -L /etc/news/server ] ; then
		rm -f /etc/news/server
		mv /etc/nntpserver /etc/news/server
	fi
	if [ -f /etc/nntpserver -a ! -f /etc/news/server ] ; then
		mv /etc/nntpserver /etc/news/server
	fi

	# Always update the files; the config script makes sure ths variables
	# always have a sane and current value in them.
	
	db_get shared/news/server
	mkdir -p /etc/news
	echo "$RET" > /etc/news/server
fi

# Then do whatever magic debhelper wants to perform


exit 0