[gentoo-commits] repo/gentoo:master commit in: app-misc/ttysnoop/, app-misc/ttysnoop/files/, profiles/

2022-05-04 Thread Jakov Smolić
commit: 763a0d6035ee40044578e8d77849f5828d28397b
Author: Jakov Smolić  gentoo  org>
AuthorDate: Wed May  4 08:13:33 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Wed May  4 08:13:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763a0d60

app-misc/ttysnoop: treeclean

Closes: https://bugs.gentoo.org/680362
Closes: https://bugs.gentoo.org/834093
Closes: https://bugs.gentoo.org/715714
Signed-off-by: Jakov Smolić  gentoo.org>

 app-misc/ttysnoop/Manifest  |  1 -
 app-misc/ttysnoop/files/pinkbyte_masking.patch  | 41 --
 app-misc/ttysnoop/files/ttysnoop-makefile.patch | 45 -
 app-misc/ttysnoop/metadata.xml  |  8 -
 app-misc/ttysnoop/ttysnoop-0.12d-r1.ebuild  | 44 
 profiles/package.mask   |  8 -
 6 files changed, 147 deletions(-)

diff --git a/app-misc/ttysnoop/Manifest b/app-misc/ttysnoop/Manifest
deleted file mode 100644
index 7dda53b129b3..
--- a/app-misc/ttysnoop/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST ttysnoop-0.12d.k26.tar.gz 9376 BLAKE2B 
114c260de72c4909b97fb47d3ec8b22cf2406df433f708299098df7a7b1315ada8babd81c62ae3a12775fb2393c6548d24457df85523663223960390bb2891c1
 SHA512 
9ac90ce08e170442718ca4871b7cb569acd8a594e63a56a6889ff0852be93a6ae8e7a212ba1064e74286043dad5a27af5d8588cb3b1ea297db4bf7fa10c5

diff --git a/app-misc/ttysnoop/files/pinkbyte_masking.patch 
b/app-misc/ttysnoop/files/pinkbyte_masking.patch
deleted file mode 100644
index 8d944b21e3af..
--- a/app-misc/ttysnoop/files/pinkbyte_masking.patch
+++ /dev/null
@@ -1,41 +0,0 @@
 a/ttysnoops.c
-+++ b/ttysnoops.c
-@@ -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 
-@@ -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
deleted file mode 100644
index ba8d702e9e6e..
--- a/app-misc/ttysnoop/files/ttysnoop-makefile.patch
+++ /dev/null
@@ -1,45 +0,0 @@
 a/Makefile
