#!/bin/sh # postinst script for ident2 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package if ! id -u identd >/dev/null 2>&1; then adduser --quiet --system --home /var/run/identd identd fi mkdir -p /var/run/identd chmod 755 /var/run/identd case "$1" in configure) # Update inetd.conf (first remove any existing, then add the new). update-inetd --remove ident update-inetd --group INFO --add \ "ident\t\tstream\ttcp\tnowait\tidentd /usr/sbin/ident2 ident2 -i -n" ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. exit 0