]> git.pld-linux.org Git - packages/freeswan.git/commitdiff
- small fix for kernel another then 2.4.x
authorluzik <luzik@pld-linux.org>
Wed, 9 Jul 2003 23:48:53 +0000 (23:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    freeswan.spec -> 1.58

freeswan.spec

index c78fa96939e2620b548a8c6ccfda544f66e88640..5d62d3b40659246177faff63fbc42e85b9b63f28 100644 (file)
@@ -87,18 +87,19 @@ Modu
 %{?!_without_25x:%patch4 -p1}
 
 %build
+%define _kver `echo "%{_kernel_ver}" |awk -F. '{print $2}'`
 %if 0%{!?_without_modules:1}
   install -d kernelsrc
   lndir -silent /usr/src/linux kernelsrc
   mv kernelsrc/.config kernelsrc/.config.old
   cp kernelsrc/.config.old kernelsrc/.config
-    %if 0%{!?_without_dist_kernel:1}
+  %if 0%{!?_without_dist_kernel:1}
     rm -rf kernelsrc/include/asm
     cd kernelsrc
-    patch -R -p1 <../linux/net/Makefile.fs2_4.patch
-    patch -R -p1 <../linux/net/Config.in.fs2_4.patch
-    patch -R -p1 <../linux/net/ipv4/af_inet.c.fs2_4.patch
-    patch -R -p1 <../linux/Documentation/Configure.help.fs2_4.patch
+    patch -R -p1 <../linux/net/Makefile.fs2_%{_kver}.patch
+    patch -R -p1 <../linux/net/Config.in.fs2_%{_kver}.patch
+    patch -R -p1 <../linux/net/ipv4/af_inet.c.fs2_%{_kver}.patch
+    patch -R -p1 <../linux/Documentation/Configure.help.fs2_%{_kver}.patch
     cd ..
     rm -rf kernelsrc/{crypto,include/{freeswan,zlib,crypto},lib/{zlib,libfreeswan},net/ipsec}
     rm kernelsrc/include/{freeswan,pfkey,pfkeyv2}.h
This page took 0.078483 seconds and 4 git commands to generate.