Skip to contentSkip to conversation

libssh: new package

PATCH Superseded Scott Fan 2 participants 3 messages Aug 30, 2015

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Scott Fan

author
#0 lore raw

PATCH v2 1/1 libssh: new package

Dear Thomas,

I've fixed this patch as your suggestion, the key point is -DWITH_STACK_PROTECTOR=OFF.

I think it works right now.

Thanks.

Scott Fan (1):
libssh: new package

 package/Config.in          |  1 +
 package/libssh/Config.in   | 11 +++++++++++
 package/libssh/libssh.hash |  2 ++
 package/libssh/libssh.mk   | 36 ++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 package/libssh/Config.in
 create mode 100644 package/libssh/libssh.hash
 create mode 100644 package/libssh/libssh.mk
Signature · 1 line
2.5.1
author
#1 lore raw

PATCH v2 1/1 libssh: new package

libssh2 and libssh both implement SSH and provide a library API for apps. Both support SSH, SFTP, auth, channels etc. Both are 25K-30K lines of code.

[libssh2 vs libssh - A comparison]
http://www.libssh2.org/libssh2-vs-libssh.html

---
Changes V1 -> V2:
- fix dependencies

---
 package/Config.in          |  1 +
 package/libssh/Config.in   | 11 +++++++++++
 package/libssh/libssh.hash |  2 ++
 package/libssh/libssh.mk   | 36 ++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 package/libssh/Config.in
 create mode 100644 package/libssh/libssh.hash
 create mode 100644 package/libssh/libssh.mk
package/Config.in +1 -0
index 783fbb4..024500c 100644
@@ -749,6 +749,7 @@ menu "Crypto"
 	source "package/libsecret/Config.in"
 	source "package/libsha1/Config.in"
 	source "package/libsodium/Config.in"
+	source "package/libssh/Config.in"
 	source "package/libssh2/Config.in"
 	source "package/nettle/Config.in"
 	source "package/openssl/Config.in"
package/libssh/Config.in new file +11 -0
new file mode 100644
index 0000000..478011b
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBSSH
+        bool "libssh"
+        # Either OpenSSL or libgcrypt are mandatory
+        select BR2_PACKAGE_LIBGCRYPT if !BR2_PACKAGE_OPENSSL
+        help
+          libssh is a mulitplatform C library implementing the SSHv2
+          and SSHv1 protocol on client and server side. With libssh,
+          you can remotely execute programs, transfer files, use a
+          secure and transparent tunnel for your remote applications.
+
+          http://www.libssh.org/
package/libssh/libssh.hash new file +2 -0
new file mode 100644
index 0000000..81466cc
@@ -0,0 +1,2 @@
+# from https://red.libssh.org/projects/libssh/files/
+md5	bffc9dc548c3bae3a3afc5ac1654b272	libssh-0.7.1.tar.xz
package/libssh/libssh.mk new file +36 -0
new file mode 100644
index 0000000..39cff50
@@ -0,0 +1,36 @@
+################################################################################
+#
+## libssh
+#
+#################################################################################
+
+LIBSSH_VERSION = 0.7.1
+LIBSSH_SOURCE = libssh-$(LIBSSH_VERSION).tar.xz
+LIBSSH_SITE = https://red.libssh.org/attachments/download/154
+LIBSSH_LICENSE = LGPLv2.1
+LIBSSH_LICENSE_FILES = COPYING
+LIBSSH_INSTALL_STAGING = YES
+LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO
+LIBSSH_CONF_OPTS = \
+        -DWITH_STACK_PROTECTOR=OFF \
+        -DWITH_SERVER=OFF \
+        -DWITH_EXAMPLES=OFF
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+LIBSSH_CONF_OPTS += -DWITH_ZLIB=ON
+LIBSSH_DEPENDENCIES += zlib
+else
+LIBSSH_CONF_OPTS += -DWITH_ZLIB=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
+LIBSSH_CONF_OPTS += -DWITH_GCRYPT=ON
+LIBSSH_DEPENDENCIES += libgcrypt
+else
+LIBSSH_CONF_OPTS += -DWITH_GCRYPT=OFF
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBSSH_DEPENDENCIES += openssl
+endif
+endif
+
+$(eval $(cmake-package))
Signature · 1 line
2.5.1
#2 lore raw

PATCH v2 1/1 libssh: new package

Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Scott" == Scott Fan <[email protected]> writes:

libssh2 and libssh both implement SSH and provide a library API for apps. Both support SSH, SFTP, auth, channels etc. Both are 25K-30K lines of code.

[libssh2 vs libssh - A comparison]
http://www.libssh2.org/libssh2-vs-libssh.html

---
Changes V1 -> V2:
- fix dependencies

package/libssh/Config.in line 6

Quoted 6 lines
package/libssh/Config.in new file +6 -0
+config BR2_PACKAGE_LIBSSH
+        bool "libssh"
+        # Either OpenSSL or libgcrypt are mandatory
+        select BR2_PACKAGE_LIBGCRYPT if !BR2_PACKAGE_OPENSSL
+        help
+          libssh is a mulitplatform C library implementing the SSHv2

s/mulit/multi/

package/libssh/libssh.hash line 2

Quoted 2 lines
package/libssh/libssh.hash new file +2 -0
+# from https://red.libssh.org/projects/libssh/files/
+md5	bffc9dc548c3bae3a3afc5ac1654b272	libssh-0.7.1.tar.xz

We normally also add a stronger hash so I've added a locally calculated sha256 hash.

Committed to next with these fixes, thanks.

Signature · 1 line
Bye, Peter Korsgaard