This file is indexed.

postinst is in speech-dispatcher 0.7.1-6ubuntu3.

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

USER_NAME=speech-dispatcher
HOME_DIR=/var/run/speech-dispatcher

if ! id -u $USER_NAME >/dev/null 2>&1; then
  adduser --quiet --system --ingroup audio \
          --home $HOME_DIR \
          --shell /bin/sh --disabled-login  \
	  --gecos 'Speech Dispatcher' $USER_NAME
  chown -R $USER_NAME $HOME_DIR
elif ! test -d $HOME_DIR; then
  if test -d /var/run/speechd; then
    mv /var/run/speechd $HOME_DIR
  else
    mkdir $HOME_DIR
  fi
fi

chown -R $USER_NAME /var/log/speech-dispatcher

# Automatically added by dh_installinit
if [ -x "/etc/init.d/speech-dispatcher" ]; then
	if [ ! -e "/etc/init/speech-dispatcher.conf" ]; then
		update-rc.d speech-dispatcher defaults >/dev/null
	fi
	invoke-rc.d speech-dispatcher start || true
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
	ldconfig
fi
# End automatically added section