diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/ttysnoop |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/ttysnoop')
-rw-r--r-- | app-misc/ttysnoop/Manifest | 7 | ||||
-rw-r--r-- | app-misc/ttysnoop/files/pinkbyte_masking.patch | 41 | ||||
-rw-r--r-- | app-misc/ttysnoop/files/ttysnoop-makefile.patch | 36 | ||||
-rw-r--r-- | app-misc/ttysnoop/metadata.xml | 8 | ||||
-rw-r--r-- | app-misc/ttysnoop/ttysnoop-0.12d.ebuild | 44 |
5 files changed, 136 insertions, 0 deletions
diff --git a/app-misc/ttysnoop/Manifest b/app-misc/ttysnoop/Manifest new file mode 100644 index 000000000000..a1f46da2b743 --- /dev/null +++ b/app-misc/ttysnoop/Manifest @@ -0,0 +1,7 @@ +AUX pinkbyte_masking.patch 1028 SHA256 b0d7856f9dc01cdfb4bedfff9336ddd3edca5c6b01ab08101314a66431470cbe SHA512 a4adede6ceeea84ccf760805fb4f7044fa06fcc00291556bcaf61b8be81256d10751e3efd7e35c8b26897d98878da6dc17d526cd335aee5bb91762cd129225f1 WHIRLPOOL dbedf38db969eaa7d8c5835ba6a90871dc1c33a52a0bb41b97466519cfee139771cf11101555617c737c186d054cd9cc3575b6eb750a4a81581ac475489e171a +AUX ttysnoop-makefile.patch 1004 SHA256 80b254fbfaaa3e5c79041d725becb472588e49d157bb7811db9fb9c13267a476 SHA512 f5e8f5764ecfd7174646801650f63ed5608dd5ce1d5e321419ff5318946ed03b61f2e25108d9d5c9dbce95eb4b788c74543cc57b0ba57d430e6ddc519e73321d WHIRLPOOL 9eb0e2c4d06e0720e8be074bd6e03ecc640306c8ed84ba7c7d975836c96c23de96730a96f39c71c93709b3d120adfaffe3b029108124ff61ce047365288146ad +DIST ttysnoop-0.12d.k26.tar.gz 9376 SHA256 250d7027af95f49f7d081a42878bf13b393db8e4475120278bb5e2a820fb6249 SHA512 9ac90ce08e170442718ca4871b7cb569acd8a594e63a56a6889ff0852be93a6ae8e7a212ba1064e74286043dad5a27af5d8588cb3b1ea297db4bf7fa10c66665 WHIRLPOOL c11cced3730e5591c2f4d3920a39a2a58177d4889e1b3cd7d2aedb46d15937637cc64fe2ed1412d6481adccd9459204097ffd62e59cd85687fd9f6263ad2830f +EBUILD ttysnoop-0.12d.ebuild 834 SHA256 7fdf8876317f59b47c09dfa045b2318ba838385843eaa42d56cbcdd47fd2a260 SHA512 c7672eafd3450c4e8f7cb1d089f33064400b4075d78d49d9a11aca68e61e45bb4de75fd6ff7709d80f98f0024c1981405275031a6bc79dd6ad1cb082df0c273f WHIRLPOOL c4cb658cc2ef847fe56eb6ae419f6354dc1d34340ceb5437ab52c655660ca487ddb035b2ab54c5198acb583d9735a4f8d9a7f25c83f882f68ab58ad84bdb61ab +MISC ChangeLog 2244 SHA256 442e66bee53f92eb44d74b0a2d2f4841edd3306c46b4ccab0391d9f99c8fbd38 SHA512 bd7fa021f9501c6b29533ba6728493ec4f98f65b0faf065532a7badb2699909199d3a937fc867f0e4ad4b9529af7e08cc2d581d8df1c8b29ba1809a18af67193 WHIRLPOOL 11822d5750a24464456adada2ec724d436384654dd8f37cc35ccba99d32c911966235fd43db91dc91783ac830051941fc473e78294f7d67db4fe2eae3fe034a3 +MISC ChangeLog-2015 1211 SHA256 142be678730acf4ad62e86220c6b8430d924a118cdee1521c9f861c6e8ed557d SHA512 c358b6db78ae29e1ccaf1f96224cdc8a3dbc1798127649c7386b0c7ca89d1959e69916d7a9aa2a7e29b33dc494609a207762bd4397c7653eb4e2a387e478e303 WHIRLPOOL 33cf4bec1706ca5242a07dd99e79fc47b7a66d377c9bc7888cda8029dd7db1f35222d1799dfadf5081ee2a18169978942a4d3a75c0ccd2012a59918a3b00271a +MISC metadata.xml 247 SHA256 fb925313d1ae70feaa6db91150f34a2157b48e884e8f47d773640af149e3744b SHA512 96c55c2979dd6a4c4761fce9b5a0be387b11fcf197ef903d8680ae82f01a2caea93b1238bed1ac96d3eb250744e2149a507e0424ac017b4324f0806a54e72c4a WHIRLPOOL 142b4295733faec48b0ca9eb6d3561799ff743481aabf2b74ecf6d717d972b4961979c7b6bf32b9840cb34e47d22fe2befb9b0ef8ec0d3f28f6416069128d3c7 diff --git a/app-misc/ttysnoop/files/pinkbyte_masking.patch b/app-misc/ttysnoop/files/pinkbyte_masking.patch new file mode 100644 index 000000000000..a0539c239b04 --- /dev/null +++ b/app-misc/ttysnoop/files/pinkbyte_masking.patch @@ -0,0 +1,41 @@ +--- ttysnoops.c 2009-08-13 17:11:30.705202250 +0400 ++++ ttysnoops.c 2009-08-13 17:17:29.989201055 +0400 +@@ -18,6 +18,7 @@ + v0.12d 8-4-98 Carl Declerck - updated #includes a bit + k26 28-5-00 Vinicius Anselmo - added sound alert (demoniac) created by Stas + k26 31-5-04 Vinicius Anselmo - updated for unix98 pty support ++ k26 13-8-09 Pinkbyte - deleted fucking sound alert and "bye bye" message ;) + */ + + #include <sys/types.h> +@@ -502,22 +503,6 @@ + struct utmp utmp; + int ptyfd, servfd, len, n, sel, susp = 0; + +- /* demoniac begin */ +- +- StopHandle(); +- +- if (InitSound()) /* play if we can */ +- { +- DoSound(466, SLEN); // A#4 +- DoSound(622, SLEN); // D#5 +- DoSound(784, SLEN); // G5 +- DoSound(932, SLEN*2); // A#5 +- DoSound(784, SLEN); // G5 +- DoSound(932, SLEN*3); // A#5 +- } +- +- /* demoniac end */ +- + if (!isatty(STDIN_FILENO)) + errorf ("stdin is not a tty\n"); + +@@ -660,7 +645,6 @@ + { + if ((n = read(ptyfd, buff, BUFF_SIZE)) < 1) + { +- errorf ("bye bye\n"); + exit (0); + } + diff --git a/app-misc/ttysnoop/files/ttysnoop-makefile.patch b/app-misc/ttysnoop/files/ttysnoop-makefile.patch new file mode 100644 index 000000000000..54d04dd40a29 --- /dev/null +++ b/app-misc/ttysnoop/files/ttysnoop-makefile.patch @@ -0,0 +1,36 @@ +--- Makefile 2004-06-07 04:27:40.000000000 +0400 ++++ Makefile 2011-07-21 11:50:22.580167326 +0400 +@@ -11,7 +11,7 @@ + + # For shadow support + +-CCOPTS = -O2 -DSHADOW_PWD ++CCOPTS = -DSHADOW_PWD + LIBS = -lcrypt + #LIBS = -lshadow + +@@ -24,19 +24,19 @@ + all: ttysnoops ttysnoop + + ttysnoops: $(SERVEROBJS) +- $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS) ++ $(CC) $(SERVEROBJS) -o ttysnoops $(LDFLAGS) $(LIBS) + + ttysnoop: $(CLIENTOBJS) +- $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS) ++ $(CC) $(CLIENTOBJS) -o ttysnoop $(LDFLAGS) $(LIBS) + + ttysnoops.o: $(SERVERSRCS) $(INCLUDES) +- $(CC) $(CCOPTS) -c -o ttysnoops.o $(SERVERSRCS) ++ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoops.o $(SERVERSRCS) + + ttysnoop.o: $(CLIENTSRCS) $(INCLUDES) +- $(CC) $(CCOPTS) -c -o ttysnoop.o $(CLIENTSRCS) ++ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoop.o $(CLIENTSRCS) + + common.o: common.c common.h +- $(CC) $(CCOPTS) -c -o common.o common.c ++ $(CC) $(CCOPTS) $(CFLAGS) -c -o common.o common.c + + clean: + rm -f *.o core ttysnoop ttysnoops diff --git a/app-misc/ttysnoop/metadata.xml b/app-misc/ttysnoop/metadata.xml new file mode 100644 index 000000000000..5b159fbcadd1 --- /dev/null +++ b/app-misc/ttysnoop/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> +</pkgmetadata> diff --git a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild new file mode 100644 index 000000000000..f458720b20b4 --- /dev/null +++ b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +MY_P="${P}.k26" + +inherit eutils toolchain-funcs + +DESCRIPTION="Tool to snoop on login tty's through another tty-device or pseudo-tty" +HOMEPAGE="http://sysd.org/stas/node/35" +SRC_URI="http://sysd.org/stas/files/active/0/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +DOCS="README snooptab.dist" + +src_prepare(){ + epatch "${FILESDIR}"/pinkbyte_masking.patch + epatch "${FILESDIR}"/"${PN}"-makefile.patch +} + +src_compile(){ + emake CC="$(tc-getCC)" +} + +src_install() { + dodir /var/spool/ttysnoop + fperms o= /var/spool/ttysnoop + dodoc ${DOCS} + dosbin ttysnoop + dosbin ttysnoops + doman ttysnoop.8 + insinto /etc + newins snooptab.dist snooptab +} |