All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] systemd-netlogd: new recipe
@ 2025-02-10 13:29 Rasmus Villemoes
  2025-02-10 23:13 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus Villemoes @ 2025-02-10 13:29 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj, Rasmus Villemoes

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>
---
Originally sent to oe-core, but it was suggested the meta-oe might be
a better place for this.

https://lore.kernel.org/openembedded-core/20250207120628.909410-1-ravi@prevas.dk/

 .../systemd-netlogd/systemd-netlogd_1.4.4.bb  | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb

diff --git a/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb b/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb
new file mode 100644
index 0000000000..851817e9be
--- /dev/null
+++ b/meta-oe/recipes-support/systemd-netlogd/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"
-- 
2.48.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH] systemd-netlogd: new recipe
  2025-02-10 13:29 [meta-oe][PATCH] systemd-netlogd: new recipe Rasmus Villemoes
@ 2025-02-10 23:13 ` Khem Raj
  2025-02-12  8:18   ` Rasmus Villemoes
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2025-02-10 23:13 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: openembedded-devel

Thanks for your contribution, since this recipe depends on systemd, it
would make it specific to that being in distro features so it can be
safely ignored on
non-systemd distros.

On Mon, Feb 10, 2025 at 5:29 AM Rasmus Villemoes <ravi@prevas.dk> 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.
>
> Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
> ---
> Originally sent to oe-core, but it was suggested the meta-oe might be
> a better place for this.
>
> https://lore.kernel.org/openembedded-core/20250207120628.909410-1-ravi@prevas.dk/
>
>  .../systemd-netlogd/systemd-netlogd_1.4.4.bb  | 25 +++++++++++++++++++
>  1 file changed, 25 insertions(+)
>  create mode 100644 meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb
>
> diff --git a/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb b/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb
> new file mode 100644
> index 0000000000..851817e9be
> --- /dev/null
> +++ b/meta-oe/recipes-support/systemd-netlogd/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"
> --
> 2.48.1
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH] systemd-netlogd: new recipe
  2025-02-10 23:13 ` Khem Raj
@ 2025-02-12  8:18   ` Rasmus Villemoes
  2025-02-12 12:41     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus Villemoes @ 2025-02-12  8:18 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

On Mon, Feb 10 2025, Khem Raj <raj.khem@gmail.com> wrote:

> Thanks for your contribution, since this recipe depends on systemd, it
> would make it specific to that being in distro features so it can be
> safely ignored on
> non-systemd distros.
>

IIUC, you're asking me to add

REQUIRED_DISTRO_FEATURES = "systemd"

to the recipe? Yes, that makes sense.

Rasmus



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-oe][PATCH] systemd-netlogd: new recipe
  2025-02-12  8:18   ` Rasmus Villemoes
@ 2025-02-12 12:41     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2025-02-12 12:41 UTC (permalink / raw)
  To: Rasmus Villemoes; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]

On Wed, Feb 12, 2025 at 12:18 AM Rasmus Villemoes <ravi@prevas.dk> wrote:

> On Mon, Feb 10 2025, Khem Raj <raj.khem@gmail.com> wrote:
>
> > Thanks for your contribution, since this recipe depends on systemd, it
> > would make it specific to that being in distro features so it can be
> > safely ignored on
> > non-systemd distros.
> >
>
> IIUC, you're asking me to add
>
> REQUIRED_DISTRO_FEATURES = "systemd"


Yes precisely

>
>
> to the recipe? Yes, that makes sense.
>
> Rasmus
>
>

[-- Attachment #2: Type: text/html, Size: 1208 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-12 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 13:29 [meta-oe][PATCH] systemd-netlogd: new recipe Rasmus Villemoes
2025-02-10 23:13 ` Khem Raj
2025-02-12  8:18   ` Rasmus Villemoes
2025-02-12 12:41     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.