author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Thu, 08 Sep 2016 12:41:54 -0700 | |
changeset 6865 | 1cc50ab79b8c |
parent 6552 | 402379bc1b60 |
child 7270 | 2a82983df5d6 |
permissions | -rw-r--r-- |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
1 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
3 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
7 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
12 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
18 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
20 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
21 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
22 |
# |
5454
1efad1afb469
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
5089
diff
changeset
|
23 |
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
25 |
BUILD_BITS= 64_and_32 |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
27 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
28 |
ifeq ($(strip $(PARFAIT_BUILD)),yes) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
29 |
PATH=$(PARFAIT_TOOLS):$(GNUBIN):$(SPRO_VROOT)/bin:$(USRBINDIR) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
30 |
else |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
31 |
PATH=$(GNUBIN):$(SPRO_VROOT)/bin:$(USRBINDIR) |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
32 |
endif |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
33 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_NAME= cyrus-sasl |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
35 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
36 |
# If you update the COMPONENT_VERSION, you should make a corresponding change |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
37 |
# in the dependency at the bottom of the openldap/openldap.p5m file. |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
38 |
# |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
39 |
COMPONENT_VERSION= 2.1.26 |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
40 |
COMPONENT_PROJECT_URL= ftp://ftp.cyrusimap.org/cyrus-sasl |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
41 |
COMPONENT_ARCHIVE_HASH= \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
42 |
sha256:8fbc5136512b59bb793657f36fadda6359cae3b08f01fd16b3d406f1345b7bc3 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
44 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
45 |
# Check DONOTUSE items when updating the version and hash |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
46 |
DONOTUSE= $(SOURCE_DIR)/mac $(SOURCE_DIR)/dlcompat-20010505 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
47 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
48 |
COMPONENT_BUGDB= library/libsasl |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
49 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
50 |
TPNO= 21351 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
51 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
52 |
SASL2.32 = $(USRLIBDIR)/sasl2 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
53 |
SASL2.64 = $(USRLIBDIR)/sasl2/$(MACH64) |
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
54 |
SASL_CONFDIR = $(ETCDIR)/sasl2 |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
55 |
PROTO_CONFDIR = $(PROTO_DIR)$(SASL_CONFDIR) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
56 |
|
5866
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
57 |
TESTS_DIR=$(PROTO_DIR)/tests |
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
58 |
TESTS_32_DIR=$(TESTS_DIR)/$(MACH32) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
59 |
|
5089
8d5767cc3ddc
22166085 more tweaks needed for FOSS evaluation project
John Beck <John.Beck@Oracle.COM>
parents:
5055
diff
changeset
|
60 |
# Migrated from ON in S12, including stuff from system/header, so this |
8d5767cc3ddc
22166085 more tweaks needed for FOSS evaluation project
John Beck <John.Beck@Oracle.COM>
parents:
5055
diff
changeset
|
61 |
# cannot be installed on an S11 box. |
8d5767cc3ddc
22166085 more tweaks needed for FOSS evaluation project
John Beck <John.Beck@Oracle.COM>
parents:
5055
diff
changeset
|
62 |
ifeq ($(BUILD_TYPE), evaluation) |
6069
a6fcd06e4cc9
23472276 tweak cyrus-sasl/openssh/proftpd/wireshark REQUIRED_PACKAGES for 11.3 and 12
John Beck <John.Beck@Oracle.COM>
parents:
6049
diff
changeset
|
63 |
BUILD_32_and_64= |
a6fcd06e4cc9
23472276 tweak cyrus-sasl/openssh/proftpd/wireshark REQUIRED_PACKAGES for 11.3 and 12
John Beck <John.Beck@Oracle.COM>
parents:
6049
diff
changeset
|
64 |
INSTALL_32_and_64= |
5089
8d5767cc3ddc
22166085 more tweaks needed for FOSS evaluation project
John Beck <John.Beck@Oracle.COM>
parents:
5055
diff
changeset
|
65 |
PUBLISH_STAMP= |
8d5767cc3ddc
22166085 more tweaks needed for FOSS evaluation project
John Beck <John.Beck@Oracle.COM>
parents:
5055
diff
changeset
|
66 |
endif |
8d5767cc3ddc
22166085 more tweaks needed for FOSS evaluation project
John Beck <John.Beck@Oracle.COM>
parents:
5055
diff
changeset
|
67 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
68 |
INSTALL_TARGET= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
69 |
TEST_TARGET= $(NO_TESTS) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
70 |
include $(WS_MAKE_RULES)/common.mk |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
71 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
72 |
# This causes the default compilation argument to be wrong and isn't necessary. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
73 |
studio_MT= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
74 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
75 |
CPPFLAGS += -I$(USRINCDIR)/openldap |
6049
d4f828709d1c
22840197 new krb5 package will upset a lot of things in 94
Will Fiveash <will.fiveash@oracle.com>
parents:
6023
diff
changeset
|
76 |
LDFLAGS += $(CC_BITS) -lscf -lresolv |
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
77 |
|
5866
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
78 |
# if there is no mediator, use MIT |
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
79 |
KRB5_API = $(shell pkg mediator -H kerberos5 2>/dev/null | nawk '{print $$4;}') |
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
80 |
|
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
81 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
82 |
CONFIGURE_OPTIONS += --enable-auth-sasldb |
6317
f8d5d900dc1b
23507718 Incorrect pathname for saslauthd door
Jan Parcel <jan.parcel@oracle.com>
parents:
6069
diff
changeset
|
83 |
CONFIGURE_OPTIONS += --with-saslauthd=/var/run/saslauthd |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
84 |
CONFIGURE_OPTIONS += --with-dblib=berkeley |
5866
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
85 |
ifeq ($(KRB5_API), solaris) |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
86 |
CONFIGURE_OPTIONS += --with-gss_impl=seam |
5866
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
87 |
else |
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
88 |
CONFIGURE_OPTIONS += --with-gss_impl=mit |
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
89 |
endif |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
90 |
CONFIGURE_OPTIONS += --without-gnu-ld |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
91 |
CONFIGURE_OPTIONS.32 += --with-plugindir=$(SASL2.32) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
92 |
CONFIGURE_OPTIONS.64 += --with-plugindir=$(SASL2.64) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
93 |
CONFIGURE_OPTIONS.32 += --with-sasldir=$(SASL2.32) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
94 |
CONFIGURE_OPTIONS.64 += --with-sasldir=$(SASL2.64) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
95 |
CONFIGURE_OPTIONS += --with-ipctype=doors |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
96 |
CONFIGURE_OPTIONS += --with-ldap=$(USRDIR) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
97 |
CONFIGURE_OPTIONS += --enable-sample |
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
98 |
CONFIGURE_OPTIONS += --enable-login |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
99 |
CONFIGURE_OPTIONS += --with-configdir=$(ETCDIR)/sasl2 |
5866
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
100 |
CONFIGURE_OPTIONS += --enable-ldapdb |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
101 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
102 |
PKG_PROTO_DIRS += $(SOURCE_DIR)/doc $(COMPONENT_DIR)/Solaris |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
103 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
104 |
LINTINCDIR= $(SOURCE_DIR)/include/sasl |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
105 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
106 |
INCLIST= hmac-md5.h \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
107 |
md5.h \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
108 |
md5global.h \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
109 |
prop.h \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
110 |
sasl.h \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
111 |
saslplug.h \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
112 |
saslutil.h |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
113 |
|
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
114 |
export CONFIG_SITE=$(WS_COMPONENTS)/$(COMPONENT_NAME)/Solaris/config.site |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
115 |
|
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
116 |
CFG_COMPILE=/usr/share/automake-1.15 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
117 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
118 |
COMPONENT_PREP_ACTION = ( cd $(@D) && \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
119 |
( cd config && ln -s $(CFG_COMPILE)/compile . ) ; \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
120 |
( cd saslauthd/config && ln -s $(CFG_COMPILE)/compile . ); \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5616
diff
changeset
|
121 |
$(AUTORECONF) -m --force -v \ |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
122 |
-I $(COMPONENT_DIR)/m4 \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
123 |
-I $(SOURCE_DIR)/cmulocal \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
124 |
-I $(SOURCE_DIR)/config ; \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
125 |
) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
126 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
127 |
# Remove some things we don't use and aren't in the TPNO |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
128 |
# Make an include/sasl directory to make llib-lsasl2 match llib-lsasl2.ln |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
129 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
130 |
-$(RM) -r $(DONOTUSE) ; \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
131 |
$(MKDIR) $(LINTINCDIR) ; \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
132 |
( cd $(LINTINCDIR) && \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
133 |
( for i in $(INCLIST) ; do \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
134 |
ln -s ../$$i $$i ; \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
135 |
done ) \ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
136 |
) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
137 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
138 |
INSTALL_32 += $(PROTOUSRLIBDIR)/libsasl.so.1 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
139 |
INSTALL_64 += $(PROTOUSRLIBDIR64)/libsasl.so.1 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
140 |
|
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
141 |
# common targets |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
142 |
install: build $(INSTALL_32_and_64) |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
143 |
|
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
144 |
COMPONENT_POST_BUILD_ACTION += \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
145 |
$(LD) -F libsasl2.so.3 $(LD_BITS) \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
146 |
-o $(BUILD_DIR_$(BITS))/lib/.libs/libsasl.so.1 \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
147 |
-G -hlibsasl.so.1 $(LD_B_DIRECT) $(LD_Z_DEFS) -M$(COMPONENT_DIR)/mapfile ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
148 |
(cd $(BUILD_DIR_$(BITS))/sample; $(ENV) $(COMPONENT_BUILD_ENV) \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
149 |
$(MAKE) sample-client sample-server) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
150 |
(cd $(BUILD_DIR_$(BITS))/utils; $(ENV) $(COMPONENT_BUILD_ENV) \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
151 |
$(MAKE) testsuite) ; |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
152 |
|
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
153 |
COMPONENT_POST_INSTALL_ACTION += \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
154 |
$(CP) $(BUILD_DIR_$(BITS))/utils/.libs/testsuite \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
155 |
$(PROTO_DIR)/$(SASL2.$(BITS))/testsuite ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
156 |
$(CP) $(BUILD_DIR_$(BITS))/sample/.libs/sample-server \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
157 |
$(PROTO_DIR)/$(SASL2.$(BITS))/sample-server ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
158 |
$(CP) $(BUILD_DIR_$(BITS))/sample/.libs/sample-client \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
159 |
$(PROTO_DIR)/$(SASL2.$(BITS))/sample-client ; |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
160 |
|
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
161 |
COMPONENT_POST_INSTALL_ACTION.32 += \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
162 |
$(MKDIR) $(TESTS_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
163 |
$(MKDIR) $(TESTS_32_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
164 |
$(CP) $(BUILD_DIR_32)/utils/.libs/testsuite $(TESTS_32_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
165 |
$(CP) $(BUILD_DIR_32)/sample/.libs/sample-server $(TESTS_32_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
166 |
$(CP) $(BUILD_DIR_32)/sample/.libs/sample-client $(TESTS_32_DIR) ; |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
167 |
|
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
168 |
COMPONENT_POST_INSTALL_ACTION.64 += \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
169 |
$(MKDIR) $(TESTS_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
170 |
$(CP) $(BUILD_DIR_64)/utils/.libs/testsuite $(TESTS_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
171 |
$(CP) $(BUILD_DIR_64)/sample/.libs/sample-server $(TESTS_DIR) ; \ |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
172 |
$(CP) $(BUILD_DIR_64)/sample/.libs/sample-client $(TESTS_DIR) ; |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
173 |
|
6049
d4f828709d1c
22840197 new krb5 package will upset a lot of things in 94
Will Fiveash <will.fiveash@oracle.com>
parents:
6023
diff
changeset
|
174 |
$(PROTOUSRLIBDIR)/libsasl.so.1: $(BUILD_DIR)/$(MACH32)/lib/.libs/libsasl.so.1 |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
175 |
$(CP) $< $@ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
176 |
|
6049
d4f828709d1c
22840197 new krb5 package will upset a lot of things in 94
Will Fiveash <will.fiveash@oracle.com>
parents:
6023
diff
changeset
|
177 |
$(PROTOUSRLIBDIR64)/libsasl.so.1: $(BUILD_DIR)/$(MACH64)/lib/.libs/libsasl.so.1 |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
178 |
$(CP) $< $@ |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
179 |
|
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
180 |
TARBALL_DIR=sasltest |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
181 |
CLEAN_PATHS += $(TARBALL_DIR) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
182 |
|
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
183 |
test_tarball: sasltest.tgz |
5866
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
184 |
TEST_SCRIPTS= setup_testsuite run_testsuite transform-results cleanup \ |
683c5c035a79
23116175 Get the cyrus-sasl component ready for MIT-default Kerberos
Jan Parcel <jan.parcel@oracle.com>
parents:
5741
diff
changeset
|
185 |
setup-for-mit setup-for-seam |
5741
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
186 |
|
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
187 |
sasltest.tgz: install |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
188 |
$(MKDIR) $(TARBALL_DIR) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
189 |
$(CHMOD) 0777 $(TARBALL_DIR) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
190 |
$(CP) -r $(TESTS_DIR)/* $(TARBALL_DIR) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
191 |
$(CP) $(COMPONENT_DIR)/test/* $(TARBALL_DIR) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
192 |
(cd $(TARBALL_DIR) && $(CHMOD) 0777 $(TEST_SCRIPTS)) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
193 |
gtar czf sasltest.tgz $(TARBALL_DIR) |
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
194 |
|
b943514525d4
PSARC/2016/158 security-related packaging changes for libsasl2
Jan Parcel <jan.parcel@oracle.com>
parents:
5682
diff
changeset
|
195 |
REQUIRED_PACKAGES += archiver/gnu-tar |
5055
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
196 |
REQUIRED_PACKAGES += database/berkeleydb-5 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
197 |
REQUIRED_PACKAGES += developer/build/automake-115 |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
198 |
REQUIRED_PACKAGES += library/openldap |
9daf220c1a9a
PSARC/2015/194 libsasl ON to Userland migration and update
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
199 |
REQUIRED_PACKAGES += library/security/openssl |
6069
a6fcd06e4cc9
23472276 tweak cyrus-sasl/openssh/proftpd/wireshark REQUIRED_PACKAGES for 11.3 and 12
John Beck <John.Beck@Oracle.COM>
parents:
6049
diff
changeset
|
200 |
REQUIRED_PACKAGES += security/kerberos-5 |
a6fcd06e4cc9
23472276 tweak cyrus-sasl/openssh/proftpd/wireshark REQUIRED_PACKAGES for 11.3 and 12
John Beck <John.Beck@Oracle.COM>
parents:
6049
diff
changeset
|
201 |
REQUIRED_PACKAGES += system/library/security/gss |
6023
1285c8b9e736
23284011 openldap upgrade breaks userland build
zihao.zhu@oracle.com <zihao.zhu@oracle.com>
parents:
5866
diff
changeset
|
202 |
REQUIRED_PACKAGES += system/network/ldap/openldap |