1 |
maksbotan 12/07/02 11:46:15 |
2 |
|
3 |
Added: pinkbyte_masking.patch ttysnoop-makefile.patch |
4 |
Log: |
5 |
Move to tree from overlay |
6 |
|
7 |
(Portage version: 2.1.11.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-misc/ttysnoop/files/pinkbyte_masking.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ttysnoop/files/pinkbyte_masking.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ttysnoop/files/pinkbyte_masking.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: pinkbyte_masking.patch |
16 |
=================================================================== |
17 |
--- ttysnoops.c 2009-08-13 17:11:30.705202250 +0400 |
18 |
+++ ttysnoops.c 2009-08-13 17:17:29.989201055 +0400 |
19 |
@@ -18,6 +18,7 @@ |
20 |
v0.12d 8-4-98 Carl Declerck - updated #includes a bit |
21 |
k26 28-5-00 Vinicius Anselmo - added sound alert (demoniac) created by Stas |
22 |
k26 31-5-04 Vinicius Anselmo - updated for unix98 pty support |
23 |
+ k26 13-8-09 Pinkbyte - deleted fucking sound alert and "bye bye" message ;) |
24 |
*/ |
25 |
|
26 |
#include <sys/types.h> |
27 |
@@ -502,22 +503,6 @@ |
28 |
struct utmp utmp; |
29 |
int ptyfd, servfd, len, n, sel, susp = 0; |
30 |
|
31 |
- /* demoniac begin */ |
32 |
- |
33 |
- StopHandle(); |
34 |
- |
35 |
- if (InitSound()) /* play if we can */ |
36 |
- { |
37 |
- DoSound(466, SLEN); // A#4 |
38 |
- DoSound(622, SLEN); // D#5 |
39 |
- DoSound(784, SLEN); // G5 |
40 |
- DoSound(932, SLEN*2); // A#5 |
41 |
- DoSound(784, SLEN); // G5 |
42 |
- DoSound(932, SLEN*3); // A#5 |
43 |
- } |
44 |
- |
45 |
- /* demoniac end */ |
46 |
- |
47 |
if (!isatty(STDIN_FILENO)) |
48 |
errorf ("stdin is not a tty\n"); |
49 |
|
50 |
@@ -660,7 +645,6 @@ |
51 |
{ |
52 |
if ((n = read(ptyfd, buff, BUFF_SIZE)) < 1) |
53 |
{ |
54 |
- errorf ("bye bye\n"); |
55 |
exit (0); |
56 |
} |
57 |
|
58 |
|
59 |
|
60 |
|
61 |
1.1 app-misc/ttysnoop/files/ttysnoop-makefile.patch |
62 |
|
63 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ttysnoop/files/ttysnoop-makefile.patch?rev=1.1&view=markup |
64 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/ttysnoop/files/ttysnoop-makefile.patch?rev=1.1&content-type=text/plain |
65 |
|
66 |
Index: ttysnoop-makefile.patch |
67 |
=================================================================== |
68 |
--- Makefile 2004-06-07 04:27:40.000000000 +0400 |
69 |
+++ Makefile 2011-07-21 11:50:22.580167326 +0400 |
70 |
@@ -11,7 +11,7 @@ |
71 |
|
72 |
# For shadow support |
73 |
|
74 |
-CCOPTS = -O2 -DSHADOW_PWD |
75 |
+CCOPTS = -DSHADOW_PWD |
76 |
LIBS = -lcrypt |
77 |
#LIBS = -lshadow |
78 |
|
79 |
@@ -24,19 +24,19 @@ |
80 |
all: ttysnoops ttysnoop |
81 |
|
82 |
ttysnoops: $(SERVEROBJS) |
83 |
- $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS) |
84 |
+ $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS) $(LDFLAGS) |
85 |
|
86 |
ttysnoop: $(CLIENTOBJS) |
87 |
- $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS) |
88 |
+ $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS) $(LDFALGS) |
89 |
|
90 |
ttysnoops.o: $(SERVERSRCS) $(INCLUDES) |
91 |
- $(CC) $(CCOPTS) -c -o ttysnoops.o $(SERVERSRCS) |
92 |
+ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoops.o $(SERVERSRCS) |
93 |
|
94 |
ttysnoop.o: $(CLIENTSRCS) $(INCLUDES) |
95 |
- $(CC) $(CCOPTS) -c -o ttysnoop.o $(CLIENTSRCS) |
96 |
+ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoop.o $(CLIENTSRCS) |
97 |
|
98 |
common.o: common.c common.h |
99 |
- $(CC) $(CCOPTS) -c -o common.o common.c |
100 |
+ $(CC) $(CCOPTS) $(CFLAGS) -c -o common.o common.c |
101 |
|
102 |
clean: |
103 |
rm -f *.o core ttysnoop ttysnoops |