Package: gss-ntlmssp
Version: 0.7.0-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu zesty ubuntu-patch
Hi Timo,
In the process of investigating
<https://bugs.launchpad.net/ubuntu/+source/krb5/+bug/1643708>, I discovered
that the gss-ntlmssp package doesn't actually register itself correctly out
of the box, for two reasons:
- per /etc/gss/mech.d/README, mech config files must end in .conf to be
read
- MIT krb5 won't translate ${prefix} to /usr at runtime, this needs to be
written correctly at build time.
I've prepared a small patch to debian/rules that would address both issues,
allowing gss-ntlmssp to be correctly registered for libgssapi-krb5's
purposes on installation.
Since you have a conffile installed in a different (and useless) path, you
would also want to clean this up on upgrade. I suggest just rm_conffile for
this, since in its previous location it seems to be useless so there's no
value in trying to transfer its contents to a new location on upgrade (and
it's difficult to cleanly handle both moving and changing the contents of a
conffile in a single revision).
Thanks for considering,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer http://www.debian.org/
[email protected] [email protected]
diff -u gss-ntlmssp-0.7.0/debian/rules gss-ntlmssp-0.7.0/debian/rules
--- gss-ntlmssp-0.7.0/debian/rules
+++ gss-ntlmssp-0.7.0/debian/rules
@@ -29,7 +29,9 @@
find debian/tmp -name '*.la' -exec rm -f {} ';'
rm -r debian/tmp/usr/share/locale
mkdir -p debian/tmp/etc/gss/mech.d
- install -pm644 examples/mech.ntlmssp debian/tmp/etc/gss/mech.d
+ sed -e's,$${prefix},/usr,' examples/mech.ntlmssp > examples/mech.ntlmssp.conf
+ install -pm644 examples/mech.ntlmssp.conf debian/tmp/etc/gss/mech.d
+ rm -f examples/mech.ntlmssp.conf
override_dh_install:
dh_install --fail-missing