This file is indexed.

postinst is in gom 0.30.2-6.

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
#!/bin/sh -e
. /usr/share/debconf/confmodule

# Version <= 0.29.103-6 used this file, not /etc/default/gom. We just delete that silently.
no_auto_init_old=/etc/gom/NO_AUTO_INIT
if [ -e ${no_auto_init_old} ]; then
	rm -f ${no_auto_init_old}
fi

CONFFILE="/etc/default/gom"
if [ ! -e $CONFFILE ] ; then
	echo '# Use debconf to configure this file.' > $CONFFILE
	echo 'auto_init="false"' >> $CONFFILE
	echo 'valid_sound_devices="sound alsa"' >> $CONFFILE
fi

db_get gom/auto_init || true
auto_init="${RET}"
db_get gom/valid_sound_devices || true
valid_sound_devices="${RET}"

cp -a -f $CONFFILE $CONFFILE.tmp

# If the admin deleted or commented some variables but then set
# them via debconf, (re-)add them to the conffile.
test -z "$auto_init" || grep -Eq '^ *auto_init=' $CONFFILE || \
	echo "auto_init=" >> $CONFFILE
test -z "$valid_sound_devices" || grep -Eq '^ *valid_sound_devices=' $CONFFILE || \
	echo "valid_sound_devices=" >> $CONFFILE
	  
sed -e "s/^ *auto_init=.*/auto_init=\"$auto_init\"/" \
	-e "s/^ *valid_sound_devices=.*/valid_sound_devices=\"$valid_sound_devices\"/" \
	< $CONFFILE > $CONFFILE.tmp
mv -f $CONFFILE.tmp $CONFFILE

# Automatically added by dh_installinit
if [ -x "/etc/init.d/gom" ] || [ -e "/etc/init/gom.conf" ]; then
	if [ ! -e "/etc/init/gom.conf" ]; then
		update-rc.d gom start 99 S . >/dev/null
	fi
	invoke-rc.d gom start || exit $?
fi
# End automatically added section
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
	update-menus
fi
# End automatically added section