summaryrefslogtreecommitdiff
path: root/app-misc/ttysnoop/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/ttysnoop/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/ttysnoop/files')
-rw-r--r--app-misc/ttysnoop/files/pinkbyte_masking.patch41
-rw-r--r--app-misc/ttysnoop/files/ttysnoop-makefile.patch36
2 files changed, 77 insertions, 0 deletions
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