[Pkg-openldap-devel] r1134 - openldap/trunk/debian

matthijs at alioth.debian.org matthijs at alioth.debian.org
Sun May 25 19:34:07 UTC 2008


Author: matthijs
Date: 2008-05-25 19:34:06 +0000 (Sun, 25 May 2008)
New Revision: 1134

Added:
   openldap/trunk/debian/make_smbk5pwd
   openldap/trunk/debian/slapd-smbk5pwd.install
Modified:
   openldap/trunk/debian/control
   openldap/trunk/debian/rules
Log:
 * Add smbk5pwd overlay.


Modified: openldap/trunk/debian/control
===================================================================
--- openldap/trunk/debian/control	2008-05-25 18:27:14 UTC (rev 1133)
+++ openldap/trunk/debian/control	2008-05-25 19:34:06 UTC (rev 1134)
@@ -7,7 +7,7 @@
  libgnutls-dev (>= 1.7), unixodbc-dev, libncurses5-dev, libperl-dev (>= 5.8.0),
  libsasl2-dev, libslp-dev, libltdl3-dev (>= 1.4.3),
  libwrap0-dev, perl, debconf-utils, po-debconf, quilt (>= 0.40),
- autotools-dev, libtool, automake, autoconf, groff-base
+ autotools-dev, libtool, automake, autoconf, groff-base, heimdal-dev (>= 1.0.1-5)
 Build-Conflicts: libbind-dev, bind-dev, libicu-dev
 Standards-Version: 3.7.3
 Homepage: http://www.openldap.org/
@@ -92,3 +92,14 @@
  primarily to permit better backtraces and crash dump analysis after
  problems with the libraries. GDB will find this debug information
  automatically.
+
+Package: slapd-smbk5pwd
+Section: net
+Priority: extra
+Architecture: any
+Depends: slapd (= ${binary:Version}), libkadm5srv8-heimdal (>= 1.0.1-5), libkrb5-22-heimdal (>= 1.0.1-5), libroken18-heimdal (>= 1.0.1-5), libasn1-8-heimdal (>= 1.0.1-5), libhx509-1-heimdal (>= 1.0.1-5), libhdb9-heimdal (>= 1.0.1-5)
+Description: Keeps Samba and Kerberos passwords in sync within slapd.
+ Extends the PasswordModify Extended Operationto update Kerberos keys
+ and Samba password hashes for an LDAP user. The Kerberos support is
+ written for Heimdal using its hdb-ldap backend. The Samba support is
+ written using the Samba 3.0 LDAP schema.

Added: openldap/trunk/debian/make_smbk5pwd
===================================================================
--- openldap/trunk/debian/make_smbk5pwd	                        (rev 0)
+++ openldap/trunk/debian/make_smbk5pwd	2008-05-25 19:34:06 UTC (rev 1134)
@@ -0,0 +1,57 @@
+#! /bin/sh
+
+set -e
+
+echo -n "Checking for Heimdal/Samba libs: "
+if [ ! -e /usr/lib/libroken.la ]; then
+    echo ''
+    echo "  Failed, no Heimdal dev files."
+    exit 30
+else
+    echo "Found."
+fi
+
+cd contrib/slapd-modules/smbk5pwd
+
+perl -pi -e "
+s/LIBTOOL=..\/..\/..\/libtool/LIBTOOL=..\/..\/..\/debian\/build\/libtool/ ;
+s/HEIMDAL_INC=-I\/usr\/heimdal\/include/HEIMDAL_INC=-I\/usr\/include\/gssapi -I\/usr\/include\/kadm5 -I\/usr\/include\/krb5 -I\/usr\/include\/roken/ ;
+s/LDAP_INC=-I..\/..\/..\/include -I..\/..\/..\/servers\/slapd/LDAP_INC=-I..\/..\/..\/debian\/build\/include -I..\/..\/..\/debian\/build\/servers\/slapd -I..\/..\/..\/include -I..\/..\/..\/servers\/slapd/ ;
+s/HEIMDAL_LIB=-L\/usr\/heimdal\/lib -lkrb5 -lkadm5srv/HEIMDAL_LIB=-L\/usr\/lib -lkrb5 -lkadm5srv/ ;
+s/\/usr\/local\/libexec\/openldap/\/usr\/lib\/ldap/ ;
+" Makefile
+
+make
+
+mv .libs/smbk5pwd.so.0.0.0 .
+chmod 755 smbk5pwd.la smbk5pwd.so.0.0.0
+
+ln -s smbk5pwd.so.0.0.0 smbk5pwd.so.0.0
+ln -s smbk5pwd.so.0.0 smbk5pwd.so.0
+ln -s smbk5pwd.so.0 smbk5pwd.so
+
+
+perl -pi -e "
+s/dlname='smbk5pwd.so.0'/dlname='smbk5pwd.so'/ ;
+s/library_names='.*'/library_names='smbk5pwd.so smbk5pwd.so.0 smbk5pwd.so.0.0 smbk5pwd.so.0.0.0'/ ;
+" smbk5pwd.la
+
+gzip --best README
+chmod 644 README.gz
+
+chown root:root *
+
+mkdir -p ../../../debian/tmp/usr/share/doc/slapd-smbk5pwd/
+cp -p README.gz ../../../debian/tmp/usr/share/doc/slapd-smbk5pwd/
+
+mkdir -p ../../../debian/tmp/usr/lib/ldap 
+mv smbk5pwd.so* smbk5pwd.la ../../../debian/tmp/usr/lib/ldap/
+
+gzip -d README.gz
+rm smbk5pwd.lo
+rm -rf .libs
+
+cd ../../../
+
+exit 0
+

Modified: openldap/trunk/debian/rules
===================================================================
--- openldap/trunk/debian/rules	2008-05-25 18:27:14 UTC (rev 1133)
+++ openldap/trunk/debian/rules	2008-05-25 19:34:06 UTC (rev 1134)
@@ -135,6 +135,7 @@
 
 	dh_installdirs -a
 	cp -al $(installdir) $(tmpdir)
+	sh debian/make_smbk5pwd
 
 	dh_install -a
 	chmod 0755 $(CURDIR)/debian/slapd/usr/share/slapd/ldiftopasswd

Added: openldap/trunk/debian/slapd-smbk5pwd.install
===================================================================
--- openldap/trunk/debian/slapd-smbk5pwd.install	                        (rev 0)
+++ openldap/trunk/debian/slapd-smbk5pwd.install	2008-05-25 19:34:06 UTC (rev 1134)
@@ -0,0 +1,6 @@
+debian/tmp/usr/lib/ldap/smbk5pwd.la usr/lib/ldap
+debian/tmp/usr/lib/ldap/smbk5pwd.so.0.0.0 usr/lib/ldap
+debian/tmp/usr/lib/ldap/smbk5pwd.so.0.0 usr/lib/ldap
+debian/tmp/usr/lib/ldap/smbk5pwd.so.0 usr/lib/ldap
+debian/tmp/usr/lib/ldap/smbk5pwd.so usr/lib/ldap
+debian/tmp/usr/share/doc/slapd-smbk5pwd/README.gz usr/share/doc/slapd-smbk5pwd




More information about the Pkg-openldap-devel mailing list