1 |
mrness 10/09/29 22:54:58 |
2 |
|
3 |
Added: openswan-2.6.29-gentoo.patch |
4 |
Log: |
5 |
Version bump. |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-misc/openswan/files/openswan-2.6.29-gentoo.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/files/openswan-2.6.29-gentoo.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openswan/files/openswan-2.6.29-gentoo.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: openswan-2.6.29-gentoo.patch |
15 |
=================================================================== |
16 |
diff -Nru openswan-2.6.29.orig/lib/libcrypto/libmd5/Makefile openswan-2.6.29/lib/libcrypto/libmd5/Makefile |
17 |
--- openswan-2.6.29.orig/lib/libcrypto/libmd5/Makefile 2010-09-27 18:40:32.000000000 +0200 |
18 |
+++ openswan-2.6.29/lib/libcrypto/libmd5/Makefile 2010-09-30 00:31:01.000000000 +0200 |
19 |
@@ -12,7 +12,7 @@ |
20 |
|
21 |
ifeq ($(USE_LIBNSS),true) |
22 |
CFLAGS+=-DHAVE_LIBNSS |
23 |
-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3 |
24 |
+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss |
25 |
endif |
26 |
|
27 |
include ${srcdir}../../Makefile.library |
28 |
diff -Nru openswan-2.6.29.orig/lib/libcrypto/libsha1/Makefile openswan-2.6.29/lib/libcrypto/libsha1/Makefile |
29 |
--- openswan-2.6.29.orig/lib/libcrypto/libsha1/Makefile 2010-09-27 18:40:32.000000000 +0200 |
30 |
+++ openswan-2.6.29/lib/libcrypto/libsha1/Makefile 2010-09-30 00:31:01.000000000 +0200 |
31 |
@@ -12,7 +12,7 @@ |
32 |
|
33 |
ifeq ($(USE_LIBNSS),true) |
34 |
CFLAGS+=-DHAVE_LIBNSS |
35 |
-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3 |
36 |
+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss |
37 |
endif |
38 |
|
39 |
|
40 |
diff -Nru openswan-2.6.29.orig/lib/libcrypto/libsha2/Makefile openswan-2.6.29/lib/libcrypto/libsha2/Makefile |
41 |
--- openswan-2.6.29.orig/lib/libcrypto/libsha2/Makefile 2010-09-27 18:40:32.000000000 +0200 |
42 |
+++ openswan-2.6.29/lib/libcrypto/libsha2/Makefile 2010-09-30 00:31:01.000000000 +0200 |
43 |
@@ -15,5 +15,5 @@ |
44 |
|
45 |
ifeq ($(USE_LIBNSS),true) |
46 |
CFLAGS+=-DHAVE_LIBNSS |
47 |
-INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3 |
48 |
+INCLUDES+=-I/usr/include/nspr -I/usr/include/nss |
49 |
endif |
50 |
diff -Nru openswan-2.6.29.orig/lib/libdns/Makefile openswan-2.6.29/lib/libdns/Makefile |
51 |
--- openswan-2.6.29.orig/lib/libdns/Makefile 2010-09-27 18:40:32.000000000 +0200 |
52 |
+++ openswan-2.6.29/lib/libdns/Makefile 2010-09-30 00:31:01.000000000 +0200 |
53 |
@@ -30,8 +30,8 @@ |
54 |
-I${srcdir}../libisc/nothreads/include \ |
55 |
-I. -I./include -I${srcdir}include \ |
56 |
-I${srcdir}../libisc/include |
57 |
-CDEFINES = -g ${USERCOMPILE} ${PORTINCLUDE} |
58 |
-CWARNINGS = -Werror |
59 |
+CDEFINES = ${USERCOMPILE} ${PORTINCLUDE} |
60 |
+CWARNINGS = |
61 |
|
62 |
CFLAGS+=${CINCLUDES} ${CDEFINES} ${CWARNINGS} |
63 |
|
64 |
diff -Nru openswan-2.6.29.orig/lib/libipsecconf/Makefile openswan-2.6.29/lib/libipsecconf/Makefile |
65 |
--- openswan-2.6.29.orig/lib/libipsecconf/Makefile 2010-09-27 18:40:32.000000000 +0200 |
66 |
+++ openswan-2.6.29/lib/libipsecconf/Makefile 2010-09-30 00:31:01.000000000 +0200 |
67 |
@@ -33,7 +33,7 @@ |
68 |
#CFLAGS+=-DFIPS_CHECK |
69 |
ifeq ($(USE_LIBNSS),true) |
70 |
CFLAGS+=-DHAVE_LIBNSS |
71 |
-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3 |
72 |
+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss |
73 |
endif |
74 |
|
75 |
ifeq ($(USE_NM),true) |
76 |
diff -Nru openswan-2.6.29.orig/lib/libisc/Makefile openswan-2.6.29/lib/libisc/Makefile |
77 |
--- openswan-2.6.29.orig/lib/libisc/Makefile 2010-09-27 18:40:32.000000000 +0200 |
78 |
+++ openswan-2.6.29/lib/libisc/Makefile 2010-09-30 00:31:01.000000000 +0200 |
79 |
@@ -22,8 +22,8 @@ |
80 |
-I${srcdir}nothreads/include \ |
81 |
-I. -I./include -I${srcdir}include \ |
82 |
$(PORTINCLUDE) -I${OPENSWANSRCDIR}/include |
83 |
-CDEFINES = -g -DHAVE_STRERROR ${USERCOMPILE} ${PORTINCLUDE} |
84 |
-# CWARNINGS = -Werror |
85 |
+CDEFINES = -DHAVE_STRERROR ${USERCOMPILE} ${PORTINCLUDE} |
86 |
+# CWARNINGS = |
87 |
|
88 |
CFLAGS+=${CINCLUDES} ${CDEFINES} ${CWARNINGS} |
89 |
|
90 |
diff -Nru openswan-2.6.29.orig/lib/liblwres/Makefile openswan-2.6.29/lib/liblwres/Makefile |
91 |
--- openswan-2.6.29.orig/lib/liblwres/Makefile 2010-09-27 18:40:32.000000000 +0200 |
92 |
+++ openswan-2.6.29/lib/liblwres/Makefile 2010-09-30 00:31:01.000000000 +0200 |
93 |
@@ -22,8 +22,8 @@ |
94 |
-I${srcdir}../libisc/${ISCARCH}/include \ |
95 |
-I${srcdir}../libisc/include \ |
96 |
-I. -I./include -I${srcdir}include |
97 |
-CDEFINES = -g |
98 |
-CWARNINGS = -Werror |
99 |
+CDEFINES = |
100 |
+CWARNINGS = |
101 |
|
102 |
CFLAGS+=${USERCOMPILE} ${PORTINCLUDE} ${CINCLUDES} ${CDEFINES} ${CWARNINGS} |
103 |
|
104 |
diff -Nru openswan-2.6.29.orig/lib/libopenswan/Makefile openswan-2.6.29/lib/libopenswan/Makefile |
105 |
--- openswan-2.6.29.orig/lib/libopenswan/Makefile 2010-09-27 18:40:32.000000000 +0200 |
106 |
+++ openswan-2.6.29/lib/libopenswan/Makefile 2010-09-30 00:31:01.000000000 +0200 |
107 |
@@ -100,7 +100,7 @@ |
108 |
|
109 |
ifeq ($(USE_LIBNSS),true) |
110 |
CFLAGS+=-DHAVE_LIBNSS |
111 |
-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3 |
112 |
+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss |
113 |
endif |
114 |
|
115 |
ifeq ($(USE_MODP_RFC5114),true) |
116 |
diff -Nru openswan-2.6.29.orig/Makefile.inc openswan-2.6.29/Makefile.inc |
117 |
--- openswan-2.6.29.orig/Makefile.inc 2010-09-27 18:40:32.000000000 +0200 |
118 |
+++ openswan-2.6.29/Makefile.inc 2010-09-30 00:31:01.000000000 +0200 |
119 |
@@ -49,7 +49,7 @@ |
120 |
DESTDIR?= |
121 |
|
122 |
# "local" part of tree, used in building other pathnames |
123 |
-INC_USRLOCAL=/usr/local |
124 |
+INC_USRLOCAL?=/usr |
125 |
|
126 |
# PUBDIR is where the "ipsec" command goes; beware, many things define PATH |
127 |
# settings which are assumed to include it (or at least, to include *some* |
128 |
@@ -94,7 +94,7 @@ |
129 |
|
130 |
# sample configuration files go into |
131 |
INC_DOCDIR?=share/doc |
132 |
-FINALEXAMPLECONFDIR=${INC_USRLOCAL}/${INC_DOCDIR}/openswan |
133 |
+FINALEXAMPLECONFDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/openswan |
134 |
EXAMPLECONFDIR=${DESTDIR}${FINALEXAMPLECONFDIR} |
135 |
|
136 |
FINALDOCDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/openswan |
137 |
diff -Nru openswan-2.6.29.orig/programs/Makefile.program openswan-2.6.29/programs/Makefile.program |
138 |
--- openswan-2.6.29.orig/programs/Makefile.program 2010-09-27 18:40:32.000000000 +0200 |
139 |
+++ openswan-2.6.29/programs/Makefile.program 2010-09-30 00:31:01.000000000 +0200 |
140 |
@@ -53,7 +53,6 @@ |
141 |
WERROR:= -Werror |
142 |
endif |
143 |
|
144 |
-CFLAGS+= ${WERROR} |
145 |
|
146 |
ifneq ($(LD_LIBRARY_PATH),) |
147 |
LDFLAGS=-L$(LD_LIBRARY_PATH) |
148 |
@@ -104,8 +103,6 @@ |
149 |
ifneq ($(NOINSTALL),true) |
150 |
|
151 |
doinstall:: $(PROGRAM) $(CONFFILES) $(EXTRA8MAN) $(EXTRA5MAN) $(EXTRA5PROC) $(LIBFILES) $(CONFDFILES) |
152 |
- # remove any old vendor file installed previously |
153 |
- @rm -f $(FINALLIBEXECDIR)/vendor |
154 |
@mkdir -p $(PROGRAMDIR) $(MANDIR8) $(MANDIR5) $(LIBDIR) $(CONFDIR) $(CONFDDIR) $(CONFDDIR)/$(CONFDSUBDIR) $(EXAMPLECONFDIR) |
155 |
@if [ -n "$(PROGRAM)" ]; then $(INSTALL) $(INSTBINFLAGS) $(PROGRAM) $(PROGRAMDIR); fi |
156 |
@$(foreach f, $(addsuffix .8, $(PROGRAM)), \ |
157 |
@@ -180,6 +177,7 @@ |
158 |
LDLIBS=${LIBS} ${USERLINK} ${LIBS} ${EXTRALIBS} -lgmp |
159 |
else |
160 |
LDLIBS=${LIBS} ${USERLINK} ${LIBS} ${EXTRALIBS} -lgmp -lnspr4 -lnss3 |
161 |
+LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss |
162 |
endif |
163 |
|
164 |
|
165 |
diff -Nru openswan-2.6.29.orig/programs/pluto/Makefile.options openswan-2.6.29/programs/pluto/Makefile.options |
166 |
--- openswan-2.6.29.orig/programs/pluto/Makefile.options 2010-09-27 18:40:32.000000000 +0200 |
167 |
+++ openswan-2.6.29/programs/pluto/Makefile.options 2010-09-30 00:31:01.000000000 +0200 |
168 |
@@ -54,7 +54,7 @@ |
169 |
|
170 |
# Use LIBNSS |
171 |
ifeq ($(USE_LIBNSS),true) |
172 |
-HDRDIRS+= -I/usr/include/nspr4 -I/usr/include/nss3 |
173 |
+HDRDIRS+= -I/usr/include/nspr -I/usr/include/nss |
174 |
endif |
175 |
|
176 |
# BYTE_ORDER = -DBIG_ENDIAN=4321 -DLITTLE_ENDIAN=1234 -DBYTE_ORDER=BIG_ENDIAN |
177 |
@@ -309,6 +309,7 @@ |
178 |
DEFINES+=-DHAVE_LIBNSS |
179 |
LIBSPLUTO+= -lnspr4 |
180 |
LIBSPLUTO+= -lnss3 |
181 |
+LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss |
182 |
# For avoiding implicit DSO linking |
183 |
LIBSPLUTO+= -lpthread |
184 |
ifeq ($(USE_FIPSCHECK),true) |
185 |
diff -Nru openswan-2.6.29.orig/programs/rsasigkey/Makefile openswan-2.6.29/programs/rsasigkey/Makefile |
186 |
--- openswan-2.6.29.orig/programs/rsasigkey/Makefile 2010-09-27 18:40:32.000000000 +0200 |
187 |
+++ openswan-2.6.29/programs/rsasigkey/Makefile 2010-09-30 00:31:01.000000000 +0200 |
188 |
@@ -21,13 +21,14 @@ |
189 |
FIPS_CHECK=1 |
190 |
CFLAGS+=-DFIPS_CHECK |
191 |
endif |
192 |
-INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3 |
193 |
+INCLUDES+=-I/usr/include/nspr -I/usr/include/nss |
194 |
endif |
195 |
|
196 |
PROGRAM=rsasigkey |
197 |
LIBS=${OPENSWANLIB} -lgmp |
198 |
ifeq ($(USE_LIBNSS),true) |
199 |
LIBS+= -lnspr4 -lnss3 -lplc4 |
200 |
+LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss |
201 |
ifeq ($(USE_FIPSCHECK),true) |
202 |
LIBS+= -lfipscheck |
203 |
endif |
204 |
diff -Nru openswan-2.6.29.orig/programs/setup/Makefile openswan-2.6.29/programs/setup/Makefile |
205 |
--- openswan-2.6.29.orig/programs/setup/Makefile 2010-09-27 18:40:32.000000000 +0200 |
206 |
+++ openswan-2.6.29/programs/setup/Makefile 2010-09-30 00:31:49.000000000 +0200 |
207 |
@@ -18,7 +18,6 @@ |
208 |
|
209 |
# this dance is because setup has to get installed as /etc/rc.d/init.d/ipsec |
210 |
# not as /etc/rc.d/init.d/setup. |
211 |
-PROGRAMDIR=$(RCDIR) |
212 |
PROGRAM=setup |
213 |
EXTRA8MAN=setup.8 |
214 |
|
215 |
@@ -29,30 +28,4 @@ |
216 |
# into the $BINDIR. |
217 |
# |
218 |
# the priorities match those in setup's chkconfig line |
219 |
-doinstall:: setup |
220 |
- @rm -f $(BINDIR)/setup |
221 |
- @$(INSTALL) $(INSTBINFLAGS) setup $(RCDIR)/ipsec |
222 |
- @ln -s $(FINALRCDIR)/ipsec $(BINDIR)/setup |
223 |
- -@for i in 0 1 2 3 4 5 6; do mkdir -p $(RCDIR)/../rc$$i.d; done |
224 |
- -@cd $(RCDIR)/../rc0.d && ln -f -s ../init.d/ipsec K76ipsec |
225 |
- -@cd $(RCDIR)/../rc1.d && ln -f -s ../init.d/ipsec K76ipsec |
226 |
- -@cd $(RCDIR)/../rc2.d && ln -f -s ../init.d/ipsec S47ipsec |
227 |
- -@cd $(RCDIR)/../rc3.d && ln -f -s ../init.d/ipsec S47ipsec |
228 |
- -@cd $(RCDIR)/../rc4.d && ln -f -s ../init.d/ipsec S47ipsec |
229 |
- -@cd $(RCDIR)/../rc5.d && ln -f -s ../init.d/ipsec S47ipsec |
230 |
- -@cd $(RCDIR)/../rc6.d && ln -f -s ../init.d/ipsec K76ipsec |
231 |
- |
232 |
-install_file_list:: |
233 |
- @echo $(RCDIR)/ipsec |
234 |
- @echo $(BINDIR)/setup |
235 |
- @echo $(RCDIR)/../rc0.d/K76ipsec |
236 |
- @echo $(RCDIR)/../rc1.d/K76ipsec |
237 |
- @echo $(RCDIR)/../rc2.d/S47ipsec |
238 |
- @echo $(RCDIR)/../rc3.d/S47ipsec |
239 |
- @echo $(RCDIR)/../rc4.d/S47ipsec |
240 |
- @echo $(RCDIR)/../rc5.d/S47ipsec |
241 |
- @echo $(RCDIR)/../rc6.d/K76ipsec |
242 |
- |
243 |
-cleanall:: |
244 |
- @rm -f setup |
245 |
|
246 |
diff -Nru openswan-2.6.29.orig/programs/showhostkey/Makefile openswan-2.6.29/programs/showhostkey/Makefile |
247 |
--- openswan-2.6.29.orig/programs/showhostkey/Makefile 2010-09-27 18:40:32.000000000 +0200 |
248 |
+++ openswan-2.6.29/programs/showhostkey/Makefile 2010-09-30 00:31:01.000000000 +0200 |
249 |
@@ -16,7 +16,7 @@ |
250 |
include ${OPENSWANSRCDIR}/Makefile.inc |
251 |
ifeq ($(USE_LIBNSS),true) |
252 |
CFLAGS+=-DHAVE_LIBNSS |
253 |
-INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3 |
254 |
+INCLUDES+=-I/usr/include/nspr -I/usr/include/nss |
255 |
endif |
256 |
|
257 |
PROGRAM=showhostkey |
258 |
diff -Nru openswan-2.6.29.orig/testing/utils/make-uml.sh openswan-2.6.29/testing/utils/make-uml.sh |
259 |
--- openswan-2.6.29.orig/testing/utils/make-uml.sh 2010-09-27 18:40:32.000000000 +0200 |
260 |
+++ openswan-2.6.29/testing/utils/make-uml.sh 2010-09-30 00:31:01.000000000 +0200 |
261 |
@@ -262,7 +262,7 @@ |
262 |
|
263 |
cd $OPENSWANSRCDIR || exit 1 |
264 |
|
265 |
-make WERROR=-Werror USE_OBJDIR=true programs |
266 |
+make USE_OBJDIR=true programs |
267 |
|
268 |
# now, execute the Makefile that we have created! |
269 |
cd $POOLSPACE && make $OPENSWANHOSTS |