mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-06-03 11:46:31 +02:00
Moved all things for Fedora package into separate folder
This commit is contained in:
parent
a79cdd5748
commit
3ef02bc67d
|
@ -68,17 +68,17 @@ jobs:
|
|||
steps:
|
||||
- checkout
|
||||
- run: dnf install -y rpm-build rpmdevtools dnf-plugins-core
|
||||
- run: mkdir -p ~/rpmbuild/SPECS
|
||||
- run: cp src/packaging/fedora ~/rpmbuild/SPECS
|
||||
- run:
|
||||
name: Install build dependencies
|
||||
command: dnf builddep -y src/fastnetmon_fedora.spec
|
||||
- run: mkdir -p ~/rpmbuild/SPECS
|
||||
- run: cp src/fastnetmon_fedora.spec ~/rpmbuild/SPECS
|
||||
command: dnf builddep -y SPECS/fastnetmon.spec
|
||||
- run:
|
||||
name: Download source
|
||||
command: cd ~/rpmbuild && spectool -g -R SPECS/fastnetmon_fedora.spec
|
||||
command: cd ~/rpmbuild && spectool -g -R SPECS/fastnetmon.spec
|
||||
- run:
|
||||
name: Build RPM
|
||||
command: cd ~/rpmbuild/SPECS && rpmbuild -bb fastnetmon_fedora.spec
|
||||
command: cd ~/rpmbuild/SPECS && rpmbuild -bb fastnetmon.spec
|
||||
- store_artifacts:
|
||||
path: /root/rpmbuild/RPMS/x86_64/fastnetmon-1.2.2-1.fc<< parameters.fedora_version >>.x86_64.rpm
|
||||
- store_artifacts:
|
||||
|
|
|
@ -57,7 +57,7 @@ engines (NetFlow, IPFIX, sFlow, PCAP).
|
|||
|
||||
%install
|
||||
# install systemd unit file
|
||||
install -p -D -m 0644 src/fastnetmon_fedora.service %{buildroot}%{_unitdir}/fastnetmon.service
|
||||
install -p -D -m 0644 src/packaging/fedora/fastnetmon.service %{buildroot}%{_unitdir}/fastnetmon.service
|
||||
|
||||
# install daemon binary
|
||||
install -p -D -m 0755 %__cmake_builddir/fastnetmon %{buildroot}%{_sbindir}/fastnetmon
|
Loading…
Reference in New Issue