postinst is in binkd 0.9.11-1.1.
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
# create new ftn user and group 64000.64000
if [ "$1" = configure ] && ! id ftn > /dev/null 2>&1; then
adduser --system --home /var/spool/ftn --uid 64000 --group \
--disabled-password --gecos Fidonet ftn
chsh -s /bin/bash ftn
fi
if [ -x /usr/sbin/update-inetd ]; then
update-inetd --add 'binkp\t\tstream\ttcp\tnowait\tftn\t/usr/sbin/tcpd\t/usr/sbin/binkd -i -s -q /etc/binkd/binkd.cfg'
fi
# Automatically added by dh_installinit
if [ -x "/etc/init.d/binkd" ]; then
if [ ! -e "/etc/init/binkd.conf" ]; then
update-rc.d binkd defaults >/dev/null
fi
invoke-rc.d binkd start || exit $?
fi
# End automatically added section
|