Skip to content

Commit 11c25bb

Browse files
fhgwrightneverpanic
authored andcommitted
openssh: Add legacy_dsa variant.
Also adds message regarding test requirements. Also fixes new "platforms" lint warning. Closes: https://trac.macports.org/ticket/70319 TESTED: With +legacy_dsa, accepts "+ssh-rsa,ssh-dss" config options. Built successfully on OSX 10.4-10.5 ppc, 10.4-10.6 i386, 10.5-12.x x86_64, and 11.x-14.x arm64. Included all variants compatible with available dependencies on the respective platforms, except that testing of +universal was limited to avoid the need to install +universal versions of many dependencies.
1 parent c83c328 commit 11c25bb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

net/openssh/Portfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ if {${name} eq ${subport}} {
162162
}
163163
}
164164

165+
pre-test {
166+
ui_msg "Tests require a cooperating server named 'somehost'."
167+
ui_msg "Failure to connect to it results in a hang."
168+
}
169+
165170
variant xauth description {Build with support for xauth} {
166171
configure.args-replace --without-xauth \
167172
--with-xauth=${prefix}/bin/xauth
@@ -201,6 +206,12 @@ if {${name} eq ${subport}} {
201206
depends_lib-append port:libfido2
202207
}
203208

209+
variant legacy_dsa description "Enable legacy DSA support (until 2025)" {
210+
configure.args-append --enable-dsa-keys
211+
notes-append "DSA support is scheduled to be removed in early 2025."
212+
notes-append "DSA-based keys will need to be replaced by then."
213+
notes-append "See: https://www.openbsd.org/openssh/releasenotes.html"
214+
}
204215

205216
platform darwin {
206217
# create link to /usr/include/pam because 'security' was renamed to 'pam'
@@ -251,7 +262,6 @@ if {${name} eq ${subport}} {
251262

252263
subport ssh-copy-id {
253264
revision 0
254-
platforms any
255265
supported_archs noarch
256266
maintainers {l2dy @l2dy} openmaintainer
257267
description Shell script to install your public key(s) on a remote machine

0 commit comments

Comments
 (0)