/[smecontribs]/rpms/xtables-addons-kmod/contribs10/xtables-addons-kmod.spec
ViewVC logotype

Diff of /rpms/xtables-addons-kmod/contribs10/xtables-addons-kmod.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by michel, Thu Jun 25 16:44:52 2020 UTC Revision 1.2 by michel, Tue Jul 21 16:26:02 2020 UTC
# Line 4  Line 4 
4  # queuing that build enable the macro again for subsequent builds; that way  # queuing that build enable the macro again for subsequent builds; that way
5  # a new akmod package will only get build when a new one is actually needed  # a new akmod package will only get build when a new one is actually needed
6    
7  %global buildforkernels newest  %global buildforkernels current
 #%global buildforkernels current  
 #%global buildforkernels akmod  
8    
9  #FIXME xtables-kmod doesn't use the appropriate cflags  #FIXME xtables-kmod doesn't use the appropriate cflags
10  %global debug_package %{nil}  %global debug_package %{nil}
# Line 14  Line 12 
12  %define name xtables-addons-kmod  %define name xtables-addons-kmod
13  %define name_src xtables-addons  %define name_src xtables-addons
14  %define version 2.14  %define version 2.14
15  %define release 01  %define release 02
16  Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY).  Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY).
17  Name: %{name}  Name: %{name}
18  Version: %{version}  Version: %{version}
# Line 26  Source: %{name_src}-%{version}.tar.xz Line 24  Source: %{name_src}-%{version}.tar.xz
24  URL: http://xtables-addons.sourceforge.net  URL: http://xtables-addons.sourceforge.net
25  Patch0: %{name_src}-2.14-init.patch  Patch0: %{name_src}-2.14-init.patch
26  Packager: Michel Begue <mab974@gmail.com>  Packager: Michel Begue <mab974@gmail.com>
 #BuildRoot: %RPM_BUILD_ROOT  
27    
28  Requires: smeserver-release >= 10.0  Requires: smeserver-release >= 10.0
29  Requires: xtables-addons >= 2.14  Requires: xtables-addons >= 2.14
# Line 47  Requires(postun): /sbin/weak-modules Line 44  Requires(postun): /sbin/weak-modules
44  It is just a "kernel update" release.  It is just a "kernel update" release.
45    
46  %changelog  %changelog
47    * Tue Jul 21 2020 Michel Begue <mab974@gmail.com> 2.14-02.sme
48    - change in install workaround. copy /usr/lib to /lib
49    
50  * Wed Apr 15 2020 Michel Begue <mab974@gmail.com> 2.14-01.sme  * Wed Apr 15 2020 Michel Begue <mab974@gmail.com> 2.14-01.sme
51  - initial release 2.14 for sme10  - initial release 2.14 for sme10
52  - changes for using GeoIP2 databases (download and build (-g2) + fetch)  - changes for using GeoIP2 databases (download and build (-g2) + fetch)
# Line 59  It is just a "kernel update" release. Line 59  It is just a "kernel update" release.
59  %prep  %prep
60  # error out if there was something wrong with kmodtool  # error out if there was something wrong with kmodtool
61  %{?kmodtool_check}  %{?kmodtool_check}
62    
63  # print kmodtool output for debugging purposes:  # print kmodtool output for debugging purposes:
64  kmodtool  --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null  kmodtool  --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
65    
# Line 70  for kernel_version in %{?kernel_versions Line 71  for kernel_version in %{?kernel_versions
71  done  done
72    
73  %build  %build
 #ls -l  /usr/src/kernels/2.6.32-754.el6.x86_64/include/config/auto.conf >&2  
74  for kernel_version  in %{?kernel_versions} ; do  for kernel_version  in %{?kernel_versions} ; do
75          if ! grep -q 'XT_TARGET_TEE=m' %{_usrsrc}/kernels/${kernel_version%%___*}/.config; then          if ! grep -q 'XT_TARGET_TEE=m' %{_usrsrc}/kernels/${kernel_version%%___*}/.config; then
76                    echo ' >>>>> sed TEE'
77                  sed -i 's/build_TEE=/build_TEE=m/' _kmod_build_${kernel_version%%___*}/mconfig                  sed -i 's/build_TEE=/build_TEE=m/' _kmod_build_${kernel_version%%___*}/mconfig
78          fi          fi
79          if ! grep -q 'XT_TARGET_CHECKSUM=m' %{_usrsrc}/kernels/${kernel_version%%___*}/.config; then          if ! grep -q 'XT_TARGET_CHECKSUM=m' %{_usrsrc}/kernels/${kernel_version%%___*}/.config; then
80                    echo ' >>>>> sed CHECKSUM'
81                  sed -i 's/build_CHECKSUM=/build_CHECKSUM=m/' _kmod_build_${kernel_version%%___*}/mconfig                  sed -i 's/build_CHECKSUM=/build_CHECKSUM=m/' _kmod_build_${kernel_version%%___*}/mconfig
82          fi          fi
83          export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}          export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}
# Line 83  for kernel_version  in %{?kernel_version Line 85  for kernel_version  in %{?kernel_version
85  done  done
86    
87  %install  %install
88    %{__rm} -rf %{buildroot}
89    
90  for kernel_version  in %{?kernel_versions} ; do  for kernel_version  in %{?kernel_versions} ; do
91          export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}          export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}
92          make %{?_smp_mflags} V=1 -C "${kernel_version##*___}" M=${PWD}/_kmod_build_${kernel_version%%___*}/extensions _emodinst_ INSTALL_MOD_PATH=%{buildroot}%{_prefix} ext-mod-dir=%{kmodinstdir_postfix}          make %{?_smp_mflags} V=1 -C "${kernel_version##*___}" M=${PWD}/_kmod_build_${kernel_version%%___*}/extensions _emodinst_ INSTALL_MOD_PATH=%{buildroot}%{_prefix} ext-mod-dir=%{kmodinstdir_postfix}
93          # workaround to avoid error at file stage, it seems that we are installing it in /usr/lib and files script is waiting it in /lib...          # workaround to avoid error at file stage, it seems that we are installing it in /usr/lib and files script is waiting it in /lib...
94          mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/../lib          #mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/../lib
95            cp -R %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/../lib
96  done  done
97  %{?akmod_install}  %{?akmod_install}
98    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed