postinst is in debdelta 0.50+2.
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 | #!/bin/sh -e
GPG_MASTER_PUB_KEYRING="/usr/share/keyrings/debian-debdelta-archive-keyring.gpg"
GPG_HOME="/etc/debdelta/gnupg"
case "$1" in
configure|reconfigure)
if test ! -r ${GPG_HOME} ; then
echo "Debdelta: creating keyrings in ${GPG_HOME}"
mkdir ${GPG_HOME}
chmod 0700 ${GPG_HOME}
touch ${GPG_HOME}/secring.gpg ${GPG_HOME}/pubring.gpg
chmod 0600 ${GPG_HOME}/secring.gpg ${GPG_HOME}/pubring.gpg
else
echo "Debdelta: updating public keyring in ${GPG_HOME}"
fi
gpg --no-tty --batch --no-options --no-auto-check-trustdb --homedir ${GPG_HOME} --import ${GPG_MASTER_PUB_KEYRING} || true
;;
esac
|