postinst is in calife 1:3.0.1-4.
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 | #!/bin/sh
set -e
if [ ! -f /etc/calife.auth ]
then
echo 'Creating default /etc/calife.auth'
cat <<EOF > /etc/calife.auth
### /etc/calife.auth for Debian GNU/Linux
## calife.auth-dist
##
## Format
##
## name[:shell_to_be_run][:user1,user2,...,usern]
##
## $Id: //depot/security/calife/main/calife.auth-dist#3 $
#fcb
#roberto:/bin/tcsh
#pb::guest,blaireau
EOF
fi
chown root:root /etc/calife.auth /usr/bin/calife
chmod 600 /etc/calife.auth
chmod u+s /usr/bin/calife
|