summaryrefslogtreecommitdiff
path: root/net-libs/libssh2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/libssh2
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/libssh2')
-rw-r--r--net-libs/libssh2/Manifest11
-rw-r--r--net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch30
-rw-r--r--net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch41
-rw-r--r--net-libs/libssh2/libssh2-1.7.0.ebuild43
-rw-r--r--net-libs/libssh2/libssh2-1.8.0-r1.ebuild50
-rw-r--r--net-libs/libssh2/libssh2-1.8.0.ebuild48
-rw-r--r--net-libs/libssh2/libssh2-9999.ebuild50
-rw-r--r--net-libs/libssh2/metadata.xml14
8 files changed, 287 insertions, 0 deletions
diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest
new file mode 100644
index 000000000000..cf5b0aa715db
--- /dev/null
+++ b/net-libs/libssh2/Manifest
@@ -0,0 +1,11 @@
+AUX libssh2-1.8.0-libgcrypt-prefix.patch 1026 SHA256 b020848f2ec87b3a9fe5d2bfa195f319a4c378426f3b6b7e4d887f31275807dc SHA512 8acd91d729c881ec87473895f3deba1e8f3b655a5394b130395fa75420c346dfe0e76028e7e43bd22783d2af4e1e50e5c25dd7f3d7a93cb35059bbbe5651d08e WHIRLPOOL 6c54a6bd7f81e170096a7d6e30659aa7fa919d29eaffbcded244530076a11f0e4c853e41b80d91f5a5ef035f75f616e7b2d74128e50a8f0199946c83d74a1279
+AUX libssh2-1.8.0-mansyntax_sh.patch 770 SHA256 0e633493227f918b6cc06d5a18b392394d4a2a0acdb49ab8dbae5d2132d67beb SHA512 9da051dd5dda823ae8797b0dadb9a3734590e196898b0985f389492f1225c720dac0ce374ba6d9cc8956820128fc2d7457350248b486f0da4d12cc3bb93e275a WHIRLPOOL 9d8ebdcf4c9ff76d963fd38c4155f2cfa37cb5f19cb657355549a27cb3d7c3efdb8918acb86feaa7257f297e4deaae8420760c88627cdd8115cec10a62fe8a8b
+DIST libssh2-1.7.0.tar.gz 811714 SHA256 e4561fd43a50539a8c2ceb37841691baf03ecb7daf043766da1b112e4280d584 SHA512 0f9dfd83196129568c00383e2e4fea29b3d8c4f3b1690f550a6748d1db68cc437b4ed083f5d3d4646365fdc839819619aea96eeaef5ab072c7023d13f08b5153 WHIRLPOOL dceefdc11b6b88f4320bfdd01044dc9c81e4d1e3e54a9e2ec8f6869ba091668e5957a3e2a56934196c87f1877d61ebe0b45f450ca12bf1802da9812db8a4ffb6
+DIST libssh2-1.8.0.tar.gz 854916 SHA256 39f34e2f6835f4b992cafe8625073a88e5a28ba78f83e8099610a7b3af4676d4 SHA512 289aa45c4f99653bebf5f99565fe9c519abc204feb2084b47b7cc3badc8bf4ecdedd49ea6acdce8eb902b3c00995d5f92a3ca77b2508b92f04ae0e7de7287558 WHIRLPOOL 2f9523214b6aa48842e4bc23a8e8edb62ddbe438a18db2269bcb802c1e9234c02fece51e0530f949adad1aedef3062c0a8d959734b54cbf8ae372766a5f91c4d
+EBUILD libssh2-1.7.0.ebuild 1210 SHA256 e29d51fe34a9b9866e4fe48860a55d6fc24d56ab52106e1db1c8b3430cca8027 SHA512 feed1680c4b5909b5bacbc12e30a43e9e0e15279643ca118f76a8216c7ec29a25475fb5c6e2f76a37c87d243135c66ad8c9b42a96634628acf2eb28c97462615 WHIRLPOOL 6affd6bbb0cc6649da157ff1ff8b758a9d2e39ff7950119caaf369c64d19dfa6c481c08896701e822fe41558e55d5ea88af0da0dc242b6045203a8bd4318a080
+EBUILD libssh2-1.8.0-r1.ebuild 1288 SHA256 d2c556d2c5e6e8185999c144525c751a8e64d1e89722647a1840e00b8c971a1c SHA512 ea7e26409aea9709824b276095ab2269b916a6df69619bf979d61752d8340bc55fdfa8119a953d8e559cfb5c8af2d96cf26f1e9bcc449132c9981a507a1780b8 WHIRLPOOL 4f7861b30f047ff0ca33ec3387848549ccfeec5c2ea9620ec4c607895c89aeb70ccab04f5dc4bf19d1aa490c6e6de4205e16e540da67f14b61f1e16f7444e484
+EBUILD libssh2-1.8.0.ebuild 1290 SHA256 3be0a76b2208236b23decd95c63c1c39fe8e82dfa43bf09c7be1d355fa0e6758 SHA512 016ba030248775b968094fc2e0edad87268801a7350e1cea405347ac508e31fd81fce560b82b12aaf58bcfe7a27a176c0cee3a4c2c0e1622019140ed15e6e237 WHIRLPOOL 9cc5afeab43942a5b4434fc55af925bff72e751ca698a4403bd6a50cdd7259b100cfa04758ddb1fa0d9177db00293375972a9b3bb4449aae0914710cd25f7ce9
+EBUILD libssh2-9999.ebuild 1131 SHA256 7d55c7f61c030e8a705462e3f0f7899ef6ba6c24902295b7417d35ba7073fa19 SHA512 ee0431b63ddf905e1efe49eac35a48c7e956a8a3bc03ec48de73f076a226699ae3eba22b1b0798f458d414ff46cc2f29815b0cbed96609021050e510290ea9f1 WHIRLPOOL 22b0ef75cd143ffcaef803d3fee8360bdfb0f8e8605f5c18a9dced1b59f1cd5ed3be965b589328e834e66a198687be05e41e36118f0d14f87edb6abfd0ba65b7
+MISC ChangeLog 5808 SHA256 d2796b6c0010fa3aea54c15c7b1d7c28d101ca4cec8296f7992d8d1432ec0799 SHA512 807704e6e162da6ff69defd8659b54074cda2a974bc64cbbc3c8cffd8331bedf8752bfe7c0b22d40c93be6a792b2965532639fe893887f0f6e11549f5c63d3c6 WHIRLPOOL 1b6c1788d4dc42a1b7137bd04332e28733386cc48e4be48121633753803316829d7717595228dec13581478b60a31f6d54c62d13318daa651e7d28e8d383342d
+MISC ChangeLog-2015 13302 SHA256 34f5839998ce4cd9ad8b2782504071bc970c51e410a20e6ad25325e3d05439e1 SHA512 e5761b40bbd899eef35bf5fd7c3f16d54dddb46a48e0f74b2296ed2dc94d33e9045d17c542762922e9be54844afc8b77dc8f37648464ab2df16999c3916987a1 WHIRLPOOL d5c73508c9008f46297da236d4dec27e02171e869687f9e0067b889b539d440723613f0816c44541ac7830a211a14c028fe3ee919ee56d2101a9f55bb3b13cd4
+MISC metadata.xml 432 SHA256 c530134ac3de3b7239eb5756e006952f6f6d17485b4b3ba7ae692287d4c18999 SHA512 c0fd5dce9a697c02886aeea4e001695bf51c6cec82a1c32d58a839dbd63f0085f9005c3504d40bd858bcca80ec2018bbf44bca64dd7692029e158612da39cabd WHIRLPOOL f066d7018fb66df1416fec8af96697e0cf78af2d292b88713e9598c4454cb6ca357eafcf0868f63a36a642ec9e46c414deb61fd6e2abfb675f12a44b97b0eb09
diff --git a/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch b/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch
new file mode 100644
index 000000000000..10065626fe2b
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-1.8.0-libgcrypt-prefix.patch
@@ -0,0 +1,30 @@
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -412,9 +412,9 @@ AC_DEFUN([LIBSSH2_CHECKFOR_GCRYPT], [
+
+ old_LDFLAGS=$LDFLAGS
+ old_CFLAGS=$CFLAGS
+- if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
+- LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
+- CFLAGS="$CFLAGS -I$use_libgcrypt/include"
++ if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
++ LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
++ CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
+ fi
+ AC_LIB_HAVE_LINKFLAGS([gcrypt], [], [
+ #include <gcrypt.h>
+--- a/configure
++++ b/configure
+@@ -14250,9 +14235,9 @@
+
+ old_LDFLAGS=$LDFLAGS
+ old_CFLAGS=$CFLAGS
+- if test -n "$use_libgcrypt" && test "$use_libgcrypt" != "no"; then
+- LDFLAGS="$LDFLAGS -L$use_libgcrypt/lib"
+- CFLAGS="$CFLAGS -I$use_libgcrypt/include"
++ if test -n "$with_libgcrypt_prefix" && test "$use_libgcrypt" != "no"; then
++ LDFLAGS="$LDFLAGS -L$with_libgcrypt_prefix/lib"
++ CFLAGS="$CFLAGS -I$with_libgcrypt_prefix/include"
+ fi
+
+
diff --git a/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch b/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
new file mode 100644
index 000000000000..3a33bf744167
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-1.8.0-mansyntax_sh.patch
@@ -0,0 +1,41 @@
+--- a/tests/mansyntax.sh
++++ b/tests/mansyntax.sh
+@@ -1,37 +1,2 @@
+ #!/bin/sh
+-set -e
+-
+-# Written by Mikhail Gusarov
+-#
+-# Run syntax checks for all manpages in the documentation tree.
+-#
+-
+-srcdir=${srcdir:-$PWD}
+-dstdir=${builddir:-$PWD}
+-mandir=${srcdir}/../docs
+-
+-#
+-# Only test if suitable man is available
+-#
+-if ! man --help | grep -q warnings; then
+- echo "man version not suitable, skipping tests"
+- exit 0
+-fi
+-
+-ec=0
+-
+-trap "rm -f $dstdir/man3" EXIT
+-
+-ln -sf "$mandir" "$dstdir/man3"
+-
+-for manpage in $mandir/libssh2_*.*; do
+- echo "$manpage"
+- warnings=$(LANG=en_US.UTF-8 MANWIDTH=80 man -M "$dstdir" --warnings \
+- -E UTF-8 -l "$manpage" 2>&1 >/dev/null)
+- if [ -n "$warnings" ]; then
+- echo "$warnings"
+- ec=1
+- fi
+-done
+-
+-exit $ec
++:
diff --git a/net-libs/libssh2/libssh2-1.7.0.ebuild b/net-libs/libssh2/libssh2-1.7.0.ebuild
new file mode 100644
index 000000000000..2bc942b4d5fa
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.7.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+inherit autotools-multilib
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="http://www.${PN}.org/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+DOCS=( README )
+
+src_prepare() {
+ sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die
+ autotools-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ local myeconfargs=(
+ $(use_with zlib libz)
+ $(usex gcrypt --with-libgcrypt --with-openssl)
+ )
+ autotools-utils_src_configure
+}
diff --git a/net-libs/libssh2/libssh2-1.8.0-r1.ebuild b/net-libs/libssh2/libssh2-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..af51f92f415d
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.8.0-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit ltprune multilib-minimal
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="http://www.${PN}.org/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+DOCS=(
+ NEWS README
+)
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch
+ "${FILESDIR}"/${PN}-1.8.0-mansyntax_sh.patch
+)
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ ECONF_SOURCE=${S} econf \
+ $(use_with zlib libz) \
+ $(usex gcrypt --with-libgcrypt --with-openssl) \
+ $(use_enable static-libs static)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ prune_libtool_files
+}
diff --git a/net-libs/libssh2/libssh2-1.8.0.ebuild b/net-libs/libssh2/libssh2-1.8.0.ebuild
new file mode 100644
index 000000000000..3cc10e06541a
--- /dev/null
+++ b/net-libs/libssh2/libssh2-1.8.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+inherit autotools-multilib
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="http://www.${PN}.org/download/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+DOCS=( NEWS README )
+
+PATCHES=( "${FILESDIR}"/${PN}-1.8.0-libgcrypt-prefix.patch )
+
+src_prepare() {
+ sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die
+ autotools-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ local myeconfargs=(
+ $(use_with zlib libz)
+ $(usex gcrypt --with-libgcrypt --with-openssl)
+ )
+ autotools-utils_src_configure
+}
diff --git a/net-libs/libssh2/libssh2-9999.ebuild b/net-libs/libssh2/libssh2-9999.ebuild
new file mode 100644
index 000000000000..20d32d236067
--- /dev/null
+++ b/net-libs/libssh2/libssh2-9999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools git-r3 multilib-minimal
+
+EGIT_REPO_URI="https://github.com/libssh2/libssh2"
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI=""
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="gcrypt libressl static-libs test zlib"
+
+DEPEND="
+ !gcrypt? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl[${MULTILIB_USEDEP}] )
+ )
+ gcrypt? ( >=dev-libs/libgcrypt-1.5.3:0[${MULTILIB_USEDEP}] )
+ zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+DOCS=( NEWS README )
+
+src_prepare() {
+ default
+
+ sed -i -e 's|mansyntax.sh||g' tests/Makefile.am || die
+ ln -s ../src/libssh2_config.h.in example/libssh2_config.h.in || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # Disable tests that require extra permissions (bug #333319)
+ use test && local -x ac_cv_path_SSHD=
+
+ local crypto
+ if use gcrypt; then
+ crypto=libgcrypt
+ else
+ crypto=openssl
+ fi
+
+ ECONF_SOURCE="${S}" econf --with-crypto=${crypto}
+}
diff --git a/net-libs/libssh2/metadata.xml b/net-libs/libssh2/metadata.xml
new file mode 100644
index 000000000000..e9e734ab02f9
--- /dev/null
+++ b/net-libs/libssh2/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/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>
+</use>
+</pkgmetadata>