/[packages]/cauldron/ipt_NETFLOW/current/SPECS/ipt_NETFLOW.spec
ViewVC logotype

Contents of /cauldron/ipt_NETFLOW/current/SPECS/ipt_NETFLOW.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 540829 - (show annotations) (download)
Mon Oct 21 20:16:01 2013 UTC (10 years, 6 months ago) by umeabot
File size: 2846 byte(s)
Mageia 4 Mass Rebuild
1 %define module_name ipt_NETFLOW
2 %define dkms_package dkms-%{module_name}
3
4 Name: %{module_name}
5 Version: 1.8
6 Release: %mkrel 4
7 Summary: DKMS-ready module for ipt_netflow an iptables modules
8 License: GPLv3
9 Source: http://sourceforge.net/projects/ipt_netflow/files/ipt_netflow/%{module_name}-%{version}.tgz
10 # Disable searching for iptables sources, not used anyway
11 Patch0: ipt_NETFLOW-1.8-nosrc.patch
12 # Split build of module and library by fixing dependencies in Makefile
13 Patch1: ipt_NETFLOW-1.8-split-build.patch
14 # Support destdir for installing the library
15 Patch2: ipt_NETFLOW-1.8-destdir.patch
16 # Fix build on recent kernels
17 Patch3: ipt_NETFLOW-1.8-build.patch
18 Group: Development/Kernel
19 BuildRequires: pkgconfig(xtables) pkgconfig(libiptc)
20
21 %description
22 ipt_netflow is very fast and effective Netflow exporting module for Linux kernel.
23 This is netfilter/iptables module adding support for NETFLOW target.
24
25 %package -n %{dkms_package}
26 Summary: DKMS-ready module for ipt_netflow an iptables modules
27 Requires(pre): dkms
28 Requires(post): dkms
29 BuildArch: noarch
30
31 %description -n %{dkms_package}
32 ipt_netflow is very fast and effective Netflow exporting module for Linux kernel.
33 This is netfilter/iptables module adding support for NETFLOW target.
34
35 This package provides the %{module_name} kernel module(s).
36
37 %package -n iptables-NETFLOW
38 Summary: The NETFLOW library which will be loaded by iptables when NETFLOW rules are processed
39 Requires: kmod(ipt_NETFLOW)
40
41 %description -n iptables-NETFLOW
42 The NETFLOW library which will be loaded by iptables when NETFLOW rules are processed.
43
44 %prep
45 %setup -q -n ipt_netflow-%{version}
46 %apply_patches
47
48 %build
49 ./configure
50 %make libipt_NETFLOW.so
51
52 %install
53 rm -rf %{buildroot}
54
55 # Install the library
56 make DESTDIR=%{buildroot} linstall
57
58 # Install the sources of the module
59 mkdir -p %{buildroot}/usr/src/
60 mkdir -p %{buildroot}/usr/src/%{module_name}-%{version}-%{release}
61 cp -a ../ipt_netflow-%{version}/*.{c,h} %{buildroot}/usr/src/%{module_name}-%{version}-%{release}
62
63 cat > %{buildroot}/usr/src/%{module_name}-%{version}-%{release}/dkms.conf <<EOF
64
65 PACKAGE_VERSION="%{version}-%{release}"
66
67 #Items below here should not have to change with each driver version
68 PACKAGE_NAME="%{module_name}"
69 CLEAN="make clean"
70 BUILT_MODULE_NAME[0]="%{module_name}"
71 DEST_MODULE_LOCATION[0]="/kernel/net/netfilter/"
72 AUTOINSTALL=yes
73 EOF
74
75 %post -n %{dkms_package}
76 dkms add -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
77 dkms build -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
78 dkms install -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
79
80 %preun -n %{dkms_package}
81 dkms remove -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade --all || :
82
83 %files -n %{dkms_package}
84 /usr/src/%{module_name}-%{version}-%{release}
85
86 %files -n iptables-NETFLOW
87 /%{_lib}/iptables/libipt_NETFLOW.so

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30