Package: libpam-ldap
Version: 178-1
Severity: normal
Tags: patch

Starting with version 178 upstream pam_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.

The patch also shows how to change the name of the config file
on the fly in the files that get installed instead of in the source
files, thus eliminating the need to patch the changed name into the
sources. (keeps the debian diff shorter ;-)))

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 libpam-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  libldap2                    2.1.30-3pm1  OpenLDAP libraries
ii  libpam0g                    0.76-22      Pluggable Authentication Modules l

-- debconf information excluded
--- debian/libpam-ldap.install-ok       2005-03-31 17:54:04.839303835 +0200
+++ debian/libpam-ldap.install  2005-03-31 17:54:36.008344213 +0200
@@ -4,4 +4,4 @@
 chfn usr/share/doc/libpam-ldap/examples
 chsh usr/share/doc/libpam-ldap/examples
 pam.conf usr/share/doc/libpam-ldap/examples
-debian/pam_ldap.conf.5 usr/share/man/man5
+pam_ldap.5 usr/share/man/man5
--- debian/rules-ok     2005-03-31 17:54:43.866841660 +0200
+++ debian/rules        2005-03-31 18:01:16.637752213 +0200
@@ -8,3 +8,17 @@
 DEB_CONFIGURE_EXTRA_FLAGS += --with-ldap-lib=openldap 
--with-ldap-conf-file=/etc/pam_ldap.conf
 DEB_DESTDIR = $(CURDIR)/debian/tmp
 DEB_OPT_FLAG += -fPIC
+
+MY_INST_DIR = $(CURDIR)/debian/libpam-ldap/usr/share
+
+binary-post-install/libpam-ldap::
+       # rename man page
+       mv $(MY_INST_DIR)/man/man5/pam_ldap.5 
$(MY_INST_DIR)/man/man5/pam_ldap.conf.5
+       # change all references from /etc/ldap.conf to /etc/pam_ldap.conf
+       for file in $(MY_INST_DIR)/man/man5/pam_ldap.conf.5 \
+                   $(MY_INST_DIR)/doc/libpam-ldap/examples/chfn \
+                   $(MY_INST_DIR)/doc/libpam-ldap/examples/chsh ; do \
+         sed -e 's,/etc/ldap.conf,/etc/pam_ldap.conf,' \
+             < $$file > $$file-sed; \
+         mv $$file-sed $$file; \
+       done

Reply via email to