aboutsummaryrefslogtreecommitdiff
path: root/system/tm
diff options
context:
space:
mode:
authorStu Miller <slackbuilds@go4it2day.com>2018-04-27 09:24:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-27 09:24:50 +0700
commit52ce192a314565fc1c79bc2435ae7042b865afe5 (patch)
treea592e4aa36e76acca51c46c889f32b9455bc87ce /system/tm
parent9d60bb81360e86aea98d8466f8c95ff687e99fc1 (diff)
system/tm: Added (tmux manager/helper).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/tm')
-rw-r--r--system/tm/README33
-rw-r--r--system/tm/slack-desc19
-rw-r--r--system/tm/tm.SlackBuild87
-rw-r--r--system/tm/tm.info10
4 files changed, 149 insertions, 0 deletions
diff --git a/system/tm/README b/system/tm/README
new file mode 100644
index 000000000000..b5c10f468c11
--- /dev/null
+++ b/system/tm/README
@@ -0,0 +1,33 @@
+* tm - tmux manager/helper
+
+This is a shell script used to ease day-to-day work with tmux (included
+with Slackware). It allows easy handling of various types of tmux sessions,
+as well as complex setups. It is mainly useful for using tmux as a
+ssh-multiplexer and replacement for clusterssh though its happy to do any
+other tmux session too.
+
+"tm" can be driven directly from the command line or by using
+repeatable session files. See /usr/doc/tm-yyyymmdd/README.org & examples/
+
+To create a repeatable tm/tmux session file:
+create folder: ~.tmux.d
+create file: remotes (example)
+
+REMOTES
+NONE
+root@remote_host1
+root@remote_host2
+
+The stock Slackware /etc/tmux.conf file can be modified to work better with
+multiple tmux panes. These changes help if replacing clusterssh with tm/tmux.
+The lines below are copied from /usr/doc/tmux-x.x/example_tmux.conf
+and added to a stock Slackware /etc/tmux.conf.
+
+# Turn the mouse on, but without copy mode dragging
+set -g mouse on
+unbind -n MouseDrag1Pane
+unbind -Tcopy-mode MouseDrag1Pane
+
+# Keys to toggle monitoring activity in a window, and synchronize-panes
+bind m set monitor-activity
+bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
diff --git a/system/tm/slack-desc b/system/tm/slack-desc
new file mode 100644
index 000000000000..07a911f81466
--- /dev/null
+++ b/system/tm/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+tm: tm (tm - tmux manager/helper)
+tm:
+tm: It is mainly useful for using tmux as a ssh-multiplexer and
+tm: replacement for clusterssh though its happy to do any other
+tm: tmux session too.
+tm:
+tm: tm does not release versions. The git master branch is used.
+tm: This slackbuild includes up to: Commits on Feb 6, 2018
+tm:
+tm: Home:
+tm: https://blog.ganneff.de/2013/03/tmux-like-screen-just-nicer.html
diff --git a/system/tm/tm.SlackBuild b/system/tm/tm.SlackBuild
new file mode 100644
index 000000000000..49830e6b86a0
--- /dev/null
+++ b/system/tm/tm.SlackBuild
@@ -0,0 +1,87 @@
+#!/bin/sh
+
+# Slackware build script for:
+# tm - tmux manager/helper. Use as clusterssh replacement.
+
+# Copyright 2018 - Stu Miller - Colorado, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=tm
+VERSION=${VERSION:-20180206}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Include the doc files
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a examples LICENSE README.org $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Include the bin files
+mkdir -p $PKG/usr/bin
+cp -a _tm tm $PKG/usr/bin/
+
+# Include the slackbuild files
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/tm/tm.info b/system/tm/tm.info
new file mode 100644
index 000000000000..afdf10b96104
--- /dev/null
+++ b/system/tm/tm.info
@@ -0,0 +1,10 @@
+PRGNAM="tm"
+VERSION="master"
+HOMEPAGE="https://blog.ganneff.de/2013/03/tmux-like-screen-just-nicer.html"
+DOWNLOAD="https://www.go4it2day.com/downloads/tm-20180206.tar.gz"
+MD5SUM="87c45bcb4e91dbc793c225aec34f128d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Stu Miller"
+EMAIL="slackbuilds@go4it2day.com"