README.configure
1#
2# ***** BEGIN LICENSE BLOCK *****
3# Version: MPL 1.1/GPL 2.0/LGPL 2.1
4#
5# The contents of this file are subject to the Mozilla Public License Version
6# 1.1 (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8# http://www.mozilla.org/MPL/
9#
10# Software distributed under the License is distributed on an "AS IS" basis,
11# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12# for the specific language governing rights and limitations under the
13# License.
14#
15# The Original Code is mozilla.org code.
16#
17# The Initial Developer of the Original Code is
18# Netscape Communications Corporation.
19# Portions created by the Initial Developer are Copyright (C) 2002
20# the Initial Developer. All Rights Reserved.
21#
22# Contributor(s):
23#
24# Alternatively, the contents of this file may be used under the terms of
25# either of the GNU General Public License Version 2 or later (the "GPL"),
26# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27# in which case the provisions of the GPL or the LGPL are applicable instead
28# of those above. If you wish to allow use of your version of this file only
29# under the terms of either the GPL or the LGPL, and not to allow others to
30# use your version of this file under the terms of the MPL, indicate your
31# decision by deleting the provisions above and replace them with the notice
32# and other provisions required by the GPL or the LGPL. If you do not delete
33# the provisions above, a recipient may use your version of this file under
34# the terms of any one of the MPL, the GPL or the LGPL.
35#
36# ***** END LICENSE BLOCK *****
37
38The autoconf files here are a minimal shim to allow the LDAP C SDK to
39build with autoconf. These are currently just a slightly modified
40version of the existing Makefile.client-based build system, merged
41with a copy of the NSPR autoconf stuff. As in the main browser tree,
42I've checked in the (generated) configure script so that autoconf
43isn't a prerequisite to build.
44
45My hope is that the owners of the C SDK will be interested in
46migrating to this build system, so that over time it can evolve into a
47true autoconf-style build system with all the goodies that go with
48that (ie configure-time feature tests for faster porting to new
49platforms, cross-compilation support, etc.).
50
51Comments to <news://news.mozilla.org/netscape.public.mozilla.directory>,
52please.
53
54Dan Mosedale
55<dmose@netscape.com>
56
README.rpm
1#
2# ***** BEGIN LICENSE BLOCK *****
3# Version: MPL 1.1/GPL 2.0/LGPL 2.1
4#
5# The contents of this file are subject to the Mozilla Public License Version
6# 1.1 (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8# http://www.mozilla.org/MPL/
9#
10# Software distributed under the License is distributed on an "AS IS" basis,
11# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12# for the specific language governing rights and limitations under the
13# License.
14#
15# The Original Code is mozilla.org code.
16#
17# The Initial Developer of the Original Code is
18# Netscape Communications Corporation.
19# Portions created by the Initial Developer are Copyright (C) 2002
20# the Initial Developer. All Rights Reserved.
21#
22# Contributor(s):
23#
24# Alternatively, the contents of this file may be used under the terms of
25# either of the GNU General Public License Version 2 or later (the "GPL"),
26# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27# in which case the provisions of the GPL or the LGPL are applicable instead
28# of those above. If you wish to allow use of your version of this file only
29# under the terms of either the GPL or the LGPL, and not to allow others to
30# use your version of this file under the terms of the MPL, indicate your
31# decision by deleting the provisions above and replace them with the notice
32# and other provisions required by the GPL or the LGPL. If you do not delete
33# the provisions above, a recipient may use your version of this file under
34# the terms of any one of the MPL, the GPL or the LGPL.
35#
36# ***** END LICENSE BLOCK *****
37
38The mozldap.spec file can be used to build an RPM package. This
39spec file produces 3 packages:
40
41mozldap - the core runtime shared libraries libssldap50.so,
42libprldap50.so, and libldap50.so, along with major and minor
43version symlinks (see the %files section). These files are
44placed in the system LIBDIR (usually /usr/lib or /usr/lib64).
45
46mozldap-tools - the command line tools ldapsearch, ldapmodify,
47ldapdelete, ldapcmp, ldapcompare - these are placed in a
48subdirectory of LIBDIR called mozldap, so as not to conflict
49with the OpenLDAP versions of ldapsearch, ldapmodify, etc.
50which are present in almost every linux distro in /usr/bin
51(the libs don't conflict because they have different names).
52This package is not required if you only need the libs for
53application support (e.g. Thunderbird), but it is a good
54idea if you need to test some LDAP client feature that is
55not supported by the OpenLDAP tools, or want to use NSS
56for crypto with ldapsearch et. al.
57
58mozldap-devel - the include files, example code, config files,
59and pkg-config .pc file. The include files are placed in a
60mozldap subdirectory of the system INCDIR (usually /usr/include)
61so as not to conflict with the OpenLDAP include files in
62/usr/include. The example code and config files go into the
63/usr/share/mozldap directory. The mozldap.pc file goes into
64the usual pkg-config directory, so you can get information
65about the lib and include directories when building other
66applications that use mozldap, e.g.
67 /usr/bin/pkg-config --cflags-only-I mozldap
68
69Build Dependencies: nspr-devel, nss-devel, and svrcore-devel
70Runtime Dependencies: nspr, nss
71
72These packages should be available for download from ftp.mozilla.org
73or from your favorite RPM/yum repository. If these packages are
74installed, and have the proper pkg-config installed, the rpmbuild
75will automatically find them - see config/autoconf/*.m4.
76
77This RPM uses NSS for crypto and SVRCORE for secure PIN
78management, which in turn depend on NSPR. If you do not want that,
79you can create a new mozldap.spec file that removes those
80dependencies (edit Requires: and BuildRequires:) and removes those
81from the build (e.g. use --without-nss for the configure command).
82
83Comments to <news://news.mozilla.org/netscape.public.mozilla.directory>,
84please.
85
86- Rich Megginson <richm@stanfordalumni.org>
87