[Openswan Users]

sasa sasa at shoponweb.it
Tue Dec 6 18:26:19 CET 2005


"Paul Wouters" wrote:

> Yes. Though what I did was modify the SOURCES/linux*config* files so I did 
> not need
> to do the echo stuff you're doing. (my kernel natt rpm is on 
> ftp.openswan.org/kernel/)

..after I have installed the nat-t kernel patch wit your kernel version at 
the ftp address or after I have installed nat-t patch in this mode:

#/usr/src/redhat/SOURCES

..then modify "/usr/src/redhat/SPEC/kernel-2.6.spec" in this mode:

Patch1961: openswan-2.4.4.kernel-2.6-natt.patch
..
%patch1961 -p1
..
cp -fv %{all_arch_configs}
for configfile in *.config
do
      echo "CONFIG_IPSEC_NAT_TRAVERSAL=y" >> $configfile
done

..then in directory "/usr/src/redhat/SPECS" I execute:

#rpmbuild -ba --target=i686 kernel-2.6.spec
#rpm -ivh /usr/src/redhat/RPMS/i686/kernel-2.6.9-1.667.root.i686.rpm

.. before to make a openswan/klips rpm files with:

#rpmbuild -bb openswan.spec --define 'buildklips 1' --define 'kversion 
2.6.9-1.667.root'

I must execute:

export KERNELSRC=/usr/src/redhat/BUILD/kernel-(version)/linux-(version)

.. or this operation is not necessary ??
thanks.

------
Salvatore. 



More information about the Users mailing list