diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /net-libs/libssh2 | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'net-libs/libssh2')
| -rw-r--r-- | net-libs/libssh2/Manifest | 2 | ||||
| -rw-r--r-- | net-libs/libssh2/files/libssh2-1.11.0-mansyntax_sh.patch | 10 | ||||
| -rw-r--r-- | net-libs/libssh2/libssh2-1.11.1.ebuild | 75 | ||||
| -rw-r--r-- | net-libs/libssh2/libssh2-9999.ebuild | 66 | ||||
| -rw-r--r-- | net-libs/libssh2/metadata.xml | 21 |
5 files changed, 174 insertions, 0 deletions
diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest new file mode 100644 index 000000000000..5ef091374225 --- /dev/null +++ b/net-libs/libssh2/Manifest @@ -0,0 +1,2 @@ +DIST libssh2-1.11.1.tar.xz 721700 BLAKE2B 8ab227556f8e7f094b2b8dc77e311d6935580690dd7d46f8766654a30078fb0be4182f43136896a04b5a2d15175397fab76607472d5f3cd31c8837a86e0c3c83 SHA512 8322b54a522b0cbbb07916d29ec045c08f8ed94bd8abb5e524038640e90a317667a25be46d95b62b101ed726ade0a51a90fb246cf34c045c38f927f4e439e431 +DIST libssh2-1.11.1.tar.xz.asc 488 BLAKE2B d77f0e7b36030277b901b00c2dc8420a7ea5f2f79caf65197464fbb5b87ebbd0132f11c8bad275413129292b8153895cca1bfe4ff3dd0b8f577bb79184415db3 SHA512 701a22f7b6cf9e2d02fd313fa5e64860ec8b162d32054b3ebc5c179ae81d13532563c0b1e51fdd1d526533a0a0f4487248fce3ba2f6a9a566bad08cb0f4051bf diff --git a/net-libs/libssh2/files/libssh2-1.11.0-mansyntax_sh.patch b/net-libs/libssh2/files/libssh2-1.11.0-mansyntax_sh.patch new file mode 100644 index 000000000000..8d8e93cda47e --- /dev/null +++ b/net-libs/libssh2/files/libssh2-1.11.0-mansyntax_sh.patch @@ -0,0 +1,10 @@ +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -63,7 +63,6 @@ if(SH_EXECUTABLE) + mark_as_advanced(SSHD_EXECUTABLE) + endif() + +- add_test(NAME mansyntax COMMAND ${SH_EXECUTABLE} -c "${CMAKE_CURRENT_SOURCE_DIR}/mansyntax.sh") + endif() + + add_library(runner STATIC ${librunner_la_SOURCES}) 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..77ad89893a22 --- /dev/null +++ b/net-libs/libssh2/libssh2-1.11.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/danielstenberg.asc +inherit cmake-multilib verify-sig + +DESCRIPTION="Library implementing the SSH2 protocol" +HOMEPAGE="https://libssh2.org" +SRC_URI=" + https://libssh2.org/download/${P}.tar.xz + verify-sig? ( + https://libssh2.org/download/${P}.tar.xz.asc + ) +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~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? ( >=virtual/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + verify-sig? ( sec-keys/openpgp-keys-danielstenberg ) +" + +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 +} diff --git a/net-libs/libssh2/libssh2-9999.ebuild b/net-libs/libssh2/libssh2-9999.ebuild new file mode 100644 index 000000000000..78abc8b39f80 --- /dev/null +++ b/net-libs/libssh2/libssh2-9999.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib git-r3 + +DESCRIPTION="Library implementing the SSH2 protocol" +HOMEPAGE="https://libssh2.org" +EGIT_REPO_URI="https://github.com/libssh2/libssh2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +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? ( >=virtual/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 +} diff --git a/net-libs/libssh2/metadata.xml b/net-libs/libssh2/metadata.xml new file mode 100644 index 000000000000..b35a2c0b40f5 --- /dev/null +++ b/net-libs/libssh2/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <use> + <flag name="gcrypt">Use <pkg>dev-libs/libgcrypt</pkg> instead of <pkg>dev-libs/openssl</pkg> + </flag> + <flag name="mbedtls">Use <pkg>net-libs/mbedtls</pkg> instead of <pkg>dev-libs/openssl</pkg> + </flag> + </use> + <upstream> + <remote-id type="cpe">cpe:/a:libssh2:libssh2</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
