public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Pavel Odintsov <pavel.odintsov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fastnetmon] epel10: Initial import (#2091296).
Date: Fri, 26 Jun 2026 09:31:24 GMT	[thread overview]
Message-ID: <178246628462.1.7163447376137648499.rpms-fastnetmon-8cead2a1161a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fastnetmon
Branch : epel10
Commit : 8cead2a1161a29ea111975c7c36354e38cf09690
Author : Pavel Odintsov <pavel.odintsov@gmail.com>
Date   : 2022-05-31T16:39:08+00:00
Stats  : +118/-0 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/fastnetmon/c/8cead2a1161a29ea111975c7c36354e38cf09690?branch=epel10

Log:
Initial import (#2091296).

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5c4367d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/420e7b873253fdc1b52b517d9c28db39bf384427.tar.gz

diff --git a/fastnetmon.spec b/fastnetmon.spec
new file mode 100644
index 0000000..4b531d2
--- /dev/null
+++ b/fastnetmon.spec
@@ -0,0 +1,115 @@
+%global  fastnetmon_attackdir      %{_localstatedir}/log/fastnetmon_attacks
+%global  fastnetmon_user           fastnetmon
+%global  fastnetmon_group          %{fastnetmon_user}
+%global  fastnetmon_config_path    %{_sysconfdir}/fastnetmon.conf
+
+# We use commit version as we're still in progress of testing FastNetMon on Fedora.
+# We're planning to cut next stable release in next few weeks
+%global  commit0 420e7b873253fdc1b52b517d9c28db39bf384427
+%global  shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+%global  date 20220528
+
+Name:              fastnetmon
+Version:           1.2.1
+Release:           1.%{date}git%{shortcommit0}%{?dist}
+
+Summary:           DDoS detection tool with sFlow, Netflow, IPFIX and port mirror support
+License:           GPLv2
+URL:               https://fastnetmon.com
+
+Source0:           https://github.com/pavel-odintsov/fastnetmon/archive/%{commit0}.tar.gz
+Source1:           fastnetmon.sysusers
+
+BuildRequires:     make
+BuildRequires:     gcc
+BuildRequires:     gcc-c++
+BuildRequires:     boost-devel
+BuildRequires:     log4cpp-devel
+BuildRequires:     ncurses-devel
+BuildRequires:     boost-thread
+BuildRequires:     boost-regex
+BuildRequires:     libpcap-devel
+BuildRequires:     gpm-devel
+BuildRequires:     cmake
+BuildRequires:     capnproto-devel
+BuildRequires:     capnproto
+BuildRequires:     grpc-devel
+BuildRequires:     grpc-cpp
+BuildRequires:     abseil-cpp-devel
+BuildRequires:     grpc-plugins
+BuildRequires:     mongo-c-driver-devel
+BuildRequires:     json-c-devel
+BuildRequires:     systemd
+BuildRequires:     systemd-rpm-macros
+
+Requires(pre):     shadow-utils
+
+%{?systemd_requires}
+
+%description
+DDoS detection tool with sFlow, Netflow, IPFIX and port mirror support.
+
+%prep
+%autosetup -n %{name}-%{commit0}
+
+%build
+
+%cmake -DENABLE_CUSTOM_BOOST_BUILD=FALSE -DDO_NOT_USE_SYSTEM_LIBRARIES_FOR_BUILD=FALSE -DCMAKE_SKIP_BUILD_RPATH=TRUE -DLINK_WITH_ABSL=TRUE -S src
+
+%cmake_build
+
+%install
+# install systemd unit file
+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
+
+# install client binary 
+install -p -D -m 0755 %__cmake_builddir/fastnetmon_client %{buildroot}%{_bindir}/fastnetmon_client
+
+# install api client binary
+install -p -D -m 0755 %__cmake_builddir/fastnetmon_api_client %{buildroot}%{_bindir}/fastnetmon_api_client
+
+# install config
+install -p -D -m 0644 src/fastnetmon.conf %{buildroot}%{fastnetmon_config_path}
+
+# Create log folder
+install -p -d -m 0700 %{buildroot}%{fastnetmon_attackdir}
+
+# Create sysuser manifest to create dynamic user for us
+install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/fastnetmon.conf
+
+%pre
+%sysusers_create_compat %{SOURCE1}
+
+%post
+%systemd_post fastnetmon.service
+
+%preun
+%systemd_preun fastnetmon.service
+
+%postun
+%systemd_postun_with_restart fastnetmon.service 
+
+%files
+
+%{_unitdir}/fastnetmon.service
+
+%{_sysusersdir}/fastnetmon.conf
+
+# Binary daemon
+%{_sbindir}/fastnetmon
+%{_bindir}/fastnetmon_client
+%{_bindir}/fastnetmon_api_client
+
+%config(noreplace) %{fastnetmon_config_path}
+%attr(700,%{fastnetmon_user},%{fastnetmon_group}) %dir %{fastnetmon_attackdir}
+
+%license LICENSE
+%doc README.md SECURITY.md THANKS.md
+
+%changelog
+* Sat May 28 2022 Pavel Odintsov <pavel.odintsov@gmail.com> - 1.2.1-1.20220528git420e7b8
+- First RPM package release
+

diff --git a/fastnetmon.sysusers b/fastnetmon.sysusers
new file mode 100644
index 0000000..2688b0b
--- /dev/null
+++ b/fastnetmon.sysusers
@@ -0,0 +1 @@
+u     fastnetmon  -   "FastNetMon system user"  -      /sbin/nologin

diff --git a/sources b/sources
new file mode 100644
index 0000000..fa9a06a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (420e7b873253fdc1b52b517d9c28db39bf384427.tar.gz) = ce514a11170ff6a23b88650b4bec4d90228b4dc4dfbe0c1cbca0b266a55144e145a075495bb248f4166f07284f7dafeb14873aaedebdf8a5f14c8f3093f56cf3

                 reply	other threads:[~2026-06-26  9:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178246628462.1.7163447376137648499.rpms-fastnetmon-8cead2a1161a@fedoraproject.org \
    --to=pavel.odintsov@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox