summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2006-11-27 23:57:08 +0000
committerMarkus Ullmann <jokey@gentoo.org>2006-11-27 23:57:08 +0000
commit85a34929f11f0a9cb9557fe2bdc092b44be75a12 (patch)
tree0df217a057427e5e485136a58dc540753330eddf /net-libs/libssh2
parentInstall all of the xsd files used by xerces-c (diff)
downloadhistorical-85a34929f11f0a9cb9557fe2bdc092b44be75a12.tar.gz
historical-85a34929f11f0a9cb9557fe2bdc092b44be75a12.tar.bz2
historical-85a34929f11f0a9cb9557fe2bdc092b44be75a12.zip
Import from sunrise for bug 113844 thanks to Joe and cedk
Package-Manager: portage-2.1.2_rc2-r2
Diffstat (limited to 'net-libs/libssh2')
-rw-r--r--net-libs/libssh2/ChangeLog14
-rw-r--r--net-libs/libssh2/Manifest42
-rw-r--r--net-libs/libssh2/files/digest-libssh2-0.143
-rw-r--r--net-libs/libssh2/files/libssh2-0.14-banner-wait.patch23
-rw-r--r--net-libs/libssh2/files/libssh2-0.14-channel-failure.patch24
-rw-r--r--net-libs/libssh2/files/libssh2-0.14-configure.patch12
-rw-r--r--net-libs/libssh2/files/libssh2-0.14-peer-shutdown.patch44
-rw-r--r--net-libs/libssh2/libssh2-0.14.ebuild33
-rw-r--r--net-libs/libssh2/metadata.xml5
9 files changed, 200 insertions, 0 deletions
diff --git a/net-libs/libssh2/ChangeLog b/net-libs/libssh2/ChangeLog
new file mode 100644
index 000000000000..6c5aaa716f21
--- /dev/null
+++ b/net-libs/libssh2/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for net-libs/libssh2
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh2/ChangeLog,v 1.1 2006/11/27 23:57:08 jokey Exp $
+
+*libssh2-0.14 (27 Nov 2006)
+
+ 27 Nov 2006; Markus Ullmann <jokey@gentoo.org>
+ +files/libssh2-0.14-banner-wait.patch,
+ +files/libssh2-0.14-channel-failure.patch,
+ +files/libssh2-0.14-configure.patch,
+ +files/libssh2-0.14-peer-shutdown.patch, +metadata.xml,
+ +libssh2-0.14.ebuild:
+ Import from sunrise for bug 113844 thanks to Joe and cedk
+
diff --git a/net-libs/libssh2/Manifest b/net-libs/libssh2/Manifest
new file mode 100644
index 000000000000..2ef1fde915cd
--- /dev/null
+++ b/net-libs/libssh2/Manifest
@@ -0,0 +1,42 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX libssh2-0.14-banner-wait.patch 675 RMD160 833419dd74233e52a37416d1f94c746b921f13c9 SHA1 726f10577f1815a6b04ef99bdf6d012f86a92a02 SHA256 662c068446bc8ac8d8949fe678f89915e6237edb43fff7bdba4340abf9d3f954
+MD5 2d8553d8736bc8d6ff6cb9676213e604 files/libssh2-0.14-banner-wait.patch 675
+RMD160 833419dd74233e52a37416d1f94c746b921f13c9 files/libssh2-0.14-banner-wait.patch 675
+SHA256 662c068446bc8ac8d8949fe678f89915e6237edb43fff7bdba4340abf9d3f954 files/libssh2-0.14-banner-wait.patch 675
+AUX libssh2-0.14-channel-failure.patch 700 RMD160 1393b9e07a8760fb75c95c37604044b4181acc2e SHA1 d0eb800c79488254b5ac46a689164e1e7434d61d SHA256 121d8a0385d36f8a4c01d746719d1745a04cafb8a3a6e47c637d1395e89c1617
+MD5 0728a2e31d88031c7749ea00ef41ca6b files/libssh2-0.14-channel-failure.patch 700
+RMD160 1393b9e07a8760fb75c95c37604044b4181acc2e files/libssh2-0.14-channel-failure.patch 700
+SHA256 121d8a0385d36f8a4c01d746719d1745a04cafb8a3a6e47c637d1395e89c1617 files/libssh2-0.14-channel-failure.patch 700
+AUX libssh2-0.14-configure.patch 545 RMD160 47f83facd1be7198145a535c1ae88c459408aa8f SHA1 f68fd70d04a6522a4fb8b294d67b243f329f0962 SHA256 af8d0c9afdeb20501f6062dbedaa044a7eff42ef23ffe18d71d9fc2abff341db
+MD5 6218c61615c2fd494c519a7b4dd73da0 files/libssh2-0.14-configure.patch 545
+RMD160 47f83facd1be7198145a535c1ae88c459408aa8f files/libssh2-0.14-configure.patch 545
+SHA256 af8d0c9afdeb20501f6062dbedaa044a7eff42ef23ffe18d71d9fc2abff341db files/libssh2-0.14-configure.patch 545
+AUX libssh2-0.14-peer-shutdown.patch 1191 RMD160 086e212748aedcb002c5e120e7a55e2fa796310a SHA1 765dff3df921bf26528a2818251f030fcd631a92 SHA256 d902d7777621e34d454ec8a109358427536890298256308e5f38cf96e251ff52
+MD5 31b32dafdb60efbedba5276dae01ef18 files/libssh2-0.14-peer-shutdown.patch 1191
+RMD160 086e212748aedcb002c5e120e7a55e2fa796310a files/libssh2-0.14-peer-shutdown.patch 1191
+SHA256 d902d7777621e34d454ec8a109358427536890298256308e5f38cf96e251ff52 files/libssh2-0.14-peer-shutdown.patch 1191
+DIST libssh2-0.14.tar.gz 140033 RMD160 65efe90d2879ecc0eeb094aa1582196ef6847408 SHA1 6b0f80a6e307298af862ece5d19e423b99adc705 SHA256 5f18347bd3d45c5b79162b91221a764f18ed3c30f0a7cab8c03baa680131b653
+EBUILD libssh2-0.14.ebuild 801 RMD160 40819fdcb0b3210076e9d9b5a8fb1c3f4a73fe53 SHA1 10998042c7a4f06a02b7532623f1991b67dc6155 SHA256 0ad44a24e111c87ecc95185f97856784524918862190511abbc007c03cd5ae1b
+MD5 a6705c4e35ebc0a19e9ca7649fa6c9b3 libssh2-0.14.ebuild 801
+RMD160 40819fdcb0b3210076e9d9b5a8fb1c3f4a73fe53 libssh2-0.14.ebuild 801
+SHA256 0ad44a24e111c87ecc95185f97856784524918862190511abbc007c03cd5ae1b libssh2-0.14.ebuild 801
+MISC ChangeLog 550 RMD160 139ff0d35579e70ce59d31995c38e028fbade07c SHA1 0cf3f802d443219f9ea80ab3a440e9567944b886 SHA256 a2e634aeb15736a32803a8f2a40727a1d828a966bf48578275dc7b6cba12f5c6
+MD5 8f731c3ff8e8985831a2099c1cf4f76d ChangeLog 550
+RMD160 139ff0d35579e70ce59d31995c38e028fbade07c ChangeLog 550
+SHA256 a2e634aeb15736a32803a8f2a40727a1d828a966bf48578275dc7b6cba12f5c6 ChangeLog 550
+MISC metadata.xml 159 RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b SHA1 9f5df3eabd621951a959cc8e0e2e0d352cd1fe1e SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6
+MD5 f34e3c8858756da0001b12d2d3fa1af2 metadata.xml 159
+RMD160 28e799fe0fd02aaab9d4bbe5595f133101606f5b metadata.xml 159
+SHA256 b75c711bd971e46f0ec957e833c60879b0c5023e0bb94409a6255781b69f6dc6 metadata.xml 159
+MD5 c8951a6fa1ca4566ff9c90fd255852f1 files/digest-libssh2-0.14 238
+RMD160 dddd50f456ee3994fe6d9a3a2ff53d41ac2a1003 files/digest-libssh2-0.14 238
+SHA256 120ecefa51c9a10354b6bb424d14b5d0bbe37110f6506ff8316cce171461660b files/digest-libssh2-0.14 238
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.5 (GNU/Linux)
+
+iD8DBQFFa3t3z974XjDVpbkRAjHeAJ0RQOQOQf5tw94YtW/kljPh9V1wzQCg4IDU
+Rix9aDP02fU9huEbOFHy8og=
+=j0Wb
+-----END PGP SIGNATURE-----
diff --git a/net-libs/libssh2/files/digest-libssh2-0.14 b/net-libs/libssh2/files/digest-libssh2-0.14
new file mode 100644
index 000000000000..05d6c9d9dc88
--- /dev/null
+++ b/net-libs/libssh2/files/digest-libssh2-0.14
@@ -0,0 +1,3 @@
+MD5 7a44b7b38295d80bd8f80254ee135930 libssh2-0.14.tar.gz 140033
+RMD160 65efe90d2879ecc0eeb094aa1582196ef6847408 libssh2-0.14.tar.gz 140033
+SHA256 5f18347bd3d45c5b79162b91221a764f18ed3c30f0a7cab8c03baa680131b653 libssh2-0.14.tar.gz 140033
diff --git a/net-libs/libssh2/files/libssh2-0.14-banner-wait.patch b/net-libs/libssh2/files/libssh2-0.14-banner-wait.patch
new file mode 100644
index 000000000000..6b9b8edefa07
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-0.14-banner-wait.patch
@@ -0,0 +1,23 @@
+diff -urb libssh2-0.11/src/session.c libssh2-0.11-jmk/src/session.c
+--- libssh2-0.11/src/session.c 2005-06-27 17:24:29.000000000 -0500
++++ libssh2-0.11-jmk/src/session.c 2005-11-10 20:27:34.000000000 -0600
+@@ -95,12 +95,19 @@
+ {
+ char banner[256];
+ int banner_len = 0;
++ int wait_count = 0;
+
+ while ((banner_len < sizeof(banner)) &&
+ ((banner_len == 0) || (banner[banner_len-1] != '\n'))) {
+ char c = '\0';
+ int ret;
+
++ wait_count++;
++
++ /* If server is not responding, don't wait in loop forever */
++ if (wait_count > 1000)
++ return 1;
++
+ ret = recv(session->socket_fd, &c, 1, LIBSSH2_SOCKET_RECV_FLAGS(session));
+
+ if ((ret < 0) && (ret != EAGAIN)) {
diff --git a/net-libs/libssh2/files/libssh2-0.14-channel-failure.patch b/net-libs/libssh2/files/libssh2-0.14-channel-failure.patch
new file mode 100644
index 000000000000..9833635a3f20
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-0.14-channel-failure.patch
@@ -0,0 +1,24 @@
+--- libssh2-0.12/src/packet.c 2006-01-30 18:27:07.000000000 +0100
++++ libssh2-0.12-ced/src/packet.c 2006-01-30 17:56:18.000000000 +0100
+@@ -515,6 +515,21 @@
+ LIBSSH2_FREE(session, data);
+ return 0;
+ }
++ {
++ unsigned char packet[1];
++
++ *packet = SSH_MSG_CHANNEL_FAILURE;
++
++ if (libssh2_packet_write(session, packet, 1)) {
++ libssh2_error(session, LIBSSH2_ERROR_SOCKET_SEND, "Unable to send channel failure", 0);
++ }
++
++#ifdef LIBSSH2_DEBUG_CONNECTION
++ _libssh2_debug(session, LIBSSH2_DBG_CONN, "Channel request failure");
++#endif
++ LIBSSH2_FREE(session, data);
++ return 0;
++ }
+ }
+ break;
+ case SSH_MSG_CHANNEL_CLOSE:
diff --git a/net-libs/libssh2/files/libssh2-0.14-configure.patch b/net-libs/libssh2/files/libssh2-0.14-configure.patch
new file mode 100644
index 000000000000..69352d57f298
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-0.14-configure.patch
@@ -0,0 +1,12 @@
+diff -ur libssh2-0.14~/configure libssh2-0.14/configure
+--- libssh2-0.14~/configure 2006-06-30 10:18:14.000000000 +0200
++++ libssh2-0.14/configure 2006-06-30 10:20:16.000000000 +0200
+@@ -3739,7 +3739,7 @@
+ found_openssl=yes
+ pkgcfg_openssl=yes
+ OPENSSL_LIBLINE=`$PKG_CONFIG --libs openssl`
+- OPENSSL_INCLINE=`$PKG_CONFIG --variable=includedir openssl`
++ OPENSSL_INCLINE="-I`$PKG_CONFIG --variable=includedir openssl`"
+ echo "$as_me:$LINENO: result: Using paths from pkg-config" >&5
+ echo "${ECHO_T}Using paths from pkg-config" >&6
+ fi
diff --git a/net-libs/libssh2/files/libssh2-0.14-peer-shutdown.patch b/net-libs/libssh2/files/libssh2-0.14-peer-shutdown.patch
new file mode 100644
index 000000000000..213729bc5268
--- /dev/null
+++ b/net-libs/libssh2/files/libssh2-0.14-peer-shutdown.patch
@@ -0,0 +1,44 @@
+--- libssh2-0.12/src/packet.c 2006-01-30 18:27:07.000000000 +0100
++++ libssh2-0.12-ced/src/packet.c 2006-02-01 15:50:36.000000000 +0100
+@@ -744,10 +744,36 @@
+ if (should_block) {
+ read_len = libssh2_blocking_read(session, block, blocksize);
+ } else {
++#ifdef HAVE_SELECT
++ fd_set read_socket;
++ struct timeval timeout;
++ int retval;
++
++ FD_ZERO(&read_socket);
++ FD_SET(session->socket_fd, &read_socket);
++
++ timeout.tv_sec = 0;
++ timeout.tv_usec = 0;
++
++ retval = select(session->socket_fd + 1, &read_socket, NULL, NULL, &timeout);
++
++ if (retval <= 0)
++ return 0;
++#endif
+ read_len = recv(session->socket_fd, block, 1, LIBSSH2_SOCKET_RECV_FLAGS(session));
++#ifdef HAVE_SELECT
++ /*The return value will be 0 when the peer has performed an orderly shutdown */
++ if (read_len == 0) {
++ session->socket_state = LIBSSH2_SOCKET_DISCONNECTED;
++ return 0;
++ }
++ else if (read_len < 0)
++ return -1;
++#else
+ if (read_len <= 0) {
+ return 0;
+ }
++#endif
+ read_len += libssh2_blocking_read(session, block + read_len, blocksize - read_len);
+ }
+ if (read_len < blocksize) {
+@@ -1176,3 +1202,4 @@
+ }
+ }
+ /* }}} */
++
diff --git a/net-libs/libssh2/libssh2-0.14.ebuild b/net-libs/libssh2/libssh2-0.14.ebuild
new file mode 100644
index 000000000000..f700e8f71e27
--- /dev/null
+++ b/net-libs/libssh2/libssh2-0.14.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libssh2/libssh2-0.14.ebuild,v 1.1 2006/11/27 23:57:08 jokey Exp $
+
+inherit eutils
+
+DESCRIPTION="Library implementing the SSH2 protocol"
+HOMEPAGE="http://www.libssh2.org/"
+SRC_URI="mirror://sourceforge/libssh2/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="dev-libs/openssl
+ sys-libs/zlib"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-configure.patch"
+ epatch "${FILESDIR}/${P}-banner-wait.patch"
+ epatch "${FILESDIR}/${P}-channel-failure.patch"
+ epatch "${FILESDIR}/${P}-peer-shutdown.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README
+}
diff --git a/net-libs/libssh2/metadata.xml b/net-libs/libssh2/metadata.xml
new file mode 100644
index 000000000000..03aa50bab7e3
--- /dev/null
+++ b/net-libs/libssh2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+</pkgmetadata>