| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | NAME = openldap |
|---|
| 4 | VERSION = 2.4.28 |
|---|
| 5 | GARTYPE = v2 |
|---|
| 6 | CATEGORIES = server |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION = Open source implementation of the Lightweight Directory Access Protocol |
|---|
| 9 | define 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. |
|---|
| 15 | endef |
|---|
| 16 | |
|---|
| 17 | MASTER_SITES = ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ |
|---|
| 18 | DISTFILES = $(DISTNAME).tgz |
|---|
| 19 | DISTFILES += CSWoldap.postinstall |
|---|
| 20 | DISTFILES += README.CSW openldaprc |
|---|
| 21 | DISTFILES += cswopenldap openldap.xml |
|---|
| 22 | |
|---|
| 23 | EXPANDVARS = cswopenldap |
|---|
| 24 | EXPANDVARS += CSWoldap.postinstall |
|---|
| 25 | |
|---|
| 26 | PATCHFILES += patch-oldap-2.4.16-ntlm.diff |
|---|
| 27 | PATCHFILES += patch-libtool-64bit.diff |
|---|
| 28 | DISTFILES += 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 | |
|---|
| 36 | VENDOR_URL = http://www.openldap.org |
|---|
| 37 | |
|---|
| 38 | LICENSE = COPYRIGHT |
|---|
| 39 | |
|---|
| 40 | BUILD_DEP_PKGS += CSWbdb48devel |
|---|
| 41 | BUILD_DEP_PKGS += CSWlibicu-dev |
|---|
| 42 | BUILD_DEP_PKGS += CSWlibtool |
|---|
| 43 | BUILD_DEP_PKGS += CSWunixodbc-dev |
|---|
| 44 | BUILD_DEP_PKGS += CSWsasl-dev |
|---|
| 45 | BUILD_DEP_PKGS += CSWlibssl-dev |
|---|
| 46 | BUILD_DEP_PKGS += CSWlibwrap-dev |
|---|
| 47 | BUILD_DEP_PKGS += CSWperl |
|---|
| 48 | |
|---|
| 49 | PACKAGES += CSWopenldap |
|---|
| 50 | SPKG_DESC_CSWopenldap = OpenLDAP server for Lightweight Directory Access Protocol |
|---|
| 51 | # PKGFILES is catchall |
|---|
| 52 | RUNTIME_DEP_PKGS_CSWopenldap += CSWbdb48 |
|---|
| 53 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibicudata48 |
|---|
| 54 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibicuuc48 |
|---|
| 55 | RUNTIME_DEP_PKGS_CSWopenldap += CSWliblber2-4-2 |
|---|
| 56 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibldap-r2-4-2 |
|---|
| 57 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibltdl7 |
|---|
| 58 | # We do not want that dependency. |
|---|
| 59 | # RUNTIME_DEP_PKGS_CSWopenldap += CSWlibnet |
|---|
| 60 | # RUNTIME_DEP_PKGS_CSWopenldap += CSWlibnet1 |
|---|
| 61 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibodbc2 |
|---|
| 62 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibsasl2-2 |
|---|
| 63 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibslp1 |
|---|
| 64 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibssl0-9-8 |
|---|
| 65 | RUNTIME_DEP_PKGS_CSWopenldap += CSWlibwrap1 |
|---|
| 66 | RUNTIME_DEP_PKGS_CSWopenldap += CSWperl |
|---|
| 67 | OBSOLETED_BY_CSWopenldap += CSWoldap |
|---|
| 68 | CATALOGNAME_CSWoldap = openldap_stub |
|---|
| 69 | |
|---|
| 70 | # Evaluate later |
|---|
| 71 | CHECKPKG_OVERRIDES_CSWopenldap += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/slapd.8 |
|---|
| 72 | |
|---|
| 73 | PACKAGES += CSWopenldap-client |
|---|
| 74 | SPKG_DESC_CSWopenldap-client = OpenLDAP client executables |
|---|
| 75 | PKGFILES_CSWopenldap-client += $(bindir)/.* |
|---|
| 76 | PKGFILES_CSWopenldap-client += $(mandir)/man1/.* |
|---|
| 77 | RUNTIME_DEP_PKGS_CSWopenldap-client += CSWliblber2-4-2 |
|---|
| 78 | RUNTIME_DEP_PKGS_CSWopenldap-client += CSWlibldap2-4-2 |
|---|
| 79 | RUNTIME_DEP_PKGS_CSWopenldap-client += CSWlibsasl2-2 |
|---|
| 80 | RUNTIME_DEP_PKGS_CSWopenldap-client += CSWlibssl0-9-8 |
|---|
| 81 | OBSOLETED_BY_CSWopenldap-client += CSWoldapclient |
|---|
| 82 | CATALOGNAME_CSWoldapclient = openldap_client_stub |
|---|
| 83 | |
|---|
| 84 | PACKAGES += CSWopenldap-dev |
|---|
| 85 | SPKG_DESC_CSWopenldap-dev = OpenLDAP development files for libldap-2.4.so.2, libldap_r-2.4.so.2 and liblber-2.4.so.2 |
|---|
| 86 | PKGFILES_CSWopenldap-dev += $(PKGFILES_DEVEL) |
|---|
| 87 | PKGFILES_CSWopenldap-dev += $(mandir)/man3/.* |
|---|
| 88 | RUNTIME_DEP_PKGS_CSWopenldap-dev += CSWliblber2-4-2 |
|---|
| 89 | RUNTIME_DEP_PKGS_CSWopenldap-dev += CSWlibldap-r2-4-2 |
|---|
| 90 | RUNTIME_DEP_PKGS_CSWopenldap-dev += CSWlibldap2-4-2 |
|---|
| 91 | OBSOLETED_BY_CSWopenldap-dev += CSWoldapdevel |
|---|
| 92 | CATALOGNAME_CSWoldapdevel = openldap_devel_stub |
|---|
| 93 | |
|---|
| 94 | PACKAGES += CSWliblber2-4-2 |
|---|
| 95 | SPKG_DESC_CSWliblber2-4-2 = OpenLDAP ASN.1 BER library, liblber-2.4.so.2 |
|---|
| 96 | PKGFILES_CSWliblber2-4-2 += $(call pkgfiles_lib,liblber-2.4.so.2) |
|---|
| 97 | RUNTIME_DEP_PKGS_CSWlibldap2-4-2 += CSWlibsasl2-2 |
|---|
| 98 | RUNTIME_DEP_PKGS_CSWlibldap2-4-2 += CSWlibssl0-9-8 |
|---|
| 99 | OBSOLETED_BY_CSWliblber2-4-2 += CSWoldaprt |
|---|
| 100 | CATALOGNAME_CSWoldaprt = openldap_rt_stub |
|---|
| 101 | |
|---|
| 102 | PACKAGES += CSWlibldap2-4-2 |
|---|
| 103 | SPKG_DESC_CSWlibldap2-4-2 = OpenLDAP LDAP library, libldap-2.4.so.2 |
|---|
| 104 | PKGFILES_CSWlibldap2-4-2 += $(call pkgfiles_lib,libldap-2.4.so.2) |
|---|
| 105 | PKGFILES_CSWlibldap2-4-2 += $(sysconfdir)/ldap.conf |
|---|
| 106 | PKGFILES_CSWlibldap2-4-2 += $(mandir)/man5/ldap.conf.5 |
|---|
| 107 | RUNTIME_DEP_PKGS_CSWlibldap2-4-2 += CSWliblber2-4-2 |
|---|
| 108 | OBSOLETED_BY_CSWlibldap2-4-2 += CSWoldaprt |
|---|
| 109 | |
|---|
| 110 | # Evaluate later |
|---|
| 111 | CHECKPKG_OVERRIDES_CSWlibldap2-4-2 += file-with-bad-content|/usr/local|root/opt/csw/share/man/man5/ldap.conf.5 |
|---|
| 112 | |
|---|
| 113 | PACKAGES += CSWlibldap-r2-4-2 |
|---|
| 114 | SPKG_DESC_CSWlibldap-r2-4-2 = OpenLDAP reentrant LDAP library, libldap_r-2.4.so.2 |
|---|
| 115 | PKGFILES_CSWlibldap-r2-4-2 += $(call pkgfiles_lib,libldap_r-2.4.so.2) |
|---|
| 116 | RUNTIME_DEP_PKGS_CSWlibldap-r2-4-2 += CSWliblber2-4-2 |
|---|
| 117 | RUNTIME_DEP_PKGS_CSWlibldap-r2-4-2 += CSWlibsasl2-2 |
|---|
| 118 | RUNTIME_DEP_PKGS_CSWlibldap-r2-4-2 += CSWlibssl0-9-8 |
|---|
| 119 | OBSOLETED_BY_CSWlibldap-r2-4-2 += CSWoldaprt |
|---|
| 120 | |
|---|
| 121 | FOREIGN_PACKAGES += CSWliblber2-3-0 |
|---|
| 122 | OBSOLETED_BY_CSWliblber2-3-0 += CSWoldaprt |
|---|
| 123 | |
|---|
| 124 | FOREIGN_PACKAGES += CSWlibldap2-3-0 |
|---|
| 125 | OBSOLETED_BY_CSWlibldap2-3-0 += CSWoldaprt |
|---|
| 126 | |
|---|
| 127 | FOREIGN_PACKAGES += CSWlibldap-r2-3-0 |
|---|
| 128 | OBSOLETED_BY_CSWlibldap-r2-3-0 += CSWoldaprt |
|---|
| 129 | |
|---|
| 130 | EXTRA_DOCS = README.CSW $(PATCHFILES) openldaprc |
|---|
| 131 | |
|---|
| 132 | # This is also used during EXPANDVARS |
|---|
| 133 | bdbdir = $(prefix)/bdb48 |
|---|
| 134 | |
|---|
| 135 | EXTRA_LIB = $(bdbdir)/lib |
|---|
| 136 | EXTRA_INC = $(bdbdir)/include |
|---|
| 137 | |
|---|
| 138 | sysconfdir = /etc/opt/csw |
|---|
| 139 | localstatedir = /var/opt/csw |
|---|
| 140 | |
|---|
| 141 | MIGRATE_FILES_CSWoldapclient = openldap |
|---|
| 142 | |
|---|
| 143 | # Is this causing this? |
|---|
| 144 | # https://www.opencsw.org/mantis/view.php?id=4555 |
|---|
| 145 | NOISALIST = 1 |
|---|
| 146 | LD_OPTIONS = |
|---|
| 147 | EXTRA_LINKER_FLAGS = $(RUNPATH_LINKER_FLAGS) |
|---|
| 148 | |
|---|
| 149 | NODIRPATHS = --docdir |
|---|
| 150 | |
|---|
| 151 | BUILD64 = 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 | |
|---|
| 156 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 157 | CONFIGURE_ARGS += --enable-crypt |
|---|
| 158 | CONFIGURE_ARGS += --enable-lmpasswd |
|---|
| 159 | CONFIGURE_ARGS += --enable-modules |
|---|
| 160 | CONFIGURE_ARGS += --enable-rlookups |
|---|
| 161 | CONFIGURE_ARGS += --enable-slp |
|---|
| 162 | CONFIGURE_ARGS += --enable-wrappers |
|---|
| 163 | CONFIGURE_ARGS += --enable-backends=mod |
|---|
| 164 | CONFIGURE_ARGS += --enable-overlays=mod |
|---|
| 165 | CONFIGURE_ARGS += --enable-spasswd |
|---|
| 166 | CONFIGURE_ARGS += --with-cyrus-sasl |
|---|
| 167 | |
|---|
| 168 | # Is the absence of this arg causing https://www.opencsw.org/mantis/view.php?id=4468 ? |
|---|
| 169 | CONFIGURE_ARGS += --enable-dynamic |
|---|
| 170 | |
|---|
| 171 | # Disable MySQL Cluster |
|---|
| 172 | CONFIGURE_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 |
|---|
| 177 | CONFIGURE_ARGS += ac_cv_lib_net_main=no |
|---|
| 178 | CONFIGURE_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> |
|---|
| 182 | CONFIGURE_ARGS_32 += --enable-perl=mod |
|---|
| 183 | CONFIGURE_ARGS_64 += --enable-perl=no |
|---|
| 184 | |
|---|
| 185 | CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(MEMORYMODEL)) |
|---|
| 186 | |
|---|
| 187 | # The testsuite takes a couple of hours |
|---|
| 188 | SKIPTEST ?= 1 |
|---|
| 189 | |
|---|
| 190 | # Perl backend is built, although it has been told not to. |
|---|
| 191 | EXTRA_PAX_ARGS = -s ,.*/opt/csw/libexec/sparcv9/openldap/back_perl.*,, |
|---|
| 192 | EXTRA_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. |
|---|
| 196 | EXTRA_MERGE_EXCLUDE_FILES = .*\.default |
|---|
| 197 | |
|---|
| 198 | PRESERVECONF = /etc/opt/csw/openldap/ldap.conf |
|---|
| 199 | PRESERVECONF += /etc/opt/csw/openldap/slapd.conf |
|---|
| 200 | |
|---|
| 201 | INITSMF = /etc/opt/csw/init.d/cswopenldap |
|---|
| 202 | |
|---|
| 203 | include gar/category.mk |
|---|
| 204 | |
|---|
| 205 | CFLAGS := $(filter-out -I%,$(CFLAGS)) |
|---|
| 206 | DIRECTORY_EXPORTS := $(filter-out includedir,$(DIRECTORY_EXPORTS)) |
|---|
| 207 | |
|---|
| 208 | post-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) |
|---|