This file is indexed.

postinst is in asp 1.8-8.

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

set -e

INETDCONF=/etc/inetd.conf
INETDENTRY="asp		dgram	udp	wait	nobody	/usr/sbin/tcpd	/usr/sbin/in.aspd"

case "$1" in
    configure)
	if [ -x /usr/sbin/update-inetd ]; then
	    if grep -q '^asp' $INETDCONF ; then
	        ENABLED=yes
	    else
	        ENABLED=no
	    fi
	    
	    # remove legacy entry:
	    if grep -q "^#$INETDENTRY" $INETDCONF ; then
	        update-inetd --remove asp
	    fi

	    if [ "$ENABLED" = "yes" ]; then
		update-inetd --add "$INETDENTRY"
	    else
	        update-inetd --add "#<off># $INETDENTRY"
	    fi
	fi
        ;;
    abort-upgrade|abort-remove|abort-deconfigure)
	if [ -x /usr/sbin/update-inetd ]; then
	    update-inetd --remove asp
	fi
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac