Ticket #40062: openssh_108499.diff

File openssh_108499.diff, 1012 bytes (added by nonstop.server@…, 11 years ago)

proposed patch

  • Portfile

    old new  
    157157startupitem.create  yes
    158158startupitem.name    OpenSSH
    159159startupitem.start \
    160     "if \[ -x ${prefix}/sbin/sshd ]; then
     160    "if \[ -x ${prefix}/sbin/sshd \]; then
    161161        if \[ ! -f ${prefix}/etc/ssh/ssh_host_key \]; then
    162162            ${prefix}/bin/ssh-keygen -t rsa1 -f \\
    163163            ${prefix}/etc/ssh/ssh_host_key -N \"\" -C `hostname`
     
    166166            ${prefix}/bin/ssh-keygen -t dsa -f \\
    167167            ${prefix}/etc/ssh/ssh_host_dsa_key -N \"\" -C `hostname`
    168168        fi
     169        if \[ ! -f ${prefix}/etc/ssh/ssh_host_ecdsa_key \]; then
     170            ${prefix}/bin/ssh-keygen -b 521 -t ecdsa -f \\
     171            ${prefix}/etc/ssh/ssh_host_ecdsa_key -N \"\" -C `hostname`
     172        fi
    169173        if \[ ! -f ${prefix}/etc/ssh/ssh_host_rsa_key \]; then
    170174            ${prefix}/bin/ssh-keygen -t rsa -f \\
    171175            ${prefix}/etc/ssh/ssh_host_rsa_key -N \"\" -C `hostname`