[oe-commits] woglinde : nxssh: initial import

GIT User account git at amethyst.openembedded.net
Thu Nov 27 23:22:59 UTC 2008


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5473b49afefa850c2dc0b40b633f51ae96820563
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5473b49afefa850c2dc0b40b633f51ae96820563

Author: woglinde <heinold at inf.fu-berlin.de>
Date:   Fri Nov 28 00:20:50 2008 +0100

nxssh: initial import

---

 conf/checksums.ini                   |    4 ++
 packages/nxssh/files/autotools.patch |   91 ++++++++++++++++++++++++++++++++++
 packages/nxssh/files/link.patch      |   46 +++++++++++++++++
 packages/nxssh/files/stdarg.patch    |   13 +++++
 packages/nxssh/nxssh_3.3.0-1.bb      |   20 +++++++
 5 files changed, 174 insertions(+), 0 deletions(-)

diff --git a/conf/checksums.ini b/conf/checksums.ini
index e7e8e39..171976b 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -14706,6 +14706,10 @@ sha256=5642ce40e2f34caeed433e8c0ac010e2e7e738c2c5aa8fc59bba892a8b542d84
 md5=047206e5a811b915aac4ae09bddef207
 sha256=dc1b5e26c4629d35b59dcb25852bcf705c29053a20763a7339b5d890614a9e87
 
