1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/openldap/trunk/Makefile

Revision 17020, 7.4 KB (checked in by dmichelsen, 3 months ago)

openldap/trunk: Enable 64 bit SASL, add build dependencies

  • Property svn:keywords set to Id
Line 
1# $Id$
2
3NAME = openldap
4VERSION = 2.4.28
5GARTYPE = v2
6CATEGORIES = server
7
8DESCRIPTION = Open source implementation of the Lightweight Directory Access Protocol
9define BLURB
10  The OpenLDAP Project is a collaborative effort to develop a robust,
11  commercial-grade, fully featured, and open source LDAP suite of applications
12  and development tools. The project is managed by a worldwide community of
13  volunteers that use the Internet to communicate, plan, and develop the
14  OpenLDAP Suite and its related documentation.
15endef
16
17MASTER_SITES = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/
18DISTFILES  = $(DISTNAME).tgz
19DISTFILES += CSWoldap.postinstall
20DISTFILES += README.CSW openldaprc
21DISTFILES += cswopenldap openldap.xml
22
23EXPANDVARS = cswopenldap
24EXPANDVARS += CSWoldap.postinstall
25
26PATCHFILES += patch-oldap-2.4.16-ntlm.diff
27PATCHFILES += patch-libtool-64bit.diff
28DISTFILES += patch-oldap-2.4.16-ntlm.diff
29
30# Maybe in
31#   /opt/csw/share/man/man5/ldap.conf.5
32# the string
33#   /usr/local/var/ldapi
34# should be replaced by something more sane in the future.
35
36VENDOR_URL = http://www.openldap.org
37
38LICENSE = COPYRIGHT
39
40BUILD_DEP_PKGS += CSWbdb48devel
41BUILD_DEP_PKGS += CSWlibicu-dev
42BUILD_DEP_PKGS += CSWlibtool
43BUILD_DEP_PKGS += CSWunixodbc-dev
44BUILD_DEP_PKGS += CSWsasl-dev
45BUILD_DEP_PKGS += CSWlibssl-dev
46BUILD_DEP_PKGS += CSWlibwrap-dev
47BUILD_DEP_PKGS += CSWperl
48
49PACKAGES += CSWopenldap
50SPKG_DESC_CSWopenldap = OpenLDAP server for Lightweight Directory Access Protocol
51# PKGFILES is catchall
52RUNTIME_DEP_PKGS_CSWopenldap += CSWbdb48
53RUNTIME_DEP_PKGS_CSWopenldap += CSWlibicudata48
54RUNTIME_DEP_PKGS_CSWopenldap += CSWlibicuuc48
55RUNTIME_DEP_PKGS_CSWopenldap += CSWliblber2-4-2
56RUNTIME_DEP_PKGS_CSWopenldap += CSWlibldap-r2-4-2
57RUNTIME_DEP_PKGS_CSWopenldap += CSWlibltdl7
58# We do not want that dependency.
59# RUNTIME_DEP_PKGS_CSWopenldap += CSWlibnet
60# RUNTIME_DEP_PKGS_CSWopenldap += CSWlibnet1
61RUNTIME_DEP_PKGS_CSWopenldap += CSWlibodbc2
62RUNTIME_DEP_PKGS_CSWopenldap += CSWlibsasl2-2
63RUNTIME_DEP_PKGS_CSWopenldap += CSWlibslp1
64RUNTIME_DEP_PKGS_CSWopenldap += CSWlibssl0-9-8
65RUNTIME_DEP_PKGS_CSWopenldap += CSWlibwrap1
66RUNTIME_DEP_PKGS_CSWopenldap += CSWperl
67OBSOLETED_BY_CSWopenldap += CSWoldap
68CATALOGNAME_CSWoldap = openldap_stub
69
70# Evaluate later
71CHECKPKG_OVERRIDES_CSWopenldap += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/slapd.8
72
73PACKAGES += CSWopenldap-client
74SPKG_DESC_CSWopenldap-client = OpenLDAP client executables
75PKGFILES_CSWopenldap-client += $(bindir)/.*
76PKGFILES_CSWopenldap-client += $(mandir)/man1/.*
77RUNTIME_DEP_PKGS_CSWopenldap-client += CSWliblber2-4-2
78RUNTIME_DEP_PKGS_CSWopenldap-client += CSWlibldap2-4-2
79RUNTIME_DEP_PKGS_CSWopenldap-client += CSWlibsasl2-2
80RUNTIME_DEP_PKGS_CSWopenldap-client += CSWlibssl0-9-8
81OBSOLETED_BY_CSWopenldap-client += CSWoldapclient
82CATALOGNAME_CSWoldapclient = openldap_client_stub
83
84PACKAGES += CSWopenldap-dev
85SPKG_DESC_CSWopenldap-dev = OpenLDAP development files for libldap-2.4.so.2, libldap_r-2.4.so.2 and liblber-2.4.so.2
86PKGFILES_CSWopenldap-dev += $(PKGFILES_DEVEL)
87PKGFILES_CSWopenldap-dev += $(mandir)/man3/.*
88RUNTIME_DEP_PKGS_CSWopenldap-dev += CSWliblber2-4-2
89RUNTIME_DEP_PKGS_CSWopenldap-dev += CSWlibldap-r2-4-2
90RUNTIME_DEP_PKGS_CSWopenldap-dev += CSWlibldap2-4-2
91OBSOLETED_BY_CSWopenldap-dev += CSWoldapdevel
92CATALOGNAME_CSWoldapdevel = openldap_devel_stub
93
94PACKAGES += CSWliblber2-4-2
95SPKG_DESC_CSWliblber2-4-2 = OpenLDAP ASN.1 BER library, liblber-2.4.so.2
96PKGFILES_CSWliblber2-4-2 += $(call pkgfiles_lib,liblber-2.4.so.2)
97RUNTIME_DEP_PKGS_CSWlibldap2-4-2 += CSWlibsasl2-2
98RUNTIME_DEP_PKGS_CSWlibldap2-4-2 += CSWlibssl0-9-8
99OBSOLETED_BY_CSWliblber2-4-2 += CSWoldaprt
100CATALOGNAME_CSWoldaprt = openldap_rt_stub
101
102PACKAGES += CSWlibldap2-4-2
103SPKG_DESC_CSWlibldap2-4-2 = OpenLDAP LDAP library, libldap-2.4.so.2
104PKGFILES_CSWlibldap2-4-2 += $(call pkgfiles_lib,libldap-2.4.so.2)
105PKGFILES_CSWlibldap2-4-2 += $(sysconfdir)/ldap.conf
106PKGFILES_CSWlibldap2-4-2 += $(mandir)/man5/ldap.conf.5
107RUNTIME_DEP_PKGS_CSWlibldap2-4-2 += CSWliblber2-4-2
108OBSOLETED_BY_CSWlibldap2-4-2 += CSWoldaprt
109
110# Evaluate later
111CHECKPKG_OVERRIDES_CSWlibldap2-4-2 += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/ldap.conf.5
112
113PACKAGES += CSWlibldap-r2-4-2
114SPKG_DESC_CSWlibldap-r2-4-2 = OpenLDAP reentrant LDAP library, libldap_r-2.4.so.2
115PKGFILES_CSWlibldap-r2-4-2 += $(call pkgfiles_lib,libldap_r-2.4.so.2)
116RUNTIME_DEP_PKGS_CSWlibldap-r2-4-2 += CSWliblber2-4-2
117RUNTIME_DEP_PKGS_CSWlibldap-r2-4-2 += CSWlibsasl2-2
118RUNTIME_DEP_PKGS_CSWlibldap-r2-4-2 += CSWlibssl0-9-8
119OBSOLETED_BY_CSWlibldap-r2-4-2 += CSWoldaprt
120
121FOREIGN_PACKAGES += CSWliblber2-3-0
122OBSOLETED_BY_CSWliblber2-3-0 += CSWoldaprt
123
124FOREIGN_PACKAGES += CSWlibldap2-3-0
125OBSOLETED_BY_CSWlibldap2-3-0 += CSWoldaprt
126
127FOREIGN_PACKAGES += CSWlibldap-r2-3-0
128OBSOLETED_BY_CSWlibldap-r2-3-0 += CSWoldaprt
129
130EXTRA_DOCS = README.CSW $(PATCHFILES) openldaprc
131
132# This is also used during EXPANDVARS
133bdbdir = $(prefix)/bdb48
134
135EXTRA_LIB = $(bdbdir)/lib
136EXTRA_INC = $(bdbdir)/include
137
138sysconfdir = /etc/opt/csw
139localstatedir = /var/opt/csw
140
141MIGRATE_FILES_CSWoldapclient = openldap
142
143# Is this causing this?
144#   https://www.opencsw.org/mantis/view.php?id=4555
145NOISALIST = 1
146LD_OPTIONS =
147EXTRA_LINKER_FLAGS = $(RUNPATH_LINKER_FLAGS)
148
149NODIRPATHS = --docdir
150
151BUILD64 = 1
152
153# This takes some more work, the sbin/ files should be linked to libexec but the linklevel is not deep enough
154# ISAEXEC = 1
155
156CONFIGURE_ARGS = $(DIRPATHS)
157CONFIGURE_ARGS += --enable-crypt
158CONFIGURE_ARGS += --enable-lmpasswd
159CONFIGURE_ARGS += --enable-modules
160CONFIGURE_ARGS += --enable-rlookups
161CONFIGURE_ARGS += --enable-slp
162CONFIGURE_ARGS += --enable-wrappers
163CONFIGURE_ARGS += --enable-backends=mod
164CONFIGURE_ARGS += --enable-overlays=mod
165CONFIGURE_ARGS += --enable-spasswd
166CONFIGURE_ARGS += --with-cyrus-sasl
167
168# Is the absence of this arg causing https://www.opencsw.org/mantis/view.php?id=4468 ?
169CONFIGURE_ARGS += --enable-dynamic
170
171# Disable MySQL Cluster
172CONFIGURE_ARGS += --disable-ndb
173
174# This libnet is meant to be provided for BeOS only, the libnet.so picked up from OpenCSW
175# is completely unrelated. Disable the linkage until this is fixed:
176#   http://www.openldap.org/its/index.cgi?findid=7071
177CONFIGURE_ARGS += ac_cv_lib_net_main=no
178CONFIGURE_ARGS += ac_cv_lib_net_socket=no
179
180# We have Perl only for 32 bit:
181#   <http://opencsw.org/mantis/view.php?id=4484>
182CONFIGURE_ARGS_32 += --enable-perl=mod
183CONFIGURE_ARGS_64 += --enable-perl=no
184
185CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(MEMORYMODEL))
186
187# The testsuite takes a couple of hours
188SKIPTEST ?= 1
189
190# Perl backend is built, although it has been told not to.
191EXTRA_PAX_ARGS = -s ,.*/opt/csw/libexec/sparcv9/openldap/back_perl.*,,
192EXTRA_PAX_ARGS = -s ,.*/opt/csw/libexec/amd64/openldap/back_perl.*,,
193
194# These are the config templates. As we have preserveconf which takes
195# care of this we exclude them in the package.
196EXTRA_MERGE_EXCLUDE_FILES = .*\.default
197
198PRESERVECONF  = /etc/opt/csw/openldap/ldap.conf
199PRESERVECONF += /etc/opt/csw/openldap/slapd.conf
200
201INITSMF = /etc/opt/csw/init.d/cswopenldap
202
203include gar/category.mk
204
205CFLAGS := $(filter-out -I%,$(CFLAGS))
206DIRECTORY_EXPORTS := $(filter-out includedir,$(DIRECTORY_EXPORTS))
207
208post-merge-modulated:
209        ginstall -D $(WORKDIR)/cswopenldap \
210                $(PKGROOT)/etc/opt/csw/init.d/cswopenldap
211        $(foreach F,$(EXTRA_DOCS),ginstall --mode=644 -D $(WORKDIR)/$F $(PKGROOT)$(docdir)/$(NAME)/$F;)
212        @# Enable BDB backend so OpenLDAP can start
213        perl -pi -e 's/#\s*(modulepath)/$$1/; s/#\s*(moduleload\s*back_bdb.la)/$$1/' $(PKGROOT)$(sysconfdir)/openldap/slapd.conf
214        @$(MAKECOOKIE)
Note: See TracBrowser for help on using the browser.