arago-gpl-notice: update with systemd service for proper output
PATCH 1/1 arago-gpl-notice: update with systemd service for proper output
From: Denys Dmytriyenko <[email protected]>
Signed-off-by Denys Dmytriyenko <[email protected]>
--- .../recipes-core/arago-gpl-notice/arago-gpl-notice.bb | 14 ++++++++++---- .../arago-gpl-notice/arago-gpl-notice/gplv3-notice.service | 11 +++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 meta-arago-distro/recipes-core/arago-gpl-notice/arago-gpl-notice/gplv3-notice.service
meta-arago-distro/recipes-core/arago-gpl-notice/arago-gpl-notice.bb +10 -4
@@ -2,18 +2,24 @@ DESCRIPTION = "Script to warn users of GPLv3 content on the target file system a LICENSE = "MIT" LIC_FILES_CHKSUM = "file://print-gplv3-packages.sh;beginline=2;endline=18;md5=d134d0d385c53f9201a270fef8448f29" -PR = "r2" +PR = "r3" S = "${WORKDIR}" INITSCRIPT_NAME = "gplv3-notice" INITSCRIPT_PARAMS = "defaults 99" -inherit allarch update-rc.d +inherit allarch update-rc.d systemd -SRC_URI = "file://print-gplv3-packages.sh" +SRC_URI = " file://print-gplv3-packages.sh \ + file://gplv3-notice.service" do_install(){ install -d ${D}${sysconfdir}/init.d - install -m 0755 ${S}/print-gplv3-packages.sh ${D}${sysconfdir}/init.d/gplv3-notice + install -m 0755 ${S}/print-gplv3-packages.sh ${D}${sysconfdir}/init.d/gplv3-notice + + install -d ${D}${systemd_system_unitdir} + install -m0644 ${WORKDIR}/gplv3-notice.service ${D}${systemd_system_unitdir} } + +SYSTEMD_SERVICE_${PN} = "gplv3-notice.service"
meta-arago-distro/recipes-core/arago-gpl-notice/arago-gpl-notice/gplv3-notice.service new file +11 -0
@@ -0,0 +1,11 @@ +[Unit] +Description=Print notice about GPLv3 packages + +[Service] +Type=oneshot +ExecStart=/etc/init.d/gplv3-notice +WorkingDirectory=/etc/init.d +StandardOutput=tty + +[Install] +WantedBy=multi-user.target
Signature · 1 line
2.7.4