+[http://64.34.161.181/download/3.3.0/sources/nxssh-3.3.0-1.tar.gz]
+md5=e9bb4c1cd61c42db9626894845fcf3f7
+sha256=797dab52e18592d340c36ef6e126368bc1c9c98bbb873bef9ba9fc70911616b9
+
 [http://meshcube.org/download/nylon-statistics_20050909.tgz]
 md5=103c5c821474ae6df7a3055ee72f4d00
 sha256=c80d9ea7ebca32b63ea23d2a52ac799cff32f8f30c66b491d2b8f93da05585e4
diff --git a/packages/nxssh/files/autotools.patch b/packages/nxssh/files/autotools.patch
new file mode 100644
index 0000000..3cc436a
--- /dev/null
+++ b/packages/nxssh/files/autotools.patch
@@ -0,0 +1,91 @@
+Index: nxssh/m4/openssh.m4
+===================================================================
+--- /dev/null	1970-01-01 00:00:00.000000000 +0000
++++ nxssh/m4/openssh.m4	2008-11-27 23:40:04.338830066 +0100
+@@ -0,0 +1,86 @@
++dnl $Id: aclocal.m4,v 1.6 2005/09/19 16:33:39 tim Exp $
++dnl
++dnl OpenSSH-specific autoconf macros
++dnl
++
++
++dnl OSSH_CHECK_HEADER_FOR_FIELD(field, header, symbol)
++dnl Does AC_EGREP_HEADER on 'header' for the string 'field'
++dnl If found, set 'symbol' to be defined. Cache the result.
++dnl TODO: This is not foolproof, better to compile and read from there
++AC_DEFUN(OSSH_CHECK_HEADER_FOR_FIELD, [
++# look for field '$1' in header '$2'
++	dnl This strips characters illegal to m4 from the header filename
++	ossh_safe=`echo "$2" | sed 'y%./+-%__p_%'`
++	dnl
++	ossh_varname="ossh_cv_$ossh_safe""_has_"$1
++	AC_MSG_CHECKING(for $1 field in $2)
++	AC_CACHE_VAL($ossh_varname, [
++		AC_EGREP_HEADER($1, $2, [ dnl
++			eval "$ossh_varname=yes" dnl
++		], [ dnl
++			eval "$ossh_varname=no" dnl
++		]) dnl
++	])
++	ossh_result=`eval 'echo $'"$ossh_varname"`
++	if test -n "`echo $ossh_varname`"; then
++		AC_MSG_RESULT($ossh_result)
++		if test "x$ossh_result" = "xyes"; then
++			AC_DEFINE($3, 1, [Define if you have $1 in $2])
++		fi
++	else
++		AC_MSG_RESULT(no)
++	fi
++])
++
++dnl OSSH_PATH_ENTROPY_PROG(variablename, command):
++dnl Tidiness function, sets 'undef' if not found, and does the AC_SUBST
++AC_DEFUN(OSSH_PATH_ENTROPY_PROG, [
++	AC_PATH_PROG($1, $2)
++	if test -z "[$]$1" ; then
++		$1="undef"
++	fi
++	AC_SUBST($1)
++])
++
++dnl Check for socklen_t: historically on BSD it is an int, and in
++dnl POSIX 1g it is a type of its own, but some platforms use different
++dnl types for the argument to getsockopt, getpeername, etc.  So we
++dnl have to test to find something that will work.
++AC_DEFUN([TYPE_SOCKLEN_T],
++[
++   AC_CHECK_TYPE([socklen_t], ,[
++      AC_MSG_CHECKING([for socklen_t equivalent])
++      AC_CACHE_VAL([curl_cv_socklen_t_equiv],
++      [
++	 # Systems have either "struct sockaddr *" or
++	 # "void *" as the second argument to getpeername
++	 curl_cv_socklen_t_equiv=
++	 for arg2 in "struct sockaddr" void; do
++	    for t in int size_t unsigned long "unsigned long"; do
++	       AC_TRY_COMPILE([
++		  #include <sys/types.h>
++		  #include <sys/socket.h>
++
++		  int getpeername (int, $arg2 *, $t *);
++	       ],[
++		  $t len;
++		  getpeername(0,0,&len);
++	       ],[
++		  curl_cv_socklen_t_equiv="$t"
++		  break
++	       ])
++	    done
++	 done
++
++	 if test "x$curl_cv_socklen_t_equiv" = x; then
++	    AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
++	 fi
++      ])
++      AC_MSG_RESULT($curl_cv_socklen_t_equiv)
++      AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
++			[type to use in place of socklen_t if not defined])],
++      [#include <sys/types.h>
++#include <sys/socket.h>])
++])
++
diff --git a/packages/nxssh/files/link.patch b/packages/nxssh/files/link.patch
new file mode 100644
index 0000000..cf9631f
--- /dev/null
+++ b/packages/nxssh/files/link.patch
@@ -0,0 +1,46 @@
+Index: nxssh/Makefile.in
+===================================================================
+--- nxssh.orig/Makefile.in	2007-09-11 23:32:52.000000000 +0200
++++ nxssh/Makefile.in	2008-11-28 00:17:47.994353269 +0100
+@@ -136,32 +136,32 @@
+ 	$(RANLIB) $@
+ 
+ nxssh$(EXEEXT): $(LIBCOMPAT) libssh.a $(SSHOBJS)
+-	$(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(NXCOMPLIBS)
++	$(CC) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(NXCOMPLIBS)
+ 
+ nxsshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS)
+-	$(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBWRAP) $(LIBPAM) $(LIBSELINUX) $(SSHDLIBS) $(LIBS) 
++	$(CC) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat $(LIBWRAP) $(LIBPAM) $(LIBSELINUX) $(SSHDLIBS) $(LIBS) 
+ 
+ nxssh-keygen$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keygen.o
+-	$(LD) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
++	$(CC) -o $@ ssh-keygen.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
+ 
+ ssh-keysign$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keysign.o
+-	$(LD) -o $@ ssh-keysign.o readconf.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
++	$(CC) -o $@ ssh-keysign.o readconf.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
+ 
+ ssh-keyscan$(EXEEXT): $(LIBCOMPAT) libssh.a ssh-keyscan.o
+-	$(LD) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS)
++	$(CC) -o $@ ssh-keyscan.o $(LDFLAGS) -lssh -lopenbsd-compat -lssh $(LIBS)
+ 
+ sftp-server$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-common.o sftp-server.o
+-	$(LD) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
++	$(CC) -o $@ sftp-server.o sftp-common.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
+ 
+ sftp$(EXEEXT): $(LIBCOMPAT) libssh.a sftp.o sftp-client.o sftp-common.o sftp-glob.o progressmeter.o
+-	$(LD) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT)
++	$(CC) -o $@ progressmeter.o sftp.o sftp-client.o sftp-common.o sftp-glob.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS) $(LIBEDIT)
+ 
+ ssh-rand-helper${EXEEXT}: $(LIBCOMPAT) libssh.a ssh-rand-helper.o
+-	$(LD) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
++	$(CC) -o $@ ssh-rand-helper.o $(LDFLAGS) -lssh -lopenbsd-compat $(LIBS)
+ 
+ # test driver for the loginrec code - not built by default
+ logintest: logintest.o $(LIBCOMPAT) libssh.a loginrec.o
+-	$(LD) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS)
++	$(CC) -o $@ logintest.o $(LDFLAGS) loginrec.o -lopenbsd-compat -lssh $(LIBS)
+ 
+ $(CONFIGFILES): $(CONFIGFILES_IN)
+ 	conffile=`echo $@ | sed 's/.out$$//'`; \
diff --git a/packages/nxssh/files/stdarg.patch b/packages/nxssh/files/stdarg.patch
new file mode 100644
index 0000000..88628e1
--- /dev/null
+++ b/packages/nxssh/files/stdarg.patch
@@ -0,0 +1,13 @@
+Index: nxssh/log.h
+===================================================================
+--- nxssh.orig/log.h	2008-11-28 00:10:52.817729265 +0100
++++ nxssh/log.h	2008-11-28 00:11:12.842702590 +0100
+@@ -15,6 +15,8 @@
+ #ifndef SSH_LOG_H
+ #define SSH_LOG_H
+ 
++#include <stdarg.h>
++
+ /* Supported syslog facilities and levels. */
+ typedef enum {
+ 	SYSLOG_FACILITY_DAEMON,
diff --git a/packages/nxssh/nxssh_3.3.0-1.bb b/packages/nxssh/nxssh_3.3.0-1.bb
new file mode 100644
index 0000000..b844938
--- /dev/null
+++ b/packages/nxssh/nxssh_3.3.0-1.bb
@@ -0,0 +1,20 @@
+DESCRIPTION = "The nxssh fork from nomachine"
+HOMEPAGE = "http://www.nomachine.com/"
+LICENSE = "BSD/OPENSSH"
+PR = "r0"
+
+DEPENDS = "openssl libxcomp"
+
+SRC_URI = "http://64.34.161.181/download/3.3.0/sources/${PN}-${PV}.tar.gz \
+	   file://autotools.patch;patch=1 \
+	   file://stdarg.patch;patch=1 \
+	   file://link.patch;patch=1 \
+	  "
+inherit autotools
+          
+S = "${WORKDIR}/nxssh"
+
+do_install () {
+       install -d ${D}${bindir}/
+       install -s -m 0755 nxssh ${D}${bindir}/
+}





More information about the Openembedded-commits mailing list