components/proftpd/Makefile
changeset 6049 d4f828709d1c
parent 6012 4a50ae908977
child 6069 a6fcd06e4cc9
--- a/components/proftpd/Makefile	Sat May 21 09:59:28 2016 -0700
+++ b/components/proftpd/Makefile	Fri May 13 15:40:39 2016 -0500
@@ -115,9 +115,19 @@
 # attributes.
 LICENSE_TRANSFORMS =
 
+# If there is no mediator, use MIT.  Note, once all userland build systems have
+# the Userland security/kerberos-5 pkg installed this logic can be removed.
+KRB5_API = $(shell pkg mediator -H kerberos5 2>/dev/null | nawk '{print $$4;}')
+
 REQUIRED_PACKAGES += library/security/openssl
-REQUIRED_PACKAGES += service/security/kerberos-5
+ifeq ($(KRB5_API), solaris)
+    # require the solaris version of Kerberos/GSS
+    REQUIRED_PACKAGES += service/security/kerberos-5
+    REQUIRED_PACKAGES += system/library/security/gss
+else
+    # require the Userland version of Kerberos/GSS
+    REQUIRED_PACKAGES += security/kerberos-5
+endif
 REQUIRED_PACKAGES += shell/ksh93
 REQUIRED_PACKAGES += system/core-os
-REQUIRED_PACKAGES += system/library/security/gss
 REQUIRED_PACKAGES += system/network