diff options
author | Andrei Dinu <andrei.adrianx.dinu@intel.com> | 2013-06-07 14:35:28 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-11 15:38:02 +0100 |
commit | 55316357e39b1abf1cfa4c935bfc53cf317f37ec (patch) | |
tree | 9fa59e59741548547933be32216c8d44e03683e0 /meta/recipes-connectivity/openssh/openssh_6.2p2.bb | |
parent | 242d5fb6db45de0719496d73d1c11e147f9c2fba (diff) | |
download | poky-55316357e39b1abf1cfa4c935bfc53cf317f37ec.tar.gz |
openssh : upgrade to 6.2p2
upgrade from 6.2p1 -> 6.2p2
(From OE-Core rev: 752ad432a248befe7d7b1dd799209f7bcbe9231e)
Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh_6.2p2.bb')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh_6.2p2.bb | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh_6.2p2.bb b/meta/recipes-connectivity/openssh/openssh_6.2p2.bb new file mode 100644 index 0000000000..06297da007 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh_6.2p2.bb | |||
@@ -0,0 +1,108 @@ | |||
1 | SUMMARY = "Secure rlogin/rsh/rcp/telnet replacement" | ||
2 | DESCRIPTION = "Secure rlogin/rsh/rcp/telnet replacement (OpenSSH) \ | ||
3 | Ssh (Secure Shell) is a program for logging into a remote machine \ | ||
4 | and for executing commands on a remote machine." | ||
5 | HOMEPAGE = "http://openssh.org" | ||
6 | SECTION = "console/network" | ||
7 | LICENSE = "BSD" | ||
8 | LIC_FILES_CHKSUM = "file://LICENCE;md5=e326045657e842541d3f35aada442507" | ||
9 | |||
10 | PR = "r0" | ||
11 | |||
12 | DEPENDS = "zlib openssl" | ||
13 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
14 | |||
15 | RPROVIDES_${PN}-ssh = "ssh" | ||
16 | RPROVIDES_${PN}-sshd = "sshd" | ||
17 | |||
18 | RCONFLICTS_${PN} = "dropbear" | ||
19 | RCONFLICTS_${PN}-sshd = "dropbear" | ||
20 | RCONFLICTS_${PN}-keygen = "ssh-keygen" | ||
21 | |||
22 | SRC_URI = "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar.gz \ | ||
23 | file://nostrip.patch \ | ||
24 | file://sshd_config \ | ||
25 | file://ssh_config \ | ||
26 | file://init \ | ||
27 | file://openssh-CVE-2011-4327.patch \ | ||
28 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | ||
29 | |||
30 | PAM_SRC_URI = "file://sshd" | ||
31 | |||
32 | SRC_URI[md5sum] = "be46174dcbb77ebb4ea88ef140685de1" | ||
33 | SRC_URI[sha256sum] = "7f29b9d2ad672ae0f9e1dcbff871fc5c2e60a194e90c766432e32161b842313b" | ||
34 | |||
35 | inherit useradd update-rc.d update-alternatives | ||
36 | |||
37 | USERADD_PACKAGES = "${PN}-sshd" | ||
38 | USERADD_PARAM_${PN}-sshd = "--system --no-create-home --home-dir /var/run/sshd --shell /bin/false --user-group sshd" | ||
39 | INITSCRIPT_PACKAGES = "${PN}-sshd" | ||
40 | INITSCRIPT_NAME_${PN}-sshd = "sshd" | ||
41 | INITSCRIPT_PARAMS_${PN}-sshd = "defaults 9" | ||
42 | |||
43 | inherit autotools | ||
44 | |||
45 | # LFS support: | ||
46 | CFLAGS += "-D__FILE_OFFSET_BITS=64" | ||
47 | export LD = "${CC}" | ||
48 | |||
49 | EXTRA_OECONF = "--with-rand-helper=no \ | ||
50 | ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \ | ||
51 | --without-zlib-version-check \ | ||
52 | --with-privsep-path=/var/run/sshd \ | ||
53 | --sysconfdir=${sysconfdir}/ssh \ | ||
54 | --with-xauth=/usr/bin/xauth" | ||
55 | |||
56 | # This is a workaround for uclibc because including stdio.h | ||
57 | # pulls in pthreads.h and causes conflicts in function prototypes. | ||
58 | # This results in compilation failure, so unless this is fixed, | ||
59 | # disable pam for uclibc. | ||
60 | EXTRA_OECONF_append_libc-uclibc=" --without-pam" | ||
61 | |||
62 | do_configure_prepend () { | ||
63 | if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then | ||
64 | cp aclocal.m4 acinclude.m4 | ||
65 | fi | ||
66 | } | ||
67 | |||
68 | do_compile_append () { | ||
69 | install -m 0644 ${WORKDIR}/sshd_config ${S}/ | ||
70 | install -m 0644 ${WORKDIR}/ssh_config ${S}/ | ||
71 | } | ||
72 | |||
73 | do_install_append () { | ||
74 | for i in ${DISTRO_FEATURES}; | ||
75 | do | ||
76 | if [ ${i} = "pam" ]; then | ||
77 | install -d ${D}${sysconfdir}/pam.d | ||
78 | install -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/sshd | ||
79 | fi | ||
80 | done | ||
81 | install -d ${D}${sysconfdir}/init.d | ||
82 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd | ||
83 | rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin | ||
84 | rmdir ${D}${localstatedir}/run/sshd ${D}${localstatedir}/run ${D}${localstatedir} | ||
85 | } | ||
86 | |||
87 | ALLOW_EMPTY_${PN} = "1" | ||
88 | |||
89 | PACKAGES =+ "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-sftp ${PN}-misc ${PN}-sftp-server" | ||
90 | FILES_${PN}-scp = "${bindir}/scp.${BPN}" | ||
91 | FILES_${PN}-ssh = "${bindir}/ssh.${BPN} ${sysconfdir}/ssh/ssh_config" | ||
92 | FILES_${PN}-sshd = "${sbindir}/sshd ${sysconfdir}/init.d/sshd" | ||
93 | FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config" | ||
94 | FILES_${PN}-sftp = "${bindir}/sftp" | ||
95 | FILES_${PN}-sftp-server = "${libexecdir}/sftp-server" | ||
96 | FILES_${PN}-misc = "${bindir}/ssh* ${libexecdir}/ssh*" | ||
97 | FILES_${PN}-keygen = "${bindir}/ssh-keygen" | ||
98 | |||
99 | RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen" | ||
100 | RDEPENDS_${PN}-sshd += "${PN}-keygen" | ||
101 | |||
102 | CONFFILES_${PN}-sshd = "${sysconfdir}/ssh/sshd_config" | ||
103 | CONFFILES_${PN}-ssh = "${sysconfdir}/ssh/ssh_config" | ||
104 | |||
105 | ALTERNATIVE_PRIORITY = "90" | ||
106 | ALTERNATIVE_${PN}-scp = "scp" | ||
107 | ALTERNATIVE_${PN}-ssh = "ssh" | ||
108 | |||