Add debian packaging

Auto configure PAM with pam-auth-update:
  - enable ccreds-check ccreds-save
  - enable krb5
This commit is contained in:
Michel Decima
2021-10-08 10:19:01 +02:00
parent b70f191f1f
commit 433849aaad
8 changed files with 107 additions and 0 deletions

32
debian/postinst vendored Normal file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
set -e
case "$1" in
configure)
# Configure PAM for credential cache
apt-mark manual libpam-ccreds >/dev/null || true
if [ -e /usr/share/pam-configs/ccreds-check ] ; then
pam-auth-update --force --package --enable \
ccreds-check ccreds-save || true
fi
# Configure PAM for Kerberos
if [ -e /usr/share/pam-configs/krb5 ] ; then
pam-auth-update --force --package --enable krb5 || true
fi
;;
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.
#DEBHELPER#
exit 0