diff options
author | cs <cs@FreeBSD.org> | 2013-10-07 12:46:52 +0800 |
---|---|---|
committer | cs <cs@FreeBSD.org> | 2013-10-07 12:46:52 +0800 |
commit | afe1dd94bd8428926fc6f82ea00b8b316772f9fb (patch) | |
tree | 713dab026c46bfce4314d6a204e82c09c049e328 /sysutils | |
parent | 8458ba871eccff24fb0bfd76fb4c890a794d28f6 (diff) | |
download | freebsd-ports-gnome-afe1dd94bd8428926fc6f82ea00b8b316772f9fb.tar.gz freebsd-ports-gnome-afe1dd94bd8428926fc6f82ea00b8b316772f9fb.tar.zst freebsd-ports-gnome-afe1dd94bd8428926fc6f82ea00b8b316772f9fb.zip |
wemux enhances tmux to make multi-user terminal multiplexing both easier and
more powerful. It allows users to host a wemux server and have clients join in
either:
* Mirror Mode gives clients (another SSH user on your machine) read-only access
to the session, allowing them to see you work, or
* Pair Mode allows the client and yourself to work in the same terminal (shared
cursor)
* Rogue Mode allows the client to pair or work independently in another window
(separate cursors) in the same tmux session.
It features multi-server support as well as user listing and notifications when
users attach/detach.
WWW: https://github.com/zolrath/wemux
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/wemux/Makefile | 30 | ||||
-rw-r--r-- | sysutils/wemux/distinfo | 2 | ||||
-rw-r--r-- | sysutils/wemux/files/patch-wemux | 40 | ||||
-rw-r--r-- | sysutils/wemux/pkg-descr | 15 | ||||
-rw-r--r-- | sysutils/wemux/pkg-plist | 4 |
6 files changed, 92 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 856b9b6f2c05..706d6cd6c212 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -990,6 +990,7 @@ SUBDIR += webjob SUBDIR += webmin SUBDIR += weedit + SUBDIR += wemux SUBDIR += whatpix SUBDIR += whowatch SUBDIR += wiimms diff --git a/sysutils/wemux/Makefile b/sysutils/wemux/Makefile new file mode 100644 index 000000000000..0eebf4fe3a19 --- /dev/null +++ b/sysutils/wemux/Makefile @@ -0,0 +1,30 @@ +# Created by: Carlo Strub +# $FreeBSD$ + +PORTNAME= wemux +PORTVERSION= 2.2.0 +CATEGORIES= sysutils +MASTER_SITES= http://www.c-s.li/ports/ + +MAINTAINER= gahr@FreeBSD.org +COMMENT= Enhances tmux to make multi-user terminal multiplexing easier + +LICENSE= MIT + +RUN_DEPENDS= tmux:${PORTSDIR}/sysutils/tmux \ + bash:${PORTSDIR}/shells/bash + +NO_BUILD= yes +USE_GITHUB= yes +GH_ACCOUNT= zolrath +GH_TAGNAME= dfd964792a859ebc24b4210c53c9a0ceb9bb29e6 +WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${PORTNAME}-dfd9647 + +post-patch: + @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${PORTNAME} + +do-install: + @${INSTALL_SCRIPT} ${WRKSRC}/wemux ${STAGEDIR}${PREFIX}/bin + @${INSTALL_DATA} ${WRKSRC}/wemux.conf.example ${STAGEDIR}${PREFIX}/etc/wemux.conf.example + +.include <bsd.port.mk> diff --git a/sysutils/wemux/distinfo b/sysutils/wemux/distinfo new file mode 100644 index 000000000000..8bd606770598 --- /dev/null +++ b/sysutils/wemux/distinfo @@ -0,0 +1,2 @@ +SHA256 (wemux-2.2.0.tar.gz) = 9940cd5e83c3623aebdb53dc129bb3578df409f3744827f3737b474f9d6a19dd +SIZE (wemux-2.2.0.tar.gz) = 9851 diff --git a/sysutils/wemux/files/patch-wemux b/sysutils/wemux/files/patch-wemux new file mode 100644 index 000000000000..d4844ec12be1 --- /dev/null +++ b/sysutils/wemux/files/patch-wemux @@ -0,0 +1,40 @@ +--- wemux.orig 2012-03-29 02:17:10.000000000 +0200 ++++ wemux 2013-10-06 14:54:20.000000000 +0200 +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!%%PREFIX%%/bin/bash + # wemux by Matt Furden @zolrath + # version 2.2.0 + # +@@ -7,8 +7,9 @@ + # or pairing, which will allow them to edit your file (shared cursor) or work + # in another window (separate cursors) in the hosts tmux session. + # +-# To set a user as host add their username to the host_list in /etc/wemux.conf +-# Other configuations options are also located in /etc/wemux.conf ++# To set a user as host add their username to the host_list in ++# %%PREFIX%%/etc/wemux.conf ++# Other configuations options are also located in %%PREFIX%%/etc/wemux.conf + # + # For environments with multiple hosts running their own independent sessions + # on the same machine wemux can join different sessions with the wemux join +@@ -42,7 +43,7 @@ + version="2.2.0" + + # Setup and Configuration Files. +-# Default settings, modify them in the /etc/wemux.conf file: ++# Default settings, modify them in the %%PREFIX%%/etc/wemux.conf file: + host_list=(root) + socket_prefix="/tmp/wemux" + options="-u" +@@ -60,8 +61,8 @@ + # Set $EDITOR default to vi if not configured on host machine. + editor=${EDITOR:="vi"} + +-# Load configuration options from /etc/wemux.conf +-[ -f /etc/wemux.conf ] && . /etc/wemux.conf ++# Load configuration options from %%PREFIX%%/etc/wemux.conf ++[ -f %%PREFIX%%/etc/wemux.conf ] && . %%PREFIX%%/etc/wemux.conf + + # Sanitize session name, replace spaces and underscores with dashes. + # Remove all non alpha-numeric characters, convert to lowercase. diff --git a/sysutils/wemux/pkg-descr b/sysutils/wemux/pkg-descr new file mode 100644 index 000000000000..9f0f45e76fd2 --- /dev/null +++ b/sysutils/wemux/pkg-descr @@ -0,0 +1,15 @@ +wemux enhances tmux to make multi-user terminal multiplexing both easier and +more powerful. It allows users to host a wemux server and have clients join in +either: + + * Mirror Mode gives clients (another SSH user on your machine) read-only access + to the session, allowing them to see you work, or + * Pair Mode allows the client and yourself to work in the same terminal (shared + cursor) + * Rogue Mode allows the client to pair or work independently in another window + (separate cursors) in the same tmux session. + +It features multi-server support as well as user listing and notifications when +users attach/detach. + +WWW: https://github.com/zolrath/wemux diff --git a/sysutils/wemux/pkg-plist b/sysutils/wemux/pkg-plist new file mode 100644 index 000000000000..3d8cb897320d --- /dev/null +++ b/sysutils/wemux/pkg-plist @@ -0,0 +1,4 @@ +bin/wemux +@unexec if cmp -s %D/etc/wemux.conf %D/etc/wemux.conf.example ; then rm -f %D/etc/wemux.conf ; fi +etc/wemux.conf.example +@exec if [ ! -f %D/etc/wemux.conf ]; then cp -p %D/%F %B/wemux.conf; fi |