summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-03-20 03:39:57 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-03-20 03:39:57 +0000
commitfb118f07c99368ef165e35189d013316e1d4d213 (patch)
tree07922f9aa59175fdc036d3c239aba3faf0ec9d12
parentBump PORTREVISION on ports depending on devel/libical. (diff)
New port: sysutils/tmux23: The older version 2.3 of sysutils/tmux
Miroslav Lachman reported that the version 2.3 is free of buggy behavior with mouse scrolling etc. that was introduced in later versions. While in sysutils/Makefile, also fixed a minor ordering problem. PR: 223685 Submitted by: Miroslav Lachman <000.fbsd@quip.cz>
-rw-r--r--sysutils/Makefile3
-rw-r--r--sysutils/tmux/Makefile2
-rw-r--r--sysutils/tmux23/Makefile66
-rw-r--r--sysutils/tmux23/distinfo5
-rw-r--r--sysutils/tmux23/files/extra-patch-tty-keys.c11
-rw-r--r--sysutils/tmux23/pkg-descr6
6 files changed, 92 insertions, 1 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 829ab8dcfe31..0f87de9b15ca 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -6,6 +6,7 @@
SUBDIR += 3dm
SUBDIR += 44bsd-more
SUBDIR += 915resolution
+ SUBDIR += DTraceToolkit
SUBDIR += LPRng
SUBDIR += LPRngTool
SUBDIR += UEFITool
@@ -211,7 +212,6 @@
SUBDIR += curly
SUBDIR += currtime
SUBDIR += cw
- SUBDIR += DTraceToolkit
SUBDIR += daa2iso
SUBDIR += dae
SUBDIR += daemonize
@@ -1211,6 +1211,7 @@
SUBDIR += tmpwatch
SUBDIR += tmux
SUBDIR += tmux-mem-cpu-load
+ SUBDIR += tmux23
SUBDIR += topless
SUBDIR += torque
SUBDIR += toshctl
diff --git a/sysutils/tmux/Makefile b/sysutils/tmux/Makefile
index 4a2457b83718..755f0379d9d7 100644
--- a/sysutils/tmux/Makefile
+++ b/sysutils/tmux/Makefile
@@ -14,6 +14,8 @@ COMMENT= Terminal Multiplexer
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/COPYING
+CONFLICTS_INSTALL= tmux23
+
USES= pkgconfig ncurses
USE_GITHUB= nodefault
diff --git a/sysutils/tmux23/Makefile b/sysutils/tmux23/Makefile
new file mode 100644
index 000000000000..e415ef80c875
--- /dev/null
+++ b/sysutils/tmux23/Makefile
@@ -0,0 +1,66 @@
+# Created by: Wen Heping <wenheping@gmail.com>
+# $FreeBSD$
+
+PORTNAME= tmux
+DISTVERSION= 2.3
+CATEGORIES= sysutils
+MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
+PKGNAMESUFFIX= 23
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= 000.fbsd@quip.cz
+COMMENT= Terminal Multiplexer (old stable version 2.3)
+
+LICENSE= ISCL
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+CONFLICTS_INSTALL= tmux
+
+USES= ncurses pkgconfig
+USE_GITHUB= nodefault
+GH_TUPLE= imomaliev:tmux-bash-completion:ef56d3e:bash
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc
+
+PLIST_FILES= bin/tmux \
+ man/man1/tmux.1.gz \
+ etc/bash_completion.d/tmux
+
+PORTDOCS= CHANGES FAQ README TODO
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= DOCS EXAMPLES LIBEVENT_STATIC BACKSPACE
+
+LIBEVENT_STATIC_DESC= Build with static libevent
+BACKSPACE_DESC= Build with tty/keys patch
+
+BACKSPACE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tty-keys.c
+
+LIBEVENT_STATIC_LIB_DEPENDS_OFF= libevent.so:devel/libevent
+LIBEVENT_STATIC_BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:devel/libevent
+LIBEVENT_STATIC_VARS= LESTATIC=${LOCALBASE}/lib/libevent.a
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc/tmux.conf|${PREFIX}/etc/tmux.conf|g' ${WRKSRC}/CHANGES \
+ ${WRKSRC}/tmux.h
+
+post-configure-LIBEVENT_STATIC-on:
+ ${REINPLACE_CMD} -e '/LIBS/s|-levent[^[:blank:]]*|${LESTATIC}|' \
+ ${WRKSRC}/${MAKEFILE}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tmux ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/tmux.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
+ ${INSTALL_DATA} ${WRKSRC_bash}/completions/tmux ${STAGEDIR}${PREFIX}/etc/bash_completion.d/tmux
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+
+do-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example* ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/tmux23/distinfo b/sysutils/tmux23/distinfo
new file mode 100644
index 000000000000..27bb56f5cb5e
--- /dev/null
+++ b/sysutils/tmux23/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1475246504
+SHA256 (tmux-2.3.tar.gz) = 55313e132f0f42de7e020bf6323a1939ee02ab79c48634aa07475db41573852b
+SIZE (tmux-2.3.tar.gz) = 473944
+SHA256 (imomaliev-tmux-bash-completion-ef56d3e_GH0.tar.gz) = 2f8f3fe586bbdeec9b251ce3ef74f5edef19ba371968a8011acef860ddac59e1
+SIZE (imomaliev-tmux-bash-completion-ef56d3e_GH0.tar.gz) = 1526
diff --git a/sysutils/tmux23/files/extra-patch-tty-keys.c b/sysutils/tmux23/files/extra-patch-tty-keys.c
new file mode 100644
index 000000000000..663d128b1a66
--- /dev/null
+++ b/sysutils/tmux23/files/extra-patch-tty-keys.c
@@ -0,0 +1,11 @@
+--- tty-keys.c.orig 2016-04-30 12:46:35 UTC
++++ tty-keys.c
+@@ -628,8 +628,6 @@ complete_key:
+ * used. termios should have a better idea.
+ */
+ bspace = tty->tio.c_cc[VERASE];
+- if (bspace != _POSIX_VDISABLE && (key & KEYC_MASK_KEY) == bspace)
+- key = (key & KEYC_MASK_MOD) | KEYC_BSPACE;
+
+ /* Remove data from buffer. */
+ evbuffer_drain(tty->event->input, size);
diff --git a/sysutils/tmux23/pkg-descr b/sysutils/tmux23/pkg-descr
new file mode 100644
index 000000000000..88ea6254d372
--- /dev/null
+++ b/sysutils/tmux23/pkg-descr
@@ -0,0 +1,6 @@
+This is old version 2.3 preserving original behaviour of mouse scrolling etc.
+Tmux is a terminal multiplexer, it enables a number of terminals to be accessed
+and controlled from a single terminal. tmux is intended to be a simple, modern,
+BSD-licensed alternative to programs such as GNU screen.
+
+WWW: http://tmux.github.io/