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