diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2012-04-10 21:39:31 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2012-04-10 21:39:31 +0000 |
commit | 1cbf6166565d554ae26190614890a6a64ab8c7f8 (patch) | |
tree | 8eb24e68743562178b93c5a33fedbae4a6d22944 /net/mosh | |
parent | 2d59746816796d30472069658f6357ea352690d7 (diff) |
Notes
Diffstat (limited to 'net/mosh')
-rw-r--r-- | net/mosh/Makefile | 43 | ||||
-rw-r--r-- | net/mosh/distinfo | 2 | ||||
-rw-r--r-- | net/mosh/files/patch-configure | 37 | ||||
-rw-r--r-- | net/mosh/files/patch-src__crypto__byteorder.h | 11 | ||||
-rw-r--r-- | net/mosh/files/patch-src__frontend__mosh-server.cc | 10 | ||||
-rw-r--r-- | net/mosh/pkg-descr | 8 | ||||
-rw-r--r-- | net/mosh/pkg-message | 8 |
7 files changed, 119 insertions, 0 deletions
diff --git a/net/mosh/Makefile b/net/mosh/Makefile new file mode 100644 index 000000000000..24e21cb93253 --- /dev/null +++ b/net/mosh/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: mosh +# Date created: 10 Apr 2012 +# Whom: Ryan Steinmetz <zi@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= mosh +PORTVERSION= 1.1.3 +CATEGORIES= net +MASTER_SITES= http://cloud.github.com/downloads/keithw/${PORTNAME}/ \ + http://mirrors.rit.edu/zi/ + +MAINTAINER= zi@FreeBSD.org +COMMENT= A mobile terminal that supports intermittant connectivity + +LICENSE= GPLv3 + +LIB_DEPENDS= boost_thread.4:${PORTSDIR}/devel/boost-libs +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/IO/Pty.pm:${PORTSDIR}/devel/p5-IO-Tty +BUILD_DEPENDS= protoc:${PORTSDIR}/devel/protobuf + +USE_PERL5_RUN= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-boost=${LOCALBASE} --with-utempter + +LATEST_LINK= mosh-term + +PLIST_FILES= bin/mosh bin/mosh-server bin/mosh-client +MAN1= mosh-client.1 mosh-server.1 mosh.1 + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 900004 +LIB_DEPENDS+= utempter.0:${PORTSDIR}/sysutils/libutempter +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/net/mosh/distinfo b/net/mosh/distinfo new file mode 100644 index 000000000000..35382a42cbe4 --- /dev/null +++ b/net/mosh/distinfo @@ -0,0 +1,2 @@ +SHA256 (mosh-1.1.3.tar.gz) = 53234667e53625791ca43ced1ec43834cbd86a019c67ce5e4bd65556113c6eee +SIZE (mosh-1.1.3.tar.gz) = 264478 diff --git a/net/mosh/files/patch-configure b/net/mosh/files/patch-configure new file mode 100644 index 000000000000..dfc311c4954b --- /dev/null +++ b/net/mosh/files/patch-configure @@ -0,0 +1,37 @@ +--- ./configure.orig 2012-04-03 13:04:06.000000000 -0400 ++++ ./configure 2012-04-10 15:28:42.000000000 -0400 +@@ -5515,7 +5515,20 @@ + done + + +-for ac_header in pty.h util.h ++for ac_header in pty.h util.h libutil.h ++do : ++ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ++ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" ++if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : ++ cat >>confdefs.h <<_ACEOF ++#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 ++_ACEOF ++ ++fi ++ ++done ++ ++for ac_header in endian.h sys/endian.h + do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +@@ -6275,7 +6288,11 @@ + fi + + +-ac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#include <endian.h> ++ac_fn_c_check_decl "$LINENO" "htobe64" "ac_cv_have_decl_htobe64" "#if defined(HAVE_ENDIAN_H) ++#include <endian.h> ++#elif defined(HAVE_SYS_ENDIAN_H) ++#include <sys/endian.h> ++#endif + " + if test "x$ac_cv_have_decl_htobe64" = xyes; then : + diff --git a/net/mosh/files/patch-src__crypto__byteorder.h b/net/mosh/files/patch-src__crypto__byteorder.h new file mode 100644 index 000000000000..9feebec5f4ab --- /dev/null +++ b/net/mosh/files/patch-src__crypto__byteorder.h @@ -0,0 +1,11 @@ +--- ./src/crypto/byteorder.h.orig 2012-03-10 13:57:21.000000000 -0500 ++++ ./src/crypto/byteorder.h 2012-04-10 15:28:42.000000000 -0400 +@@ -22,7 +22,7 @@ + #include "config.h" + + #ifdef HAVE_HTOBE64 +-# include <endian.h> ++# include <sys/endian.h> + #elif HAVE_OSX_SWAP + # include <libkern/OSByteOrder.h> + # define htobe64 OSSwapHostToBigInt64 diff --git a/net/mosh/files/patch-src__frontend__mosh-server.cc b/net/mosh/files/patch-src__frontend__mosh-server.cc new file mode 100644 index 000000000000..51eda28a566a --- /dev/null +++ b/net/mosh/files/patch-src__frontend__mosh-server.cc @@ -0,0 +1,10 @@ +--- ./src/frontend/mosh-server.cc.orig 2012-04-02 18:08:49.000000000 -0400 ++++ ./src/frontend/mosh-server.cc 2012-04-10 15:29:12.000000000 -0400 +@@ -39,6 +39,7 @@ + #include <arpa/inet.h> + #include <getopt.h> + #include <time.h> ++#include <libutil.h> + + extern "C" { + #include "selfpipe.h" diff --git a/net/mosh/pkg-descr b/net/mosh/pkg-descr new file mode 100644 index 000000000000..868ef4a4710e --- /dev/null +++ b/net/mosh/pkg-descr @@ -0,0 +1,8 @@ +Remote terminal application that allows roaming, supports intermittent +connectivity, and provides intelligent local echo and line editing of +user keystrokes. + +Mosh is a replacement for SSH. It's more robust and responsive, +especially over Wi-Fi, cellular, and long-distance links. + +WWW: http://mosh.mit.edu/ diff --git a/net/mosh/pkg-message b/net/mosh/pkg-message new file mode 100644 index 000000000000..93defff663a3 --- /dev/null +++ b/net/mosh/pkg-message @@ -0,0 +1,8 @@ +Please note that mosh requires UTF-8 character set. To set this on a +per-user basis, you should add the following to ~/.login_conf: +me:\ + :charset=UTF-8:\ + :lang=en_US.UTF-8:\ + :setenv=LC_COLLATE=C: + +This must be done on both the client and the server. |