| @@ -1,28 +1,24 @@ | | | @@ -1,28 +1,24 @@ |
1 | # $NetBSD: options.mk,v 1.47 2023/11/08 10:48:45 nia Exp $ | | 1 | # $NetBSD: options.mk,v 1.48 2023/12/01 11:01:05 nia Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.openssh | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.openssh |
4 | PKG_SUPPORTED_OPTIONS= editline fido kerberos openssl pam legacymodsz | | 4 | PKG_SUPPORTED_OPTIONS= editline fido kerberos openssl pam legacymodsz |
5 | PKG_SUGGESTED_OPTIONS= editline openssl | | 5 | PKG_SUGGESTED_OPTIONS= editline openssl |
6 | | | 6 | |
7 | .include "../../mk/bsd.prefs.mk" | | 7 | .include "../../mk/bsd.prefs.mk" |
8 | | | 8 | |
9 | # libfido2 is BROKEN_EXCEPT_ON_PLATFORM; lacking a facility to query | | 9 | .include "../../security/libfido2/platform.mk" |
10 | # that list, open code it here. | | 10 | |
11 | .if (${OPSYS} == "Darwin" && empty(MACHINE_ARCH:Mpowerpc*)) || \ | | 11 | .if ${PLATFORM_SUPPORTS_FIDO2:tl} != "no" |
12 | ${OPSYS} == "FreeBSD" || ${OPSYS} == "MidnightBSD" || \ | | | |
13 | ${OPSYS} == "Linux" || \ | | | |
14 | ${OPSYS} == "NetBSD" || \ | | | |
15 | ${OPSYS} == "OpenBSD" | | | |
16 | PKG_SUGGESTED_OPTIONS+= fido | | 12 | PKG_SUGGESTED_OPTIONS+= fido |
17 | .endif | | 13 | .endif |
18 | | | 14 | |
19 | .if ${OPSYS} == "NetBSD" | | 15 | .if ${OPSYS} == "NetBSD" |
20 | PKG_SUGGESTED_OPTIONS+= pam | | 16 | PKG_SUGGESTED_OPTIONS+= pam |
21 | .endif | | 17 | .endif |
22 | | | 18 | |
23 | .include "../../mk/bsd.options.mk" | | 19 | .include "../../mk/bsd.options.mk" |
24 | | | 20 | |
25 | .if !empty(PKG_OPTIONS:Mopenssl) | | 21 | .if !empty(PKG_OPTIONS:Mopenssl) |
26 | .include "../../security/openssl/buildlink3.mk" | | 22 | .include "../../security/openssl/buildlink3.mk" |
27 | CONFIGURE_ARGS+= --with-ssl-dir=${SSLBASE:Q} | | 23 | CONFIGURE_ARGS+= --with-ssl-dir=${SSLBASE:Q} |
28 | .else | | 24 | .else |