This file is indexed.

postinst is in gnuserv 3.12.8-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
#!/bin/bash -e

# $Id: postinst,v 1.3 2004/02/16 11:23:59 benj Exp $

# Borrowed from xterm postinst
trap "echo ;\
      echo 'Received signal. Aborting configuration of gnuserv package.';\
      echo ;\
      exit 1" 1 2 3 15

case $1 in
    configure)
	for i in gnuattach gnuclient gnudoit; do
	    update-alternatives --install /usr/bin/$i $i /usr/bin/$i.emacs 40 \
		--slave /usr/share/man/man1/$i.1.gz $i.1.gz \
		    /usr/share/man/man1/$i.emacs.1.gz
	done
	
	update-alternatives --install /usr/bin/editor editor /usr/bin/dtemacs 0 \
	    --slave /usr/share/man/man1/editor.1.gz editor.1.gz \
	    /usr/share/man/man1/dtemacs.1.gz

	;;

    *)
	;;
esac

# Automatically added by dh_installemacsen
if [ "$1" = "configure" ] && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ]
then
	/usr/lib/emacsen-common/emacs-package-install --postinst gnuserv
fi
# End automatically added section