diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2012-07-02 11:46:15 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2012-07-02 11:46:15 +0000 |
commit | 722dfb4108be761cfc31ff240e37e8ac11f6734f (patch) | |
tree | 3265eb71a34e62eb77a24ddafadecc6d8faacab1 /app-misc | |
parent | Version bump. (diff) | |
download | historical-722dfb4108be761cfc31ff240e37e8ac11f6734f.tar.gz historical-722dfb4108be761cfc31ff240e37e8ac11f6734f.tar.bz2 historical-722dfb4108be761cfc31ff240e37e8ac11f6734f.zip |
Move to tree from overlay
Package-Manager: portage-2.1.11.3/cvs/Linux x86_64
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/ttysnoop/ChangeLog | 12 | ||||
-rw-r--r-- | app-misc/ttysnoop/Manifest | 20 | ||||
-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 | 41 |
6 files changed, 158 insertions, 0 deletions
diff --git a/app-misc/ttysnoop/ChangeLog b/app-misc/ttysnoop/ChangeLog new file mode 100644 index 000000000000..943ad0944143 --- /dev/null +++ b/app-misc/ttysnoop/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-misc/ttysnoop +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/ttysnoop/ChangeLog,v 1.1 2012/07/02 11:46:15 maksbotan Exp $ + +*ttysnoop-0.12d (21 Jul 2011) + + 21 Jul 2011; Maxim Koltsov (maksbotan) <maksbotan@gentoo.org> + +ttysnoop-0.12d.ebuild, +files/pinkbyte_masking.patch, + +files/ttysnoop-makefile.patch, +metadata.xml: + Add ttysnoop-0.12d, #62397. Fixed some error from original ebuild and patched + Makefile + diff --git a/app-misc/ttysnoop/Manifest b/app-misc/ttysnoop/Manifest new file mode 100644 index 000000000000..6b47956f5b56 --- /dev/null +++ b/app-misc/ttysnoop/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX pinkbyte_masking.patch 1028 RMD160 fd532ed6b86127569f11d41326e46998fb06cb29 SHA1 86adbb1b3f045bbf91a445db8717e3e65df0cff3 SHA256 b0d7856f9dc01cdfb4bedfff9336ddd3edca5c6b01ab08101314a66431470cbe +AUX ttysnoop-makefile.patch 1004 RMD160 436823c7491e633569726863be9adf92714aa044 SHA1 923d04f497d5b3dc00de529cbad8e67bd5ea1133 SHA256 2ee5fe7db3a777c142ee8a2af0f58225d14c65a1920a2c92c9fb208610deb0cf +DIST ttysnoop-0.12d.k26.tar.gz 9376 RMD160 fb6b1df0d5ebc7dac0a9960abf150336bc368de9 SHA1 a927bcab46aeced827f6411cd3e85e44cc0c50e1 SHA256 250d7027af95f49f7d081a42878bf13b393db8e4475120278bb5e2a820fb6249 +EBUILD ttysnoop-0.12d.ebuild 892 RMD160 ce6eadb533357c18ac1f0c4edd6a2ea50d2d0d32 SHA1 dcb1fee6884fc57f9a2b84d1dfee2a64d4925ad4 SHA256 6eba41ae08f2fba2eb603f5dd89070ec554f13dee5909919bc6516c79b94476c +MISC ChangeLog 503 RMD160 0ad7a64c73a91a145ce503720edd3c16251ba3ce SHA1 f5d164d5638eb471cc7ef251194ac2fd0e5ea065 SHA256 0538035e3ddd91f00cfcc23fa0cf38173884f085177809f110ac96ba53b29ace +MISC metadata.xml 225 RMD160 49e9dce48b40db4e20315ba85b73e55473fc166b SHA1 17b574735f04646867187edc6ab1b2077edd8bfe SHA256 05b015e3affc82267a395da547c28d42b4f9134b5842af6bc3a840cebbef500f +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBAgAGBQJP8YopAAoJEAmJmMX429reRmEH/1ko+ZyK81Jl0pymhU6ktYkf +kL8WkP2x+6z2Ip/VM4SDkgTTlMvBw65w2r3L8m2f0LkJNrA3+xyKX5oC8Qi2zM1R +nZ6J6tjbn4Z2NC+Ea6tTARE9V5vgk2nHZpc6j5JMuFJR0V+j2upTuFnF/bNs01mW +EwmMBt+XEcT3uhfRkQteGqEo1L3xZVRCK70L8RM7X2CNd0V6e+FyDvzhmE5YwUVI +9PvWAW6y+/xYIUatVX9AnhpgF1wWU9kHV3stCWi53TQzsgbAu/R5ttt+LZvOman/ +kg8wq03CmhV2o45bd/nohmba7U/BRsi0emf9g0VQRCGiozMetiOte1qUMKU8gvk= +=7+J+ +-----END PGP SIGNATURE----- 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..d49a3cefc70b --- /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 $(LIBS) $(LDFLAGS) + + ttysnoop: $(CLIENTOBJS) +- $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS) ++ $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS) $(LDFALGS) + + 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..ba92e3f0b6db --- /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> +<herd>no-herd</herd> +<maintainer> + <email>maksbotan@gentoo.org</email> +</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..9e52808315a2 --- /dev/null +++ b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/ttysnoop/ttysnoop-0.12d.ebuild,v 1.1 2012/07/02 11:46:15 maksbotan Exp $ + +EAPI="4" + +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/ttysnoop-0.12d.k26.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/ttysnoop-${PV}.k26 + +DOCS="README snooptab.dist" + +src_prepare(){ + epatch "${FILESDIR}"/pinkbyte_masking.patch + epatch "${FILESDIR}"/ttysnoop-makefile.patch +} + +src_compile(){ + emake CC="$(tc-getCC)" +} + +src_install() { + dodoc ${DOCS} + dosbin ttysnoop + dosbin ttysnoops + doman ttysnoop.8 + insinto /etc + newins snooptab.dist snooptab +} |