Changes of Revision 3

01-port-fixes.patch Added
x
 
1
@@ -0,0 +1,133 @@
2
+Portability fixes (taken from mozilla packages)
3
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/config/nsinstall.c
4
+===================================================================
5
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/config/nsinstall.c  2010-04-19 19:49:03.000000000 +0200
6
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/config/nsinstall.c   2010-04-19 19:50:06.000000000 +0200
7
+@@ -109,7 +109,7 @@
8
+ }
9
+ #endif /* NEXTSTEP */
10
+ 
11
+-#ifdef LINUX
12
++#if defined(LINUX) || defined(__GLIBC__) || defined(__GNU__)
13
+ #include <getopt.h>
14
+ #endif
15
+ 
16
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/include/portable.h
17
+===================================================================
18
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/include/portable.h 2010-04-19 19:49:30.000000000 +0200
19
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/include/portable.h  2010-04-19 19:50:06.000000000 +0200
20
+@@ -122,7 +122,7 @@
21
+  * some systems don't have the BSD re_comp and re_exec routines
22
+  */
23
+ #ifndef NEED_BSDREGEX
24
+-#if ( defined( SYSV ) || defined( NETBSD ) || defined( freebsd ) || defined( linux ) || defined( DARWIN )) && !defined(sgi)
25
++#if ( defined( SYSV ) || defined( NETBSD ) || defined( freebsd ) || defined( linux ) || defined(__GNU__) || defined(__GLIBC__) || defined( DARWIN )) && !defined(sgi)
26
+ #define NEED_BSDREGEX
27
+ #endif
28
+ #endif
29
+@@ -151,7 +151,8 @@
30
+  * Is snprintf() part of the standard C runtime library?
31
+  */
32
+ #if !defined(HAVE_SNPRINTF)
33
+-#if defined(SOLARIS) || defined(LINUX) || defined(HPUX) || defined(AIX)
34
++#if defined(SOLARIS) || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) || defined(HPUX) || defined(AIX)
35
++
36
+ #define HAVE_SNPRINTF
37
+ #endif
38
+ #if defined(_WINDOWS)
39
+@@ -175,7 +176,7 @@
40
+  * for select()
41
+  */
42
+ #if !defined(WINSOCK) && !defined(_WINDOWS) && !defined(macintosh) && !defined(XP_OS2)
43
+-#if defined(hpux) || defined(LINUX) || defined(SUNOS4) || defined(XP_BEOS)
44
++#if defined(hpux) || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) || defined(SUNOS4) || defined(XP_BEOS)
45
+ #include <sys/time.h>
46
+ #else
47
+ #include <sys/select.h>
48
+@@ -247,15 +248,15 @@
49
+ #define HAVE_TIME_R
50
+ #endif
51
+ 
52
+-#if defined(SNI) || defined(LINUX1_2)
53
++#if defined(SNI) || defined(LINUX1_2) || defined(__GNU__) || defined(__GLIBC__)
54
+ int strcasecmp(const char *, const char *);
55
+ #ifdef SNI
56
+ int strncasecmp(const char *, const char *, int);
57
+-#endif /* SNI */
58
+-#ifdef LINUX1_2
59
++#else /* SNI */
60
+ int strncasecmp(const char *, const char *, size_t);
61
+-#endif /* LINUX1_2 */
62
+-#endif /* SNI || LINUX1_2 */
63
++#endif
64
++#endif /* SNI || LINUX1_2 || __GNU__ || __GLIBC__ */
65
++
66
+ 
67
+ #if defined(_WINDOWS) || defined(macintosh) || defined(XP_OS2) || defined(DARWIN)
68
+ #define GETHOSTBYNAME( n, r, b, l, e )  gethostbyname( n )
69
+@@ -306,7 +307,7 @@
70
+ #define GETHOSTBYNAME( n, r, b, l, e )  gethostbyname_r( n, r, b, l, e )
71
+ #endif
72
+ #if defined(HPUX9) || defined(LINUX1_2) || defined(LINUX2_0) || \
73
+-    defined(LINUX2_1) || defined(SUNOS4) || defined(SNI) || \
74
++    defined(LINUX2_1) || defined(__GNU__) || defined(__GLIBC__) || defined(SUNOS4) || defined(SNI) || \
75
+     defined(SCOOS) || defined(BSDI) || defined(NCR) || \
76
+     defined(NEC) || ( defined(HPUX10) && !defined(_REENTRANT)) || \
77
+     (defined(AIX) && !defined(USE_REENTRANT_LIBC))
78
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.client
79
+===================================================================
80
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libldap/Makefile.client  2010-04-19 19:49:45.000000000 +0200
81
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.client   2010-04-19 19:50:06.000000000 +0200
82
+@@ -177,7 +177,7 @@
83
+ EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib
84
+ endif
85
+ 
86
+-ifeq ($(OS_ARCH), Linux)
87
++ifneq (,$(filter Linux GNU GNU_%, $(OS_ARCH)))
88
+ EXTRA_LIBS = -L$(NSCP_DISTDIR)/$(OBJDIR_NAME)/lib -l$(LBER_LIBNAME)
89
+ EXTRA_LIBS += -L$(NSCP_DISTDIR)/lib
90
+ endif
91
+@@ -253,7 +253,7 @@
92
+ ifeq ($(OS_ARCH), AIX)
93
+   $(LINK_LIB) ../liblber/$(OBJDIR_NAME)/*.a
94
+ else
95
+-ifeq ($(OS_ARCH), Linux)
96
++ifneq (,$(filter Linux GNU GNU_%, $(OS_ARCH)))
97
+   $(LINK_LIB) ../liblber/$(OBJDIR_NAME)/*.a
98
+ else
99
+   $(LINK_LIB) $(EXTRA_LIBS)
100
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.in
101
+===================================================================
102
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libldap/Makefile.in  2010-04-19 19:49:48.000000000 +0200
103
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.in   2010-04-19 19:50:06.000000000 +0200
104
+@@ -202,7 +202,7 @@
105
+ EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME) $(OS_LIBS) -lc
106
+ endif
107
+ 
108
+-ifeq ($(OS_ARCH), Linux)
109
++ifneq (,$(filter Linux GNU GNU_%, $(OS_ARCH)))
110
+ EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME)
111
+ endif
112
+ 
113
+@@ -324,7 +324,7 @@
114
+ ifdef SO_FILES_TO_REMOVE
115
+   -$(RM) $(SO_FILES_TO_REMOVE)
116
+ endif
117
+-ifneq (,$(filter AIX Linux HP-UX Darwin BeOS QNX NetBSD OSF1 OpenBSD, $(OS_ARCH)))
118
++ifneq (,$(filter AIX Linux GNU GNU_% HP-UX Darwin BeOS QNX NetBSD OSF1 OpenBSD, $(OS_ARCH)))
119
+   $(LINK_LIB)
120
+ else
121
+ ifeq ($(OS_ARCH),OS2)
122
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libprldap/ldappr-error.c
123
+===================================================================
124
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libprldap/ldappr-error.c 2010-04-19 19:49:58.000000000 +0200
125
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libprldap/ldappr-error.c  2010-04-19 19:50:06.000000000 +0200
126
+@@ -233,7 +233,7 @@
127
+ 
128
+ #if defined(__hpux) || defined(_AIX) || defined(OSF1) || defined(DARWIN) || \
129
+   defined(BEOS) || defined(FREEBSD) || defined(BSDI) || defined(VMS) || \
130
+-  defined(OPENBSD) || defined(NETBSD)
131
++  defined(OPENBSD) || defined(NETBSD) || defined(__FreeBSD_kernel__)
132
+ #define EDEADLOCK       -1
133
+ #endif
134
+ 
135
02-sonames.patch Added
81
 
1
@@ -0,0 +1,79 @@
2
+Change SO name on debian (follow iceweasel/xulrunner conventions)
3
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.in
4
+===================================================================
5
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libldap/Makefile.in  2010-04-19 19:55:21.000000000 +0200
6
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.in   2010-04-19 19:56:03.000000000 +0200
7
+@@ -122,7 +122,7 @@
8
+ HDIR      = $(topsrcdir)/ldap/include
9
+ 
10
+ LIBLDAP       = $(addprefix $(OBJDIR_NAME)/, $(LIB_PREFIX)$(LDAP_LIBNAME).$(LIB_SUFFIX))
11
+-DLLLDAP       = $(addprefix $(OBJDIR_NAME)/, $(LIB_PREFIX)$(LDAP_LIBNAME).$(DLL_SUFFIX))
12
++DLLLDAP       = $(addprefix $(OBJDIR_NAME)/, $(LIB_PREFIX)$(LDAP_LIBNAME).$(DLL_SUFFIX))$(DEBIAN_SO_SUFFIX)
13
+ 
14
+ INSTALLDIR    = $(DIST)/$(OBJDIR_NAME)
15
+ 
16
+@@ -364,6 +364,7 @@
17
+   $(INSTALL) -m 444 $(LIBLDAP) $(dist_libdir)
18
+   $(INSTALL) -m 444 $(DLLLDAP) $(dist_libdir)
19
+   $(INSTALL) -m 444 $(DLLLDAP) $(dist_bindir)
20
++  ln -sf $(DLLLDAP) $(dist_libdir)/$(LIB_PREFIX)$(LDAP_LIBNAME).$(DLL_SUFFIX)
21
+ endif
22
+ ifeq ($(OS_ARCH), WINNT)
23
+   $(INSTALL) -m 444 $(LIBLDAP) $(dist_libdir)
24
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldif/Makefile.in
25
+===================================================================
26
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libldif/Makefile.in  2010-04-19 19:55:30.000000000 +0200
27
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldif/Makefile.in   2010-04-19 19:56:03.000000000 +0200
28
+@@ -53,7 +53,7 @@
29
+ HDIR      = $(topsrcdir)/ldap/include
30
+ 
31
+ LIBLDIF       = $(addprefix $(OBJDIR_NAME)/, $(LIB_PREFIX)$(LDIF_LIBNAME).$(LIB_SUFFIX))
32
+-DLLLDIF         = $(addprefix $(OBJDIR_NAME)/, $(LIB_PREFIX)$(LDIF_LIBNAME).$(DLL_SUFFIX))
33
++DLLLDIF         = $(addprefix $(OBJDIR_NAME)/, $(LIB_PREFIX)$(LDIF_LIBNAME).$(DLL_SUFFIX))$(DEBIAN_SO_SUFFIX)
34
+ 
35
+ INSTALLDIR      = $(DIST)/$(OBJDIR_NAME)
36
+ 
37
+@@ -163,4 +163,5 @@
38
+   $(INSTALL) -m 444 $(LIBLDIF) $(dist_libdir)
39
+   $(INSTALL) -m 444 $(DLLLDIF) $(dist_libdir)
40
+   $(INSTALL) -m 444 $(DLLLDIF) $(dist_bindir)
41
++  ln -sf $(DLLLDIF) $(dist_libdir)/$(LIB_PREFIX)$(LDIF_LIBNAME).$(DLL_SUFFIX)
42
+ endif
43
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libprldap/Makefile.in
44
+===================================================================
45
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libprldap/Makefile.in    2010-04-19 19:55:36.000000000 +0200
46
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libprldap/Makefile.in 2010-04-19 19:56:03.000000000 +0200
47
+@@ -64,7 +64,7 @@
48
+ LIBPRLDAP =
49
+ endif
50
+ DLLPRLDAP = $(addprefix $(OBJDIR_NAME)/, \
51
+-          $(LIB_PREFIX)$(PRLDAP_LIBNAME).$(DLL_SUFFIX))
52
++          $(LIB_PREFIX)$(PRLDAP_LIBNAME).$(DLL_SUFFIX))$(DEBIAN_SO_SUFFIX)
53
+ 
54
+ INSTALLDIR      = $(DIST)/$(OBJDIR_NAME)
55
+ 
56
+@@ -247,4 +247,5 @@
57
+ ifdef MKSHLIB
58
+   $(INSTALL) -m 555 $(DLLPRLDAP) $(dist_libdir)
59
+   $(INSTALL) -m 444 $(DLLPRLDAP) $(dist_bindir)
60
++  ln -sf $(DLLPRLDAP) $(dist_libdir)/$(LIB_PREFIX)$(PRLDAP_LIBNAME).$(DLL_SUFFIX)
61
+ endif
62
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libssldap/Makefile.in
63
+===================================================================
64
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libssldap/Makefile.in    2010-04-19 19:55:49.000000000 +0200
65
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libssldap/Makefile.in 2010-04-19 19:56:03.000000000 +0200
66
+@@ -60,7 +60,7 @@
67
+ HDIR      = $(topsrcdir)/ldap/include
68
+ 
69
+ LIBSSLDAP = $(addprefix $(SSLOBJDEST)/, $(LIB_PREFIX)$(SSLDAP_LIBNAME).$(LIB_SUFFIX))
70
+-DLLSSLDAP = $(addprefix $(SSLOBJDEST)/, $(LIB_PREFIX)$(SSLDAP_LIBNAME).$(DLL_SUFFIX))
71
++DLLSSLDAP = $(addprefix $(SSLOBJDEST)/, $(LIB_PREFIX)$(SSLDAP_LIBNAME).$(DLL_SUFFIX))$(DEBIAN_SO_SUFFIX)
72
+ 
73
+ INSTALLDIR      = $(DIST)/$(OBJDIR_NAME)
74
+ 
75
+@@ -240,4 +240,5 @@
76
+ ifdef MKSHLIB
77
+   $(INSTALL) -m 555 $(DLLSSLDAP) $(dist_libdir)
78
+   $(INSTALL) -m 444 $(DLLSSLDAP) $(dist_bindir)
79
++  ln -sf $(DLLSSLDAP) $(dist_libdir)/$(LIB_PREFIX)$(SSLDAP_LIBNAME).$(DLL_SUFFIX)
80
+ endif
81
03-pthread-fix.patch Added
16
 
1
@@ -0,0 +1,14 @@
2
+Fix build
3
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.in
4
+===================================================================
5
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libldap/Makefile.in  2010-04-19 20:06:21.000000000 +0200
6
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libldap/Makefile.in   2010-04-19 20:06:42.000000000 +0200
7
+@@ -203,7 +203,7 @@
8
+ endif
9
+ 
10
+ ifneq (,$(filter Linux GNU GNU_%, $(OS_ARCH)))
11
+-EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME)
12
++EXTRA_LIBS = -L$(dist_libdir) -l$(LBER_LIBNAME) -pthread
13
+ endif
14
+ 
15
+ ifeq ($(OS_ARCH), WINNT)
16
04-spelling-typo.patch Added
16
 
1
@@ -0,0 +1,14 @@
2
+Fix typo (silences lintian check)
3
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libssldap/sslerrstrs.h
4
+===================================================================
5
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/ldap/libraries/libssldap/sslerrstrs.h   2010-04-19 20:07:37.000000000 +0200
6
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/ldap/libraries/libssldap/sslerrstrs.h    2010-04-19 20:07:52.000000000 +0200
7
+@@ -247,7 +247,7 @@
8
+ "SSL peer was not expecting a handshake message it received.")
9
+ 
10
+ ER3(SSL_ERROR_DECOMPRESSION_FAILURE_ALERT   , (SSL_ERROR_BASE + 60),
11
+-"SSL peer was unable to succesfully decompress an SSL record it received.")
12
++"SSL peer was unable to successfully decompress an SSL record it received.")
13
+ 
14
+ ER3(SSL_ERROR_HANDSHAKE_FAILURE_ALERT       , (SSL_ERROR_BASE + 61),
15
+ "SSL peer was unable to negotiate an acceptable set of security parameters.")
16
05-configure-fix.patch Added
16
 
1
@@ -0,0 +1,14 @@
2
+Undefined AUX_DIR in configure.in
3
+Index: mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/configure.in
4
+===================================================================
5
+--- mozilla-ldap-sdk-6.0.6+dfsg.orig/c-sdk/configure.in    2010-04-20 23:04:02.000000000 +0200
6
++++ mozilla-ldap-sdk-6.0.6+dfsg/c-sdk/configure.in 2010-04-20 23:04:11.000000000 +0200
7
+@@ -42,7 +42,7 @@
8
+ AC_PREREQ(2.12)
9
+ AC_INIT(ldap/include/ldap.h)
10
+ 
11
+-AC_CONFIG_AUX_DIR(${srcdir}/config/autoconf)
12
++AC_CONFIG_AUX_DIR(config/autoconf)
13
+ AC_CANONICAL_SYSTEM
14
+ 
15
+ dnl ========================================================
16
debian.changelog Added
66
 
1
@@ -0,0 +1,64 @@
2
+mozilla-ldap-sdk (6.0.5-3) unstable; urgency=low
3
+
4
+  * Attempt to build in OBS
5
+
6
+  -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>  Sat,  7 Sep 2013 13:42:23 +0100
7
+
8
+mozilla-ldap-sdk (6.0.5+dfsg-7) unstable; urgency=low
9
+
10
+  * Fixed watch file
11
+  * 3.8.0 policy
12
+  * Fix "dpatch-missing-description" lintian warning
13
+
14
+ -- Michele Baldessari <michele@pupazzo.org>  Fri, 22 Aug 2008 13:40:38 +0200
15
+
16
+mozilla-ldap-sdk (6.0.5+dfsg-6) unstable; urgency=low
17
+
18
+  * Renamed the source package to mozilla-ldap-sdk
19
+  * Renamed the binary packages to libmozillaldap
20
+
21
+ -- Michele Baldessari <michele@pupazzo.org>  Sat, 26 Jul 2008 08:20:26 +0200
22
+
23
+mozldap (6.0.5+dfsg-5) unstable; urgency=low
24
+
25
+  * Fixed up descriptions a bit
26
+
27
+ -- Michele Baldessari <michele@pupazzo.org>  Sun, 25 May 2008 21:17:39 +0200
28
+
29
+mozldap (6.0.5+dfsg-4) unstable; urgency=low
30
+
31
+  * Removed spurious copyright file outside debian/ dir
32
+
33
+ -- Michele Baldessari <michele@pupazzo.org>  Sun, 18 May 2008 00:37:52 +0200
34
+
35
+mozldap (6.0.5+dfsg-3) unstable; urgency=low
36
+
37
+  * Removed silly mozldap.pc creation in debian/rules in favor of shipping a
38
+    complete new .pc file.
39
+
40
+ -- Michele Baldessari <michele@pupazzo.org>  Sat, 17 May 2008 20:40:08 +0200
41
+
42
+mozldap (6.0.5+dfsg-2) unstable; urgency=low
43
+
44
+  * Fixed wrong copyright
45
+  * Package mostly lintian clean
46
+
47
+ -- Michele Baldessari <michele@pupazzo.org>  Sun, 27 Apr 2008 11:56:30 +0200
48
+
49
+mozldap (6.0.5+dfsg-1) unstable; urgency=low
50
+
51
+  * Switched to parseable copyright format
52
+  * Switched to a DFSG tarball (removed non-free
53
+    ldap/docs/ldap-c-api-internet-draft.txt, ldap/examples/macintosh,
54
+    ldap/examples/windows/winldap/res)
55
+
56
+ -- Michele Baldessari <michele@pupazzo.org>  Sun, 27 Apr 2008 11:30:29 +0200
57
+
58
+mozldap (6.0.5-1) unstable; urgency=low
59
+
60
+  * Adapted the icedov portability fixes by Peter Salinger (suggested by Mike
61
+    Hommey)
62
+  * Removed the binary and the windows-only examples (FIXME: these should be
63
+    removed from the source package too)
64
+
65
+ -- Michele Baldessari <michele@pupazzo.org>  Sat, 26 Apr 2008 22:41:22 +0200
66
debian.control Added
49
 
1
@@ -0,0 +1,47 @@
2
+Source: mozilla-ldap-sdk
3
+Section: libs
4
+Priority: optional
5
+Maintainer: Michele Baldessari <michele@acksyn.org>
6
+Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl>
7
+Build-Depends: debhelper (>= 5.0.0), libnss3-dev, libsasl2-dev, libsvrcore-dev, pkg-config, quilt, autoconf, libtool, autotools-dev
8
+Build-Conflicts: autoconf2.13, automake1.4
9
+Standards-Version: 3.9.1
10
+Vcs-Svn: svn://svn.debian.org/svn/pkg-fedora-ds/mozilla-ldap-sdk/trunk/
11
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-fedora-ds/mozilla-ldap-sdk/trunk/
12
+Homepage: http://wiki.mozilla.org/LDAP_C_SDK
13
+
14
+Package: mozldap-tools
15
+Architecture: any
16
+Depends: ${shlibs:Depends}, ${misc:Depends}
17
+Description: Mozilla LDAP client utilities
18
+ The Mozilla LDAP C SDK includes a set of LDAP client
19
+ utilities capable of a unique set of LDAP features.
20
+
21
+Package: libmozldap-0d
22
+Architecture: any
23
+Depends: ${shlibs:Depends}, libnss3-1d, libsvrcore0, libsasl2-2, ${misc:Depends}
24
+Description: Mozilla LDAP client library
25
+ The Mozilla LDAP C SDK is a set of libraries that
26
+ allow applications to communicate with LDAP (Lightweight
27
+ Directory Access Protocol) directory servers.  
28
+
29
+Package: libmozldap-dev
30
+Section: libdevel
31
+Architecture: any
32
+Depends: libmozldap-0d (= ${binary:Version}), libnss3-dev, libsvrcore-dev, libsasl2-dev, ${misc:Depends}
33
+Description: Mozilla LDAP development library
34
+ This package allows development of LDAP applications 
35
+ using the Mozilla LDAP libraries. It includes headers, 
36
+ libraries and links to allow static and dynamic linking.
37
+
38
+Package: libmozldap-0d-dbg
39
+Section: debug
40
+Priority: extra
41
+Architecture: any
42
+Depends: libmozldap-0d (>= ${source:Version}), libnss3-dev, libsvrcore-dev, libsasl2-dev, ${misc:Depends}
43
+Description: Debugging information for the Mozilla LDAP client library
44
+ This package provides detached debugging information for the Mozilla
45
+ LDAP (Lightweight Directory Access Protocol) client libraries. It is 
46
+ useful primarily to permit better backtraces and crash dump analysis after
47
+ problems with the libraries. GDB will find this debug information
48
+ automatically.
49
debian.rules Added
176
 
1
@@ -0,0 +1,174 @@
2
+#!/usr/bin/make -f
3
+
4
+include /usr/share/quilt/quilt.make
5
+
6
+# These are used for cross-compiling and for saving the configure script
7
+# from having to guess our platform (since we know it already)
8
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
10
+DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
11
+
12
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: *\(.*\)-.*$$/\1/ p' | sed -e 's/~.*//')
13
+MOD_MAJOR_VERSION := $(word 1, $(subst ., ,$(UPSTREAM_VERSION)))
14
+MOD_MINOR_VERSION := $(word 2, $(subst ., ,$(UPSTREAM_VERSION)))
15
+MOD_PATCH_VERSION := $(word 3, $(subst ., ,$(UPSTREAM_VERSION)))
16
+
17
+USE_64 := $(shell echo "int main(void) { int assert[(sizeof(long) == 8) ? 1 : -1]; return 0; }" | gcc -o /dev/null -x c - 2> /dev/null && echo --enable-64bit)
18
+
19
+CFLAGS := -Wall -pipe
20
+
21
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
+   CFLAGS += -O0
23
+else
24
+   CFLAGS += -O2 -fno-strict-aliasing
25
+endif
26
+
27
+CFLAGS += -g
28
+SO_SUFFIX := 60
29
+BASEDIR := $(CURDIR)/c-sdk
30
+DISTDIR := $(CURDIR)/mozilla/dist
31
+# FOR AUTOCONF 2.52 AND NEWER ONLY
32
+ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
33
+CONFIGURE_SWITCHES := --build $(DEB_HOST_GNU_TYPE)
34
+else
35
+CONFIGURE_SWITCHES := --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
36
+endif
37
+CONFIGURE_SWITCHES += --prefix=/usr \
38
+           --exec-prefix=/usr \
39
+           --with-dist-prefix=${DISTDIR} \
40
+           --sysconfdir=/etc \
41
+           --mandir=/usr/share/man \
42
+           --with-system-svrcore \
43
+           --with-system-nss \
44
+           --with-system-nspr \
45
+           --with-pthreads \
46
+           --enable-ipv6 \
47
+           --with-sasl \
48
+           $(USE_64)
49
+
50
+DEBIAN_SO :=.0d
51
+
52
+
53
+# These variables are used only by get-orig-source, which will normally only
54
+# be run by maintainers.
55
+VERSION = 6.0.7
56
+URL     = http://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v$(VERSION)/src/
57
+# Download the upstream source and make changes as required for DFSG reasons.
58
+# Assumes wget is available, as this is generally only used by the package
59
+# maintainers.
60
+get-orig-source:
61
+   @if [ ! -f "debian/rules" ] ; then \
62
+            echo 'Run this from the top directory of the Debian source' >&2; \
63
+            exit 1; \
64
+        fi
65
+   wget $(URL)/mozldap-$(VERSION).tar.gz
66
+   tar xzf mozldap-$(VERSION).tar.gz
67
+   rm -r mozldap-$(VERSION)/c-sdk/ldap/docs/
68
+   rm -r mozldap-$(VERSION)/c-sdk/ldap/examples/macintosh
69
+   rm -r mozldap-$(VERSION)/c-sdk/ldap/examples/windows/winldap/res
70
+   mv mozldap-$(VERSION) mozilla-ldap-sdk-$(VERSION)
71
+   tar cf mozilla-ldap-sdk_$(VERSION)+dfsg.orig.tar mozilla-ldap-sdk-$(VERSION)
72
+   rm -r mozilla-ldap-sdk-$(VERSION) mozldap-$(VERSION).tar.gz
73
+   gzip -9 mozilla-ldap-sdk_$(VERSION)+dfsg.orig.tar
74
+
75
+
76
+configure: configure-stamp
77
+configure-stamp: $(QUILT_STAMPFN)
78
+   dh_testdir
79
+   cp /usr/share/misc/config.sub /usr/share/misc/config.guess $(BASEDIR)/config/autoconf
80
+   cd $(BASEDIR) && autoreconf -ivf
81
+   cd $(BASEDIR) && ./configure $(CONFIGURE_SWITCHES)
82
+   touch configure-stamp
83
+
84
+build: build-stamp
85
+build-stamp: configure
86
+   dh_testdir
87
+   # Disable softokn3 linking (see bug #473275)
88
+   $(MAKE) -C $(BASEDIR) \
89
+       NSS_DYNAMIC_SOFTOKN=0 \
90
+       DEBIAN_SO_SUFFIX=$(DEBIAN_SO)
91
+   $(MAKE) -C c-sdk/ldap/clients/tools \
92
+       NSS_DYNAMIC_SOFTOKN=0
93
+
94
+   touch build-stamp
95
+
96
+clean: clean-patched unpatch
97
+clean-patched:
98
+   dh_testdir
99
+   dh_testroot
100
+   [ ! -f $(BASEDIR)/Makefile ] || $(MAKE) -C $(BASEDIR) distclean
101
+   rm -rf $(BASEDIR)/config/now
102
+   rm -rf $(BASEDIR)/config/nsinstall
103
+   #rm -f $(BASEDIR)/ldap/clients/tools/Makefile $(BASEDIR)/ldap/libraries/libutil/Makefile $(BASEDIR)/config/autoconf.mk
104
+   rm -f $(BASEDIR)/ldap/libraries/libutil/Makefile $(BASEDIR)/config/autoconf.mk
105
+   find . -name "*.so.*" -type f -exec rm "{}" \;
106
+   find . -name "*.so" -type f -exec rm "{}" \;
107
+   rm -rf config config.cache config.log config.status Makefile cscope.out
108
+   rm -f $(BASEDIR)/config/autoconf/config.{guess,sub}
109
+   rm -rf $(DISTDIR)
110
+   rm -f patches
111
+   dh_clean build-stamp install-stamp configure-stamp
112
+
113
+install: install-stamp
114
+install-stamp:
115
+   dh_testdir
116
+   dh_testroot
117
+   dh_clean -k
118
+   dh_installdirs
119
+
120
+   mkdir -p $(CURDIR)/debian/tmp/usr/lib/
121
+   # Copy the binary libraries we want
122
+   -for file in libssldap$(SO_SUFFIX).so$(DEBIAN_SO) libprldap$(SO_SUFFIX).so$(DEBIAN_SO) libldap$(SO_SUFFIX).so$(DEBIAN_SO) libldif$(SO_SUFFIX).so$(DEBIAN_SO); \
123
+       do install -m 755 $(DISTDIR)/lib/$$file $(CURDIR)/debian/tmp/usr/lib/; done
124
+
125
+   mkdir -p $(CURDIR)/debian/tmp/usr/lib/mozldap/
126
+   # Copy the utilities we want
127
+   -for file in ldapcompare ldapdelete ldapmodify ldapmodrdn ldappasswd ldapsearch; \
128
+       do install -m 755 $(DISTDIR)/bin/$$file $(CURDIR)/debian/tmp/usr/lib/mozldap; done
129
+
130
+   mkdir -p $(CURDIR)/debian/tmp/usr/include/mozldap
131
+   # Copy the include files
132
+   -for file in $(DISTDIR)/public/ldap/*.h; \
133
+       do echo $$file; install -m 644 $$file $(CURDIR)/debian/tmp/usr/include/mozldap; done
134
+
135
+   mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/libmozldap-dev/examples
136
+   # Copy the examples
137
+   -cp -r $(CURDIR)/c-sdk/ldap/examples/*.[ch] $(CURDIR)/c-sdk/ldap/examples/*.conf $(CURDIR)/debian/tmp/usr/share/doc/libmozldap-dev/examples
138
+
139
+   install -m644 $(CURDIR)/debian/libmozldap-0d.lintian-overrides $(CURDIR)/debian/libmozldap-0d/usr/share/lintian/overrides/libmozldap-0d
140
+   install -m 644 -t $(CURDIR)/debian/libmozldap-dev/usr/lib/pkgconfig/ \
141
+       $(CURDIR)/debian/mozldap.pc
142
+
143
+   install -m 644 -t debian/libmozldap-0d/usr/lib \
144
+       $(CURDIR)/debian/tmp/usr/lib/*.so$(DEBIAN_SO)
145
+
146
+   install -m 644 -t debian/libmozldap-dev/usr/include/mozldap \
147
+       $(CURDIR)/debian/tmp/usr/include/mozldap/*
148
+   cp -r $(CURDIR)/debian/tmp/usr/share/doc/libmozldap-dev/examples/* $(CURDIR)/debian/libmozldap-dev/usr/share/doc/libmozldap-dev/examples
149
+
150
+   install -m 755 -t debian/mozldap-tools/usr/lib/mozldap/ \
151
+       $(CURDIR)/debian/tmp/usr/lib/mozldap/*
152
+
153
+   touch install-stamp
154
+
155
+binary-indep:
156
+
157
+binary-arch: install-stamp
158
+   dh_testdir
159
+   dh_testroot
160
+   dh_installchangelogs -a
161
+   dh_installdocs -a
162
+   dh_link -a
163
+   dh_strip -a --dbg-package=libmozldap-0d-dbg
164
+   dh_compress -a
165
+   dh_fixperms -a
166
+   dh_makeshlibs -a -V 'libmozldap-0d (>= 0.6.5)'
167
+   dh_installdeb -a
168
+   dh_shlibdeps -a
169
+   dh_gencontrol -a
170
+   dh_md5sums -a
171
+   dh_builddeb -a
172
+
173
+binary: binary-arch
174
+
175
+.PHONY: clean install build clean-patched binary-indep binary-arch binary
176
debian.series Added
7
 
1
@@ -0,0 +1,5 @@
2
+01-port-fixes.patch -p1
3
+02-sonames.patch -p1
4
+03-pthread-fix.patch -p1
5
+04-spelling-typo.patch -p1
6
+05-configure-fix.patch -p1
7
debian.tar.gz Added
mozldap.dsc Added
23
 
1
@@ -0,0 +1,21 @@
2
+Format: 1.0
3
+Source: mozilla-ldap-sdk
4
+Binary: mozldap-tools, libmozldap-0d, libmozldap-dev, libmozldap-0d-dbg
5
+Architecture: any
6
+Version: 6.0.5-3
7
+Maintainer: Michele Baldessari <michele@acksyn.org>
8
+Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl>
9
+Homepage: http://wiki.mozilla.org/LDAP_C_SDK
10
+Standards-Version: 3.9.1
11
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-fedora-ds/mozilla-ldap-sdk/trunk/
12
+Vcs-Svn: svn://svn.debian.org/svn/pkg-fedora-ds/mozilla-ldap-sdk/trunk/
13
+Build-Depends: debhelper (>= 5.0.0), libnss3-dev, libsasl2-dev, libsvrcore-dev, pkg-config, quilt, autoconf, libtool, autotools-dev
14
+Build-Conflicts: autoconf2.13, automake1.4
15
+Package-List: 
16
+ libmozldap-0d deb libs optional
17
+ libmozldap-0d-dbg deb debug extra
18
+ libmozldap-dev deb libdevel optional
19
+ mozldap-tools deb libs optional
20
+Files: 
21
+ 00000000000000000000000000000000 0 mozldap-6.0.5.tar.gz
22
+ 00000000000000000000000000000000 0 debian.tar.gz
23