#!/sbin/sh ## ## A simple postinstall script which calls catman against /usr/local/man ## ## Note that this can also be used as a postremove script to re-build the ## manual page index after the package has been removed. ## ## prefix=/usr/local etcdir=${prefix}/etc bindir=${prefix}/bin mandir=${prefix}/man /usr/bin/echo "**\n** Re-building the manual page index in ${mandir}\n**" /usr/bin/catman -w -M ${mandir} /usr/bin/chmod 644 ${mandir}/windex /usr/bin/echo "\n**\n** NOT Removing host keys\n**" /usr/bin/echo "\n**\n** Removing sshd user and sshd group\n**" userdel sshd # groupdel assumes that /tmp and /etc are on the same physical partition TMPDIR=/etc groupdel sshd exit 0