-+++ b/Makefile
-@@ -2,8 +2,6 @@
- # Makefile for the ttysnoop programs
- #
- 
--CC= gcc
--
- # Without shadow support
- 
- #CCOPTS   = -O2
-@@ -11,7 +9,7 @@
- 
- # For shadow support
- 
--CCOPTS= -O2 -DSHADOW_PWD
-+CCOPTS= -DSHADOW_PWD
- LIBS  = -lcrypt
- #LIBS = -lshadow
- 
-@@ -24,19 +22,19 @@
- all:  ttysnoops ttysnoop
- 
- ttysnoops:$(SERVEROBJS)
--  $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS)
-+  $(CC) $(LDFLAGS) $(SERVEROBJS) -o ttysnoops $(LIBS)
- 
- ttysnoop: $(CLIENTOBJS)
--  $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS)
-+  $(CC) $(LDFLAGS) $(CLIENTOBJS) -o ttysnoop $(LIBS)
- 
- ttysnoops.o:  $(SERVERSRCS) $(INCLUDES)
--  $(CC) $(CCOPTS) -c -o ttysnoops.o $(SERVERSRCS)
-+  $(CC) $(CCOPTS) $(CPPFLAGS) $(CFLAGS) -c -o ttysnoops.o 
$(SERVERSRCS)
- 
- ttysnoop.o:   $(CLIENTSRCS) $(INCLUDES)
--  $(CC) $(CCOPTS) -c -o ttysnoop.o $(CLIENTSRCS)
-+  $(CC) $(CCOPTS) $(CPPFLAGS) $(CFLAGS) -c -o ttysnoop.o 
$(CLIENTSRCS)
- 
- common.o: common.c common.h
--  $(CC) $(CCOPTS) -c -o common.o common.c
-+  $(CC) $(CCOPTS) $(CPPFLAGS) $(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
deleted file mode 100644
index a3862b8ec2fc..
--- a/app-misc/ttysnoop/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-https://www.gentoo.org/dtd/metadata.dtd;>
-
-   
-   pinkb...@gentoo.org
-   Sergey Popov
-   
-

diff --git a/app-misc/ttysnoop/ttysnoop-0.12d-r1.ebuild 

[gentoo-commits] repo/gentoo:master commit in: app-misc/ttysnoop/

2021-07-09 Thread Sam James
commit: 51d42b8334ee76ea973f66cee46d805bf6eaa76e
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 10 01:10:30 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 10 01:10:30 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d42b83

app-misc/ttysnoop: add missing libcrypt dependency

Closes: https://bugs.gentoo.org/800656
Signed-off-by: Sam James  gentoo.org>

 .../ttysnoop/{ttysnoop-0.12d.ebuild => ttysnoop-0.12d-r1.ebuild}| 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild 
b/app-misc/ttysnoop/ttysnoop-0.12d-r1.ebuild
similarity index 89%
rename from app-misc/ttysnoop/ttysnoop-0.12d.ebuild
rename to app-misc/ttysnoop/ttysnoop-0.12d-r1.ebuild
index ccbb8cd23f2..d58b8e138ac 100644
--- a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
+++ b/app-misc/ttysnoop/ttysnoop-0.12d-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -10,12 +10,14 @@ inherit 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;
+S="${WORKDIR}/${MY_P}"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-S="${WORKDIR}/${MY_P}"
+RDEPEND="virtual/libcrypt:="
+DEPEND="${RDEPEND}"
 
 PATCHES=(
"${FILESDIR}"/pinkbyte_masking.patch



[gentoo-commits] repo/gentoo:master commit in: app-misc/ttysnoop/files/, app-misc/ttysnoop/

2020-09-15 Thread David Seifert
commit: a9374bd89c2a17d3a5f2d97409a5ccce93c9baa1
Author: David Seifert  gentoo  org>
AuthorDate: Tue Sep 15 19:52:36 2020 +
Commit: David Seifert  gentoo  org>
CommitDate: Tue Sep 15 19:52:36 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9374bd8

app-misc/ttysnoop: Port to EAPI 7

Closes: https://bugs.gentoo.org/742071
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: David Seifert  gentoo.org>

 app-misc/ttysnoop/files/pinkbyte_masking.patch  |  4 ++--
 app-misc/ttysnoop/files/ttysnoop-makefile.patch | 27 ++---
 app-misc/ttysnoop/ttysnoop-0.12d.ebuild | 32 -
 3 files changed, 35 insertions(+), 28 deletions(-)

diff --git a/app-misc/ttysnoop/files/pinkbyte_masking.patch 
b/app-misc/ttysnoop/files/pinkbyte_masking.patch
index a0539c239b0..8d944b21e3a 100644
--- a/app-misc/ttysnoop/files/pinkbyte_masking.patch
+++ b/app-misc/ttysnoop/files/pinkbyte_masking.patch
@@ -1,5 +1,5 @@
 ttysnoops.c2009-08-13 17:11:30.705202250 +0400
-+++ ttysnoops.c2009-08-13 17:17:29.989201055 +0400
+--- a/ttysnoops.c
 b/ttysnoops.c
 @@ -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

diff --git a/app-misc/ttysnoop/files/ttysnoop-makefile.patch 
b/app-misc/ttysnoop/files/ttysnoop-makefile.patch
index 54d04dd40a2..ba8d702e9e6 100644
--- a/app-misc/ttysnoop/files/ttysnoop-makefile.patch
+++ b/app-misc/ttysnoop/files/ttysnoop-makefile.patch
@@ -1,6 +1,15 @@
 Makefile   2004-06-07 04:27:40.0 +0400
-+++ Makefile   2011-07-21 11:50:22.580167326 +0400
-@@ -11,7 +11,7 @@
+--- a/Makefile
 b/Makefile
+@@ -2,8 +2,6 @@
+ # Makefile for the ttysnoop programs
+ #
+ 
+-CC= gcc
+-
+ # Without shadow support
+ 
+ #CCOPTS   = -O2
+@@ -11,7 +9,7 @@
  
  # For shadow support
  
@@ -9,28 +18,28 @@
  LIBS  = -lcrypt
  #LIBS = -lshadow
  
-@@ -24,19 +24,19 @@
+@@ -24,19 +22,19 @@
  all:  ttysnoops ttysnoop
  
  ttysnoops:$(SERVEROBJS)
 -  $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS)
-+  $(CC) $(SERVEROBJS) -o ttysnoops $(LDFLAGS) $(LIBS)
++  $(CC) $(LDFLAGS) $(SERVEROBJS) -o ttysnoops $(LIBS)
  
  ttysnoop: $(CLIENTOBJS)
 -  $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS)
-+  $(CC) $(CLIENTOBJS) -o ttysnoop $(LDFLAGS) $(LIBS)
++  $(CC) $(LDFLAGS) $(CLIENTOBJS) -o ttysnoop $(LIBS)
  
  ttysnoops.o:  $(SERVERSRCS) $(INCLUDES)
 -  $(CC) $(CCOPTS) -c -o ttysnoops.o $(SERVERSRCS)
-+  $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoops.o $(SERVERSRCS)
++  $(CC) $(CCOPTS) $(CPPFLAGS) $(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)
++  $(CC) $(CCOPTS) $(CPPFLAGS) $(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
++  $(CC) $(CCOPTS) $(CPPFLAGS) $(CFLAGS) -c -o common.o common.c
  
  clean:
rm -f *.o core ttysnoop ttysnoops

diff --git a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild 
b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
index 400e1e6c2c6..ccbb8cd23f2 100644
--- a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
+++ b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
@@ -1,11 +1,11 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 
 MY_P="${P}.k26"
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
 DESCRIPTION="Tool to snoop on login tty's through another tty-device or 
pseudo-tty"
 HOMEPAGE="http://sysd.org/stas/node/35;
@@ -14,30 +14,28 @@ 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
-}
+PATCHES=(
+   "${FILESDIR}"/pinkbyte_masking.patch
+   "${FILESDIR}"/"${PN}"-makefile.patch
+)
 
-src_compile() {
-   emake CC="$(tc-getCC)"
+src_configure() {
+   tc-export CC
 }
 
 src_install() {
dodir /var/spool/ttysnoop
+   keepdir /var/spool/ttysnoop
+
fperms o= /var/spool/ttysnoop
-   dodoc ${DOCS}
-   dosbin ttysnoop
-   dosbin ttysnoops
+
+   dosbin ttysnoop ttysnoops
+
+   dodoc README snooptab.dist
+
doman ttysnoop.8
insinto /etc
newins snooptab.dist snooptab