diff options
author | 2012-07-02 11:46:15 +0000 | |
---|---|---|
committer | 2012-07-02 11:46:15 +0000 | |
commit | 721c2382633b097fb07738fc8cdcf2cfd44da9ba (patch) | |
tree | a3af7af9f4db5f35b39e69ed45815f63722f7da6 /app-misc | |
parent | Version bump. (diff) | |
download | gentoo-2-721c2382633b097fb07738fc8cdcf2cfd44da9ba.tar.gz gentoo-2-721c2382633b097fb07738fc8cdcf2cfd44da9ba.tar.bz2 gentoo-2-721c2382633b097fb07738fc8cdcf2cfd44da9ba.zip |
Move to tree from overlay
(Portage version: 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 | 6 | ||||
-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, 144 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..8526d307d325 --- /dev/null +++ b/app-misc/ttysnoop/Manifest @@ -0,0 +1,6 @@ +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 788 RMD160 17c8b13c7846ddaed9961be600a6a2ee6c9d01a6 SHA1 fc3830fc0231af92ebfcfc9381433398d432ab7b SHA256 426da74494269d7e862e5f44fcb7334f34439a499249c063ae6a91b5941eb196 +MISC ChangeLog 411 RMD160 5a3a3e732b9e8fe4ab60258fcfad93f459e5f58e SHA1 81a806d5f8bc6ebaa282408f8fa07266f7483055 SHA256 340953972747f7460a7f759c1d514a8fd39d9ac7905322c47708a93f09f5a81f +MISC metadata.xml 225 RMD160 49e9dce48b40db4e20315ba85b73e55473fc166b SHA1 17b574735f04646867187edc6ab1b2077edd8bfe SHA256 05b015e3affc82267a395da547c28d42b4f9134b5842af6bc3a840cebbef500f 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 +} |