[Openswan Users] Creating a Fedora kernel RPM with KLIPS support

sasa sasa at shoponweb.it
Thu Apr 27 22:48:39 CEST 2006


"ted leslie" wrote:
> I dont understand, you HAVE TO install the kernel patches before you 
> compile "make"
> the kernel.

I have followed these steps:
-I have installed FC4
-# yum install fedora-rpmdevtools
-# fedora-buildrpmtree
-# rpm -ivh kernel-2.6.12-1.1456_FC4.src.rpm
-# rpmbuild -bp -target i686 ~/rpmbuild/SPECS/kernel-2.6.spec
- I have modified ~/rpmbuild/SOURCES/kernel-2.6.spec in order to add:
..
Patch3: openswan-2.4.4.kernel-2.6-natt.patch
Patch4: openswan-2.4.4.kernel-2.6-klips.patch
..
%patch3 -p1
%patch4 -p1
..
for i in *.config
do
mv $i .config
echo "CONFIG_IPSEC_NAT_TRAVERSAL=y">>.config
echo "CONFIG_KLIPS=y">>.config
echo "CONFIG_KLIPS_ESP=y">>.config
echo "CONFIG_KLIPS_AH=y">>.config
echo "CONFIG_KLIPS_AUTH_HMAC_MD5=y">>.config
echo "CONFIG_KLIPS_AUTH_HMAC_SHA1=y">>.config
echo "CONFIG_KLIPS_ALG=y">>.config
echo "CONFIG_KLIPS_ENC_CRYPTOAPI=n">>.config
echo "CONFIG_KLIPS_ENC_3DES=y">>.config
echo "CONFIG_KLIPS_ENC_AES=y">>.config
echo "CONFIG_KLIPS_IPCOMP=y">>.config
echo "CONFIG_KLIPS_DEBUG=y">>.config
Arch=`head -1 .config | cut -b 3-`
%if %{includexen}
make ARCH=$Arch nonint_oldconfig > /dev/null
%else
..
%define rhbsys %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] && 
echo || echo .KLIPS_V1)
-#make mrproper
-#cp ~/rpmbuild/SOURCES/kernel-2.6.12-i686.config .config
#make xconfig

..which it is my error ??
thanks again.

------
Salvatore.



More information about the Users mailing list