# _without_x509 - without x509 support
# _without_dist_kernel - without sources of distribution kernel
# _with_NAT - without NAT-Traversal
-# _with_25x - without FreeS/WAN's keying daemon to work with
+# _with_25x - without FreeS/WAN's keying daemon to work with
# the 2.5 kernel IPsec implementation
# _without_modules - build only library+programs, no kernel modules
-%define x509ver x509-1.4.1
+%define x509ver x509-1.4.6
%define nat_tr_ver 0.6
-%define _25x_ver 20030720
+%define _25x_ver 20030825
Summary: Free IPSEC implemetation
Summary(pl): Publicznie dostêpna implementacja IPSEC
Name: freeswan
-Version: 2.01
-%define _rel 0.4
-Release: %{_rel}
+Version: 2.02
+%define _rel 0.1
+Release: %{_rel}
License: GPL
Group: Networking/Daemons
Source0: ftp://ftp.xs4all.nl/pub/crypto/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 0a5bdc7b93879c77de295fd75d704b4a
+# Source0-md5: e7a5ff59b2abbb8c812221bbe7fd6e09
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-pl-man-pages.tar.bz2
# Source1-md5: 6bd0b509015a2795cfb895aaab0bbc55
Source2: http://www.strongsec.com/%{name}/%{x509ver}-%{name}-%{version}.tar.gz
-# Source2-md5: 5a76bed78f6aaf18d1509520ab7936fc
+# Source2-md5: cd5be2b57920f839cdd88f73c4d1a32a
Source3: http://open-source.arkoon.net/freeswan/NAT-Traversal-%{nat_tr_ver}.tar.gz
# Source3-md5: 6858a8535aa2611769d17e86e6735db2
-Source4: http://gondor.apana.org.au/~herbert/freeswan/%{version}/freeswan-%{version}-linux-ipsec-%{_25x_ver}.patch.gz
-# Source4-md5: 3e3fe930d050bc0b2cfe4c9b1efaf9b8
+##Source4: http://gondor.apana.org.au/~herbert/freeswan/%{version}/freeswan-%{version}-linux-ipsec-%{_25x_ver}.patch.gz
+### Source4-md5: 48d2be60229d7971d39a89dac578b18d
Patch0: %{name}-showhostkey.patch
Patch1: %{name}-init.patch
Patch2: %{name}-paths.patch
PreReq: rc-scripts
Requires(post,preun): /sbin/chkconfig
Requires: gawk
-Requires: gmp
+Requires: gmp
%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: kernel-headers}}
-%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: kernel-source}}
-%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: kernel-doc}}
+%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: kernel-source}}
+%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: kernel-doc}}
# XFree86 is required to use usefull lndir
-%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: XFree86}}
+%{!?_without_dist_kernel:%{!?_without_modules:BuildRequires: XFree86}}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
FreeS/WAN jest darmow± implementacj± protoko³u IPSEC.
%package -n kernel-net-ipsec
-Summary: Kernel module for Linux IPSEC
-Summary(pl): Modu³ j±dra dla IPSEC
-Release: %{_rel}@%{_kernel_ver_str}
-Group: Base/Kernel
+Summary: Kernel module for Linux IPSEC
+Summary(pl): Modu³ j±dra dla IPSEC
+Release: %{_rel}@%{_kernel_ver_str}
+Group: Base/Kernel
%{!?_without_dist_kernel:%requires_releq_kernel_up}
-PreReq: modutils >= 2.4.6-4
-Requires(post,postun): /sbin/depmod
-Requires: %{name} = %{version}
-Conflicts: kernel <= 2.4.20-9
+PreReq: modutils >= 2.4.6-4
+Requires(post,postun): /sbin/depmod
+Requires: %{name} = %{version}
+Conflicts: kernel <= 2.4.20-9
%description -n kernel-net-ipsec
Kernel module for FreeS/WAN.
Modu³ j±dra wykorzystywany przez FreeS/WAN.
%package -n kernel-smp-net-ipsec
-Summary: SMP kernel module for Linux IPSEC
-Summary(pl): Modu³ j±dra SMP dla IPSEC
-Release: %{_rel}@%{_kernel_ver_str}
-Group: Base/Kernel
+Summary: SMP kernel module for Linux IPSEC
+Summary(pl): Modu³ j±dra SMP dla IPSEC
+Release: %{_rel}@%{_kernel_ver_str}
+Group: Base/Kernel
%{!?_without_dist_kernel:%requires_releq_kernel_up}
-PreReq: modutils >= 2.4.6-4
-Requires(post,postun): /sbin/depmod
-Requires: %{name} = %{version}
-Conflicts: kernel-smp <= 2.4.20-9
+PreReq: modutils >= 2.4.6-4
+Requires(post,postun): /sbin/depmod
+Requires: %{name} = %{version}
+Conflicts: kernel-smp <= 2.4.20-9
%description -n kernel-smp-net-ipsec
SMP kernel module for FreeS/WAN.
%{?!_without_x509:patch -p1 -s <%{x509ver}-%{name}-%{version}/freeswan.diff}
#%patch2 -p1
%patch3 -p1
-%{?_with_NAT:patch -p1 -s <NAT-Traversal-%{nat_tr_ver}/NAT-Traversal-%{nat_tr_ver}-freeswan-2.00-x509-1.3.5.diff}
+%{?_with_NAT:patch -p1 -s <NAT-Traversal-%{nat_tr_ver}/NAT-Traversal-%{nat_tr_ver}-freeswan-2.00-x509-1.3.5.diff}
%{?_with_25x:gzip -d <%{SOURCE4}| patch -p1 -s}
%if 0%{!?_without_x509:1}
- install -d $RPM_BUILD_ROOT%{_sysconfdir}/ipsec/ipsec.d
+ install -d $RPM_BUILD_ROOT%{_sysconfdir}/ipsec/ipsec.d
for i in crls cacerts private policies; do
install -d $RPM_BUILD_ROOT%{_sysconfdir}/ipsec/ipsec.d/$i
done
for i in CHANGES README; do
- install %{x509ver}-%{name}-%{version}/$i $i.x509 ;
+ install %{x509ver}-%{name}-%{version}/$i $i.x509 ;
done
%endif
%files
%defattr(644,root,root,755)
-%doc README CREDITS CHANGES BUGS
+%doc README CREDITS CHANGES BUGS
%doc doc/{kernel.notes,impl.notes,examples,prob.report,standards} doc/*.html
%{?_with_NAT:%doc NAT-Traversal-%{nat_tr_ver}/README.NAT-Traversal}
%{?!_without_x509:%doc CHANGES.x509 README.x509}