summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-11-26 22:35:15 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-12-03 18:03:15 +0100
commit0d0959df07bbc248d372325ee37077ad70689a39 (patch)
tree1615ef02073c628bace3ea5bf146b29d78a3df6b
parent6ff585194aaa29237c32c265966534b96c1a8a11 (diff)
downloadptxdist-0d0959df07bbc248d372325ee37077ad70689a39.tar.gz
ptxdist-0d0959df07bbc248d372325ee37077ad70689a39.tar.xz
[libssh2] new packet
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r--rules/libssh2.in19
-rw-r--r--rules/libssh2.make87
2 files changed, 106 insertions, 0 deletions
diff --git a/rules/libssh2.in b/rules/libssh2.in
new file mode 100644
index 000000000..e5c30655b
--- /dev/null
+++ b/rules/libssh2.in
@@ -0,0 +1,19 @@
+## SECTION=networking
+
+config LIBSSH2
+ tristate
+ prompt "libssh2"
+ select ZLIB
+ select OPENSSL
+ help
+ SSH2 client-side library
+
+ libssh2 is the thin library implementing client side of SSH2
+ protocol as defined by Internet Drafts SECSH-TRANS,
+ SECSH-USERAUTH, SECSH-CONNECTION, SECSH-ARCH,
+ SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
+ SECSH-PUBLICKEY
+
+ This boils down to the regular terminal, scp and SFTP
+ sessions; port forwarding; password, key-based and
+ keyboard-interactive authentication.
diff --git a/rules/libssh2.make b/rules/libssh2.make
new file mode 100644
index 000000000..087ff6fbe
--- /dev/null
+++ b/rules/libssh2.make
@@ -0,0 +1,87 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBSSH2) += libssh2
+
+#
+# Paths and names
+#
+LIBSSH2_VERSION := 1.2.2
+LIBSSH2 := libssh2-$(LIBSSH2_VERSION)
+LIBSSH2_SUFFIX := tar.gz
+LIBSSH2_URL := http://www.libssh2.org/download/$(LIBSSH2).$(LIBSSH2_SUFFIX)
+LIBSSH2_SOURCE := $(SRCDIR)/$(LIBSSH2).$(LIBSSH2_SUFFIX)
+LIBSSH2_DIR := $(BUILDDIR)/$(LIBSSH2)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LIBSSH2_SOURCE):
+ @$(call targetinfo)
+ @$(call get, LIBSSH2)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBSSH2_PATH := PATH=$(CROSS_PATH)
+LIBSSH2_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LIBSSH2_AUTOCONF := \
+ $(CROSS_AUTOCONF_USR) \
+ --with-libz-prefix=$(SYSROOT)/usr \
+ --with-libssl-prefix=$(SYSROOT)/usr \
+ --with-openssl
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libssh2.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libssh2)
+ @$(call install_fixup, libssh2,PACKAGE,libssh2)
+ @$(call install_fixup, libssh2,PRIORITY,optional)
+ @$(call install_fixup, libssh2,VERSION,$(LIBSSH2_VERSION))
+ @$(call install_fixup, libssh2,SECTION,base)
+ @$(call install_fixup, libssh2,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, libssh2,DEPENDS,)
+ @$(call install_fixup, libssh2,DESCRIPTION,missing)
+
+ @$(call install_copy, libssh2, 0, 0, 0644, -, \
+ /usr/lib/libssh2.so.1.0.1)
+
+ @$(call install_link, libssh2, libssh2.so.1.0.1, \
+ /usr/lib/libssh2.so.1)
+ @$(call install_link, libssh2, libssh2.so.1.0.1, \
+ /usr/lib/libssh2.so)
+
+ @$(call install_finish, libssh2)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+libssh2_clean:
+ rm -rf $(STATEDIR)/libssh2.*
+ rm -rf $(PKGDIR)/libssh2_*
+ rm -rf $(LIBSSH2_DIR)
+
+# vim: syntax=make