1 |
commit: 238eca462939df9a7d97ebf6a80352f2f06c0efd |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 3 12:02:08 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 3 12:11:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=238eca46 |
7 |
|
8 |
net-libs/libssh: Bump to version 0.8.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
net-libs/libssh/Manifest | 1 + |
13 |
net-libs/libssh/libssh-0.8.2.ebuild | 115 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 116 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/libssh/Manifest b/net-libs/libssh/Manifest |
17 |
index dbbf852c278..ac53341e488 100644 |
18 |
--- a/net-libs/libssh/Manifest |
19 |
+++ b/net-libs/libssh/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST libssh-0.7.4.tar.xz 351892 BLAKE2B 5427faa04eac7b57f73909f113d933daf667f8311c30364bbf06d4f01121a58f5b560e0a1d9071655ce9b310fa3f3f801e11e880ca3eacde66efa0f49dc51b2b SHA512 94b8183e5c83e339303c1a160c92ccff6159471ac7d189ab66cf6d606d2e803fd616519f079aef1577c947d3a14e315332b05ea08e44d0ab550edbcb768dbea7 |
22 |
DIST libssh-0.7.5.tar.xz 351632 BLAKE2B b41cccb6215c5b7e66742171d91e1081d3c1bf44455b65a5992093d31b28db7a6375e815303e115e02b2458c734d9c61e4b1528ba905bf8a421ca2bbb7221ce6 SHA512 6c7f539899caaedf13d66fa2e0fac1a475ecdfe389131abcbdf908bdebc50a0b9e6b0d43e67e52aea85c32f6aa68e46ca2f50695992f82ded83489f445a8e775 |
23 |
DIST libssh-0.8.1.tar.xz 409572 BLAKE2B 65bf38c5bba803a588ff4a1cc5f774cacc43c500bf0aaa77674f9120eccda26027e446aeb9e61a2418eb81077fdb0aa55d8e014f6d466877a9cd96b665c5e7ce SHA512 6630d0b101dc109116ba7a6cffb00db1bc9b5bc6004c843c5361d3d97c6cf4c323129ebf3bbf25ab2fc1961b74520490d7a16999504849c07b26a25679724b93 |
24 |
+DIST libssh-0.8.2.tar.xz 408412 BLAKE2B bbd531ed511baa84d40c2e156cc63fca09345196e24e485930d8f42fed451529ea6ec2ce6f50276dfa56d5523062bbc45774891ad47ce7c748e8b95bc28b9f8c SHA512 ef9877d2a35f1871139c12452c917a3888172ea29f71d880e824de182695e5a8786bb39ca2f4874a160e156648d52065a8b2e7c040220badf65eee35dcfddeb9 |
25 |
|
26 |
diff --git a/net-libs/libssh/libssh-0.8.2.ebuild b/net-libs/libssh/libssh-0.8.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..641c1853e98 |
29 |
--- /dev/null |
30 |
+++ b/net-libs/libssh/libssh-0.8.2.ebuild |
31 |
@@ -0,0 +1,115 @@ |
32 |
+# Copyright 1999-2018 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
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 |
+ inherit eapi7-ver |
48 |
+ SRC_URI="https://www.libssh.org/files/$(ver_cut 1-2)/${MY_P}.tar.xz" |
49 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
50 |
+fi |
51 |
+ |
52 |
+LICENSE="LGPL-2.1" |
53 |
+SLOT="0/4" # subslot = soname major version |
54 |
+IUSE="debug doc examples gcrypt gssapi libressl mbedtls pcap server +sftp static-libs test zlib" |
55 |
+# Maintainer: check IUSE-defaults at DefineOptions.cmake |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ !gcrypt? ( |
59 |
+ !mbedtls? ( |
60 |
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] ) |
61 |
+ libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] ) |
62 |
+ ) |
63 |
+ ) |
64 |
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] ) |
65 |
+ gssapi? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] ) |
66 |
+ mbedtls? ( net-libs/mbedtls[${MULTILIB_USEDEP}] ) |
67 |
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) |
68 |
+" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ doc? ( app-doc/doxygen ) |
71 |
+ test? ( >=dev-util/cmocka-0.3.1[${MULTILIB_USEDEP}] ) |
72 |
+" |
73 |
+ |
74 |
+REQUIRED_USE="?? ( gcrypt mbedtls )" |
75 |
+ |
76 |
+DOCS=( AUTHORS README ChangeLog ) |
77 |
+ |
78 |
+S="${WORKDIR}/${MY_P}" |
79 |
+ |
80 |
+PATCHES=( |
81 |
+ "${FILESDIR}/${PN}-0.8.0-tests.patch" |
82 |
+) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ cmake-utils_src_prepare |
86 |
+ |
87 |
+ # just install the examples do not compile them |
88 |
+ sed -i \ |
89 |
+ -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' \ |
90 |
+ CMakeLists.txt || die |
91 |
+ |
92 |
+ # keyfile torture test is currently broken |
93 |
+ sed -i \ |
94 |
+ -e '/torture_keyfiles/d' \ |
95 |
+ tests/unittests/CMakeLists.txt || die |
96 |
+} |
97 |
+ |
98 |
+multilib_src_configure() { |
99 |
+ local mycmakeargs=( |
100 |
+ -DUNIT_TESTING="$(usex test)" |
101 |
+ -DWITH_DEBUG_CALLTRACE="$(usex debug)" |
102 |
+ -DWITH_DEBUG_CRYPTO="$(usex debug)" |
103 |
+ -DWITH_GCRYPT="$(usex gcrypt)" |
104 |
+ -DWITH_GSSAPI="$(usex gssapi)" |
105 |
+ -DWITH_MBEDTLS="$(usex mbedtls)" |
106 |
+ -DWITH_NACL=no |
107 |
+ -DWITH_PCAP="$(usex pcap)" |
108 |
+ -DWITH_SERVER="$(usex server)" |
109 |
+ -DWITH_SFTP="$(usex sftp)" |
110 |
+ -DWITH_STACK_PROTECTOR=OFF |
111 |
+ -DWITH_STATIC_LIB="$(usex static-libs)" |
112 |
+ -DWITH_STATIC_LIB="$(usex test)" |
113 |
+ -DWITH_ZLIB="$(usex zlib)" |
114 |
+ ) |
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 doc |
122 |
+} |
123 |
+ |
124 |
+multilib_src_install() { |
125 |
+ cmake-utils_src_install |
126 |
+ |
127 |
+ if multilib_is_native_abi && use doc ; then |
128 |
+ docinto html |
129 |
+ dodoc -r doc/html/. |
130 |
+ fi |
131 |
+ |
132 |
+ use static-libs || rm -f "${D}"/usr/$(get_libdir)/libssh.a |
133 |
+ |
134 |
+ # compatibility symlink until all consumers have been updated |
135 |
+ # to no longer use libssh_threads.so |
136 |
+ dosym libssh.so /usr/$(get_libdir)/libssh_threads.so |
137 |
+} |
138 |
+ |
139 |
+multilib_src_install_all() { |
140 |
+ einstalldocs |
141 |
+ |
142 |
+ if use examples; then |
143 |
+ docinto examples |
144 |
+ dodoc examples/*.{c,h,cpp} |
145 |
+ fi |
146 |
+} |