Package: libnss-ldap
Version: 238-1
Severity: normal
Tags: patch

Starting with version 238 upstream nss_ldap provides a man page
which currently is longer and more detailed than Debian's private
version.
Since one can hope that upstream updates the man page when introducing
new features there is little use in providing an own version, which
is usually outdated.

The attached patch should do everything necessary to get upstream's
man page installed with the name Debian users are used to.

CU
Peter

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages libnss-ldap depends on:
ii  debconf                     1.4.30.11    Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libkrb53                    1.3.6-1      MIT Kerberos runtime libraries
ii  libldap2                    2.1.30-3pm1  OpenLDAP libraries

-- debconf information excluded
--- debian/libnss-ldap.install-ok       2005-03-31 17:53:09.135954766 +0200
+++ debian/libnss-ldap.install  2005-03-31 17:53:39.053234297 +0200
@@ -1,5 +1,5 @@
 debian/tmp/usr/lib/* lib
-debian/libnss-ldap.conf.5 usr/share/man/man5
+nss_ldap.5 usr/share/man/man5
 ldap.conf usr/share/libnss-ldap
 debian/examples usr/share/doc/libnss-ldap
 ldap.conf usr/share/doc/libnss-ldap/examples
--- debian/rules-ok     2005-03-31 17:54:48.462962880 +0200
+++ debian/rules        2005-03-31 18:01:25.885984391 +0200
@@ -8,3 +8,15 @@
 DEB_CONFIGURE_EXTRA_FLAGS += --enable-rfc2307bis --with-ldap-lib=openldap 
--with-ldap-conf-file=/etc/libnss-ldap.conf --enable-schema-mapping 
--enable-paged-results
 DEB_DESTDIR = $(CURDIR)/debian/tmp
 DEB_OPT_FLAG += -fPIC
+
+MY_INST_DIR = $(CURDIR)/debian/libnss-ldap/usr/share
+
+binary-post-install/libnss-ldap::
+       # rename man page
+       mv $(MY_INST_DIR)/man/man5/nss_ldap.5 
$(MY_INST_DIR)/man/man5/libnss-ldap.conf.5
+       # change all references from /etc/ldap.conf to /etc/libnss-ldap.conf
+       for file in $(MY_INST_DIR)/man/man5/libnss-ldap.conf.5 ; do \
+         sed -e 's,/etc/ldap.conf,/etc/libnss-ldap.conf,' \
+             < $$file > $$file-sed; \
+         mv $$file-sed $$file; \
+       done

Reply via email to