Skip to content

Commit ff8fa49

Browse files
author
Damir Zainullin
committed
CTT - Update RPM build
1 parent b58cfda commit ff8fa49

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

pkg/rpm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ if (ENABLE_INPUT_NFB)
3030
list(APPEND RPMBUILD_ARGS "--with" "input_nfb")
3131
endif()
3232

33+
if (ENABLE_CTT)
34+
list(APPEND RPMBUILD_ARGS "--with" "ctt")
35+
endif()
36+
3337
if (ENABLE_PROCESS_EXPERIMENTAL)
3438
list(APPEND RPMBUILD_ARGS "--with" "process_experimental")
3539
endif()

pkg/rpm/ipfixprobe-nemea.spec.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ source /opt/rh/gcc-toolset-14/enable
120120
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssadetector.so
121121
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssdp.so
122122

123-
%{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache.so
123+
%{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache-ctt.so
124124

125125
%{_libdir}/ipfixprobe/schema.json
126126
%{_libdir}/ipfixprobe/config2args.py

pkg/rpm/ipfixprobe.spec.in

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
%bcond_with input_dpdk
33
%bcond_with input_nfb
44
%bcond_with process_experimental
5+
%bcond_with ctt
56

67
%global _unitdir %{_prefix}/lib/systemd/system
78

@@ -84,6 +85,24 @@ Requires: numactl
8485
Input plugin for nfb cards.
8586
%endif
8687

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+
87106
%if %{with process_experimental}
88107
%package process-experimental
89108
Summary: Experimental process plugins.
@@ -102,7 +121,7 @@ Experimental process plugins.
102121
%if 0%{?rhel} == 8
103122
source /opt/rh/gcc-toolset-14/enable
104123
%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}
106125
%cmake_build
107126

108127
%install
@@ -141,7 +160,9 @@ source /opt/rh/gcc-toolset-14/enable
141160
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssadetector.so
142161
%{_libdir}/ipfixprobe/process/libipfixprobe-process-ssdp.so
143162

163+
%if %{without ctt}
144164
%{_libdir}/ipfixprobe/storage/libipfixprobe-storage-cache.so
165+
%endif
145166

146167
%{_libdir}/ipfixprobe/schema.json
147168
%{_libdir}/ipfixprobe/config2args.py
@@ -160,6 +181,12 @@ source /opt/rh/gcc-toolset-14/enable
160181
%{_libdir}/ipfixprobe/input/libipfixprobe-input-nfb.so
161182
%endif
162183

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+
163190
%if %{with input_dpdk}
164191
%files input-dpdk
165192
%{_libdir}/ipfixprobe/input/libipfixprobe-input-dpdk.so

0 commit comments

Comments
 (0)