diff -u ./Makefile ../openssh-portable-moduli-patch/Makefile --- ./Makefile 2020-03-23 23:15:09.000000000 +0000 +++ ../openssh-portable-moduli-patch/Makefile 2020-10-22 22:04:34.305030000 +0000 @@ -3,7 +3,7 @@ PORTNAME= openssh DISTVERSION= 8.2p1 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= OPENBSD/OpenSSH/portable @@ -191,8 +191,12 @@ @${ECHO_CMD} "#define WITH_XMSS 1" >> ${WRKSRC}/config.h post-install: + ${MV} ${STAGEDIR}${ETCDIR}/moduli \ + ${STAGEDIR}${ETCDIR}/moduli.sample + ${RLN} ${STAGEDIR}${ETCDIR}/moduli.sample \ + ${STAGEDIR}${ETCDIR}/moduli ${MV} ${STAGEDIR}${ETCDIR}/ssh_config \ - ${STAGEDIR}${ETCDIR}//ssh_config.sample + ${STAGEDIR}${ETCDIR}/ssh_config.sample ${MV} ${STAGEDIR}${ETCDIR}/sshd_config \ ${STAGEDIR}${ETCDIR}/sshd_config.sample .if ${PORT_OPTIONS:MHPN} || ${PORT_OPTIONS:MNONECIPHER} diff -u ./pkg-plist ../openssh-portable-moduli-patch/pkg-plist --- ./pkg-plist 2020-03-23 17:07:42.000000000 +0000 +++ ../openssh-portable-moduli-patch/pkg-plist 2020-10-22 21:50:26.762560000 +0000 @@ -5,7 +5,7 @@ bin/ssh-agent bin/ssh-keygen bin/ssh-keyscan -%%ETCDIR%%/moduli +@sample %%ETCDIR%%/moduli.sample @sample %%ETCDIR%%/ssh_config.sample @sample %%ETCDIR%%/sshd_config.sample @postexec if [ -f %D/%%ETCDIR%%/ssh_host_ecdsa_key ] && grep -q DSA %D/%%ETCDIR%%/ssh_host_ecdsa_key; then echo; echo "\!/ Warning \!/"; echo; echo "Your %D/%%ETCDIR%%/ssh_host_ecdsa_key is not a valid ECDSA key. It is incorrectly"; echo "a DSA key due to a bug fixed in 2012 in the security/openssh-portable port."; echo; echo "Regenerate a proper one with: rm -f %D/%%ETCDIR%%/ssh_host_ecdsa_key*; service openssh restart"; echo; echo "Clients should not see any key change warning since the ECDSA was not valid and was not actually"; echo "used by the server."; echo; echo "\!/ Warning \!/"; fi