summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2011-11-07 21:56:58 +0000
committerAlin Năstac <mrness@gentoo.org>2011-11-07 21:56:58 +0000
commit1551c2312ee44fc8b94d8d1a68786709ed2dca38 (patch)
tree400081d427e38408fb2f0489c6fe1c391d70ef0a /net-misc/openswan
parentUpdate ebuild to fix #369931 and #374339 and related (diff)
downloadgentoo-2-1551c2312ee44fc8b94d8d1a68786709ed2dca38.tar.gz
gentoo-2-1551c2312ee44fc8b94d8d1a68786709ed2dca38.tar.bz2
gentoo-2-1551c2312ee44fc8b94d8d1a68786709ed2dca38.zip
Version bump (#368903); install cotrib files (#350083); use LDFLAGS (#351019).
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/openswan')
-rw-r--r--net-misc/openswan/ChangeLog10
-rw-r--r--net-misc/openswan/files/openswan-2.6.29-gentoo.patch254
-rw-r--r--net-misc/openswan/files/openswan-2.6.37-gentoo.patch253
-rw-r--r--net-misc/openswan/openswan-2.6.37.ebuild (renamed from net-misc/openswan/openswan-2.6.29.ebuild)15
4 files changed, 272 insertions, 260 deletions
diff --git a/net-misc/openswan/ChangeLog b/net-misc/openswan/ChangeLog
index 01322feae6b2..c0053e76939d 100644
--- a/net-misc/openswan/ChangeLog
+++ b/net-misc/openswan/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-misc/openswan
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.76 2011/06/06 06:18:52 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.77 2011/11/07 21:56:58 mrness Exp $
+
+*openswan-2.6.37 (07 Nov 2011)
+
+ 07 Nov 2011; Alin Năstac <mrness@gentoo.org> -openswan-2.6.29.ebuild,
+ -files/openswan-2.6.29-gentoo.patch, +openswan-2.6.37.ebuild,
+ +files/openswan-2.6.37-gentoo.patch:
+ Version bump (#368903); install cotrib files (#350083); use LDFLAGS
+ (#351019).
06 Jun 2011; Robin H. Johnson <robbat2@gentoo.org> openswan-2.4.15-r2.ebuild,
openswan-2.6.29.ebuild, openswan-2.6.31.ebuild:
diff --git a/net-misc/openswan/files/openswan-2.6.29-gentoo.patch b/net-misc/openswan/files/openswan-2.6.29-gentoo.patch
deleted file mode 100644
index e6074a45924b..000000000000
--- a/net-misc/openswan/files/openswan-2.6.29-gentoo.patch
+++ /dev/null
@@ -1,254 +0,0 @@
-diff -Nru openswan-2.6.29.orig/lib/libcrypto/libmd5/Makefile openswan-2.6.29/lib/libcrypto/libmd5/Makefile
---- openswan-2.6.29.orig/lib/libcrypto/libmd5/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libcrypto/libmd5/Makefile 2010-09-30 00:31:01.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.29.orig/lib/libcrypto/libsha1/Makefile openswan-2.6.29/lib/libcrypto/libsha1/Makefile
---- openswan-2.6.29.orig/lib/libcrypto/libsha1/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libcrypto/libsha1/Makefile 2010-09-30 00:31:01.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.29.orig/lib/libcrypto/libsha2/Makefile openswan-2.6.29/lib/libcrypto/libsha2/Makefile
---- openswan-2.6.29.orig/lib/libcrypto/libsha2/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libcrypto/libsha2/Makefile 2010-09-30 00:31:01.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.29.orig/lib/libdns/Makefile openswan-2.6.29/lib/libdns/Makefile
---- openswan-2.6.29.orig/lib/libdns/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libdns/Makefile 2010-09-30 00:31:01.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.29.orig/lib/libipsecconf/Makefile openswan-2.6.29/lib/libipsecconf/Makefile
---- openswan-2.6.29.orig/lib/libipsecconf/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libipsecconf/Makefile 2010-09-30 00:31:01.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.29.orig/lib/libisc/Makefile openswan-2.6.29/lib/libisc/Makefile
---- openswan-2.6.29.orig/lib/libisc/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libisc/Makefile 2010-09-30 00:31:01.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.29.orig/lib/liblwres/Makefile openswan-2.6.29/lib/liblwres/Makefile
---- openswan-2.6.29.orig/lib/liblwres/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/liblwres/Makefile 2010-09-30 00:31:01.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.29.orig/lib/libopenswan/Makefile openswan-2.6.29/lib/libopenswan/Makefile
---- openswan-2.6.29.orig/lib/libopenswan/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/lib/libopenswan/Makefile 2010-09-30 00:31:01.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.29.orig/Makefile.inc openswan-2.6.29/Makefile.inc
---- openswan-2.6.29.orig/Makefile.inc 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/Makefile.inc 2010-09-30 00:31:01.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.29.orig/programs/Makefile.program openswan-2.6.29/programs/Makefile.program
---- openswan-2.6.29.orig/programs/Makefile.program 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/programs/Makefile.program 2010-09-30 00:31:01.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.29.orig/programs/pluto/Makefile.options openswan-2.6.29/programs/pluto/Makefile.options
---- openswan-2.6.29.orig/programs/pluto/Makefile.options 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/programs/pluto/Makefile.options 2010-09-30 00:31:01.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.29.orig/programs/rsasigkey/Makefile openswan-2.6.29/programs/rsasigkey/Makefile
---- openswan-2.6.29.orig/programs/rsasigkey/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/programs/rsasigkey/Makefile 2010-09-30 00:31:01.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.29.orig/programs/setup/Makefile openswan-2.6.29/programs/setup/Makefile
---- openswan-2.6.29.orig/programs/setup/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/programs/setup/Makefile 2010-09-30 00:31:49.000000000 +0200
-@@ -18,7 +18,6 @@
-
- # 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
- EXTRA8MAN=setup.8
-
-@@ -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.29.orig/programs/showhostkey/Makefile openswan-2.6.29/programs/showhostkey/Makefile
---- openswan-2.6.29.orig/programs/showhostkey/Makefile 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/programs/showhostkey/Makefile 2010-09-30 00:31:01.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.29.orig/testing/utils/make-uml.sh openswan-2.6.29/testing/utils/make-uml.sh
---- openswan-2.6.29.orig/testing/utils/make-uml.sh 2010-09-27 18:40:32.000000000 +0200
-+++ openswan-2.6.29/testing/utils/make-uml.sh 2010-09-30 00:31:01.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.37-gentoo.patch b/net-misc/openswan/files/openswan-2.6.37-gentoo.patch
new file mode 100644
index 000000000000..1ff87c35d12a
--- /dev/null
+++ b/net-misc/openswan/files/openswan-2.6.37-gentoo.patch
@@ -0,0 +1,253 @@
+diff -Nru openswan-2.6.37.old//lib/libcrypto/libmd5/Makefile openswan-2.6.37/lib/libcrypto/libmd5/Makefile
+--- openswan-2.6.37.old//lib/libcrypto/libmd5/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libcrypto/libmd5/Makefile 2011-11-07 21:36:27.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.37.old//lib/libcrypto/libsha1/Makefile openswan-2.6.37/lib/libcrypto/libsha1/Makefile
+--- openswan-2.6.37.old//lib/libcrypto/libsha1/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libcrypto/libsha1/Makefile 2011-11-07 21:36:29.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.37.old//lib/libcrypto/libsha2/Makefile openswan-2.6.37/lib/libcrypto/libsha2/Makefile
+--- openswan-2.6.37.old//lib/libcrypto/libsha2/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libcrypto/libsha2/Makefile 2011-11-07 21:36:30.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.37.old//lib/libdns/Makefile openswan-2.6.37/lib/libdns/Makefile
+--- openswan-2.6.37.old//lib/libdns/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libdns/Makefile 2011-11-07 21:36:30.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.37.old//lib/libipsecconf/Makefile openswan-2.6.37/lib/libipsecconf/Makefile
+--- openswan-2.6.37.old//lib/libipsecconf/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libipsecconf/Makefile 2011-11-07 21:36:32.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.37.old//lib/libisc/Makefile openswan-2.6.37/lib/libisc/Makefile
+--- openswan-2.6.37.old//lib/libisc/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libisc/Makefile 2011-11-07 21:36:32.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.37.old//lib/liblwres/Makefile openswan-2.6.37/lib/liblwres/Makefile
+--- openswan-2.6.37.old//lib/liblwres/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/liblwres/Makefile 2011-11-07 21:36:32.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.37.old//lib/libopenswan/Makefile openswan-2.6.37/lib/libopenswan/Makefile
+--- openswan-2.6.37.old//lib/libopenswan/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/lib/libopenswan/Makefile 2011-11-07 21:36:32.000000000 +0100
+@@ -105,7 +105,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.37.old//Makefile.inc openswan-2.6.37/Makefile.inc
+--- openswan-2.6.37.old//Makefile.inc 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/Makefile.inc 2011-11-07 21:36:32.000000000 +0100
+@@ -55,7 +55,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.37.old//packaging/makefiles/module.make openswan-2.6.37/packaging/makefiles/module.make
+--- openswan-2.6.37.old//packaging/makefiles/module.make 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/packaging/makefiles/module.make 2011-11-07 21:36:35.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.37.old//programs/Makefile.program openswan-2.6.37/programs/Makefile.program
+--- openswan-2.6.37.old//programs/Makefile.program 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/programs/Makefile.program 2011-11-07 21:36:36.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.37.old//programs/pluto/Makefile.options openswan-2.6.37/programs/pluto/Makefile.options
+--- openswan-2.6.37.old//programs/pluto/Makefile.options 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/programs/pluto/Makefile.options 2011-11-07 21:36:36.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
+
+@@ -58,7 +58,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
+@@ -315,6 +315,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.37.old//programs/rsasigkey/Makefile openswan-2.6.37/programs/rsasigkey/Makefile
+--- openswan-2.6.37.old//programs/rsasigkey/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/programs/rsasigkey/Makefile 2011-11-07 21:36:36.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.37.old//programs/setup/Makefile openswan-2.6.37/programs/setup/Makefile
+--- openswan-2.6.37.old//programs/setup/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/programs/setup/Makefile 2011-11-07 21:36:36.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.37.old//programs/showhostkey/Makefile openswan-2.6.37/programs/showhostkey/Makefile
+--- openswan-2.6.37.old//programs/showhostkey/Makefile 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/programs/showhostkey/Makefile 2011-11-07 21:36:36.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.37.old//testing/utils/make-uml.sh openswan-2.6.37/testing/utils/make-uml.sh
+--- openswan-2.6.37.old//testing/utils/make-uml.sh 2011-10-28 23:11:53.000000000 +0200
++++ openswan-2.6.37/testing/utils/make-uml.sh 2011-11-07 21:39:58.000000000 +0100
+@@ -264,7 +264,7 @@
+
+ cd $OPENSWANSRCDIR || exit 1
+
+-make ${WERROR:-WERROR=-Werror} USE_OBJDIR=true USE_IPSECPOLICY=true programs
++make ${WERROR:-WERROR=} USE_OBJDIR=true USE_IPSECPOLICY=true programs
+
+ # now, execute the Makefile that we have created!
+ cd $POOLSPACE && make $OPENSWANHOSTS
diff --git a/net-misc/openswan/openswan-2.6.29.ebuild b/net-misc/openswan/openswan-2.6.37.ebuild
index d844f102f67c..c60e004824cf 100644
--- a/net-misc/openswan/openswan-2.6.29.ebuild
+++ b/net-misc/openswan/openswan-2.6.37.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.6.29.ebuild,v 1.2 2011/06/06 06:18:52 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.6.37.ebuild,v 1.1 2011/11/07 21:56:58 mrness Exp $
EAPI="2"
@@ -15,6 +15,8 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="caps curl ldap pam ssl extra-algorithms weak-algorithms nocrypto-algorithms ms-bad-proposal nss"
+RESTRICT="test" # requires user mode linux setup
+
COMMON_DEPEND="!net-misc/strongswan
dev-libs/gmp
dev-lang/perl
@@ -40,8 +42,7 @@ pkg_setup() {
linux-info_pkg_setup
if kernel_is -ge 2 6; then
- einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)."
- einfo "KLIPS will not be compiled/installed."
+ einfo "This ebuild will set ${P} to use kernel native IPsec (KAME)."
MYMAKE="programs"
elif kernel_is 2 4; then
@@ -79,8 +80,10 @@ 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}\"\
+ USERLINK=\"-Wl,-z,relro ${LDFLAGS}\"\
CC=\"$(tc-getCC)\"
use caps\
@@ -138,9 +141,11 @@ src_install() {
emake "$@" install || die "emake install failed"
dodoc docs/{KNOWN_BUGS*,RELEASE-NOTES*,PATENTS*,debugging*}
- dohtml doc/*.html
docinto quickstarts
- dodoc doc/quickstarts/*
+ dodoc docs/quickstarts/*
+
+ insinto /usr/share/doc/${PF}
+ doins -r contrib
newinitd "${FILESDIR}"/ipsec-initd ipsec || die "failed to install init script"