Ticket #42333: openssh-6.5p1.diff
File openssh-6.5p1.diff, 3.3 KB (added by raimue (Rainer Müller), 11 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name openssh 7 version 6. 4p17 version 6.5p1 8 8 revision 1 9 9 10 10 categories net … … 29 29 homepage http://www.openbsd.org/openssh/ 30 30 31 31 checksums ${distfiles} \ 32 rmd160 d0e757c90350351bb92ebd4fa9f045586fb54f97\33 sha256 5530f616513b14aea3662c4c373bafd6a97a269938674c006377e381f68975d232 rmd160 241e51ad8108656e2ebb4c1b7550012336b25472 \ 33 sha256 a1195ed55db945252d5a1730d4a2a2a5c1c9a6aa01ef2e5af750a962623d9027 34 34 35 35 master_sites openbsd:OpenSSH/portable \ 36 36 http://mirror.mcs.anl.gov/openssh/portable/ \ … … 63 63 --with-zlib=${prefix} \ 64 64 --without-kerberos5 \ 65 65 --with-libedit \ 66 --with-pie \ 66 67 --without-xauth 67 68 68 69 use_parallel_build yes … … 76 77 post-destroot { 77 78 destroot.keepdirs ${destroot}${prefix}/var/run ${destroot}${prefix}/var/empty 78 79 reinplace "s|#Port 22|Port 2222|g" ${destroot}${prefix}/etc/ssh/sshd_config 80 reinplace "s|UsePrivilegeSeparation sandbox|UsePrivilegeSeparation yes|g" ${destroot}${prefix}/etc/ssh/sshd_config 79 81 xinstall -m 755 ${worksrcpath}/contrib/ssh-copy-id ${destroot}${prefix}/bin 80 82 xinstall -m 644 ${worksrcpath}/contrib/ssh-copy-id.1 ${destroot}${prefix}/share/man/man1 81 83 file rename "${destroot}${prefix}/etc/ssh/sshd_config" "${destroot}${prefix}/etc/ssh/sshd_config.example" … … 103 105 # http://www.psc.edu/index.php/hpn-ssh 104 106 # http://www.freshports.org/security/openssh-portable/ is usually quick in 105 107 # updating the HPN patch for new versions, take a look there, too. 106 patch_sites-append sourceforge:hpnssh107 set hpn_patchfile ${name}-6. 3p1-hpnssh14v2.diff.gz108 patch_sites-append http://mirror.shatow.net/freebsd/openssh/ 109 set hpn_patchfile ${name}-6.5p1-hpnssh14v2.diff.gz 108 110 patchfiles-append ${hpn_patchfile} 109 111 checksums-append ${hpn_patchfile} \ 110 rmd160 8af79c3f63609da96d04b8e162f2b53cf7543be9\111 sha256 23ae9307b58629ccf76a8ed5d9cf7215a45d6b7533d6b17eef17279fb9c48dca112 rmd160 5a7203fffee510b2ae6737af074fec2834bae122 \ 113 sha256 be6915130f2b1aad00235e02d55b67114dbb517b13d04d52a8abac9343166efd 112 114 } 113 115 114 116 variant gsskex conflicts hpn requires kerberos5 description "Add OpenSSH GSSAPI key exchange patch" { … … 173 175 ${prefix}/bin/ssh-keygen -t rsa -f \\ 174 176 ${prefix}/etc/ssh/ssh_host_rsa_key -N \"\" -C `hostname` 175 177 fi 178 if \[ ! -f ${prefix}/etc/ssh/ssh_host_ecdsa_key \]; then 179 ${prefix}/bin/ssh-keygen -t ecdsa -f \\ 180 ${prefix}/etc/ssh/ssh_host_ecdsa_key -N \"\" -C `hostname` 181 fi 182 if \[ ! -f ${prefix}/etc/ssh/ssh_ed25519_rsa_key \]; then 183 ${prefix}/bin/ssh-keygen -t ed25519 -f \\ 184 ${prefix}/etc/ssh/ssh_host_ed25519_key -N \"\" -C `hostname` 185 fi 176 186 ${prefix}/sbin/sshd 177 187 fi" 178 188 startupitem.stop \