From 8542099257f8457970df5d001dd0ac1f632951fb Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 21 Sep 2016 22:57:15 +0300 Subject: dh_systemd_* are stubs on non-linux --- dh_systemd_enable | 7 +++++++ dh_systemd_start | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/dh_systemd_enable b/dh_systemd_enable index 064adc86..d4c83338 100755 --- a/dh_systemd_enable +++ b/dh_systemd_enable @@ -10,6 +10,13 @@ use strict; use Debian::Debhelper::Dh_Lib; use File::Find; +my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS'); +if ($deb_host_arch_os ne 'linux') +{ + warning("systemd is unsupported on $deb_host_arch_os, doing nothing"); + exit(0); +} + =head1 SYNOPSIS B [S>] [B<--no-enable>] [B<--name=>I] [S ...>] diff --git a/dh_systemd_start b/dh_systemd_start index 9914bbd1..1540ab7f 100755 --- a/dh_systemd_start +++ b/dh_systemd_start @@ -11,6 +11,13 @@ use Debian::Debhelper::Dh_Lib; use File::Find; use Cwd qw(getcwd abs_path); +my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS'); +if ($deb_host_arch_os ne 'linux') +{ + warning("systemd is unsupported on $deb_host_arch_os, doing nothing"); + exit(0); +} + =head1 SYNOPSIS B [S>] [B<--restart-after-upgrade>] [B<--no-restart-on-upgrade>] [S ...>] -- cgit v1.2.3