This file is indexed.

postinst is in xawtv 3.103-3build1.

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh -e

# debconf lib
. /usr/share/debconf/confmodule

# init variables
mode="$1"
mkcfg="true"
tvnorm=""
freqtab=""
doscan=""

# build xawtv config?
if test -s /etc/X11/xawtvrc; then
	mkcfg="false"
fi
if test "$mode" = "reconfigure"; then
	mkcfg="true"
fi
if test "$mkcfg" = "true"; then
	db_get xawtv/build-config
	mkcfg="$RET"
fi

if test "$mkcfg" = "true"; then
	# configuration
	db_get xawtv/tvnorm
	tvnorm="$RET"
	db_get xawtv/freqtab
	freqtab="$RET"
	db_get xawtv/channel-scan
	doscan="$RET"

	# create default config
	cmd="scantv -n $tvnorm -f $freqtab -o /etc/X11/xawtvrc"

	if test "$doscan" = "false"; then
		cmd="$cmd -s"
	fi

    # finally, run scantv, catching the error
	if ! $cmd; then
		true # TODO: create a new debconf template to show the error
	fi
fi

#########################################################
db_stop

#########################################################
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section