1 |
jer 14/07/05 17:19:54 |
2 |
|
3 |
Modified: nsat-1.5-lvalue-gcc4.patch nsat-1.5-configure.patch |
4 |
nsat-1.5-strip.patch nsat-1.5-amd64-compat.patch |
5 |
Added: nsat-1.5-misc.patch |
6 |
Log: |
7 |
Use dev-libs/libmix instead of bundled libmix++. Fix parallel make issues. Combine sed scripts into patch. Clean up patches. |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613) |
10 |
|
11 |
Revision Changes Path |
12 |
1.2 net-analyzer/nsat/files/nsat-1.5-lvalue-gcc4.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-lvalue-gcc4.patch?rev=1.2&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-lvalue-gcc4.patch?rev=1.2&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-lvalue-gcc4.patch?r1=1.1&r2=1.2 |
17 |
|
18 |
Index: nsat-1.5-lvalue-gcc4.patch |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-lvalue-gcc4.patch,v |
21 |
retrieving revision 1.1 |
22 |
retrieving revision 1.2 |
23 |
diff -u -r1.1 -r1.2 |
24 |
--- nsat-1.5-lvalue-gcc4.patch 19 Apr 2006 00:31:08 -0000 1.1 |
25 |
+++ nsat-1.5-lvalue-gcc4.patch 5 Jul 2014 17:19:54 -0000 1.2 |
26 |
@@ -1,6 +1,5 @@ |
27 |
-diff -Naur nsat.old/src/smb/ADMsmb.c nsat/src/smb/ADMsmb.c |
28 |
---- nsat.old/src/smb/ADMsmb.c 2006-03-31 01:51:26.000000000 -0500 |
29 |
-+++ nsat/src/smb/ADMsmb.c 2006-03-31 01:52:27.000000000 -0500 |
30 |
+--- a/src/smb/ADMsmb.c |
31 |
++++ b/src/smb/ADMsmb.c |
32 |
@@ -123,7 +123,7 @@ |
33 |
{ |
34 |
usleep (100000); |
35 |
|
36 |
|
37 |
|
38 |
1.3 net-analyzer/nsat/files/nsat-1.5-configure.patch |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-configure.patch?rev=1.3&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-configure.patch?rev=1.3&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-configure.patch?r1=1.2&r2=1.3 |
43 |
|
44 |
Index: nsat-1.5-configure.patch |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-configure.patch,v |
47 |
retrieving revision 1.2 |
48 |
retrieving revision 1.3 |
49 |
diff -u -r1.2 -r1.3 |
50 |
--- nsat-1.5-configure.patch 15 Jan 2009 07:04:29 -0000 1.2 |
51 |
+++ nsat-1.5-configure.patch 5 Jul 2014 17:19:54 -0000 1.3 |
52 |
@@ -1,5 +1,5 @@ |
53 |
---- nsat/configure.in.orig 2003-01-05 22:47:13.000000000 +0100 |
54 |
-+++ nsat/configure.in 2009-01-15 07:56:35.000000000 +0100 |
55 |
+--- a/configure.in |
56 |
++++ b/configure.in |
57 |
@@ -15,7 +15,6 @@ |
58 |
else |
59 |
AC_MSG_RESULT(crappy :P) |
60 |
|
61 |
|
62 |
|
63 |
1.2 net-analyzer/nsat/files/nsat-1.5-strip.patch |
64 |
|
65 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-strip.patch?rev=1.2&view=markup |
66 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-strip.patch?rev=1.2&content-type=text/plain |
67 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-strip.patch?r1=1.1&r2=1.2 |
68 |
|
69 |
Index: nsat-1.5-strip.patch |
70 |
=================================================================== |
71 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-strip.patch,v |
72 |
retrieving revision 1.1 |
73 |
retrieving revision 1.2 |
74 |
diff -u -r1.1 -r1.2 |
75 |
--- nsat-1.5-strip.patch 15 Jan 2009 07:04:29 -0000 1.1 |
76 |
+++ nsat-1.5-strip.patch 5 Jul 2014 17:19:54 -0000 1.2 |
77 |
@@ -1,5 +1,5 @@ |
78 |
---- nsat/src/Makefile.in.orig 2002-04-26 08:45:38.000000000 +0200 |
79 |
-+++ nsat/src/Makefile.in 2009-01-15 07:44:11.000000000 +0100 |
80 |
+--- a/src/Makefile.in |
81 |
++++ b/src/Makefile.in |
82 |
@@ -37,7 +37,6 @@ |
83 |
|
84 |
../nsat: |
85 |
|
86 |
|
87 |
|
88 |
1.2 net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch |
89 |
|
90 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch?rev=1.2&view=markup |
91 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch?rev=1.2&content-type=text/plain |
92 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch?r1=1.1&r2=1.2 |
93 |
|
94 |
Index: nsat-1.5-amd64-compat.patch |
95 |
=================================================================== |
96 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-amd64-compat.patch,v |
97 |
retrieving revision 1.1 |
98 |
retrieving revision 1.2 |
99 |
diff -u -r1.1 -r1.2 |
100 |
--- nsat-1.5-amd64-compat.patch 25 Sep 2012 18:30:48 -0000 1.1 |
101 |
+++ nsat-1.5-amd64-compat.patch 5 Jul 2014 17:19:54 -0000 1.2 |
102 |
@@ -1,5 +1,5 @@ |
103 |
---- nsat/src/mod/xp_icmp_echo.c.orig 2002-02-07 20:14:20.000000000 +0300 |
104 |
-+++ nsat/src/mod/xp_icmp_echo.c 2011-11-07 00:57:48.885372644 +0400 |
105 |
+--- a/src/mod/xp_icmp_echo.c |
106 |
++++ b/src/mod/xp_icmp_echo.c |
107 |
@@ -90,7 +90,7 @@ |
108 |
fprintf(stderr,"[%d bytes] sent, waiting for reponse.\n", res); |
109 |
#endif |
110 |
@@ -9,8 +9,8 @@ |
111 |
|
112 |
if (recv_pack == NULL || (unsigned)res < sizeof(ip) + 8) { |
113 |
#ifdef EBUG |
114 |
---- nsat/src/mod/xp_icmp_infr.c.orig 2002-02-07 20:14:20.000000000 +0300 |
115 |
-+++ nsat/src/mod/xp_icmp_infr.c 2011-11-07 01:09:43.192287799 +0400 |
116 |
+--- a/src/mod/xp_icmp_infr.c |
117 |
++++ b/src/mod/xp_icmp_infr.c |
118 |
@@ -83,7 +83,7 @@ |
119 |
fprintf(stderr,"[%d bytes] sent, waiting for reponse.\n", res); |
120 |
#endif |
121 |
@@ -20,8 +20,8 @@ |
122 |
|
123 |
if (recv_pack == NULL || (unsigned)res < sizeof(ip) + 8) { |
124 |
#ifdef EBUG |
125 |
---- nsat/src/mod/xp_udp_probe.c.orig 2011-11-07 01:05:26.000000000 +0400 |
126 |
-+++ nsat/src/mod/xp_udp_probe.c 2011-11-07 01:05:48.403407231 +0400 |
127 |
+--- a/src/mod/xp_udp_probe.c |
128 |
++++ b/src/mod/xp_udp_probe.c |
129 |
@@ -92,7 +92,7 @@ |
130 |
#ifdef EBUG |
131 |
fprintf(stderr,"[%d bytes] sent, waiting for reponse.\n", res); |
132 |
|
133 |
|
134 |
|
135 |
1.1 net-analyzer/nsat/files/nsat-1.5-misc.patch |
136 |
|
137 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-misc.patch?rev=1.1&view=markup |
138 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/nsat/files/nsat-1.5-misc.patch?rev=1.1&content-type=text/plain |
139 |
|
140 |
Index: nsat-1.5-misc.patch |
141 |
=================================================================== |
142 |
* link against dev-libs/libmix |
143 |
* parallel $(MAKE) |
144 |
* usr/local/ -> usr/ |
145 |
* LDFLAGS |
146 |
* verbose CC |
147 |
|
148 |
--- a/Makefile.in |
149 |
+++ b/Makefile.in |
150 |
@@ -7,14 +7,14 @@ |
151 |
# # #### # # # |
152 |
|
153 |
# Change me if you want... |
154 |
-INSTALL_PATH=/usr/local/bin |
155 |
-MAN_PATH=/usr/local/man |
156 |
+INSTALL_PATH=/usr/bin |
157 |
+MAN_PATH=/usr/man |
158 |
|
159 |
# If you change this, change src/lang.h as well |
160 |
-DATA_PATH=/usr/local/share/nsat |
161 |
+DATA_PATH=/usr/share/nsat |
162 |
|
163 |
all: |
164 |
- @cd src;make all |
165 |
+ @cd src; $(MAKE) all |
166 |
@echo "" |
167 |
@echo " Compiling is done!" |
168 |
@echo " You can now 'make install' to put the files in place." |
169 |
@@ -58,5 +58,5 @@ |
170 |
doc/nsat.8: |
171 |
@echo "Hmm, can't find manpage -- skipping :/" |
172 |
|
173 |
-nsat: |
174 |
- @make all |
175 |
+nsat: src |
176 |
+ $(MAKE) all |
177 |
--- a/src/Makefile.in |
178 |
+++ b/src/Makefile.in |
179 |
@@ -21,22 +21,22 @@ |
180 |
|
181 |
MIXOBJ = libmix++/net/net.o libmix++/misc/misc.o libmix++/misc/exclude.o |
182 |
|
183 |
-all: ../smb-ns $(OBJ) modobj mixobj ../nsat |
184 |
+all: ../smb-ns $(OBJ) modobj ../nsat |
185 |
|
186 |
../smb-ns: |
187 |
- @cd smb ; make smb |
188 |
+ @cd smb ; $(MAKE) smb |
189 |
|
190 |
-mixobj: libmix++/Makefile |
191 |
- @cd libmix++ ; make |
192 |
+#mixobj: libmix++/Makefile |
193 |
+# @cd libmix++ ; $(MAKE) |
194 |
|
195 |
-libmix++/Makefile: |
196 |
- @cd .. ; ./configure |
197 |
+#libmix++/Makefile: |
198 |
+# @cd .. ; ./configure |
199 |
|
200 |
modobj: |
201 |
- @cd mod ; make modobj |
202 |
+ @cd mod ; $(MAKE) modobj |
203 |
|
204 |
-../nsat: |
205 |
- ${GPP} ${CFLAGS} ${OBJ} ${MODOBJ} ${MIXOBJ} -o ../nsat ${CLIB} |
206 |
+../nsat: modobj |
207 |
+ ${GPP} ${CFLAGS} ${LDFLAGS} ${OBJ} ${MODOBJ} ${MIXOBJ} -o ../nsat ${CLIB} |
208 |
|
209 |
pidalloc.o: |
210 |
${GPP} ${CFLAGS} -c pidalloc.cpp |
211 |
@@ -63,11 +63,11 @@ |
212 |
${GPP} ${CFLAGS} -c Logging.cpp |
213 |
|
214 |
clean: |
215 |
- cd mod && make clean |
216 |
+ cd mod && $(MAKE) clean |
217 |
rm -f core *.o ../*.log *.log *~ ../nsat ../.nsrc ../.nspid |
218 |
|
219 |
distclean: clean |
220 |
- @cd mod ; make clean |
221 |
- @cd smb ; make clean |
222 |
- @cd libmix++ ; make clean |
223 |
+ @cd mod ; $(MAKE) clean |
224 |
+ @cd smb ; $(MAKE) clean |
225 |
+ @cd libmix++ ; $(MAKE) clean |
226 |
rm -f mod/Makefile Makefile |
227 |
--- a/src/smb/Makefile.in |
228 |
+++ b/src/smb/Makefile.in |
229 |
@@ -11,7 +11,6 @@ |
230 |
LIBDIR = $(BASEDIR)/lib |
231 |
VARDIR = $(BASEDIR)/var |
232 |
INSTALLPERMS = 0755 |
233 |
-FLAGS1 = -O3 |
234 |
LIBS1 = |
235 |
SHELL = /bin/sh |
236 |
srcdir = ./ |
237 |
@@ -53,10 +52,10 @@ |
238 |
.SUFFIXES: .c .o .h |
239 |
|
240 |
.c.o: $(INCLUDES) |
241 |
- @$(CC) $(CFLAGS) -c $(srcdir)$*.c -o $(srcdir)$*.o |
242 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -c $(srcdir)$*.c -o $(srcdir)$*.o |
243 |
|
244 |
smb: msg $(CLIENT_OBJ) $(ARCFOUR_OBJ) |
245 |
- @$(CC) $(CFLAGS) -o $(BINARY) $(CLIENT_OBJ) $(ARCFOUR_OBJ) $(LIBS) |
246 |
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINARY) $(CLIENT_OBJ) $(ARCFOUR_OBJ) $(LIBS) |
247 |
@echo done |
248 |
|
249 |
msg: |