Index: debian/man-db.triggers =================================================================== --- debian/man-db.triggers (revision 0) +++ debian/man-db.triggers (revision 0) @@ -0,0 +1,9 @@ +# Several of these directories are not expected to be used in +# policy-compliant packages, but they're listed in our default +# /etc/manpath.config so we register interest in them for completeness. +interest /usr/man +interest /usr/share/man +interest /usr/local/man +interest /usr/local/share/man +interest /usr/X11R6/man +interest /opt/man Index: debian/postinst =================================================================== --- debian/postinst (revision 2503) +++ debian/postinst (working copy) @@ -1,5 +1,12 @@ #!/bin/sh -e +if [ "$1" = triggered ]; then + echo "Updating database of manual pages ..." >&2 + perl -e '@pwd = getpwnam("man"); $( = $) = $pwd[3]; $< = $> = $pwd[2]; + exec "/usr/bin/mandb", "-pq"' || true + exit 0 +fi + [ "$1" = configure ] || exit 0 oldcatdir=/var/catman Index: debian/changelog =================================================================== --- debian/changelog (revision 2504) +++ debian/changelog (working copy) @@ -1,3 +1,12 @@ +man-db (2.4.4-5) UNRELEASED; urgency=low + + * Add support for dpkg triggers. There's no versioned dependency on a + trigger-supporting version of dpkg since this is an optional feature, + but it does mean that now installation of any package including manual + pages will trigger a database rebuild at the end of the dpkg run. + + -- Colin Watson Mon, 20 Aug 2007 12:26:28 +0100 + man-db (2.4.4-4) unstable; urgency=low * Ignore chown failures, though affected systems are buggy and should be Index: debian/rules =================================================================== --- debian/rules (revision 2503) +++ debian/rules (working copy) @@ -95,6 +95,7 @@ binary-arch: build install dh_compress dh_fixperms dh_installdeb + install -m644 debian/man-db.triggers $(dtmp)/DEBIAN/triggers chown man:root $(dtmp)/var/cache/man chmod 2755 $(dtmp)/var/cache/man dh_shlibdeps