Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libssh/
Date: Tue, 16 Oct 2018 15:47:41
Message-Id: 1539704812.b9446a58ef8701d59c8d267bfcd156a68de3f39b.asturm@gentoo
1 commit: b9446a58ef8701d59c8d267bfcd156a68de3f39b
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 16 15:46:52 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 16 15:46:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9446a58
7
8 net-libs/libssh: 0.8.4 version bump for CVE-2018-10933
9
10 Bug: https://bugs.gentoo.org/668788
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 net-libs/libssh/Manifest | 1 +
15 net-libs/libssh/libssh-0.8.4.ebuild | 111 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 112 insertions(+)
17
18 diff --git a/net-libs/libssh/Manifest b/net-libs/libssh/Manifest
19 index e340fa78708..8d0425735f9 100644
20 --- a/net-libs/libssh/Manifest
21 +++ b/net-libs/libssh/Manifest
22 @@ -2,3 +2,4 @@ DIST libssh-0.7.4.tar.xz 351892 BLAKE2B 5427faa04eac7b57f73909f113d933daf667f831
23 DIST libssh-0.7.5.tar.xz 351632 BLAKE2B b41cccb6215c5b7e66742171d91e1081d3c1bf44455b65a5992093d31b28db7a6375e815303e115e02b2458c734d9c61e4b1528ba905bf8a421ca2bbb7221ce6 SHA512 6c7f539899caaedf13d66fa2e0fac1a475ecdfe389131abcbdf908bdebc50a0b9e6b0d43e67e52aea85c32f6aa68e46ca2f50695992f82ded83489f445a8e775
24 DIST libssh-0.8.2.tar.xz 408412 BLAKE2B bbd531ed511baa84d40c2e156cc63fca09345196e24e485930d8f42fed451529ea6ec2ce6f50276dfa56d5523062bbc45774891ad47ce7c748e8b95bc28b9f8c SHA512 ef9877d2a35f1871139c12452c917a3888172ea29f71d880e824de182695e5a8786bb39ca2f4874a160e156648d52065a8b2e7c040220badf65eee35dcfddeb9
25 DIST libssh-0.8.3.tar.xz 422244 BLAKE2B b24e4eed3ad1cd336b1864c68e366788ea62d0df2d527afaabf8d57c2f3e7b490a999bee8e4bfbfac512a77ee2a32cb1a95dbcdbcef2bd8aad5addbed1aeb01f SHA512 09e7ccbb2c584a9e51366a43f08f80cc5775c649886736629ab10f3520432d107c93e94a54c7d7e49a68f8f3b5d268bf1985acbe08d29dbffbfc0c53a4937ea5
26 +DIST libssh-0.8.4.tar.xz 425848 BLAKE2B 8ca913e4c9e2ffa231bb437ac6a4de695bbdf8720a7619f3fc310a3d724cb7e85bcf81d31761c3fe4e3c29010b67d3fc81cf391d5c2f7e051cb8cc2400763248 SHA512 73d685bab2e88ff6b03c95cc13f1bd341bce4c527353c7e4870865d236cfbe23dfd2d198a1ec1531aed1afd700ce8e5b738ec68ca9152a4b6ae63dd6cbbf0d51
27
28 diff --git a/net-libs/libssh/libssh-0.8.4.ebuild b/net-libs/libssh/libssh-0.8.4.ebuild
29 new file mode 100644
30 index 00000000000..7b660604f3a
31 --- /dev/null
32 +++ b/net-libs/libssh/libssh-0.8.4.ebuild
33 @@ -0,0 +1,111 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +MY_P="${PN}-${PV/_rc/rc}"
40 +inherit cmake-multilib
41 +
42 +DESCRIPTION="Access a working SSH implementation by means of a library"
43 +HOMEPAGE="https://www.libssh.org/"
44 +
45 +if [[ "${PV}" == *9999 ]] ; then
46 + inherit git-r3
47 + EGIT_REPO_URI="https://git.libssh.org/projects/libssh.git"
48 +else
49 + inherit eapi7-ver
50 + SRC_URI="https://www.libssh.org/files/$(ver_cut 1-2)/${MY_P}.tar.xz"
51 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux"
52 +fi
53 +
54 +LICENSE="LGPL-2.1"
55 +SLOT="0/4" # subslot = soname major version
56 +IUSE="debug doc examples gcrypt gssapi libressl mbedtls pcap server +sftp static-libs test zlib"
57 +# Maintainer: check IUSE-defaults at DefineOptions.cmake
58 +
59 +REQUIRED_USE="?? ( gcrypt mbedtls ) test? ( static-libs )"
60 +
61 +RDEPEND="
62 + !gcrypt? (
63 + !mbedtls? (
64 + !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] )
65 + libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
66 + )
67 + )
68 + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
69 + gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
70 + mbedtls? ( net-libs/mbedtls[${MULTILIB_USEDEP}] )
71 + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
72 +"
73 +DEPEND="${RDEPEND}
74 + doc? ( app-doc/doxygen[dot] )
75 + test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] )
76 +"
77 +
78 +DOCS=( AUTHORS README ChangeLog )
79 +
80 +S="${WORKDIR}/${MY_P}"
81 +
82 +PATCHES=(
83 + "${FILESDIR}/${PN}-0.8.0-tests.patch"
84 + "${FILESDIR}/${PN}-0.8.3-strict-overflow.patch"
85 +)
86 +
87 +src_prepare() {
88 + cmake-utils_src_prepare
89 +
90 + # just install the examples, do not compile them
91 + cmake_comment_add_subdirectory examples
92 +
93 + # keyfile torture test is currently broken
94 + sed -i \
95 + -e '/torture_keyfiles/d' \
96 + tests/unittests/CMakeLists.txt || die
97 +}
98 +
99 +multilib_src_configure() {
100 + local mycmakeargs=(
101 + -DUNIT_TESTING="$(usex test)"
102 + -DWITH_DEBUG_CALLTRACE="$(usex debug)"
103 + -DWITH_DEBUG_CRYPTO="$(usex debug)"
104 + -DWITH_GCRYPT="$(usex gcrypt)"
105 + -DWITH_GSSAPI="$(usex gssapi)"
106 + -DWITH_MBEDTLS="$(usex mbedtls)"
107 + -DWITH_NACL=no
108 + -DWITH_PCAP="$(usex pcap)"
109 + -DWITH_SERVER="$(usex server)"
110 + -DWITH_SFTP="$(usex sftp)"
111 + -DWITH_STACK_PROTECTOR=OFF
112 + -DWITH_STACK_PROTECTOR_STRONG=OFF
113 + -DWITH_STATIC_LIB="$(usex static-libs)"
114 + -DWITH_ZLIB="$(usex zlib)"
115 + )
116 +
117 + multilib_is_native_abi || mycmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON )
118 +
119 + cmake-utils_src_configure
120 +}
121 +
122 +multilib_src_compile() {
123 + cmake-utils_src_compile
124 + multilib_is_native_abi && use doc && cmake-utils_src_compile docs
125 +}
126 +
127 +multilib_src_install() {
128 + cmake-utils_src_install
129 + use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
130 +
131 + # compatibility symlink until all consumers have been updated
132 + # to no longer use libssh_threads.so
133 + dosym libssh.so /usr/$(get_libdir)/libssh_threads.so
134 +}
135 +
136 +multilib_src_install_all() {
137 + use mbedtls && DOCS+=( README.mbedtls )
138 + einstalldocs
139 +
140 + if use examples; then
141 + docinto examples
142 + dodoc examples/*.{c,h,cpp}
143 + fi
144 +}