5053N/A#
5053N/A# CDDL HEADER START
5053N/A#
5053N/A# The contents of this file are subject to the terms of the
5053N/A# Common Development and Distribution License (the "License").
5053N/A# You may not use this file except in compliance with the License.
5053N/A#
5053N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5053N/A# or http://www.opensolaris.org/os/licensing.
5053N/A# See the License for the specific language governing permissions
5053N/A# and limitations under the License.
5053N/A#
5053N/A# When distributing Covered Code, include this CDDL HEADER in each
5053N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5053N/A# If applicable, add the following below this CDDL HEADER, with the
5053N/A# fields enclosed by brackets "[]" replaced with your own identifying
5053N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5053N/A#
5053N/A# CDDL HEADER END
5053N/A#
5053N/A
5053N/A#
5452N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5053N/A#
5680N/ABUILD_BITS= 64_and_32
5053N/Ainclude ../../make-rules/shared-macros.mk
5053N/A
5053N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
5680N/APATH=$(PARFAIT_TOOLS):$(GNUBIN):$(SPRO_VROOT)/bin:$(USRBINDIR)
5680N/Aelse
5680N/APATH=$(GNUBIN):$(SPRO_VROOT)/bin:$(USRBINDIR)
5053N/Aendif
5053N/A
5053N/ACOMPONENT_NAME= cyrus-sasl
5053N/A#
5053N/A# If you update the COMPONENT_VERSION, you should make a corresponding change
5053N/A# in the dependency at the bottom of the openldap/openldap.p5m file.
5053N/A#
5053N/ACOMPONENT_VERSION= 2.1.26
5680N/ACOMPONENT_PROJECT_URL= ftp://ftp.cyrusimap.org/cyrus-sasl
5053N/ACOMPONENT_ARCHIVE_HASH= \
5053N/A sha256:8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3
5053N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE)
5053N/A
5053N/A# Check DONOTUSE items when updating the version and hash
5053N/ADONOTUSE= $(SOURCE_DIR)/mac $(SOURCE_DIR)/dlcompat-20010505
5053N/A
5053N/ACOMPONENT_BUGDB= library/libsasl
5053N/A
5053N/ATPNO= 21351
5053N/A
5053N/ASASL2.32 = $(USRLIBDIR)/sasl2
5053N/ASASL2.64 = $(USRLIBDIR)/sasl2/$(MACH64)
5739N/ASASL_CONFDIR = $(ETCDIR)/sasl2
5053N/APROTO_CONFDIR = $(PROTO_DIR)$(SASL_CONFDIR)
5053N/A
5864N/ATESTS_DIR=$(PROTO_DIR)/tests
5739N/ATESTS_32_DIR=$(TESTS_DIR)/$(MACH32)
5739N/A
5087N/A# Migrated from ON in S12, including stuff from system/header, so this
5087N/A# cannot be installed on an S11 box.
5087N/Aifeq ($(BUILD_TYPE), evaluation)
6067N/ABUILD_32_and_64=
6067N/AINSTALL_32_and_64=
5087N/APUBLISH_STAMP=
5087N/Aendif
5087N/A
5680N/AINSTALL_TARGET=
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5053N/A
5680N/A# This causes the default compilation argument to be wrong and isn't necessary.
5680N/Astudio_MT=
5680N/A
5680N/ACPPFLAGS += -I$(USRINCDIR)/openldap
6047N/ALDFLAGS += $(CC_BITS) -lscf -lresolv
5739N/A
5053N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
5680N/ACONFIGURE_OPTIONS += --enable-auth-sasldb
6315N/ACONFIGURE_OPTIONS += --with-saslauthd=/var/run/saslauthd
5053N/ACONFIGURE_OPTIONS += --with-dblib=berkeley
5864N/ACONFIGURE_OPTIONS += --with-gss_impl=mit
5680N/ACONFIGURE_OPTIONS += --without-gnu-ld
5053N/ACONFIGURE_OPTIONS.32 += --with-plugindir=$(SASL2.32)
5053N/ACONFIGURE_OPTIONS.64 += --with-plugindir=$(SASL2.64)
5053N/ACONFIGURE_OPTIONS.32 += --with-sasldir=$(SASL2.32)
5053N/ACONFIGURE_OPTIONS.64 += --with-sasldir=$(SASL2.64)
5053N/ACONFIGURE_OPTIONS += --with-ipctype=doors
5053N/ACONFIGURE_OPTIONS += --with-ldap=$(USRDIR)
5680N/ACONFIGURE_OPTIONS += --enable-sample
5739N/ACONFIGURE_OPTIONS += --enable-login
5739N/ACONFIGURE_OPTIONS += --with-configdir=$(ETCDIR)/sasl2
5864N/ACONFIGURE_OPTIONS += --enable-ldapdb
5053N/A
5053N/APKG_PROTO_DIRS += $(SOURCE_DIR)/doc $(COMPONENT_DIR)/Solaris
5053N/A
5053N/ALINTINCDIR= $(SOURCE_DIR)/include/sasl
5053N/A
5053N/AINCLIST= hmac-md5.h \
5053N/A md5.h \
5053N/A md5global.h \
5053N/A prop.h \
5053N/A sasl.h \
5053N/A saslplug.h \
5053N/A saslutil.h
5053N/A
5739N/Aexport CONFIG_SITE=$(WS_COMPONENTS)/$(COMPONENT_NAME)/Solaris/config.site
5739N/A
5053N/ACFG_COMPILE=/usr/share/automake-1.15
5053N/A
5053N/ACOMPONENT_PREP_ACTION = ( cd $(@D) && \
5053N/A ( cd config && ln -s $(CFG_COMPILE)/compile . ) ; \
5053N/A ( cd saslauthd/config && ln -s $(CFG_COMPILE)/compile . ); \
5680N/A $(AUTORECONF) -m --force -v \
5053N/A -I $(COMPONENT_DIR)/m4 \
5053N/A -I $(SOURCE_DIR)/cmulocal \
5053N/A -I $(SOURCE_DIR)/config ; \
5053N/A )
5053N/A
5053N/A# Remove some things we don't use and aren't in the TPNO
5053N/A# Make an include/sasl directory to make llib-lsasl2 match llib-lsasl2.ln
5053N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
5053N/A -$(RM) -r $(DONOTUSE) ; \
5053N/A $(MKDIR) $(LINTINCDIR) ; \
5053N/A ( cd $(LINTINCDIR) && \
5053N/A ( for i in $(INCLIST) ; do \
5053N/A ln -s ../$$i $$i ; \
5053N/A done ) \
5053N/A )
5053N/A
5053N/AINSTALL_32 += $(PROTOUSRLIBDIR)/libsasl.so.1
5053N/AINSTALL_64 += $(PROTOUSRLIBDIR64)/libsasl.so.1
5053N/A
5053N/A# common targets
5053N/Ainstall: build $(INSTALL_32_and_64)
5053N/A
5739N/ACOMPONENT_POST_BUILD_ACTION += \
5739N/A $(LD) -F libsasl2.so.3 $(LD_BITS) \
5739N/A -o $(BUILD_DIR_$(BITS))/lib/.libs/libsasl.so.1 \
5739N/A -G -hlibsasl.so.1 $(LD_B_DIRECT) $(LD_Z_DEFS) -M$(COMPONENT_DIR)/mapfile ; \
5739N/A (cd $(BUILD_DIR_$(BITS))/sample; $(ENV) $(COMPONENT_BUILD_ENV) \
5739N/A $(MAKE) sample-client sample-server) ; \
5739N/A (cd $(BUILD_DIR_$(BITS))/utils; $(ENV) $(COMPONENT_BUILD_ENV) \
5739N/A $(MAKE) testsuite) ;
5053N/A
5739N/ACOMPONENT_POST_INSTALL_ACTION += \
5739N/A $(CP) $(BUILD_DIR_$(BITS))/utils/.libs/testsuite \
5739N/A $(PROTO_DIR)/$(SASL2.$(BITS))/testsuite ; \
5739N/A $(CP) $(BUILD_DIR_$(BITS))/sample/.libs/sample-server \
5739N/A $(PROTO_DIR)/$(SASL2.$(BITS))/sample-server ; \
5739N/A $(CP) $(BUILD_DIR_$(BITS))/sample/.libs/sample-client \
5739N/A $(PROTO_DIR)/$(SASL2.$(BITS))/sample-client ;
5739N/A
5739N/ACOMPONENT_POST_INSTALL_ACTION.32 += \
5739N/A $(MKDIR) $(TESTS_DIR) ; \
5739N/A $(MKDIR) $(TESTS_32_DIR) ; \
5739N/A $(CP) $(BUILD_DIR_32)/utils/.libs/testsuite $(TESTS_32_DIR) ; \
5739N/A $(CP) $(BUILD_DIR_32)/sample/.libs/sample-server $(TESTS_32_DIR) ; \
5739N/A $(CP) $(BUILD_DIR_32)/sample/.libs/sample-client $(TESTS_32_DIR) ;
5739N/A
5739N/ACOMPONENT_POST_INSTALL_ACTION.64 += \
5739N/A $(MKDIR) $(TESTS_DIR) ; \
5739N/A $(CP) $(BUILD_DIR_64)/utils/.libs/testsuite $(TESTS_DIR) ; \
5739N/A $(CP) $(BUILD_DIR_64)/sample/.libs/sample-server $(TESTS_DIR) ; \
5739N/A $(CP) $(BUILD_DIR_64)/sample/.libs/sample-client $(TESTS_DIR) ;
5053N/A
6047N/A$(PROTOUSRLIBDIR)/libsasl.so.1: $(BUILD_DIR)/$(MACH32)/lib/.libs/libsasl.so.1
5053N/A $(CP) $< $@
5053N/A
6047N/A$(PROTOUSRLIBDIR64)/libsasl.so.1: $(BUILD_DIR)/$(MACH64)/lib/.libs/libsasl.so.1
5053N/A $(CP) $< $@
5053N/A
5739N/ATARBALL_DIR=sasltest
5739N/ACLEAN_PATHS += $(TARBALL_DIR)
5739N/A
5739N/Atest_tarball: sasltest.tgz
5864N/ATEST_SCRIPTS= setup_testsuite run_testsuite transform-results cleanup \
5864N/A setup-for-mit setup-for-seam
5739N/A
5739N/Asasltest.tgz: install
5739N/A $(MKDIR) $(TARBALL_DIR)
5739N/A $(CHMOD) 0777 $(TARBALL_DIR)
5739N/A $(CP) -r $(TESTS_DIR)/* $(TARBALL_DIR)
5739N/A $(CP) $(COMPONENT_DIR)/test/* $(TARBALL_DIR)
5739N/A (cd $(TARBALL_DIR) && $(CHMOD) 0777 $(TEST_SCRIPTS))
5739N/A gtar czf sasltest.tgz $(TARBALL_DIR)
5739N/A
5739N/AREQUIRED_PACKAGES += archiver/gnu-tar
5053N/AREQUIRED_PACKAGES += database/berkeleydb-5
5053N/AREQUIRED_PACKAGES += developer/build/automake-115
5053N/AREQUIRED_PACKAGES += library/openldap
5053N/AREQUIRED_PACKAGES += library/security/openssl
6067N/AREQUIRED_PACKAGES += security/kerberos-5
6021N/AREQUIRED_PACKAGES += system/network/ldap/openldap