forked from systemd/systemd-netlogd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
systemd-netlogd.spec
61 lines (52 loc) · 1.74 KB
/
systemd-netlogd.spec
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
Name: systemd-netlogd
Version: 1.4
Release: 1%{?dist}
Summary: Forwards messages from the journal to other hosts over the network using syslog format RFC 5424
License: GPLv2 and LGPL-2.1+ and CC0
URL: https://github.com/systemd/systemd-netlogd
Source0: %{URL}/archive/v%{version}.tar.gz
BuildRequires: gperf
BuildRequires: libcap-devel
BuildRequires: pkg-config
BuildRequires: systemd-devel
BuildRequires: python3-sphinx
BuildRequires: meson >= 0.43
%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 own user systemd-journal-netlog. 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 one by one. It does not
use any extra disk space. systemd-netlogd supports UDP, TCP, TLS and DTLS
(Datagram Transport Layer Security RFC 6012).
BuildRequires: gcc
BuildRequires: libcap-devel
BuildRequires: docbook-style-xsl
BuildRequires: gperf
BuildRequires: python3-devel
BuildRequires: python3-lxml
BuildRequires: git
BuildRequires: meson >= 0.43
BuildRequires: systemd-devel
BuildRequires: openssl-devel
%prep
%autosetup
rm -rf build && mkdir build
%build
pushd build
meson ..
ninja-build -v
popd
%install
pushd build
DESTDIR=%{buildroot} ninja-build -v install
popd
%files
%{_sysconfdir}/systemd/system/netlogd.conf
%{_sysconfdir}/systemd/system/systemd-netlogd.service
/lib/systemd/systemd-netlogd
%{_mandir}/man8/systemd-netlogd.8*
%changelog
* Tue May 14 2024 Susant Sahani <ssahani@gmail.com> - 1.4
- Initial spec