Package: openldap
Version: 2.4.41+dfsg-1
Severity: normal
Tags: upstream patch

Hi,

although the lastbind module contains a manual page upstream,
thismanual page isn't included together with the module in Debian's
packaging.

The attached patch, that I use in my private packaging, solves this issue.

This patch is derived from a patch that I sent upstream as part of ITS#8205.

Please incldue this patch into Debian's openldap packaging to document the
lastbind module.

Best
Peter

PS: support for getting the patch series from ITS#8205 incorporated upstream
    is very welcome too.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
>From b8491b2cf9b7101f78f233bfe75366505d95b5b7 Mon Sep 17 00:00:00 2001
From: Peter Marschall <pe...@adpm.de>
Date: Sun, 26 Jul 2015 11:58:02 +0200
Subject: [PATCH] lastbind-makefile-manpage: install slapo-lastbind.5 man page

---
 debian/patches/lastbind-makefile-manpage | 46 ++++++++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 2 files changed, 47 insertions(+)
 create mode 100644 debian/patches/lastbind-makefile-manpage

diff --git a/debian/patches/lastbind-makefile-manpage b/debian/patches/lastbind-makefile-manpage
new file mode 100644
index 0000000..900d051
--- /dev/null
+++ b/debian/patches/lastbind-makefile-manpage
@@ -0,0 +1,46 @@
+--- a/contrib/slapd-modules/lastbind/Makefile
++++ b/contrib/slapd-modules/lastbind/Makefile
+@@ -17,6 +17,7 @@
+ 	$(LDAP_BUILD)/debian/build/libraries/liblber/liblber.la
+ 
+ LIBTOOL = $(LDAP_BUILD)/debian/build/libtool
++INSTALL = /usr/bin/install
+ CC = gcc
+ OPT = -g -O2 -Wall
+ DEFS = -DSLAPD_OVER_LASTBIND=SLAPD_MOD_DYNAMIC
+@@ -25,6 +26,7 @@
+ 
+ PROGRAMS = lastbind.la
+ LTVER = 0:0:0
++MANPAGES = slapo-lastbind.5
+ 
+ prefix=/usr
+ exec_prefix=$(prefix)
+@@ -33,6 +35,8 @@
+ libdir=$(exec_prefix)/lib
+ libexecdir=$(exec_prefix)/libexec
+ moduledir = $(libdir)$(ldap_subdir)
++mandir = $(exec_prefix)/share/man
++man5dir = $(mandir)/man5
+ 
+ .SUFFIXES: .c .o .lo
+ 
+@@ -48,9 +52,17 @@
+ clean:
+ 	rm -rf *.o *.lo *.la .libs
+ 
+-install: $(PROGRAMS)
++install: install-lib install-man FORCE
++
++install-lib: $(PROGRAMS)
+ 	mkdir -p $(DESTDIR)$(moduledir)
+ 	for p in $(PROGRAMS) ; do \
+ 		$(LIBTOOL) --mode=install cp $$p $(DESTDIR)$(moduledir) ; \
+ 	done
+ 
++install-man: $(MANPAGES)
++	mkdir -p  $(DESTDIR)$(man5dir)
++	$(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(man5dir)
++
++FORCE:
++
diff --git a/debian/patches/series b/debian/patches/series
index 260c701..eda3a18 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,6 +12,7 @@ contrib-modules-use-dpkg-buildflags
 smbk5pwd-makefile
 autogroup-makefile
 lastbind-makefile
+lastbind-makefile-manpage
 pw-sha2-makefile
 ldap-conf-tls-cacertdir
 add-tlscacert-option-to-ldap-conf
-- 
2.5.0

Reply via email to