Adding ttysnoop pty redirector

This commit is contained in:
Michael Raskin 2013-10-20 18:42:53 +04:00
parent e5e17e73e3
commit cb82eaffb8
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,38 @@
{stdenv, fetchurl}:
let
s = # Generated upstream information
rec {
baseName="ttysnoop";
version="0.12d.k26";
name="${baseName}-${version}";
hash="0jb2zchaiqmmickj0la7wjw3sf9vy65qfhhs11yrzx4mmwkp0395";
url="http://sysd.org/stas/files/active/0/ttysnoop-0.12d.k26.tar.gz";
sha256="0jb2zchaiqmmickj0la7wjw3sf9vy65qfhhs11yrzx4mmwkp0395";
};
buildInputs = [
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
preBuild = ''
sed -e "s@/sbin@$out/sbin@g" -i Makefile
sed -e "s@/usr/man@$out/share/man@g" -i Makefile
mkdir -p "$out/share/man/man8"
mkdir -p "$out/sbin"
'';
postInstall = ''
mkdir -p "$out/etc"
cp snooptab.dist "$out/etc/snooptab"
'';
meta = {
inherit (s) version;
description = "A tool to clone input and output of another tty/pty to the current one";
license = stdenv.lib.licenses.gpl ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -0,0 +1,3 @@
url http://sysd.org/stas/node/35
ensure_choice
version '.*-([0-9a-z.]+)[.]tar[.].*' '\1'

View File

@ -661,6 +661,8 @@ let
connect = callPackage ../tools/networking/connect { }; connect = callPackage ../tools/networking/connect { };
conspy = callPackage ../os-specific/linux/conspy {};
convertlit = callPackage ../tools/text/convertlit { }; convertlit = callPackage ../tools/text/convertlit { };
collectd = callPackage ../tools/system/collectd { }; collectd = callPackage ../tools/system/collectd { };
@ -1885,6 +1887,8 @@ let
ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { }; ttf2pt1 = callPackage ../tools/misc/ttf2pt1 { };
ttysnoop = callPackage ../os-specific/linux/ttysnoop {};
twitterBootstrap = callPackage ../development/web/twitter-bootstrap {}; twitterBootstrap = callPackage ../development/web/twitter-bootstrap {};
txt2man = callPackage ../tools/misc/txt2man { }; txt2man = callPackage ../tools/misc/txt2man { };