From patchwork Wed Jun 12 00:04:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Zheng X-Patchwork-Id: 1114241 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vW7vnW4p"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45NnG14YP3z9s4Y for ; Wed, 12 Jun 2019 10:05:59 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D052887DAF; Wed, 12 Jun 2019 00:05:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rUN8Jb7YQRXK; Wed, 12 Jun 2019 00:05:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D194187DA6; Wed, 12 Jun 2019 00:05:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 1D9CA1BF390 for ; Wed, 12 Jun 2019 00:05:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1AE0685F09 for ; Wed, 12 Jun 2019 00:05:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJ9fiDY07IJC for ; Wed, 12 Jun 2019 00:05:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3488885EE9 for ; Wed, 12 Jun 2019 00:05:50 +0000 (UTC) Received: by mail-pf1-f172.google.com with SMTP id j2so8457527pfe.6 for ; Tue, 11 Jun 2019 17:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=R8NzHAfRSVJ0tpXyqJI/2GCRd95WD4LsEuYP1epMCtk=; b=vW7vnW4piTrWS95Cl61/TR/4OOgmAplsk6I3QYVAPk6QBHx9FPc2wMNjyEmUZDLSuG szD7V2uHg9mdTjtrQ1nVKS5qBUQulVQlKkjM2ctVRWeOY/xLbdfoNLJKX9eA29kTsgnt 5Gz+BUWEVYEYuIZWFUiMeZC0VADvlhPB8LNYjgKLPh1z60oVgaRtQzbVyyoH//KuLKnk CUugqH1ZxOG+f52RM0mh7agEm5WNkd1zpn3StOjNn1v5pGOc5I5GCzS5GV093ZvZWu7/ Dbt6ztQfcEz7sIwqP/jKYfWDky+KKojlyi9eLUDciEs4v9XSrhCjo5WxAXkKoy60/wX0 GCOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=R8NzHAfRSVJ0tpXyqJI/2GCRd95WD4LsEuYP1epMCtk=; b=C8TZK3uRANToZXkcv0rQbOPyM5Rqtqt2CX3kGQFS3K4gmZDdzb1MXGdf7Vw+kV36uI 2etc+pfmFq8Y0VfKbiSGMY+gQa1M3jOq87O5xtsKJ2oSzDN826FFXMEjQEzmdgwCuhuE L2wK8GDCPQ2itTHnO+8iso+kYbWOvB/r2Bu/DKy7qWaUtSSecz6p70HoPPA02f/0rYUp we0XXRl8rpExtgYV6o+V5A3mchTAllHSop/Kzjuq+FeTwdLeTDKbDz3Mvz/qN52sAyT0 PAM7+X0iU60mX5dSetofdr3iQpaN6iUVvjIVk1wsp3rYLMW9RhCTAn1j1+FFn3Q078HI OmLg== X-Gm-Message-State: APjAAAVKs3QzWfVIjupkmN48O+ec6FWhbd18VPw5h9VaJQWmQ71USOnL jeboP1vf5q0haEACz5UOrxJzmFxvwai5JdvTGbs= X-Google-Smtp-Source: APXvYqxfzuOb4SQHEo7KPc8DauOnY5mYG0Q5HxItB9Kxb+PGwK6hImAdVAYg0u6tLaQHd4uVOq1xlwwkm9bhf/q30To= X-Received: by 2002:aa7:825a:: with SMTP id e26mr84422441pfn.255.1560297949819; Tue, 11 Jun 2019 17:05:49 -0700 (PDT) MIME-Version: 1.0 From: Yi Zheng Date: Wed, 12 Jun 2019 08:04:06 +0800 Message-ID: To: Fabrice Fontaine Subject: [Buildroot] [buildroot] patch for systemd, add systemd-journal-remote X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: buildroot Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Hi, Here is my patch on systemd, which provides an option to select whether to build 'systemd-journal-remote' command. Could you please have an review, and submit the patch to the offical repo? I have checked that it works. Thanks. From cf907fd68480cf8573e552bb433246478edfd512 Mon Sep 17 00:00:00 2001 From: Brock Zheng Techyauld Ltd Date: Tue, 11 Jun 2019 21:33:40 +0800 Subject: [PATCH 17/17] systemd: add systemd-journal-remote supporting --- package/systemd/Config.in | 13 +++++++++++++ package/systemd/systemd.mk | 4 ++++ 2 files changed, 17 insertions(+) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 92ffc7cc5a..ca27ac3eed 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -112,6 +112,19 @@ config BR2_PACKAGE_SYSTEMD_BOOT_EFI_ARCH default "x64" if BR2_x86_64 depends on BR2_PACKAGE_SYSTEMD_BOOT +config BR2_PACKAGE_SYSTEMD_JOURNAL_REMOTE + bool "receive serialized journal events and store them to journal files" + depends on BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY + select BR2_PACKAGE_LIBCURL + help + systemd-journal-remote is a command to receive serialized journal + events and store them to journal files. Input streams are in the + Journal Export Format[1], i.e. like the output from journalctl + --output=export. For transport over the network, this serialized + stream is usually carried over an HTTPS connection. + + https://www.freedesktop.org/software/systemd/man/systemd-journal-remote.service.html + config BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY bool "HTTP server for journal events" select BR2_PACKAGE_LIBMICROHTTPD diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 0797d27f4e..d68a8ba956 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -179,6 +179,10 @@ else SYSTEMD_CONF_OPTS += -Dmicrohttpd=false -Dqrencode=false endif +ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_REMOTE),y) +SYSTEMD_CONF_OPTS += -Dremote=true +endif + ifeq ($(BR2_PACKAGE_LIBSELINUX),y) SYSTEMD_DEPENDENCIES += libselinux SYSTEMD_CONF_OPTS += -Dselinux=true -- 2.22.0