I don't want to add a separate libuser-ldap package now as I don't want
to pass through NEW just yet (people wait for this package).

I slightly updated the patch (without testing it). The rules part still
doesn't apply, but you just need to add an override to dh_auto_configure
and add those two extra switches.

Attched the slightly updated patch.

-- 
Tzafrir Cohen         | [email protected] | VIM is
http://tzafrir.org.il |                    | a Mutt's
[email protected] |                    |  best
[email protected]    |                    | friend
diff -Naur libuser-0.56.9.dfsg.1/debian/control libuser-0.56.9.dfsg.1-ldap/debian/control
--- libuser-0.56.9.dfsg.1/debian/control	2012-02-22 12:11:56.000000000 +0200
+++ libuser-0.56.9.dfsg.1-ldap/debian/control	2012-02-22 12:00:45.355865316 +0200
@@ -4,6 +4,8 @@
  libpam0g-dev,
  libpopt-dev,
  autotools-dev,
+ libldap2-dev,
+ libsasl2-dev,
 Standards-Version: 3.9.5
 Homepage: https://fedorahosted.org/libuser/
 
@@ -37,6 +38,17 @@
  .
  This package contains the shared library itself.
 
+Package: libuser1-ldap
+Architecture: any
+Depends: ${shlibs:Depends}, libuser1 (= ${binary:Version})
+Section: libs
+Description: user and group account administration library (shared LDAP library)
+ The libuser library implements a standardized interface for manipulating
+ and administering user and group accounts.  The library uses pluggable
+ back-ends to interface to its data sources.
+ .
+ This package includes the libuser modules ldap and sasl. 
+
 Package: python-libuser
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
diff -Naur libuser-0.56.9.dfsg.1/debian/libuser1.install libuser-0.56.9.dfsg.1-ldap/debian/libuser1.install
--- libuser-0.56.9.dfsg.1/debian/libuser1.install	2012-02-22 12:11:56.000000000 +0200
+++ libuser-0.56.9.dfsg.1-ldap/debian/libuser1.install	2012-02-22 11:55:55.471177047 +0200
@@ -1,2 +1,3 @@
 usr/lib/*/*.so.*
-usr/lib/*/libuser/*.so
+usr/lib/*/libuser/libuser_files.so
+usr/lib/*/libuser/libuser_shadow.so
diff -Naur libuser-0.56.9.dfsg.1/debian/libuser1-ldap.install libuser-0.56.9.dfsg.1-ldap/debian/libuser1-ldap.install
--- libuser-0.56.9.dfsg.1/debian/libuser1-ldap.install	1970-01-01 02:00:00.000000000 +0200
+++ libuser-0.56.9.dfsg.1-ldap/debian/libuser1-ldap.install	2012-02-22 12:05:20.316518586 +0200
@@ -0,0 +1,2 @@
+usr/lib/*/libuser/libuser_ldap.so
+usr/lib/*/libuser/libuser_sasldb.so
diff -Naur libuser-0.56.9.dfsg.1/debian/rules libuser-0.56.9.dfsg.1-ldap/debian/rules
--- libuser-0.56.9.dfsg.1/debian/rules	2012-02-22 12:11:56.000000000 +0200
+++ libuser-0.56.9.dfsg.1-ldap/debian/rules	2012-02-22 12:03:46.072294627 +0200
@@ -52,7 +52,7 @@
 	       --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
 	       --prefix=/usr --mandir=\$${prefix}/share/man              \
 	       --infodir=\$${prefix}/share/info --sysconfdir=/etc        \
-	       --with-python --disable-rpath
+	       --with-python --disable-rpath --with-ldap --with-sasl
 
 	# build for pythonX.Y
 	PYTHON=python$* $(MAKE)
@@ -74,6 +74,8 @@
 	    $(CURDIR)/debian/tmp/usr/lib/libuser.so.1.2.0 \
 	    $(CURDIR)/debian/tmp/usr/lib/libuser/libuser_files.so \
 	    $(CURDIR)/debian/tmp/usr/lib/libuser/libuser_shadow.so \
+	    $(CURDIR)/debian/tmp/usr/lib/libuser/libuser_ldap.so \
+	    $(CURDIR)/debian/tmp/usr/lib/libuser/libuser_sasldb.so \
 	    $(CURDIR)/debian/tmp/usr/lib/python$*/site-packages/libusermodule.so
 	mkdir -p $(CURDIR)/debian/python-libuser/usr/lib/python$*/site-packages
 	cp $(CURDIR)/debian/tmp/usr/lib/python$*/site-packages/libusermodule.so \

Reply via email to