From 8993193ebd059723b85831d9a5ccc7904644d21f Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Mon, 11 Jan 2010 02:03:55 +0100 Subject: [PATCH] Updated openswan (2.6.24). --- config/rootfiles/common/openswan | 4 +- config/rootfiles/core/35/exclude | 2 + config/rootfiles/core/35/filelists/openswan | 1 + .../core/35/filelists/openswan-modules | 2 + doc/packages-list.txt | 6 +-- lfs/openswan | 6 +-- ...to.patch => openswan-2.6.24_noxmlto.patch} | 48 +++++++++---------- 7 files changed, 36 insertions(+), 33 deletions(-) create mode 120000 config/rootfiles/core/35/filelists/openswan create mode 100644 config/rootfiles/core/35/filelists/openswan-modules rename src/patches/{openswan-2.6.20_noxmlto.patch => openswan-2.6.24_noxmlto.patch} (71%) diff --git a/config/rootfiles/common/openswan b/config/rootfiles/common/openswan index 378792a411..48837884b7 100644 --- a/config/rootfiles/common/openswan +++ b/config/rootfiles/common/openswan @@ -44,14 +44,11 @@ usr/lib/ipsec #usr/lib/ipsec/_realsetup #usr/lib/ipsec/_secretcensor #usr/lib/ipsec/_startklips -#usr/lib/ipsec/_startklips.old #usr/lib/ipsec/_startnetkey #usr/lib/ipsec/_updown #usr/lib/ipsec/_updown.klips -#usr/lib/ipsec/_updown.klips.old #usr/lib/ipsec/_updown.klips~ #usr/lib/ipsec/_updown.mast -#usr/lib/ipsec/_updown.mast.old #usr/lib/ipsec/_updown.netkey usr/libexec/ipsec #usr/libexec/ipsec/_pluto_adns @@ -185,6 +182,7 @@ usr/sbin/ipsec #usr/share/doc/openswan/index.html #usr/share/doc/openswan/ipsec.8.html #usr/share/doc/openswan/ipsec.conf-sample +#usr/share/doc/openswan/ipsec.conf.5.html #usr/share/doc/openswan/ipsec.secrets.5.html #usr/share/doc/openswan/ipsec__confread.8.html #usr/share/doc/openswan/ipsec__copyright.8.html diff --git a/config/rootfiles/core/35/exclude b/config/rootfiles/core/35/exclude index e69de29bb2..c58d7385b2 100644 --- a/config/rootfiles/core/35/exclude +++ b/config/rootfiles/core/35/exclude @@ -0,0 +1,2 @@ +etc/ipsec.conf +etc/ipsec.secrets diff --git a/config/rootfiles/core/35/filelists/openswan b/config/rootfiles/core/35/filelists/openswan new file mode 120000 index 0000000000..2b72682cfa --- /dev/null +++ b/config/rootfiles/core/35/filelists/openswan @@ -0,0 +1 @@ +../../../common/openswan \ No newline at end of file diff --git a/config/rootfiles/core/35/filelists/openswan-modules b/config/rootfiles/core/35/filelists/openswan-modules new file mode 100644 index 0000000000..afee737a37 --- /dev/null +++ b/config/rootfiles/core/35/filelists/openswan-modules @@ -0,0 +1,2 @@ +lib/modules/2.6.27.42-ipfire-xen/kernel/net/ipsec/ipsec.ko +lib/modules/2.6.27.42-ipfire/kernel/net/ipsec/ipsec.ko diff --git a/doc/packages-list.txt b/doc/packages-list.txt index 5780ff6ca6..0f59947733 100644 --- a/doc/packages-list.txt +++ b/doc/packages-list.txt @@ -258,9 +258,9 @@ * openmailadmin-1.0.0 * openssh-5.2p1 * openssl-0.9.8k -* openswan-2.6.23 -* openswan-2.6.23-kmod-2.6.27.42-ipfire -* openswan-2.6.23-kmod-2.6.27.42-ipfire-xen +* openswan-2.6.24 +* openswan-2.6.24-kmod-2.6.27.42-ipfire +* openswan-2.6.24-kmod-2.6.27.42-ipfire-xen * openvpn-2.1_rc20 * p7zip_4.65 * pam_mysql-0.7RC1 diff --git a/lfs/openswan b/lfs/openswan index f3e3a2fca9..05a06509bc 100644 --- a/lfs/openswan +++ b/lfs/openswan @@ -30,7 +30,7 @@ else VERSUFIX=ipfire endif -VER = 2.6.23 +VER = 2.6.24 THISAPP = openswan-$(VER) DL_FILE = $(THISAPP).tar.gz @@ -51,7 +51,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = c83053471e639bf3b97e3cf7796b7e83 +$(DL_FILE)_MD5 = 1c76b6982c05392f7c360afb92699661 install : $(TARGET) @@ -92,7 +92,7 @@ else -e 's%^KLIPSCOMPILE.*$$%KLIPSCOMPILE=$(CFLAGS)%' \ -e 's%^XMLTO.*$$%#&%' Makefile.inc - cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/openswan-2.6.20_noxmlto.patch + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/openswan-2.6.24_noxmlto.patch cd $(DIR_APP) && sed -i 's/-Werror//' programs/Makefile.program diff --git a/src/patches/openswan-2.6.20_noxmlto.patch b/src/patches/openswan-2.6.24_noxmlto.patch similarity index 71% rename from src/patches/openswan-2.6.20_noxmlto.patch rename to src/patches/openswan-2.6.24_noxmlto.patch index 5898bd5f40..dc0c30cbb5 100644 --- a/src/patches/openswan-2.6.20_noxmlto.patch +++ b/src/patches/openswan-2.6.24_noxmlto.patch @@ -1,7 +1,25 @@ -diff -Nur openswan-2.6.20dr2.old/programs/pluto/Makefile openswan-2.6.20dr2/programs/pluto/Makefile ---- openswan-2.6.20dr2.old/programs/pluto/Makefile 2008-12-20 19:53:00.000000000 +0100 -+++ openswan-2.6.20dr2/programs/pluto/Makefile 2008-12-20 20:14:07.000000000 +0100 -@@ -171,7 +171,7 @@ +diff -Naur openswan-2.6.24.org/programs/_confread/Makefile openswan-2.6.24/programs/_confread/Makefile +--- openswan-2.6.24.org/programs/_confread/Makefile 2010-01-10 02:34:38.000000000 +0100 ++++ openswan-2.6.24/programs/_confread/Makefile 2010-01-10 22:44:33.000000000 +0100 +@@ -16,7 +16,13 @@ + OPENSWANSRCDIR?=$(shell cd ../..; pwd) + include ${OPENSWANSRCDIR}/Makefile.inc + +-EXTRA5MAN=ipsec.conf.5 ++SUBDIRS=doc lib programs testing ++ifeq ($(findstring $(SUBDIRS),doc),doc) ++ EXTRA5MAN=ipsec.conf.5 ++else ++ EXTRA5MAN= ++endif ++ + CONFFILES=ipsec.conf + EXCONFILES=ipsec.win2k.conf + SOURCEDIR=_confread +diff -Naur openswan-2.6.24.org/programs/pluto/Makefile openswan-2.6.24/programs/pluto/Makefile +--- openswan-2.6.24.org/programs/pluto/Makefile 2010-01-10 02:34:38.000000000 +0100 ++++ openswan-2.6.24/programs/pluto/Makefile 2010-01-10 22:51:15.000000000 +0100 +@@ -172,7 +172,7 @@ all: $(BINNAMEPLUTO) $(BINNAMEADNSIFNEEDED) $(BINNAMEWHACK) #$(BINNAMEWHACKINIT) programs: $(BINNAMEPLUTO) $(BINNAMEADNSIFNEEDED) $(BINNAMEWHACK) #$(BINNAMEWHACKINIT) clean: cleanall @@ -10,16 +28,16 @@ diff -Nur openswan-2.6.20dr2.old/programs/pluto/Makefile openswan-2.6.20dr2/prog endif doinstall: all -@@ -187,6 +187,9 @@ +@@ -188,6 +188,9 @@ $(INSTALL) $(INSTBINFLAGS) $(BINNAMEPLUTO) $(BINNAMEWHACK) $(LIBEXECDIR) #$(INSTALL) $(INSTSUIDFLAGS) $(BINNAMEWHACKINIT) $(LIBEXECDIR) if $(USE_ADNS) ; then $(INSTALL) $(INSTBINFLAGS) $(BINNAMEADNS) $(LIBEXECDIR) ; fi + +ifeq ($(findstring $(SUBDIRS),doc),doc) +doinstalldoc: - ( cd ${OPENSWANSRCDIR}/programs/pluto ; xmlto man pluto.8.xml ; mv ipsec_pluto.8 pluto.8; xmlto man ipsec.secrets.5.xml) $(INSTALL) $(INSTMANFLAGS) ${srcdir}pluto.8 $(PMANDIR)/ipsec_pluto.8 sh ${OPENSWANSRCDIR}/packaging/utils/manlink ${srcdir}pluto.8 | \ + while read from to ; \ @@ -201,10 +204,7 @@ ln -s -f $$from $(FMANDIR)/$$to; \ done @@ -48,21 +66,3 @@ diff -Nur openswan-2.6.20dr2.old/programs/pluto/Makefile openswan-2.6.20dr2/prog alg_info_test: alg_info_test.o ike_alg.o constants.o defs.o log.o db_ops.o crypto.o $(LIBDESLITE) $(OPENSWANLIB) $(CC) -o $@ $^ $(LDFLAGS) $(LIBSPLUTO) -diff -Nur openswan-2.6.20dr2.old/programs/_confread/Makefile openswan-2.6.20dr2/programs/_confread/Makefile ---- openswan-2.6.20dr2.old/programs/_confread/Makefile 2008-12-20 19:53:00.000000000 +0100 -+++ openswan-2.6.20dr2/programs/_confread/Makefile 2008-12-21 00:13:23.000000000 +0100 -@@ -16,7 +16,13 @@ - OPENSWANSRCDIR?=$(shell cd ../..; pwd) - include ${OPENSWANSRCDIR}/Makefile.inc - --EXTRA5MAN=ipsec.conf.5 -+SUBDIRS=doc lib programs testing -+ifeq ($(findstring $(SUBDIRS),doc),doc) -+ EXTRA5MAN=ipsec.conf.5 -+else -+ EXTRA5MAN= -+endif -+ - CONFFILES=ipsec.conf - EXCONFILES=ipsec.win2k.conf - SOURCEDIR=_confread -- 2.39.2