2
2
%bcond_with input_dpdk
3
3
%bcond_with input_nfb
4
4
%bcond_with process_experimental
5
+ %bcond_with ctt
5
6
6
7
%global _unitdir %{_prefix}/lib/systemd/system
7
8
@@ -84,6 +85,24 @@ Requires: numactl
84
85
Input plugin for nfb cards.
85
86
%endif
86
87
88
+ %if %{with ctt}
89
+ %package ctt
90
+ Summary: Ctt.
91
+ BuildRequires: nfb-framework
92
+ BuildRequires: numactl-devel
93
+ BuildRequires: libctt-devel
94
+ BuildRequires: libfeta-devel
95
+ Requires: nfb-framework
96
+ Requires: numactl
97
+ Requires: libctt
98
+ Requires: libfeta
99
+ Requires: cttctl
100
+ Requires: ndk-nic-ctl
101
+
102
+ %description ctt
103
+ Ctt package.
104
+ %endif
105
+
87
106
%if %{with process_experimental}
88
107
%package process-experimental
89
108
Summary: Experimental process plugins.
@@ -102,7 +121,7 @@ Experimental process plugins.
102
121
%if 0%{?rhel} == 8
103
122
source /opt/rh/gcc-toolset-14/enable
104
123
%endif
105
- %cmake -DCMAKE_BUILD_TYPE=Release %{?with_input_pcap:-DENABLE_INPUT_PCAP=ON} %{?with_input_dpdk:-DENABLE_INPUT_DPDK=ON} %{?with_input_nfb:-DENABLE_INPUT_NFB=ON} %{?with_process_experimental: -DENABLE_PROCESS_EXPERIMENTAL=ON}
124
+ %cmake -DCMAKE_BUILD_TYPE=Release %{?with_ctt:-DENABLE_CTT=ON} %{? with_input_pcap:-DENABLE_INPUT_PCAP=ON} %{?with_input_dpdk:-DENABLE_INPUT_DPDK=ON} %{?with_input_nfb:-DENABLE_INPUT_NFB=ON} %{?with_process_experimental: -DENABLE_PROCESS_EXPERIMENTAL=ON}
106
125
%cmake_build
107
126
108
127
%install
@@ -141,7 +160,9 @@ source /opt/rh/gcc-toolset-14/enable
141
160
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssadetector.so
142
161
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssdp.so
143
162
163
+ %if %{without ctt}
144
164
%{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache.so
165
+ %endif
145
166
146
167
%{_libdir}/ipfixprobe/schema.json
147
168
%{_libdir}/ipfixprobe/config2args.py
@@ -160,6 +181,12 @@ source /opt/rh/gcc-toolset-14/enable
160
181
%{_libdir}/ipfixprobe/input/libipfixprobe-input-nfb.so
161
182
%endif
162
183
184
+ %if %{with ctt}
185
+ %files ctt
186
+ %{_libdir}/ipfixprobe/input/libipfixprobe-input-nfb-meta.so
187
+ %{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache-ctt.so
188
+ %endif
189
+
163
190
%if %{with input_dpdk}
164
191
%files input-dpdk
165
192
%{_libdir}/ipfixprobe/input/libipfixprobe-input-dpdk.so
0 commit comments