summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayson Reis (jaysonsantos) <santosdosreis@gmail.com>2014-01-20 12:29:14 -0200
committerJayson Reis (jaysonsantos) <santosdosreis@gmail.com>2014-01-20 12:29:14 -0200
commitd3cda10428bd03c206246359ff24149218c91679 (patch)
tree387e98ce69f8ed9c26bc57e516eb8de6532c1ce0 /app-misc/tmate
parentdev-python/python-binary-memcached: New ebuild for python-binary-memcached bu... (diff)
downloadsunrise-d3cda10428bd03c206246359ff24149218c91679.tar.gz
sunrise-d3cda10428bd03c206246359ff24149218c91679.tar.bz2
sunrise-d3cda10428bd03c206246359ff24149218c91679.zip
app-misc/tmate: New ebuild for app-misc/tmate bug #498692
Diffstat (limited to 'app-misc/tmate')
-rw-r--r--app-misc/tmate/ChangeLog10
-rw-r--r--app-misc/tmate/Manifest5
-rw-r--r--app-misc/tmate/files/tmate-1.8.9-use-system-libs.patch46
-rw-r--r--app-misc/tmate/metadata.xml7
-rw-r--r--app-misc/tmate/tmate-1.8.9.ebuild36
5 files changed, 104 insertions, 0 deletions
diff --git a/app-misc/tmate/ChangeLog b/app-misc/tmate/ChangeLog
new file mode 100644
index 000000000..faa05b7ee
--- /dev/null
+++ b/app-misc/tmate/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-misc/tmate
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*tmate-1.8.9 (20 Jan 2014)
+
+ 20 Jan 2014; Jayson Reis (jaysonsantos) <santosdosreis@gmail.com>
+ +tmate-1.8.9.ebuild, +files/tmate-1.8.9-use-system-libs.patch, +metadata.xml:
+ New ebuild for app-misc/tmate bug #498692
+
diff --git a/app-misc/tmate/Manifest b/app-misc/tmate/Manifest
new file mode 100644
index 000000000..7b799c4e3
--- /dev/null
+++ b/app-misc/tmate/Manifest
@@ -0,0 +1,5 @@
+AUX tmate-1.8.9-use-system-libs.patch 1374 SHA256 015d7e4bf4639f3b4efa4d85b4d83f46c477fee76a9622e0641ec112e6a236e1 SHA512 b04bbb8ba4e517e066d786764da95a97204a1c614da58b7b1e36e317df84f35e568ed31af0e5dea28288aad468a11434674418d6970f4d31e1835b16d5244be6 WHIRLPOOL afc21ff9fbff840671f1d8fbd90de929dc35bc4a4506fb021760e3d6edd03603cb7bd50eabc55e7f8779c2cfdbbfac8e22faf4632806e94cd981fcc84ed74a8a
+DIST tmate-1.8.9.tar.gz 880608 SHA256 df46d63634dc5cbd63545352a75bce0029cd07da5819f091310f9e3fcae1b49f SHA512 998aa6353c257d7c0c5ed7356f04e83b9dd0d5c6bb4871fa1b549bcb52a04ff368d7bca1a7f9a8a80d0e4ab577331a617086e09bbb8fe3610bb9def567d3b1c8 WHIRLPOOL 4023ce8336a1a037cf641f98d737c403869abb3d98181b057a352bbb8a2b33aa1e594d9b45e323224d0dc21de78a0b7b3866b040d7caae0dea09ddffb097c3a9
+EBUILD tmate-1.8.9.ebuild 766 SHA256 3784161b59dc031ec9d0efbe3f921c5a51bcb2143d57f826183cb2c908190007 SHA512 526dcd6711e7be42c18009a944c85f3d5c96c42c730291b2285796a1d955ea46ea5c3ca6c2cec997e9470f33c8cd15fc7bdb4c5c725724dc00afb346b1f8933c WHIRLPOOL 521fdf2d0e10a0a5dcfb1aa10ad250060d59bf1dd1a153879369e03aef577b15208008149b99eda4614c12a0ac51472c36a4793b9aa09d963c916136b62fbbc8
+MISC ChangeLog 336 SHA256 e41521fba9234c2bd2a1b4e09b884b0065d8a22184f1360258b497a93a5fc367 SHA512 1bd4c136fccf3ab59060c49fee01a1ad57487b7930d1bbac4726466d8b2efe86284deb0bca2cd10eeb498956a597346c107242cff2765f1e1c3eb5847c496f17 WHIRLPOOL 75e8f8f510a3e30a6f351acb54b12938a0623a9da18683cb6781eda496d84a3122da2a572e850dd7a4f9f851fd4a4e3ca1fdb40b27562f5f660fba1edcea54d2
+MISC metadata.xml 214 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154 SHA512 aeb2fb354a9ddf41c45a071091a58b91eaf8b25d6d2c49e3e3daa547b591a54530144de4533573160b48dc356289c909612c4e3c80e387f081f88cb39263e130 WHIRLPOOL 54d8861daedd18ca38e4ada0fb71026c612b63946d47a9b34de90d1d6d85c8ce05c0a4b97730f554ea637d73ccce8ed207d33e707c2b8c1dd28af24cf44dd186
diff --git a/app-misc/tmate/files/tmate-1.8.9-use-system-libs.patch b/app-misc/tmate/files/tmate-1.8.9-use-system-libs.patch
new file mode 100644
index 000000000..40667ac9a
--- /dev/null
+++ b/app-misc/tmate/files/tmate-1.8.9-use-system-libs.patch
@@ -0,0 +1,46 @@
+diff --git a/Makefile.am b/Makefile.am
+index 63b6749..a990464 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -22,7 +22,6 @@ CFLAGS += -D_GNU_SOURCE
+ endif
+
+ CFLAGS += -Wno-unused-parameter -Wno-unused-variable
+-CFLAGS += -Ilibssh/include/ -Imsgpack/src
+ CFLAGS += -rdynamic # for stack traces
+
+ # Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
+@@ -240,17 +239,3 @@ endif
+ if NO_B64_NTOP
+ nodist_tmate_SOURCES += compat/b64_ntop.c
+ endif
+-
+-tmate_LDADD = \
+- libssh/build/src/libssh.a \
+- msgpack/src/.libs/libmsgpackc.a
+-
+-*.c: $(tmate_LDADD)
+-
+-libssh/build/src/libssh.a:
+- cd libssh/build && cmake .. -DWITH_SFTP=OFF -DWITH_SERVER=OFF -DWITH_PCAP=OFF -DWITH_STATIC_LIB=ON -DWITH_GSSAPI=OFF
+- +make -C libssh/build ssh_static
+-
+-msgpack/src/.libs/libmsgpackc.a:
+- cd msgpack && ./bootstrap && ./configure
+- +make -C msgpack/src libmsgpackc.la
+diff --git a/configure.ac b/configure.ac
+index fcc4ded..45f223a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -114,6 +114,11 @@ AC_CHECK_LIB(crypto,CRYPTO_new_ex_data, [],
+ AC_CHECK_LIB(ssl, SSL_library_init, [],
+ [AC_MSG_ERROR([OpenSSL library required])])
+
++AC_CHECK_LIB(msgpack, msgpack_version, [],
++ [AC_MSG_ERROR([msgpack library required])])
++AC_CHECK_LIB(ssh, ssh_new, [],
++ [AC_MSG_ERROR([libssh >= 0.6.0 is required])])
++
+ # Look for libevent.
+ PKG_CHECK_MODULES(
+ LIBEVENT,
diff --git a/app-misc/tmate/metadata.xml b/app-misc/tmate/metadata.xml
new file mode 100644
index 000000000..cc3fe2494
--- /dev/null
+++ b/app-misc/tmate/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/tmate/tmate-1.8.9.ebuild b/app-misc/tmate/tmate-1.8.9.ebuild
new file mode 100644
index 000000000..ad7d7de37
--- /dev/null
+++ b/app-misc/tmate/tmate-1.8.9.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="Instant terminal sharing"
+HOMEPAGE="http://tmate.io/"
+SRC_URI="https://github.com/nviennot/tmate/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug static-libs"
+
+RDEPEND="
+ sys-libs/zlib[static-libs?]
+ dev-libs/openssl[static-libs?]
+ dev-libs/libevent[static-libs?]
+ dev-libs/msgpack[static-libs?]
+ >=net-libs/libssh-0.6.0[static-libs?]
+"
+
+src_prepare() {
+ # Let's use system's lib
+ rm -rv libssh msgpack || die
+ epatch "${FILESDIR}/${P}-use-system-libs.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug) $(use_enable static-libs static)
+}