1 |
mrness 09/06/20 12:03:14 |
2 |
|
3 |
Added: tsocks-1.8_beta5-gentoo-r3.patch |
4 |
Log: |
5 |
Link tsocks-saveme dinamically (#273339). Migrate to EAPI 2. |
6 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/tsocks/files/tsocks-1.8_beta5-gentoo-r3.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: tsocks-1.8_beta5-gentoo-r3.patch |
15 |
=================================================================== |
16 |
diff -Nru tsocks-1.8.orig/Makefile.in tsocks-1.8/Makefile.in |
17 |
--- tsocks-1.8.orig/Makefile.in 2002-03-16 11:12:40.000000000 +0100 |
18 |
+++ tsocks-1.8/Makefile.in 2009-06-20 13:56:56.000000000 +0200 |
19 |
@@ -28,6 +28,7 @@ |
20 |
INSTALL = @INSTALL@ |
21 |
INSTALL_DATA = @INSTALL_DATA@ |
22 |
CFLAGS = @CFLAGS@ |
23 |
+LDFLAGS = @LDFLAGS@ |
24 |
INCLUDES = -I. |
25 |
LIBS = @LIBS@ |
26 |
SPECIALLIBS = @SPECIALLIBS@ |
27 |
@@ -41,16 +42,16 @@ |
28 |
all: ${TARGETS} |
29 |
|
30 |
${VALIDATECONF}: ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o |
31 |
- ${SHCC} ${CFLAGS} ${INCLUDES} -o ${VALIDATECONF} ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o ${LIBS} |
32 |
+ ${SHCC} ${LDFLAGS} ${INCLUDES} -o ${VALIDATECONF} ${VALIDATECONF}.c ${COMMON}.o ${PARSER}.o ${LIBS} |
33 |
|
34 |
${INSPECT}: ${INSPECT}.c ${COMMON}.o |
35 |
- ${SHCC} ${CFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS} |
36 |
+ ${SHCC} ${LDFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS} |
37 |
|
38 |
${SAVE}: ${SAVE}.c |
39 |
- ${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c |
40 |
+ ${SHCC} ${LDFLAGS} ${INCLUDES} -o ${SAVE} ${SAVE}.c |
41 |
|
42 |
${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o |
43 |
- ${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} |
44 |
+ ${SHCC} ${LDFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} |
45 |
ln -sf ${SHLIB} ${LIB_NAME}.so |
46 |
|
47 |
%.so: %.c |
48 |
diff -Nru tsocks-1.8.orig/tsocks tsocks-1.8/tsocks |
49 |
--- tsocks-1.8.orig/tsocks 2002-03-16 11:27:18.000000000 +0100 |
50 |
+++ tsocks-1.8/tsocks 2009-06-20 13:56:38.000000000 +0200 |
51 |
@@ -46,14 +46,14 @@ |
52 |
on) |
53 |
if [ -z "$LD_PRELOAD" ] |
54 |
then |
55 |
- export LD_PRELOAD="/usr/lib/libtsocks.so" |
56 |
+ export LD_PRELOAD="/lib/libtsocks.so" |
57 |
else |
58 |
- echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" || \ |
59 |
- export LD_PRELOAD="/usr/lib/libtsocks.so $LD_PRELOAD" |
60 |
+ echo $LD_PRELOAD | grep -q "/lib/libtsocks\.so" || \ |
61 |
+ export LD_PRELOAD="/lib/libtsocks.so $LD_PRELOAD" |
62 |
fi |
63 |
;; |
64 |
off) |
65 |
- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/usr\/lib\/libtsocks.so \?//'` |
66 |
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/lib\/libtsocks.so \?//'` |
67 |
if [ -z "$LD_PRELOAD" ] |
68 |
then |
69 |
unset LD_PRELOAD |
70 |
@@ -68,10 +68,10 @@ |
71 |
*) |
72 |
if [ -z "$LD_PRELOAD" ] |
73 |
then |
74 |
- export LD_PRELOAD="/usr/lib/libtsocks.so" |
75 |
+ export LD_PRELOAD="/lib/libtsocks.so" |
76 |
else |
77 |
- echo $LD_PRELOAD | grep -q "/usr/lib/libtsocks\.so" || \ |
78 |
- export LD_PRELOAD="/usr/lib/libtsocks.so $LD_PRELOAD" |
79 |
+ echo $LD_PRELOAD | grep -q "/lib/libtsocks\.so" || \ |
80 |
+ export LD_PRELOAD="/lib/libtsocks.so $LD_PRELOAD" |
81 |
fi |
82 |
|
83 |
if [ $# = 0 ] |
84 |
diff -Nru tsocks-1.8.orig/tsocks.8 tsocks-1.8/tsocks.8 |
85 |
--- tsocks-1.8.orig/tsocks.8 2002-03-16 11:20:51.000000000 +0100 |
86 |
+++ tsocks-1.8/tsocks.8 2009-06-20 13:56:38.000000000 +0200 |
87 |
@@ -127,8 +127,8 @@ |
88 |
libtsocks in /etc/ld.so.preload. Please make sure you correctly enter the |
89 |
full path to the library in this file if you do this. If you get it wrong, |
90 |
you will be UNABLE TO DO ANYTHING with the machine and will have to boot |
91 |
-it with a rescue disk and remove the file (or try the saveme program, see |
92 |
-the INSTALL file for more info). THIS IS A ***WARNING***, please be |
93 |
+it with a rescue disk and remove the file (or try the tsocks-saveme program, |
94 |
+simply unlinks /etc/ld.so.preload ). THIS IS A ***WARNING***, please be |
95 |
careful. Also be sure the library is in the root filesystem as all hell |
96 |
will break loose if the directory it is in is not available at boot time. |
97 |
|
98 |
diff -Nru tsocks-1.8.orig/tsocks.conf.5 tsocks-1.8/tsocks.conf.5 |
99 |
--- tsocks-1.8.orig/tsocks.conf.5 2002-05-18 04:13:08.000000000 +0200 |
100 |
+++ tsocks-1.8/tsocks.conf.5 2009-06-20 13:56:38.000000000 +0200 |
101 |
@@ -139,21 +139,20 @@ |
102 |
the version that server supports. |
103 |
|
104 |
.TP |
105 |
-validateconf |
106 |
-validateconf can be used to verify the configuration file. It checks the format |
107 |
-of the file and also the contents for errors. Having read the file it dumps |
108 |
-the configuration to the screen in a formatted, readable manner. This can be |
109 |
-extremely useful in debugging problems. |
110 |
- |
111 |
-validateconf can read a configuration file from a location other than the |
112 |
-location specified at compile time with the -f <filename> command line |
113 |
-option. |
114 |
- |
115 |
-Normally validateconf simply dumps the configuration read to the screen (in |
116 |
-a nicely readable format), however it also has a useful 'test' mode. When |
117 |
-passed a hostname/ip on the command line like -t <hostname/ip>, validateconf |
118 |
-determines which of the SOCKS servers specified in the configuration file |
119 |
-would be used by tsocks to access the specified host. |
120 |
+tsocks-validateconf |
121 |
+tsocks-validateconf can be used to verify the configuration file. It checks |
122 |
+the format of the file and also the contents for errors. Having read the file |
123 |
+it dumps the configuration to the screen in a formatted, readable manner. |
124 |
+This can be extremely useful in debugging problems. |
125 |
+ |
126 |
+tsocks-validateconf can read a configuration file from a location other than the |
127 |
+location specified at compile time with the -f <filename> command line option. |
128 |
+ |
129 |
+Normally tsocks-validateconf simply dumps the configuration read to the screen |
130 |
+(in a nicely readable format), however it also has a useful 'test' mode. When |
131 |
+passed a hostname/ip on the command line like -t <hostname/ip>, |
132 |
+tsocks-validateconf determines which of the SOCKS servers specified in the |
133 |
+configuration file would be used by tsocks to access the specified host. |
134 |
|
135 |
.SH SEE ALSO |
136 |
tsocks(8) |
137 |
diff -Nru tsocks-1.8.orig/validateconf.c tsocks-1.8/validateconf.c |
138 |
--- tsocks-1.8.orig/validateconf.c 2002-02-07 11:49:59.000000000 +0100 |
139 |
+++ tsocks-1.8/validateconf.c 2009-06-20 13:56:38.000000000 +0200 |
140 |
@@ -23,7 +23,7 @@ |
141 |
*/ |
142 |
|
143 |
/* Global configuration variables */ |
144 |
-char *progname = "validateconf"; /* Name for error msgs */ |
145 |
+char *progname = "tsocks-validateconf"; /* Name for error msgs */ |
146 |
|
147 |
/* Header Files */ |
148 |
#include <config.h> |