Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/libnet/files: 1.0.2a-slot.patch 1.0.2a-endian.patch
Date: Sat, 28 Apr 2012 16:59:21
Message-Id: 20120428165910.B7F7C2004B@flycatcher.gentoo.org
1 jer 12/04/28 16:59:10
2
3 Modified: 1.0.2a-slot.patch
4 Added: 1.0.2a-endian.patch
5 Log:
6 Apply endian patch by Christopher Friedt (bug #275885). Clean up patch. Respect CFLAGS.
7
8 (Portage version: 2.2.0_alpha101/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 net-libs/libnet/files/1.0.2a-slot.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libnet/files/1.0.2a-slot.patch?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libnet/files/1.0.2a-slot.patch?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libnet/files/1.0.2a-slot.patch?r1=1.2&r2=1.3
16
17 Index: 1.0.2a-slot.patch
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/libnet/files/1.0.2a-slot.patch,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- 1.0.2a-slot.patch 11 Jan 2005 14:10:22 -0000 1.2
24 +++ 1.0.2a-slot.patch 28 Apr 2012 16:59:10 -0000 1.3
25 @@ -1,6 +1,5 @@
26 -diff -ur Libnet-1.0.2a.orig/Makefile.in Libnet-1.0.2a/Makefile.in
27 ---- Libnet-1.0.2a.orig/Makefile.in 2003-08-17 23:53:14.000000000 -0400
28 -+++ Libnet-1.0.2a/Makefile.in 2003-08-18 00:10:28.810521400 -0400
29 +--- a/Makefile.in
30 ++++ b/Makefile.in
31 @@ -18,17 +18,17 @@
32 LIB_PREFIX = @libdir@/
33 MAN_PREFIX = @MAN_PREFIX@
34 @@ -63,9 +62,8 @@
35 + version.h support/bpf-lkm/etherspoof conftest* libnet-1.0-config
36
37 # EOF
38 -diff -ur Libnet-1.0.2a.orig/configure.in Libnet-1.0.2a/configure.in
39 ---- Libnet-1.0.2a.orig/configure.in 2003-08-17 23:53:14.000000000 -0400
40 -+++ Libnet-1.0.2a/configure.in 2003-08-17 23:54:35.000000000 -0400
41 +--- a/configure.in
42 ++++ b/configure.in
43 @@ -261,6 +261,6 @@
44 AC_OUTPUT(Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
45 test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
46 @@ -74,9 +72,8 @@
47 + libnet-1.0-config, chmod +x libnet-1.0-config)
48
49 dnl EOF
50 -diff -ur Libnet-1.0.2a.orig/include/libnet.h Libnet-1.0.2a/include/libnet.h
51 ---- Libnet-1.0.2a.orig/include/libnet.h 2003-08-17 23:53:14.000000000 -0400
52 -+++ Libnet-1.0.2a/include/libnet.h 2003-08-18 00:01:38.000000000 -0400
53 +--- a/include/libnet.h
54 ++++ b/include/libnet.h
55 @@ -74,12 +74,12 @@
56 #include <errno.h>
57 #include <assert.h>
58 @@ -96,9 +93,8 @@
59
60 #define LIBNET_VERSION "1.0.2a"
61
62 -diff -ur Libnet-1.0.2a.orig/libnet-config.in Libnet-1.0.2a/libnet-config.in
63 ---- Libnet-1.0.2a.orig/libnet-config.in 2003-08-17 23:53:14.000000000 -0400
64 -+++ Libnet-1.0.2a/libnet-config.in 2003-08-17 23:54:53.000000000 -0400
65 +--- a/libnet-config.in
66 ++++ b/libnet-config.in
67 @@ -9,12 +9,12 @@
68
69 libnet_defines="@LIBNET_CONFIG_DEFINES@"
70 @@ -114,9 +110,8 @@
71 Options:
72 [--libs]
73 [--cflags]
74 -Only in Libnet-1.0.2a/support/bpf-lkm/OpenBSD: OpenBSD
75 ---- Libnet-1.0.2a/test/Ethernet/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
76 -+++ Libnet-1.0.2a/test/Ethernet/Makefile.in 2005-01-11 23:32:08.825695008 +0930
77 +--- a/test/Ethernet/Makefile.in
78 ++++ b/test/Ethernet/Makefile.in
79 @@ -10,7 +10,7 @@
80 CFLAGS = @CFLAGS@
81 OBJECTS = arp.o tcp.o icmp_mask.o get_address.o poink.o
82 @@ -126,8 +121,8 @@
83
84 .c.o:
85 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
86 ---- Libnet-1.0.2a/test/ICMP/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
87 -+++ Libnet-1.0.2a/test/ICMP/Makefile.in 2005-01-11 23:32:08.826694856 +0930
88 +--- a/test/ICMP/Makefile.in
89 ++++ b/test/ICMP/Makefile.in
90 @@ -15,7 +15,7 @@
91 ping_of_death.o
92
93 @@ -137,8 +132,8 @@
94
95 .c.o:
96 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
97 ---- Libnet-1.0.2a/test/IP/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
98 -+++ Libnet-1.0.2a/test/IP/Makefile.in 2005-01-11 23:32:08.826694856 +0930
99 +--- a/test/IP/Makefile.in
100 ++++ b/test/IP/Makefile.in
101 @@ -10,7 +10,7 @@
102 OBJECTS =
103
104 @@ -148,8 +143,8 @@
105
106 .c.o:
107 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
108 ---- Libnet-1.0.2a/test/OSPF/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
109 -+++ Libnet-1.0.2a/test/OSPF/Makefile.in 2005-01-11 23:32:08.826694856 +0930
110 +--- a/test/OSPF/Makefile.in
111 ++++ b/test/OSPF/Makefile.in
112 @@ -12,7 +12,7 @@
113 ospf_request.o \
114
115 @@ -159,8 +154,8 @@
116
117 .c.o:
118 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
119 ---- Libnet-1.0.2a/test/Random/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
120 -+++ Libnet-1.0.2a/test/Random/Makefile.in 2005-01-11 23:32:08.826694856 +0930
121 +--- a/test/Random/Makefile.in
122 ++++ b/test/Random/Makefile.in
123 @@ -9,7 +9,7 @@
124 CFLAGS = @CFLAGS@
125 OBJECTS = prand_trials.o
126 @@ -170,8 +165,8 @@
127
128 .c.o:
129 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
130 ---- Libnet-1.0.2a/test/TCP/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
131 -+++ Libnet-1.0.2a/test/TCP/Makefile.in 2005-01-11 23:32:08.826694856 +0930
132 +--- a/test/TCP/Makefile.in
133 ++++ b/test/TCP/Makefile.in
134 @@ -13,7 +13,7 @@
135 tcp+data+ipopt.o
136
137 @@ -181,8 +176,8 @@
138
139 .c.o:
140 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@
141 ---- Libnet-1.0.2a/test/UDP/Makefile.in.orig 2000-05-25 09:58:49.000000000 +0930
142 -+++ Libnet-1.0.2a/test/UDP/Makefile.in 2005-01-11 23:32:08.827694704 +0930
143 +--- a/test/UDP/Makefile.in
144 ++++ b/test/UDP/Makefile.in
145 @@ -11,7 +11,7 @@
146 udp+data.o
147
148
149
150
151 1.1 net-libs/libnet/files/1.0.2a-endian.patch
152
153 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libnet/files/1.0.2a-endian.patch?rev=1.1&view=markup
154 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libnet/files/1.0.2a-endian.patch?rev=1.1&content-type=text/plain
155
156 Index: 1.0.2a-endian.patch
157 ===================================================================
158 --- a/include/libnet.h
159 +++ b/include/libnet.h
160 @@ -32,6 +32,17 @@
161 #ifndef __LIBNET_H
162 #define __LIBNET_H
163
164 +#include <endian.h>
165 +#if __BYTE_ORDER == __LITTLE_ENDIAN
166 +# define LIBNET_LIL_ENDIAN 1
167 +#else
168 +# if __BYTE_ORDER == __BIG_ENDIAN
169 +# define LIBNET_BIG_ENDIAN 1
170 +# else
171 +# error unrecognized __BYTE_ORDER
172 +# endif
173 +#endif
174 +
175 #include <stdio.h>
176 #include <string.h>
177 #include <unistd.h>