From 542a279fcb9a6cf37ab36b165540b8333bac4443 Mon Sep 17 00:00:00 2001 From: purian23 Date: Tue, 9 Dec 2025 12:39:56 -0500 Subject: [PATCH] Add systemd debian/ubuntu packages --- distro/debian/dms-git/debian/rules | 5 ++++- distro/debian/dms/debian/rules | 5 ++++- distro/ubuntu/dms-git/debian/rules | 5 ++++- distro/ubuntu/dms/debian/rules | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/distro/debian/dms-git/debian/rules b/distro/debian/dms-git/debian/rules index de00f6f7..b3ba0766 100755 --- a/distro/debian/dms-git/debian/rules +++ b/distro/debian/dms-git/debian/rules @@ -15,7 +15,10 @@ export GOMODCACHE := $(CURDIR)/debian/tmp-home/go-mod export GOTOOLCHAIN := local %: - dh $@ + dh $@ --with systemd + +override_dh_installsystemd: + dh_installsystemd --user --name=dms override_dh_auto_build: # Create Go cache directories diff --git a/distro/debian/dms/debian/rules b/distro/debian/dms/debian/rules index e3a82862..d73f91ac 100755 --- a/distro/debian/dms/debian/rules +++ b/distro/debian/dms/debian/rules @@ -5,7 +5,10 @@ UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*$$//') DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) %: - dh $@ + dh $@ --with systemd + +override_dh_installsystemd: + dh_installsystemd --user --name=dms override_dh_auto_build: if [ "$(DEB_HOST_ARCH)" = "amd64" ]; then \ diff --git a/distro/ubuntu/dms-git/debian/rules b/distro/ubuntu/dms-git/debian/rules index 2171d5c4..e105749c 100755 --- a/distro/ubuntu/dms-git/debian/rules +++ b/distro/ubuntu/dms-git/debian/rules @@ -15,7 +15,10 @@ export GOMODCACHE := $(CURDIR)/debian/tmp-home/go-mod export GOTOOLCHAIN := local %: - dh $@ + dh $@ --with systemd + +override_dh_installsystemd: + dh_installsystemd --user --name=dms override_dh_auto_build: # Create Go cache directories (sbuild sets HOME to non-existent path) diff --git a/distro/ubuntu/dms/debian/rules b/distro/ubuntu/dms/debian/rules index b3ddc510..ba045f31 100755 --- a/distro/ubuntu/dms/debian/rules +++ b/distro/ubuntu/dms/debian/rules @@ -11,7 +11,10 @@ UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*$$//') BASE_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed 's/ppa[0-9]*$$//' | sed 's/+git.*//') %: - dh $@ + dh $@ --with systemd + +override_dh_installsystemd: + dh_installsystemd --user --name=dms override_dh_auto_build: # All files are included in source package (downloaded by build-source.sh)