public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] debianize: add support for systemd unit files
@ 2025-11-26 13:18 alexander.heinisch via isar-users
  2025-11-28 16:07 ` Zhihang Wei
  0 siblings, 1 reply; 2+ messages in thread
From: alexander.heinisch via isar-users @ 2025-11-26 13:18 UTC (permalink / raw)
  To: isar-users; +Cc: Alexander Heinisch

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.

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

end of thread, other threads:[~2025-11-28 16:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-26 13:18 [PATCH] debianize: add support for systemd unit files alexander.heinisch via isar-users
2025-11-28 16:07 ` Zhihang Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox