diff mbox series

systemd-netlogd: new recipe

Message ID 20250207120628.909410-1-ravi@prevas.dk
State New
Headers show
Series systemd-netlogd: new recipe | expand

Commit Message

Rasmus Villemoes Feb. 7, 2025, 12:06 p.m. UTC
From: Rasmus Villemoes <ravi@prevas.dk>

In some deployments, the log aggregator collects log messages in the
syslog format, so systemd-journal-upload and friends can not be
used.

systemd-netlogd is a daemon for filling that gap.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
---
 .../systemd/systemd-netlogd_1.4.4.bb          | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta/recipes-core/systemd/systemd-netlogd_1.4.4.bb

Comments

Ross Burton Feb. 7, 2025, 3:20 p.m. UTC | #1
On 7 Feb 2025, at 12:06, Rasmus Villemoes via lists.openembedded.org <rasmus.villemoes=prevas.dk@lists.openembedded.org> wrote:
> 
> From: Rasmus Villemoes <ravi@prevas.dk>
> 
> In some deployments, the log aggregator collects log messages in the
> syslog format, so systemd-journal-upload and friends can not be
> used.
> 
> systemd-netlogd is a daemon for filling that gap.

I’d suggest that meta-oe is a better place for this.

Ross
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd-netlogd_1.4.4.bb b/meta/recipes-core/systemd/systemd-netlogd_1.4.4.bb
new file mode 100644
index 0000000000..851817e9be
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd-netlogd_1.4.4.bb
@@ -0,0 +1,25 @@ 
+SUMMARY = "Forwards messages from the journal to other hosts over the network using the Syslog Protocol"
+
+LICENSE = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
+
+SRC_URI = "git://github.com/systemd/systemd-netlogd.git;protocol=https;branch=main"
+SRCREV = "b03cc3b1a75048c7cf19467d8918a4b7320767e6"
+
+inherit meson systemd pkgconfig useradd
+
+S = "${WORKDIR}/git"
+
+DEPENDS += "systemd"
+DEPENDS += "openssl"
+DEPENDS += "gperf-native"
+DEPENDS += "python3-sphinx-native"
+
+# systemd-netlogd uses prefix and sysconfdir in a weird way.
+EXTRA_OEMESON += "--prefix ${libdir}/systemd --sysconfdir ${sysconfdir}/systemd"
+
+FILES:${PN} += "${libdir}"
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM:${PN} = "-r systemd-journal"
+USERADD_PARAM:${PN} = "--system -d / -M --shell /sbin/nologin -g systemd-journal systemd-journal-netlog"