postinst is in pidentd 3.0.19.ds1-7.
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 | #!/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 [ -x "/etc/init.d/pidentd" ]; then
if [ ! -e "/etc/init/pidentd.conf" ]; then
update-rc.d pidentd start 20 S . >/dev/null
fi
invoke-rc.d pidentd start || exit $?
fi
# End automatically added section
|