summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2010-11-27 12:32:18 +0000
committerAlin Năstac <mrness@gentoo.org>2010-11-27 12:32:18 +0000
commitabd8221d10f111c9d5d8edb2a317bda5558f4614 (patch)
treedfd83dad4373f15d059684719a69af1389b1edd2 /net-misc
parentalpha/arm/ia64/m68k/s390/sh/sparc stable wrt #346819 (diff)
downloadhistorical-abd8221d10f111c9d5d8edb2a317bda5558f4614.tar.gz
historical-abd8221d10f111c9d5d8edb2a317bda5558f4614.tar.bz2
historical-abd8221d10f111c9d5d8edb2a317bda5558f4614.zip
Fix multilib-strict checks (#344735).
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/openswan/ChangeLog9
-rw-r--r--net-misc/openswan/Manifest14
-rw-r--r--net-misc/openswan/files/openswan-2.6.28-gentoo.patch256
-rw-r--r--net-misc/openswan/files/openswan-2.6.31-gentoo.patch253
-rw-r--r--net-misc/openswan/openswan-2.6.31.ebuild (renamed from net-misc/openswan/openswan-2.6.28.ebuild)3
5 files changed, 270 insertions, 265 deletions
diff --git a/net-misc/openswan/ChangeLog b/net-misc/openswan/ChangeLog
index e5113cbe11f8..0be11b8d020b 100644
--- a/net-misc/openswan/ChangeLog
+++ b/net-misc/openswan/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/openswan
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.74 2010/09/29 22:54:58 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.75 2010/11/27 12:32:18 mrness Exp $
+
+*openswan-2.6.31 (27 Nov 2010)
+
+ 27 Nov 2010; Alin Năstac <mrness@gentoo.org> -openswan-2.6.28.ebuild,
+ -files/openswan-2.6.28-gentoo.patch, +openswan-2.6.31.ebuild,
+ +files/openswan-2.6.31-gentoo.patch:
+ Fix multilib-strict checks (#344735).
*openswan-2.6.29 (29 Sep 2010)
diff --git a/net-misc/openswan/Manifest b/net-misc/openswan/Manifest
index c4f88389f145..103165e00107 100644
--- a/net-misc/openswan/Manifest
+++ b/net-misc/openswan/Manifest
@@ -7,20 +7,20 @@ AUX openswan-2.4-allow-ms-bad-proposal.patch 481 RMD160 7ad11a9fa18a633554fc52d8
AUX openswan-2.4.15-deprecated-ldap.patch 372 RMD160 434d98f24c6b0066be3ce6d50e679b67edc22791 SHA1 95b8aec3807d953d9af3ca7ddc67b6aa08d340db SHA256 e891c8daa25dd8a06b6cc070cdc9913f260c375cf7a794b496a430e029e660bc
AUX openswan-2.4.15-gentoo.patch 7744 RMD160 fb3d0f745ddf93f11fbeeee98d709c46455c248d SHA1 14dc6577ddb6e52a7356407512725a23865d02b8 SHA256 792055fe57e1a7756d5e804bdbbdf76e009b9b4e60141125bd92c464ec46d946
AUX openswan-2.6-allow-ms-bad-proposal.patch 551 RMD160 3fda2ba360cb5d3427af56c12f32526c78465c7e SHA1 6649779a6ae76773c78db5d646927a7e698ce825 SHA256 3c84444f6181c0b7f7749c828db790e20f637d93d9dacec8e120709cce8adcc0
-AUX openswan-2.6.28-gentoo.patch 9996 RMD160 f615854748fa9c9cd8634dc18d2bda260b0ec027 SHA1 24b37b29a8fccf6a5bae85597becbb1e16fed6e9 SHA256 c8402b7523845cc676071fd35aeec18ec10f1de725e42ea8512ce0c164ac9801
AUX openswan-2.6.29-gentoo.patch 9948 RMD160 64739ea37c197ddd073ff4269d1e3e3a889d0b7f SHA1 c16a8855065ace7ae372c5278144a4e484616a56 SHA256 d2b7bece815701d0e04c80a2f6d3f583e8eb28a1ccd27bb2033326ec5de2d791
+AUX openswan-2.6.31-gentoo.patch 9990 RMD160 49b3643ecf5b7a7e47499e1a694c269f20440a01 SHA1 940407b1ba81764a121823dcca96ca29f863483d SHA256 2784539e8cefe8a0938f5d37703c44f7279ad45fa9fb39c5dcd8b51b4b8ae690
DIST openswan-2.4.15.tar.gz 3938290 RMD160 be0c9bec423f5df5815d6a773ed79c4d832b94a9 SHA1 b9b76c81fae2ff1f202c362fc67518a7acd1e99e SHA256 cf85bf896dd2b0b0818d2851f4d8ec61f816f777d47cbfed7065a682ffd47293
-DIST openswan-2.6.28.tar.gz 11668960 RMD160 f763b84d98681529e9bb31e6a7216cbff6e84792 SHA1 bc6706d9070292c069bcea2f568e4467d8540194 SHA256 888810f35ea460f0548840aa59588b814e839b28ddc50b364cf454edd446961a
DIST openswan-2.6.29.tar.gz 11663568 RMD160 aeb2463dfd07b68678ca94a1f48878b4eb005937 SHA1 bb9c3ece6c6cf9a7902b82b16e1d7d73bf11ba08 SHA256 03345e7090d0e1d4b844b1205c1444db067c6e2f7c423342e052f44cf6fa12e4
+DIST openswan-2.6.31.tar.gz 11677821 RMD160 bd04ffcf3432887a93d2f97257dbb0ee40ea7bb1 SHA1 9877a130b9cd8cbea24a72fe9fba2635fe1b2fec SHA256 bddd2ca79fec2326a69904b59df15753e59b1bf02882416b19507516e9cfcc21
EBUILD openswan-2.4.15-r2.ebuild 3941 RMD160 34796df57c4a31a3f86fda644ce2103e9cd4f803 SHA1 b7f4b4be76a8c5c916a88f2a3cf26b889a82fc68 SHA256 5f489fcb810835ed3e20adb29e6d1b6a10413e6ff5561605a432e63447ad15ee
-EBUILD openswan-2.6.28.ebuild 5243 RMD160 177e381a12d9a26021b2b37f5cb91e50195b4c03 SHA1 c875a16373320c3a33ce43758d1b5be1325b2038 SHA256 180ffd22e7ed6f9feb8d85190ee9e694dbe02bc74b8cba6d0c5474a2a74ccd6d
EBUILD openswan-2.6.29.ebuild 5243 RMD160 e5dcd4776189b885b3892b74c61bb6bda90d6445 SHA1 acadd6082116bfc4525458201b121bee7dfdd6d6 SHA256 ce37364c698349307f98ab8671ad3551a8ffe2636bc7097ef6e77d5c4a35534f
-MISC ChangeLog 15029 RMD160 11de69a3bd61add62ed6846f0ac93444e0096b5d SHA1 083eb86a8a4a27d72515562a963ebc749a996ff2 SHA256 7c0128a8bc352c263a4fb93a035e8ee35f999d66c40fe595abf8c4c262249616
+EBUILD openswan-2.6.31.ebuild 5283 RMD160 8d264d614f4b441dd121c3ec7c0f0ae87cf64ed8 SHA1 53fe5ca4828c0d7f65e483710698cbd1fd22c6a1 SHA256 173a1a187e58ad7c1bb3c46adc080c89e377f5d035527d1d7af79352eea4c484
+MISC ChangeLog 15278 RMD160 b57be79a75712a6ce565a3eba13c4e141afb8fe1 SHA1 56f1b3569984f175f13b5d152bbfb33c362c6745 SHA256 66784cc3ee4074316f88fb8f35fd75d8cb37140053ebe2c96c54916321004a00
MISC metadata.xml 1337 RMD160 3611ffb76802ca7b6861f0270516797855fc8b42 SHA1 3302ad08d5eaeae76ea442961a098be0c0f1ca3b SHA256 2ff2ae007cebac56757fb8cd302d72181461d7056d9045810ee05250439c6545
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
-iEYEARECAAYFAkyjw80ACgkQ1564UogppBJRUQCfZbA8QzJ69/El7ot2qHlwnnYj
-xBIAoL4lkOH6GOTBnhSzbETnucyf+MXd
-=2gxg
+iEYEARECAAYFAkzw+l0ACgkQ1564UogppBKy2gCgtVLXDUn7XlPLjJla7ob0dFBo
++AMAoJEc803dF8mZXI8W/mSSacAWhYwU
+=qvQr
-----END PGP SIGNATURE-----
diff --git a/net-misc/openswan/files/openswan-2.6.28-gentoo.patch b/net-misc/openswan/files/openswan-2.6.28-gentoo.patch
deleted file mode 100644
index 98ad1053c438..000000000000
--- a/net-misc/openswan/files/openswan-2.6.28-gentoo.patch
+++ /dev/null
@@ -1,256 +0,0 @@
-diff -Nru openswan-2.6.28.orig/lib/libcrypto/libmd5/Makefile openswan-2.6.28/lib/libcrypto/libmd5/Makefile
---- openswan-2.6.28.orig/lib/libcrypto/libmd5/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libcrypto/libmd5/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -12,7 +12,7 @@
-
- ifeq ($(USE_LIBNSS),true)
- CFLAGS+=-DHAVE_LIBNSS
--CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
-+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
- endif
-
- include ${srcdir}../../Makefile.library
-diff -Nru openswan-2.6.28.orig/lib/libcrypto/libsha1/Makefile openswan-2.6.28/lib/libcrypto/libsha1/Makefile
---- openswan-2.6.28.orig/lib/libcrypto/libsha1/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libcrypto/libsha1/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -12,7 +12,7 @@
-
- ifeq ($(USE_LIBNSS),true)
- CFLAGS+=-DHAVE_LIBNSS
--CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
-+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
- endif
-
-
-diff -Nru openswan-2.6.28.orig/lib/libcrypto/libsha2/Makefile openswan-2.6.28/lib/libcrypto/libsha2/Makefile
---- openswan-2.6.28.orig/lib/libcrypto/libsha2/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libcrypto/libsha2/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -15,5 +15,5 @@
-
- ifeq ($(USE_LIBNSS),true)
- CFLAGS+=-DHAVE_LIBNSS
--INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3
-+INCLUDES+=-I/usr/include/nspr -I/usr/include/nss
- endif
-diff -Nru openswan-2.6.28.orig/lib/libdns/Makefile openswan-2.6.28/lib/libdns/Makefile
---- openswan-2.6.28.orig/lib/libdns/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libdns/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -30,8 +30,8 @@
- -I${srcdir}../libisc/nothreads/include \
- -I. -I./include -I${srcdir}include \
- -I${srcdir}../libisc/include
--CDEFINES = -g ${USERCOMPILE} ${PORTINCLUDE}
--CWARNINGS = -Werror
-+CDEFINES = ${USERCOMPILE} ${PORTINCLUDE}
-+CWARNINGS =
-
- CFLAGS+=${CINCLUDES} ${CDEFINES} ${CWARNINGS}
-
-diff -Nru openswan-2.6.28.orig/lib/libipsecconf/Makefile openswan-2.6.28/lib/libipsecconf/Makefile
---- openswan-2.6.28.orig/lib/libipsecconf/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libipsecconf/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -33,7 +33,7 @@
- #CFLAGS+=-DFIPS_CHECK
- ifeq ($(USE_LIBNSS),true)
- CFLAGS+=-DHAVE_LIBNSS
--CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
-+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
- endif
-
- ifeq ($(USE_NM),true)
-diff -Nru openswan-2.6.28.orig/lib/libisc/Makefile openswan-2.6.28/lib/libisc/Makefile
---- openswan-2.6.28.orig/lib/libisc/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libisc/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -22,8 +22,8 @@
- -I${srcdir}nothreads/include \
- -I. -I./include -I${srcdir}include \
- $(PORTINCLUDE) -I${OPENSWANSRCDIR}/include
--CDEFINES = -g -DHAVE_STRERROR ${USERCOMPILE} ${PORTINCLUDE}
--# CWARNINGS = -Werror
-+CDEFINES = -DHAVE_STRERROR ${USERCOMPILE} ${PORTINCLUDE}
-+# CWARNINGS =
-
- CFLAGS+=${CINCLUDES} ${CDEFINES} ${CWARNINGS}
-
-diff -Nru openswan-2.6.28.orig/lib/liblwres/Makefile openswan-2.6.28/lib/liblwres/Makefile
---- openswan-2.6.28.orig/lib/liblwres/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/liblwres/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -22,8 +22,8 @@
- -I${srcdir}../libisc/${ISCARCH}/include \
- -I${srcdir}../libisc/include \
- -I. -I./include -I${srcdir}include
--CDEFINES = -g
--CWARNINGS = -Werror
-+CDEFINES =
-+CWARNINGS =
-
- CFLAGS+=${USERCOMPILE} ${PORTINCLUDE} ${CINCLUDES} ${CDEFINES} ${CWARNINGS}
-
-diff -Nru openswan-2.6.28.orig/lib/libopenswan/Makefile openswan-2.6.28/lib/libopenswan/Makefile
---- openswan-2.6.28.orig/lib/libopenswan/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/lib/libopenswan/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -100,7 +100,7 @@
-
- ifeq ($(USE_LIBNSS),true)
- CFLAGS+=-DHAVE_LIBNSS
--CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
-+CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
- endif
-
- ifeq ($(USE_MODP_RFC5114),true)
-diff -Nru openswan-2.6.28.orig/Makefile.inc openswan-2.6.28/Makefile.inc
---- openswan-2.6.28.orig/Makefile.inc 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/Makefile.inc 2010-08-15 17:47:57.000000000 +0200
-@@ -49,7 +49,7 @@
- DESTDIR?=
-
- # "local" part of tree, used in building other pathnames
--INC_USRLOCAL=/usr/local
-+INC_USRLOCAL?=/usr
-
- # PUBDIR is where the "ipsec" command goes; beware, many things define PATH
- # settings which are assumed to include it (or at least, to include *some*
-@@ -94,7 +94,7 @@
-
- # sample configuration files go into
- INC_DOCDIR?=share/doc
--FINALEXAMPLECONFDIR=${INC_USRLOCAL}/${INC_DOCDIR}/openswan
-+FINALEXAMPLECONFDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/openswan
- EXAMPLECONFDIR=${DESTDIR}${FINALEXAMPLECONFDIR}
-
- FINALDOCDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/openswan
-diff -Nru openswan-2.6.28.orig/programs/Makefile.program openswan-2.6.28/programs/Makefile.program
---- openswan-2.6.28.orig/programs/Makefile.program 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/programs/Makefile.program 2010-08-15 17:47:57.000000000 +0200
-@@ -53,7 +53,6 @@
- WERROR:= -Werror
- endif
-
--CFLAGS+= ${WERROR}
-
- ifneq ($(LD_LIBRARY_PATH),)
- LDFLAGS=-L$(LD_LIBRARY_PATH)
-@@ -104,8 +103,6 @@
- ifneq ($(NOINSTALL),true)
-
- doinstall:: $(PROGRAM) $(CONFFILES) $(EXTRA8MAN) $(EXTRA5MAN) $(EXTRA5PROC) $(LIBFILES) $(CONFDFILES)
-- # remove any old vendor file installed previously
-- @rm -f $(FINALLIBEXECDIR)/vendor
- @mkdir -p $(PROGRAMDIR) $(MANDIR8) $(MANDIR5) $(LIBDIR) $(CONFDIR) $(CONFDDIR) $(CONFDDIR)/$(CONFDSUBDIR) $(EXAMPLECONFDIR)
- @if [ -n "$(PROGRAM)" ]; then $(INSTALL) $(INSTBINFLAGS) $(PROGRAM) $(PROGRAMDIR); fi
- @$(foreach f, $(addsuffix .8, $(PROGRAM)), \
-@@ -180,6 +177,7 @@
- LDLIBS=${LIBS} ${USERLINK} ${LIBS} ${EXTRALIBS} -lgmp
- else
- LDLIBS=${LIBS} ${USERLINK} ${LIBS} ${EXTRALIBS} -lgmp -lnspr4 -lnss3
-+LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss
- endif
-
-
-diff -Nru openswan-2.6.28.orig/programs/pluto/Makefile.options openswan-2.6.28/programs/pluto/Makefile.options
---- openswan-2.6.28.orig/programs/pluto/Makefile.options 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/programs/pluto/Makefile.options 2010-08-15 17:48:34.000000000 +0200
-@@ -54,7 +54,7 @@
-
- # Use LIBNSS
- ifeq ($(USE_LIBNSS),true)
--HDRDIRS+= -I/usr/include/nspr4 -I/usr/include/nss3
-+HDRDIRS+= -I/usr/include/nspr -I/usr/include/nss
- endif
-
- # BYTE_ORDER = -DBIG_ENDIAN=4321 -DLITTLE_ENDIAN=1234 -DBYTE_ORDER=BIG_ENDIAN
-@@ -309,6 +309,7 @@
- DEFINES+=-DHAVE_LIBNSS
- LIBSPLUTO+= -lnspr4
- LIBSPLUTO+= -lnss3
-+LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss
- # For avoiding implicit DSO linking
- LIBSPLUTO+= -lpthread
- ifeq ($(USE_FIPSCHECK),true)
-diff -Nru openswan-2.6.28.orig/programs/rsasigkey/Makefile openswan-2.6.28/programs/rsasigkey/Makefile
---- openswan-2.6.28.orig/programs/rsasigkey/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/programs/rsasigkey/Makefile 2010-08-15 17:48:55.000000000 +0200
-@@ -21,13 +21,14 @@
- FIPS_CHECK=1
- CFLAGS+=-DFIPS_CHECK
- endif
--INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3
-+INCLUDES+=-I/usr/include/nspr -I/usr/include/nss
- endif
-
- PROGRAM=rsasigkey
- LIBS=${OPENSWANLIB} -lgmp
- ifeq ($(USE_LIBNSS),true)
- LIBS+= -lnspr4 -lnss3 -lplc4
-+LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss
- ifeq ($(USE_FIPSCHECK),true)
- LIBS+= -lfipscheck
- endif
-diff -Nru openswan-2.6.28.orig/programs/setup/Makefile openswan-2.6.28/programs/setup/Makefile
---- openswan-2.6.28.orig/programs/setup/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/programs/setup/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -18,8 +18,7 @@
-
- # this dance is because setup has to get installed as /etc/rc.d/init.d/ipsec
- # not as /etc/rc.d/init.d/setup.
--PROGRAMDIR=$(RCDIR)
--PROGRAM=
-+PROGRAM=setup
- EXTRA8MAN=setup.8
-
- include ${srcdir}../Makefile.program
-@@ -29,30 +28,4 @@
- # into the $BINDIR.
- #
- # the priorities match those in setup's chkconfig line
--doinstall:: setup
-- @rm -f $(BINDIR)/setup
-- @$(INSTALL) $(INSTBINFLAGS) setup $(RCDIR)/ipsec
-- @ln -s $(FINALRCDIR)/ipsec $(BINDIR)/setup
-- -@for i in 0 1 2 3 4 5 6; do mkdir -p $(RCDIR)/../rc$$i.d; done
-- -@cd $(RCDIR)/../rc0.d && ln -f -s ../init.d/ipsec K76ipsec
-- -@cd $(RCDIR)/../rc1.d && ln -f -s ../init.d/ipsec K76ipsec
-- -@cd $(RCDIR)/../rc2.d && ln -f -s ../init.d/ipsec S47ipsec
-- -@cd $(RCDIR)/../rc3.d && ln -f -s ../init.d/ipsec S47ipsec
-- -@cd $(RCDIR)/../rc4.d && ln -f -s ../init.d/ipsec S47ipsec
-- -@cd $(RCDIR)/../rc5.d && ln -f -s ../init.d/ipsec S47ipsec
-- -@cd $(RCDIR)/../rc6.d && ln -f -s ../init.d/ipsec K76ipsec
--
--install_file_list::
-- @echo $(RCDIR)/ipsec
-- @echo $(BINDIR)/setup
-- @echo $(RCDIR)/../rc0.d/K76ipsec
-- @echo $(RCDIR)/../rc1.d/K76ipsec
-- @echo $(RCDIR)/../rc2.d/S47ipsec
-- @echo $(RCDIR)/../rc3.d/S47ipsec
-- @echo $(RCDIR)/../rc4.d/S47ipsec
-- @echo $(RCDIR)/../rc5.d/S47ipsec
-- @echo $(RCDIR)/../rc6.d/K76ipsec
--
--cleanall::
-- @rm -f setup
-
-diff -Nru openswan-2.6.28.orig/programs/showhostkey/Makefile openswan-2.6.28/programs/showhostkey/Makefile
---- openswan-2.6.28.orig/programs/showhostkey/Makefile 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/programs/showhostkey/Makefile 2010-08-15 17:47:57.000000000 +0200
-@@ -16,7 +16,7 @@
- include ${OPENSWANSRCDIR}/Makefile.inc
- ifeq ($(USE_LIBNSS),true)
- CFLAGS+=-DHAVE_LIBNSS
--INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3
-+INCLUDES+=-I/usr/include/nspr -I/usr/include/nss
- endif
-
- PROGRAM=showhostkey
-diff -Nru openswan-2.6.28.orig/testing/utils/make-uml.sh openswan-2.6.28/testing/utils/make-uml.sh
---- openswan-2.6.28.orig/testing/utils/make-uml.sh 2010-07-29 20:45:59.000000000 +0200
-+++ openswan-2.6.28/testing/utils/make-uml.sh 2010-08-15 17:47:57.000000000 +0200
-@@ -262,7 +262,7 @@
-
- cd $OPENSWANSRCDIR || exit 1
-
--make WERROR=-Werror USE_OBJDIR=true programs
-+make USE_OBJDIR=true programs
-
- # now, execute the Makefile that we have created!
- cd $POOLSPACE && make $OPENSWANHOSTS
diff --git a/net-misc/openswan/files/openswan-2.6.31-gentoo.patch b/net-misc/openswan/files/openswan-2.6.31-gentoo.patch
new file mode 100644
index 000000000000..ff064ba1d0db
--- /dev/null
+++ b/net-misc/openswan/files/openswan-2.6.31-gentoo.patch
@@ -0,0 +1,253 @@
+diff -Nru openswan-2.6.31.orig/lib/libcrypto/libmd5/Makefile openswan-2.6.31/lib/libcrypto/libmd5/Makefile
+--- openswan-2.6.31.orig/lib/libcrypto/libmd5/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libcrypto/libmd5/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -12,7 +12,7 @@
+
+ ifeq ($(USE_LIBNSS),true)
+ CFLAGS+=-DHAVE_LIBNSS
+-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
++CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+
+ include ${srcdir}../../Makefile.library
+diff -Nru openswan-2.6.31.orig/lib/libcrypto/libsha1/Makefile openswan-2.6.31/lib/libcrypto/libsha1/Makefile
+--- openswan-2.6.31.orig/lib/libcrypto/libsha1/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libcrypto/libsha1/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -12,7 +12,7 @@
+
+ ifeq ($(USE_LIBNSS),true)
+ CFLAGS+=-DHAVE_LIBNSS
+-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
++CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+
+
+diff -Nru openswan-2.6.31.orig/lib/libcrypto/libsha2/Makefile openswan-2.6.31/lib/libcrypto/libsha2/Makefile
+--- openswan-2.6.31.orig/lib/libcrypto/libsha2/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libcrypto/libsha2/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -15,5 +15,5 @@
+
+ ifeq ($(USE_LIBNSS),true)
+ CFLAGS+=-DHAVE_LIBNSS
+-INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3
++INCLUDES+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+diff -Nru openswan-2.6.31.orig/lib/libdns/Makefile openswan-2.6.31/lib/libdns/Makefile
+--- openswan-2.6.31.orig/lib/libdns/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libdns/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -31,7 +31,7 @@
+ -I. -I./include -I${srcdir}include \
+ -I${srcdir}../libisc/include
+ CDEFINES = ${USERCOMPILE} ${PORTINCLUDE}
+-CWARNINGS = -Werror
++CWARNINGS =
+
+ CFLAGS+=${CINCLUDES} ${CDEFINES} ${CWARNINGS}
+
+diff -Nru openswan-2.6.31.orig/lib/libipsecconf/Makefile openswan-2.6.31/lib/libipsecconf/Makefile
+--- openswan-2.6.31.orig/lib/libipsecconf/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libipsecconf/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -33,7 +33,7 @@
+ #CFLAGS+=-DFIPS_CHECK
+ ifeq ($(USE_LIBNSS),true)
+ CFLAGS+=-DHAVE_LIBNSS
+-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
++CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+
+ ifeq ($(USE_NM),true)
+diff -Nru openswan-2.6.31.orig/lib/libisc/Makefile openswan-2.6.31/lib/libisc/Makefile
+--- openswan-2.6.31.orig/lib/libisc/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libisc/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -23,7 +23,7 @@
+ -I. -I./include -I${srcdir}include \
+ $(PORTINCLUDE) -I${OPENSWANSRCDIR}/include
+ CDEFINES = -DHAVE_STRERROR ${USERCOMPILE} ${PORTINCLUDE}
+-# CWARNINGS = -Werror
++CWARNINGS =
+
+ CFLAGS+=${CINCLUDES} ${CDEFINES} ${CWARNINGS}
+
+diff -Nru openswan-2.6.31.orig/lib/liblwres/Makefile openswan-2.6.31/lib/liblwres/Makefile
+--- openswan-2.6.31.orig/lib/liblwres/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/liblwres/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -23,7 +23,7 @@
+ -I${srcdir}../libisc/include \
+ -I. -I./include -I${srcdir}include
+ CDEFINES =
+-CWARNINGS = -Werror
++CWARNINGS =
+
+ CFLAGS+=${USERCOMPILE} ${PORTINCLUDE} ${CINCLUDES} ${CDEFINES} ${CWARNINGS}
+
+diff -Nru openswan-2.6.31.orig/lib/libopenswan/Makefile openswan-2.6.31/lib/libopenswan/Makefile
+--- openswan-2.6.31.orig/lib/libopenswan/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/lib/libopenswan/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -100,7 +100,7 @@
+
+ ifeq ($(USE_LIBNSS),true)
+ CFLAGS+=-DHAVE_LIBNSS
+-CFLAGS+=-I/usr/include/nspr4 -I/usr/include/nss3
++CFLAGS+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+
+ ifeq ($(USE_MODP_RFC5114),true)
+diff -Nru openswan-2.6.31.orig/Makefile.inc openswan-2.6.31/Makefile.inc
+--- openswan-2.6.31.orig/Makefile.inc 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/Makefile.inc 2010-11-27 13:16:46.000000000 +0100
+@@ -49,7 +49,7 @@
+ DESTDIR?=
+
+ # "local" part of tree, used in building other pathnames
+-INC_USRLOCAL=/usr/local
++INC_USRLOCAL?=/usr
+
+ # PUBDIR is where the "ipsec" command goes; beware, many things define PATH
+ # settings which are assumed to include it (or at least, to include *some*
+diff -Nru openswan-2.6.31.orig/packaging/makefiles/module.make openswan-2.6.31/packaging/makefiles/module.make
+--- openswan-2.6.31.orig/packaging/makefiles/module.make 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/packaging/makefiles/module.make 2010-11-27 13:16:46.000000000 +0100
+@@ -25,7 +25,6 @@
+
+ EXTRA_CFLAGS += $(KLIPSCOMPILE)
+ EXTRA_CFLAGS += -Wall -DIPCOMP_PREFIX
+-#EXTRA_CFLAGS += -Werror
+ #EXTRA_CFLAGS += -Wconversion
+ #EXTRA_CFLAGS += -Wmissing-prototypes
+ # 'override CFLAGS' should really be 'EXTRA_CFLAGS'
+diff -Nru openswan-2.6.31.orig/programs/Makefile.program openswan-2.6.31/programs/Makefile.program
+--- openswan-2.6.31.orig/programs/Makefile.program 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/programs/Makefile.program 2010-11-27 13:16:46.000000000 +0100
+@@ -48,12 +48,7 @@
+ CFLAGS+=-DFINALCONFFILE=\"${FINALCONFFILE}\"
+ CFLAGS+=-DFINALVARDIR=\"${FINALVARDIR}\"
+
+-# die if there are any warnings
+-ifndef WERROR
+-WERROR:= -Werror
+-endif
+
+-CFLAGS+= ${WERROR}
+
+ ifneq ($(LD_LIBRARY_PATH),)
+ LDFLAGS=-L$(LD_LIBRARY_PATH)
+@@ -104,8 +99,6 @@
+ ifneq ($(NOINSTALL),true)
+
+ doinstall:: $(PROGRAM) $(CONFFILES) $(EXTRA8MAN) $(EXTRA5MAN) $(EXTRA5PROC) $(LIBFILES) $(CONFDFILES)
+- # remove any old vendor file installed previously
+- @rm -f $(FINALLIBEXECDIR)/vendor
+ @mkdir -p $(PROGRAMDIR) $(MANDIR8) $(MANDIR5) $(LIBDIR) $(CONFDIR) $(CONFDDIR) $(CONFDDIR)/$(CONFDSUBDIR) $(EXAMPLECONFDIR)
+ @if [ -n "$(PROGRAM)" ]; then $(INSTALL) $(INSTBINFLAGS) $(PROGRAM) $(PROGRAMDIR); fi
+ @$(foreach f, $(addsuffix .8, $(PROGRAM)), \
+@@ -180,6 +173,7 @@
+ LDLIBS=${LIBS} ${USERLINK} ${LIBS} ${EXTRALIBS} -lgmp
+ else
+ LDLIBS=${LIBS} ${USERLINK} ${LIBS} ${EXTRALIBS} -lgmp -lnspr4 -lnss3
++LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss
+ endif
+
+
+diff -Nru openswan-2.6.31.orig/programs/pluto/Makefile.options openswan-2.6.31/programs/pluto/Makefile.options
+--- openswan-2.6.31.orig/programs/pluto/Makefile.options 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/programs/pluto/Makefile.options 2010-11-27 13:16:46.000000000 +0100
+@@ -44,7 +44,7 @@
+
+ # -O on Linux makes gcc coredump when compiling sha1.c
+ # -Wundef is nice but RHL5.2 compiler doesn't support it
+-CFLAGS +=-g -Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast \
++CFLAGS +=-Wall -W -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast \
+ -Wcast-qual -Wmissing-declarations -Wwrite-strings \
+ -Wstrict-prototypes # -Wundef
+
+@@ -54,7 +54,7 @@
+
+ # Use LIBNSS
+ ifeq ($(USE_LIBNSS),true)
+-HDRDIRS+= -I/usr/include/nspr4 -I/usr/include/nss3
++HDRDIRS+= -I/usr/include/nspr -I/usr/include/nss
+ endif
+
+ # BYTE_ORDER = -DBIG_ENDIAN=4321 -DLITTLE_ENDIAN=1234 -DBYTE_ORDER=BIG_ENDIAN
+@@ -306,6 +306,7 @@
+ DEFINES+=-DHAVE_LIBNSS
+ LIBSPLUTO+= -lnspr4
+ LIBSPLUTO+= -lnss3
++LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss
+ # For avoiding implicit DSO linking
+ LIBSPLUTO+= -lpthread
+ ifeq ($(USE_FIPSCHECK),true)
+diff -Nru openswan-2.6.31.orig/programs/rsasigkey/Makefile openswan-2.6.31/programs/rsasigkey/Makefile
+--- openswan-2.6.31.orig/programs/rsasigkey/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/programs/rsasigkey/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -21,13 +21,14 @@
+ FIPS_CHECK=1
+ CFLAGS+=-DFIPS_CHECK
+ endif
+-INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3
++INCLUDES+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+
+ PROGRAM=rsasigkey
+ LIBS=${OPENSWANLIB} -lgmp
+ ifeq ($(USE_LIBNSS),true)
+ LIBS+= -lnspr4 -lnss3 -lplc4
++LDFLAGS+=-L/usr/lib/nspr -L/usr/lib/nss
+ ifeq ($(USE_FIPSCHECK),true)
+ LIBS+= -lfipscheck
+ endif
+diff -Nru openswan-2.6.31.orig/programs/setup/Makefile openswan-2.6.31/programs/setup/Makefile
+--- openswan-2.6.31.orig/programs/setup/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/programs/setup/Makefile 2010-11-27 13:17:15.000000000 +0100
+@@ -16,11 +16,7 @@
+ OPENSWANSRCDIR?=$(shell cd ../..; pwd)
+ include ${OPENSWANSRCDIR}/Makefile.inc
+
+-# this dance is because setup has to get installed as /etc/rc.d/init.d/ipsec
+-# not as /etc/rc.d/init.d/setup.
+-PROGRAMDIR=$(RCDIR)
+ PROGRAM=setup
+-NOINSTALL=true
+ EXTRA8MAN=setup.8
+
+ include ${srcdir}../Makefile.program
+@@ -34,13 +30,11 @@
+ # remove any old vendor file installed previously
+ @rm -f $(BINDIR)/setup
+ # check the directories we need exist (ie., make install DESTDIR=/tmp/IPsec)
+- @mkdir -p $(RCDIR) $(BINDIR)
++ @mkdir -p $(BINDIR)
+ # install and link everything
+- @$(INSTALL) $(INSTBINFLAGS) setup $(RCDIR)/ipsec
+- @ln -s $(FINALRCDIR)/ipsec $(BINDIR)/setup
++ @$(INSTALL) $(INSTBINFLAGS) setup $(BINDIR)/setup
+
+ install_file_list::
+- @echo $(RCDIR)/ipsec
+ @echo $(BINDIR)/setup
+
+ cleanall::
+diff -Nru openswan-2.6.31.orig/programs/showhostkey/Makefile openswan-2.6.31/programs/showhostkey/Makefile
+--- openswan-2.6.31.orig/programs/showhostkey/Makefile 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/programs/showhostkey/Makefile 2010-11-27 13:16:46.000000000 +0100
+@@ -16,7 +16,7 @@
+ include ${OPENSWANSRCDIR}/Makefile.inc
+ ifeq ($(USE_LIBNSS),true)
+ CFLAGS+=-DHAVE_LIBNSS
+-INCLUDES+=-I/usr/include/nspr4 -I/usr/include/nss3
++INCLUDES+=-I/usr/include/nspr -I/usr/include/nss
+ endif
+
+ PROGRAM=showhostkey
+diff -Nru openswan-2.6.31.orig/testing/utils/make-uml.sh openswan-2.6.31/testing/utils/make-uml.sh
+--- openswan-2.6.31.orig/testing/utils/make-uml.sh 2010-10-18 18:13:36.000000000 +0200
++++ openswan-2.6.31/testing/utils/make-uml.sh 2010-11-27 13:16:46.000000000 +0100
+@@ -262,7 +262,7 @@
+
+ cd $OPENSWANSRCDIR || exit 1
+
+-make WERROR=-Werror USE_OBJDIR=true programs
++make USE_OBJDIR=true programs
+
+ # now, execute the Makefile that we have created!
+ cd $POOLSPACE && make $OPENSWANHOSTS
diff --git a/net-misc/openswan/openswan-2.6.28.ebuild b/net-misc/openswan/openswan-2.6.31.ebuild
index fa65a5d23f75..5328ad540647 100644
--- a/net-misc/openswan/openswan-2.6.28.ebuild
+++ b/net-misc/openswan/openswan-2.6.31.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.6.28.ebuild,v 1.1 2010/08/15 20:45:47 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.6.31.ebuild,v 1.1 2010/11/27 12:32:18 mrness Exp $
EAPI="2"
@@ -79,6 +79,7 @@ get_make_options() {
INC_USRLOCAL=/usr\
INC_MANDIR=share/man\
FINALDOCDIR=/usr/share/doc/${PF}/html\
+ FINALLIBDIR=/usr/$(get_libdir)/ipsec\
DESTDIR=\"${D}\"\
USERCOMPILE=\"${CFLAGS}\"\
CC=\"$(tc-getCC)\"