My first patch installed files into /usr/share/doc/masqmail/masqmail/ instead of /usr/share/doc/masqmail/. Here the corrected patch.
diff -u masqmail-0.2.21/debian/changelog masqmail-0.2.21/debian/changelog --- masqmail-0.2.21/debian/changelog +++ masqmail-0.2.21/debian/changelog @@ -1,3 +1,11 @@ +masqmail (0.2.21-7.1) unstable; urgency=low + + * Non-maintainer upload. + * Fixed directory to message template files in binary by supplying the + datadir to ./configure manually. (Closes: #541297) + + -- Johann Felix Soden <joh...@gmx.de> Fri, 27 Nov 2009 22:19:24 +0100 + masqmail (0.2.21-7) unstable; urgency=low * Fixed segfault when using pipe online detection (Closes: #533006) diff -u masqmail-0.2.21/debian/rules masqmail-0.2.21/debian/rules --- masqmail-0.2.21/debian/rules +++ masqmail-0.2.21/debian/rules @@ -22,6 +22,7 @@ # Add here commands to compile the package. ./configure $(confflags) \ --prefix=/usr --mandir='$${prefix}/share/man' \ + --datadir='$${prefix}/share' \ --with-logdir=/var/log/masqmail \ --with-spooldir=/var/spool/masqmail \ --with-user=mail --with-group=mail \ diff -u masqmail-0.2.21/debian/README.Debian masqmail-0.2.21/debian/README.Debian --- masqmail-0.2.21/debian/README.Debian +++ masqmail-0.2.21/debian/README.Debian @@ -15,6 +15,7 @@ It has been compiled with the options: --prefix=/usr --mandir='$${prefix}/share/man' \ + --datadir='$${prefix}/share' \ --with-logdir=/var/log/masqmail \ --with-spooldir=/var/spool/masqmail \ --with-user=mail --with-group=mail \