diff options
Diffstat (limited to 'net-libs/libssh2')
-rw-r--r-- | net-libs/libssh2/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libssh2/libssh2-1.11.1.ebuild | 66 |
2 files changed, 68 insertions, 0 deletions
diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest index 04fb751baaba..474121f0a2d2 100644 --- a/net-libs/libssh2/Manifest +++ b/net-libs/libssh2/Manifest @@ -2,7 +2,9 @@ AUX 0001-cmake-always-run-the-tests-even-when-static-libs-are.patch 2738 BLAKE2B AUX libssh2-1.11.0-mansyntax_sh.patch 304 BLAKE2B 465b6cf0a67fb9d4db83b0ae1556a2cc5d40a2feb981129b8bbe80fcbd75c26fb551a7a33de997ef70101418b094fd18cda55078e2147843c9852b9f7f069451 SHA512 657a6980c505d7359d544d802039325a9e91d2c08f76c499b189c356f47102d793c447aae03d82a22ca25e37c4a02e2c3f7f9cd2cefd37a2c91e0efbf99e86c7 AUX libssh2-1.11.0-size_t.patch 4251 BLAKE2B e5ef686f8c3d0211d33524b81433f3a8be86b6ce7ac274d788075e827c8b37c6adb6fc790e471d1702118123ae0919f2b2bdd78b3788feffaf94672d1d32b328 SHA512 e52a0f2a531daf8c0e512b3ab802fbe7e7705f793f50455399f1d5e905e1b4d26299ac649b0da7f5856eb451eeaff814124e751d39996927f5cd931c85046981 DIST libssh2-1.11.0.tar.xz 686796 BLAKE2B 36903798c72f7261d9e997254169c10a4e69166017445276de8b0066fff15cd4dae4119a8d6cbbab8859d765b2d7f34f2911bbaf83c8d6ac5d1feead6b5de64e SHA512 6d50c71b778ca0f769fcc9d2cc257ab669cd0b6c35e8b0e047b6b38aea10638974cc591ba27c25bb7dd523020b4a8a62e2c1ae368287d9dc254d5e24d4a7cee7 +DIST libssh2-1.11.1.tar.xz 721700 BLAKE2B 8ab227556f8e7f094b2b8dc77e311d6935580690dd7d46f8766654a30078fb0be4182f43136896a04b5a2d15175397fab76607472d5f3cd31c8837a86e0c3c83 SHA512 8322b54a522b0cbbb07916d29ec045c08f8ed94bd8abb5e524038640e90a317667a25be46d95b62b101ed726ade0a51a90fb246cf34c045c38f927f4e439e431 EBUILD libssh2-1.11.0-r2.ebuild 1475 BLAKE2B d008d48739105848113d1b73d5f16682e8de50c55b6ee8301169e3c830a21c9764a1ecb2232695bd8f7074c523bc6848cbc60ccb8d2618a1cd98bd8b0bc34140 SHA512 4d1eacc93142a7eee3567a152425746400bc8871f3f78b2afe0bfcc3b1ae34c0dde2d22f8b1f47cd2e960a0f239c36dc1fc1880863c3b4b6762993bcda7e995a EBUILD libssh2-1.11.0-r3.ebuild 1622 BLAKE2B 754c3340c15d028a8d682263cf5d4ad76a67edee82380906cb117fbbcd704f2326a952a497286e6ca007f2edc004792eb672f1187db022976b9b5087bc54742f SHA512 a27f994ad1f055a2c88258123ab0616a5593bca01b2ef34d6462a11a83db693bb7b83b8bbe86dfda968043840dce917ec76bbf6dc92ba58c0a0ff78a537658d7 +EBUILD libssh2-1.11.1.ebuild 1460 BLAKE2B 34f1a50d339993c09789f90618027be8bdf0132bb259e5adcdde6ec5006828fea4e5a36cb778a3bee200d38968395ade9b2d8e4eff7003298a663b5a880edc7c SHA512 c8df17d8b3a08d4f8e6df177737b040fad9da1dfc667ff403a865ad64c970f6b748221f376541d0c8cdbfe67c5f67125ed75664673af343ed7e5063bd5874441 EBUILD libssh2-9999.ebuild 1340 BLAKE2B 20782fca446145ee85fa31929878dacb60fcd8a223a730545443d646524d80bc055753651e7cfb09d6d93123656e50548ab1661e1858a74e5d81e726a1783808 SHA512 f774ba8bbaae89a0cfa12eb572915f71a2fe653da635f26be723f875e9d06054ec5dd7aa6766399f2d0c74ed98142449b5cf5d6acbcb30fe2f35c1b567325a16 MISC metadata.xml 684 BLAKE2B 24abefd923c417602ceba0d1eda1c43a14c20b3b7091b30e4a17d729e01ad8247fb6b5d10df16f26f89ea53c006a5cad03b227213b76c3d7953047ac9bfe8b30 SHA512 c4ca1fb726c643206c3db74c5ed92e4755afa65310695ca3f8e5bed67308dedadc4ff44e5554af706ac0e618748c8cf52b9616e60c1b872841817f193b56af3b diff --git a/net-libs/libssh2/libssh2-1.11.1.ebuild b/net-libs/libssh2/libssh2-1.11.1.ebuild new file mode 100644 index 000000000000..3a57cca02b96 --- /dev/null +++ b/net-libs/libssh2/libssh2-1.11.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib + +DESCRIPTION="Library implementing the SSH2 protocol" +HOMEPAGE="https://libssh2.org" +SRC_URI="https://libssh2.org/download/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="gcrypt mbedtls test zlib" +REQUIRED_USE="?? ( gcrypt mbedtls )" +RESTRICT="!test? ( test )" + +RDEPEND=" + gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] ) + !gcrypt? ( + mbedtls? ( net-libs/mbedtls:0=[${MULTILIB_USEDEP}] ) + !mbedtls? ( + >=dev-libs/openssl-1.0.1h-r2:0=[${MULTILIB_USEDEP}] + ) + ) + zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.11.0-mansyntax_sh.patch +) + +multilib_src_configure() { + local crypto_backend=OpenSSL + if use gcrypt; then + crypto_backend=Libgcrypt + elif use mbedtls; then + crypto_backend=mbedTLS + fi + + local mycmakeargs=( + -DBUILD_SHARED_LIBS=ON + -DBUILD_STATIC_LIBS=OFF + -DBUILD_TESTING=$(usex test) + -DCRYPTO_BACKEND=${crypto_backend} + -DENABLE_ZLIB_COMPRESSION=$(usex zlib) + ) + + if use test ; then + # Pass separately to avoid unused var warnings w/ USE=-test + mycmakeargs+=( + -DRUN_SSHD_TESTS=OFF + -DRUN_DOCKER_TESTS=OFF + ) + fi + + cmake_src_configure +} + +multilib_src_install_all() { + einstalldocs +} |