[Openswan Users]

sasa sasa at shoponweb.it
Fri Dec 2 12:15:24 CET 2005

"Paul Wouters" wrote:

>> # rpmbuild -bb openswan.spec --define 'buildklips 1' --define 'kversion
>> 2.6.9-1.667'
>> openswan-2.4.4-1.i386.rpm
>> openswan-doc-2.4.4-1.i386.rpm
>> openswan-klips-2.4.4-2.6.9_1.667_1.i386.rpm
> This gives you openswan-klips without nat-t support.

... if I want make a openswan-klips rpm files with nat-t support I must 
before install nat-t patch and after make a rpm files, but always with:

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

.. or pheraps I must use another options togheter 'buildklips 1' and 
'kversion 2.6.9-1.667' ??

For to install nat-t patch (for then use her with klips) I can use 
"openswan-2.4.4.kernel-2.6-natt.patch.gz" in this mode:

..expand a compressed file "openswan-2.4.4.kernel-2.6-natt.patch.gz" in


..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
        echo "CONFIG_IPSEC_NAT_TRAVERSAL=y" >> $configfile

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

#rpmbuild -bp --target=i686 kernel-2.6.spec

..at this point I can make a rpm files with klips/nat-t support in this 

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

..this is just ??
thanks again.


More information about the Users mailing list