On Mon, Dec 6, 2010 at 17:26:36 +0100, Agustin Martin wrote: > diff -Nru --exclude po --exclude Makefile > libpam-rsa-0.8-9/debian/libpam-rsa.postinst > libpam-rsa-0.8-9/debian/libpam-rsa.postinst > --- libpam-rsa-0.8-9/debian/libpam-rsa.postinst 2010-12-06 > 14:25:58.000000000 +0100 > +++ libpam-rsa-0.8-9/debian/libpam-rsa.postinst 2010-12-06 > 14:25:59.000000000 +0100 > @@ -21,7 +21,33 @@ > > case "$1" in > configure) > + db_get libpam-rsa/no_configuration > + if [ "$RET" = "false" ] > + then > + cat <<EOF > /etc/security/pam_rsa.conf > +# Configuration file for libpam-rsa > +# > +# This file has been automatically generated by libpam-rsa.postinst > +# If you want to manually handle this file, run > +# > +# dpkg-reconfigure libpam-rsa > +# > +# and select no automatic configuration option > +# > +# Please read pam_rsa (8) for further instructions > > +EOF > + db_get libpam-rsa/pubkey_dir > + echo "pubkey_dir $RET" >> /etc/security/pam_rsa.conf > + db_get libpam-rsa/privkey_dir > + echo "privkey_dir $RET" >> /etc/security/pam_rsa.conf > + db_get libpam-rsa/privkey_name_hash > + echo "privkey_name_hash $RET" >> /etc/security/pam_rsa.conf > + db_get libpam-rsa/pam_prompt > + echo "pam_prompt $RET" >> /etc/security/pam_rsa.conf > + db_get libpam-rsa/log_auth_result > + echo "log_auth_result $RET" >> /etc/security/pam_rsa.conf > + fi > ;;
I think this part is broken if pam_rsa.conf already exists, you need to either read the existing values from the config file, or just not touch if it it exists. The first solution usually means reading pam_rsa.conf in the .config script, and seeding debconf with the values from the file. Cheers, Julien
signature.asc
Description: Digital signature