Added version configuration for CentOS 6 build

This commit is contained in:
Pavel Odintsov 2020-06-06 18:29:58 +01:00
parent 20351fd3b7
commit c01904f5e5
2 changed files with 19 additions and 3 deletions

@ -345,7 +345,7 @@ jobs:
path: /tmp/fastnetmon_install.log
- run: src/scripts/build_any_package.pl rpm /opt/fastnetmon_libraries_bundle.tar.gz 1.1.6
- store_artifacts:
path: /tmp/fastnetmon_1.1.6_amd64.rpm
path: /tmp/result_data/fastnetmon-1.1.6-1.el6.x86_64.rpm
- run: cp src/fastnetmon.conf /etc/fastnetmon.conf
- run: /opt/fastnetmon/fastnetmon --configuration_check
centos7:

@ -172,7 +172,13 @@ DOC
%global fastnetmon_config_path %{_sysconfdir}/fastnetmon.conf
Name: fastnetmon
Version: 1.1.3
DOC
$systemd_spec_file .= <<'DOC';
Version: $package_version
DOC
$systemd_spec_file .= <<'DOC';
Release: 1%{?dist}
Summary: A high performance DoS/DDoS load analyzer built on top of multiple packet capture engines (NetFlow, IPFIX, sFLOW, netmap, PF_RING, PCAP).
@ -286,8 +292,18 @@ DOC
%global fastnetmon_group %{fastnetmon_user}
%global fastnetmon_config_path %{_sysconfdir}/fastnetmon.conf
DOC
# But we need interpolation here
$spec_file .= <<DOC;
Name: fastnetmon
Version: 1.1.3
Version: $package_version
DOC
$spec_file .= <<'DOC';
Release: 1%{?dist}
Summary: A high performance DoS/DDoS load analyzer built on top of multiple packet capture engines (NetFlow, IPFIX, sFLOW, netmap, PF_RING, PCAP).