-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathsystemd-netlogd.spec
More file actions
92 lines (75 loc) · 2.86 KB
/
systemd-netlogd.spec
File metadata and controls
92 lines (75 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Name: systemd-netlogd
Version: 1.4.5
Release: 1%{?dist}
Summary: Forwards messages from the journal to other hosts over the network using syslog format RFC 5424
License: LGPL-2.1-or-later AND GPL-2.0-only
URL: https://github.com/systemd/systemd-netlogd
Source0: %{URL}/archive/v%{version}.tar.gz
BuildRequires: gcc
BuildRequires: meson >= 0.43
BuildRequires: ninja-build
BuildRequires: gperf
BuildRequires: libcap-devel
BuildRequires: systemd-devel >= 230
BuildRequires: openssl-devel
BuildRequires: python3-sphinx
BuildRequires: python3-devel
BuildRequires: python3-lxml
BuildRequires: libcmocka-devel
Requires: systemd >= 230
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
Forwards messages from the journal to other hosts over the network
using the Syslog Protocol (RFC 5424 and RFC 3339). It can be configured
to send messages to both unicast and multicast addresses.
systemd-netlogd runs with its own user systemd-journal-netlog. It starts
sending logs when network is up and stops sending as soon as network is
down (uses sd-network). It reads from journal and forwards to network
sequentially without local buffering or disk usage.
Supported transports: UDP, TCP, TLS (RFC 5425), DTLS (RFC 6012)
%prep
%autosetup
%build
%meson
%meson_build
%check
%meson_test
%install
%meson_install
%pre
getent group systemd-journal >/dev/null 2>&1 || groupadd -r systemd-journal 2>/dev/null || :
getent passwd systemd-journal-netlog >/dev/null || \
useradd -r -g systemd-journal -d / -s /sbin/nologin \
-c "systemd Network Logging" systemd-journal-netlog 2>/dev/null || :
%post
%systemd_post systemd-netlogd.service
%preun
%systemd_preun systemd-netlogd.service
%postun
%systemd_postun_with_restart systemd-netlogd.service
%files
%license LICENSE.LGPL2.1 LICENSE.GPL2
%doc README.md CONTRIBUTING.md ARCHITECTURE.md TESTING.md FAQ.md
%doc examples/
%config(noreplace) %{_sysconfdir}/systemd/netlogd.conf
%{_prefix}/lib/systemd/systemd-netlogd
%{_unitdir}/systemd-netlogd.service
%{_mandir}/man8/systemd-netlogd.8*
%dir %attr(0755,systemd-journal-netlog,systemd-journal) /var/lib/systemd-netlogd
%changelog
* Mon Jan 20 2025 Susant Sahani <ssahani@gmail.com> - 1.4.5-1
- Update to version 1.4.5
- Add comprehensive test suite with cmocka
- Add GitHub Actions CI integration
- Add extensive documentation (CONTRIBUTING.md, ARCHITECTURE.md, TESTING.md, FAQ.md)
- Add configuration examples directory
- Enhance man page with security and performance sections
- Modernize README with Quick Start and troubleshooting
- Fix spec file: remove duplicate BuildRequires, add user creation, use systemd macros
- Add %check section to run tests during build
- Include documentation and examples in package
* Tue May 14 2024 Susant Sahani <ssahani@gmail.com> - 1.4-1
- Initial spec