From: "alexander.heinisch via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Alexander Heinisch <alexander.heinisch@siemens.com>
Subject: [PATCH] debianize: add support for systemd unit files
Date: Wed, 26 Nov 2025 14:18:32 +0100 [thread overview]
Message-ID: <20251126131832.179765-1-alexander.heinisch@siemens.com> (raw)
From: Alexander Heinisch <alexander.heinisch@siemens.com>
Extended support for:
- dh_installsystemd
- dh_installsystemduser
- dh_installtmpfiles
handled files.
Signed-off-by: Alexander Heinisch <alexander.heinisch@siemens.com>
---
meta/classes/debianize.bbclass | 30 +++++++++++++++++++++++++-----
1 file changed, 25 insertions(+), 5 deletions(-)
diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index e29bfb1e..a629feba 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -174,12 +174,32 @@ deb_debianize() {
done
done
- # handle system unit files and triggers for use with debhelper
- for f in path service socket target timer triggers \
- user.path user.service user.socket user.target user.timer
+ # handle system unit files, tmpfiles and triggers for use with debhelper
+ dh_installdeb_handled=" \
+ .triggers
+ "
+
+ dh_installsystemd_handled=" \
+ .mount .path .service .socket .target .timer \
+ @.path @.service @.socket @.target @.timer \
+ "
+
+ dh_installsystemduser_handled=" \
+ .user.path .user.service .user.socket .user.target .user.timer \
+ @.user.path @.user.service @.user.socket @.user.target @.user.timer \
+ "
+
+ dh_installtmpfiles_handled=" \
+ .tmpfiles
+ "
+
+ for f in ${dh_installdeb_handled} \
+ ${dh_installsystemd_handled} \
+ ${dh_installsystemduser_handled} \
+ ${dh_installtmpfiles_handled}
do
- if [ -f ${WORKDIR}/${PN}.${f} ]; then
- install -v -m 644 ${WORKDIR}/${PN}.${f} ${S}/debian/
+ if [ -f ${WORKDIR}/${PN}${f} ]; then
+ install -v -m 644 ${WORKDIR}/${PN}${f} ${S}/debian/
fi
done
}
--
2.47.3
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20251126131832.179765-1-alexander.heinisch%40siemens.com.
next reply other threads:[~2025-11-26 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-26 13:18 alexander.heinisch via isar-users [this message]
2025-11-28 16:07 ` Zhihang Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251126131832.179765-1-alexander.heinisch@siemens.com \
--to=isar-users@googlegroups.com \
--cc=alexander.heinisch@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox