16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
|
21 |
|
22 # |
21 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
22 # |
24 # |
23 |
25 BUILD_BITS= 64_and_32 |
24 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
25 |
27 |
26 COMPONENT_NAME= Kerberos |
28 COMPONENT_NAME= Kerberos |
27 COMPONENT_MINOR= 1.13 |
29 # Encoding rule for MAJOR: MIT KerberosV5 x.y[.z] => MAJOR x |
28 COMPONENT_VERSION= 1.13.3 |
30 # Encoding rule for MINOR: MIT KerberosV5 x.y[.z] => MINOR $MAJOR.y |
|
31 # Encoding rule for MICRO: MIT KerberosV5 x.y[.z] => MICRO $MINOR[.z] |
|
32 COMPONENT_MAJOR= 1 |
|
33 COMPONENT_MINOR= $(COMPONENT_MAJOR).14 |
|
34 COMPONENT_MICRO= $(COMPONENT_MINOR).2 |
|
35 |
|
36 COMPONENT_VERSION= $(COMPONENT_MICRO) |
|
37 IPS_COMPONENT_VERSION= $(COMPONENT_VERSION).0 |
|
38 |
29 COMPONENT_PROJECT_URL= http://web.mit.edu/kerberos/ |
39 COMPONENT_PROJECT_URL= http://web.mit.edu/kerberos/ |
30 COMPONENT_SRC= krb5-$(COMPONENT_VERSION) |
40 COMPONENT_SRC= krb5-$(COMPONENT_VERSION) |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
32 COMPONENT_ARCHIVE_HASH= \ |
41 COMPONENT_ARCHIVE_HASH= \ |
33 sha256:5d4af08ead9b7a1e9493cfd65e821234f151a46736e1ce586f886c8a8e65fabe |
42 sha256:6bcad7e6778d1965e4ce4af21d2efdc15b274c5ce5c69031c58e4c954cda8b27 |
34 COMPONENT_ARCHIVE_URL= \ |
43 COMPONENT_ARCHIVE_URL= \ |
35 $(COMPONENT_PROJECT_URL)dist/krb5/$(COMPONENT_MINOR)/$(COMPONENT_ARCHIVE) |
44 $(COMPONENT_PROJECT_URL)dist/krb5/$(COMPONENT_MINOR)/$(COMPONENT_ARCHIVE) |
36 COMPONENT_BUGDB= utility/kerberos |
45 COMPONENT_BUGDB= utility/kerberos |
37 |
46 |
38 TPNO= 26018 |
47 TPNO= 27916 |
39 |
48 |
40 include $(WS_MAKE_RULES)/prep.mk |
49 include $(WS_MAKE_RULES)/common.mk |
41 include $(WS_MAKE_RULES)/configure.mk |
|
42 include $(WS_MAKE_RULES)/lint-libraries.mk |
|
43 |
50 |
44 LINT_FLAGS += -I$(PROTOUSRINCDIR) -I$(PROTOUSRINCDIR)/kerberosv5 -I$(COMPONENT_DIR)/Solaris |
51 LINT_FLAGS += -I$(PROTOUSRINCDIR) -I$(PROTOUSRINCDIR)/kerberosv5 -I$(COMPONENT_DIR)/Solaris |
45 |
52 |
46 # Depends on S12-only header file in ON. |
53 # Depends on S12-only header file in ON. |
47 ifeq ($(BUILD_TYPE), evaluation) |
54 ifeq ($(BUILD_TYPE), evaluation) |
48 BUILD_32_and_64= |
55 BUILD_32_and_64= |
49 INSTALL_32_and_64= |
56 INSTALL_32_and_64= |
50 PUBLISH_STAMP= |
57 PUBLISH_STAMP= |
51 endif |
58 endif |
52 |
|
53 include $(WS_MAKE_RULES)/ips.mk |
|
54 |
|
55 # Encoding rules for IPS: MIT KerberosV5 <x>.<y>[.<z>] => IPS <x>.<y>.[<z>|0].0 |
|
56 IPS_COMPONENT_VERSION= 1.13.3.0 |
|
57 |
59 |
58 # The configure script is not at the top of the source directory. |
60 # The configure script is not at the top of the source directory. |
59 CONFIGURE_SCRIPT= $(SOURCE_DIR)/src/configure |
61 CONFIGURE_SCRIPT= $(SOURCE_DIR)/src/configure |
60 |
62 |
61 # We need to enable large file support and build PIC for our shared libraries |
63 # We need to enable large file support and build PIC for our shared libraries |
68 # depends on implicit binding of libc. Here we explicitly link with libc to |
70 # depends on implicit binding of libc. Here we explicitly link with libc to |
69 # satisfy this dependency. |
71 # satisfy this dependency. |
70 # If you make changes to LDFLAGS, check krb5-config and 052-krb5-config.patch. |
72 # If you make changes to LDFLAGS, check krb5-config and 052-krb5-config.patch. |
71 LDFLAGS += -lc $(LD_Z_DEFS) |
73 LDFLAGS += -lc $(LD_Z_DEFS) |
72 |
74 |
73 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
|
74 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
|
75 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
|
76 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
77 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
|
78 CONFIGURE_ENV += DEFKTNAME="FILE:$(ETCDIR)/krb5/krb5.keytab" |
75 CONFIGURE_ENV += DEFKTNAME="FILE:$(ETCDIR)/krb5/krb5.keytab" |
79 CONFIGURE_ENV += DEFCKTNAME="FILE:/var/user/%{username}/client.keytab" |
76 CONFIGURE_ENV += DEFCKTNAME="FILE:/var/user/%{username}/client.keytab" |
80 |
77 |
81 # Other CONFIGURE_OPTIONS assignments coming from make-rules/configure.mk |
78 # Other CONFIGURE_OPTIONS assignments coming from make-rules/configure.mk |
82 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
79 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
83 CONFIGURE_OPTIONS += --localstatedir=/var |
80 CONFIGURE_OPTIONS += --localstatedir=/var |
84 CONFIGURE_OPTIONS.32 += --libexecdir=$(USRLIBDIR) |
81 CONFIGURE_OPTIONS.32 += --libexecdir=$(USRLIBDIR) |
85 CONFIGURE_OPTIONS.64 += --libexecdir=$(USRLIBDIR)/$(MACH64) |
82 CONFIGURE_OPTIONS.64 += --libexecdir=$(USRLIBDIR)/$(MACH64) |
86 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/kerberosv5 |
83 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/kerberosv5 |
87 # to avoid executing subprocesses from /usr/[s]bin/$(MACH64): |
|
88 CONFIGURE_OPTIONS += --bindir=$(USRBINDIR) |
|
89 CONFIGURE_OPTIONS += --sbindir=$(USRSBINDIR) |
|
90 CONFIGURE_OPTIONS += --with-crypto-impl=openssl |
84 CONFIGURE_OPTIONS += --with-crypto-impl=openssl |
91 CONFIGURE_OPTIONS += --with-ldap |
85 CONFIGURE_OPTIONS += --with-ldap |
92 CONFIGURE_OPTIONS += --with-prng-alg=os |
86 CONFIGURE_OPTIONS += --with-prng-alg=os |
93 CONFIGURE_OPTIONS += --with-tcl=$(USRDIR) |
87 CONFIGURE_OPTIONS += --with-tcl=$(USRDIR) |
94 CONFIGURE_OPTIONS += --without-system-verto |
88 CONFIGURE_OPTIONS += --without-system-verto |
186 $(CP) $(BUILD_DIR)/$(MACH64)/lib/libkrb5.so.1 \ |
180 $(CP) $(BUILD_DIR)/$(MACH64)/lib/libkrb5.so.1 \ |
187 $(PROTO_DIR)$(USRLIBDIR)/$(MACH64); \ |
181 $(PROTO_DIR)$(USRLIBDIR)/$(MACH64); \ |
188 $(CP) $(BUILD_DIR)/$(MACH64)/lib/libkadm5clnt.so.1 \ |
182 $(CP) $(BUILD_DIR)/$(MACH64)/lib/libkadm5clnt.so.1 \ |
189 $(PROTO_DIR)$(USRLIBDIR)/$(MACH64); |
183 $(PROTO_DIR)$(USRLIBDIR)/$(MACH64); |
190 |
184 |
191 ASLR_MODE = $(ASLR_ENABLE) |
|
192 |
|
193 # common targets |
|
194 build: $(BUILD_32_and_64) |
|
195 |
|
196 install: $(INSTALL_32_and_64) |
|
197 |
|
198 # build does this always |
|
199 test: $(TEST_32_and_64) |
|
200 |
|
201 REQUIRED_PACKAGES += developer/test/dejagnu |
185 REQUIRED_PACKAGES += developer/test/dejagnu |
202 REQUIRED_PACKAGES += library/libedit |
186 REQUIRED_PACKAGES += library/libedit |
203 REQUIRED_PACKAGES += library/openldap |
187 REQUIRED_PACKAGES += library/openldap |
204 REQUIRED_PACKAGES += library/security/openssl |
188 REQUIRED_PACKAGES += library/security/openssl |
205 REQUIRED_PACKAGES += network/dns/bind |
189 REQUIRED_PACKAGES += network/dns/bind |
206 REQUIRED_PACKAGES += service/security/kerberos-5 |
190 REQUIRED_PACKAGES += service/security/kerberos-5 |
207 REQUIRED_PACKAGES += shell/ksh93 |
191 REQUIRED_PACKAGES += shell/ksh93 |
208 REQUIRED_PACKAGES += system/library |
192 REQUIRED_PACKAGES += system/core-os |
209 REQUIRED_PACKAGES += system/library/math |
193 REQUIRED_PACKAGES += system/library/math |
210 REQUIRED_PACKAGES += system/library/security/gss |
194 REQUIRED_PACKAGES += system/library/security/gss |
211 |
195 |