postinst is in pidentd 3.0.19.ds1-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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56  | #!/bin/sh
set -e
if ! id -u identd >/dev/null 2>&1; then
	adduser --quiet --system --home /var/run/identd identd
fi
# It is possible that we already have an identd user but no /var/run/pidentd.
mkdir -p /var/run/identd
chown identd:nogroup /var/run/identd
chmod 755 /var/run/identd
enable_if_alone() {
	if ! grep -q ^ident /etc/inetd.conf; then
		update-inetd --pattern identd --enable ident
	fi
}
case "$1" in
abort-upgrade | abort-deconfigure | abort-remove)
	enable_if_alone
	;;
configure)
	if [ ! -f /etc/identd.key ]; then
		ikeygen
	fi
	chown identd /etc/identd.key
	if grep -q identd /etc/inetd.conf; then
		enable_if_alone
	else
		idententry="ident		stream	tcp	wait	identd	/usr/sbin/identd	identd"
		update-inetd --group INFO --add "$idententry"
	fi
	;;
*)
	printf "$0: incorrect arguments: $*\n" >&2
	exit 1
	;;
esac
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	# In case this system is running systemd, we need to ensure that all
	# necessary tmpfiles (if any) are created before starting.
	if [ -d /run/systemd/system ] ; then
		systemd-tmpfiles --create /usr/lib/tmpfiles.d/pidentd.conf >/dev/null || true
	fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	if [ -x "/etc/init.d/pidentd" ]; then
		update-rc.d pidentd start 20 S . >/dev/null
		invoke-rc.d pidentd start || exit $?
	fi
fi
# End automatically added section
 |