This file is indexed.

postinst is in tcpcryptd 0.3~rc1-3.

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

VARLIB=/var/lib/tcpcryptd
TCPCRYPT_USER=debian-tcpcryptd

case $1 in
    configure)
	# add a debian-tcpcryptd user if one does not already exist
	if ! getent passwd "$TCPCRYPT_USER" >/dev/null ; then
	    echo "adding tcpcryptd user..."
	    adduser --quiet --system --no-create-home --group \
		--home "$VARLIB" \
		--shell '/bin/false' \
		--gecos 'tcpcrypt user,,,' \
		"$TCPCRYPT_USER"
	fi        
        mkdir -p "$VARLIB"
        chown "$TCPCRYPT_USER" "$VARLIB"
        chmod 0700 "$VARLIB"
        ;;
esac