summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-16 19:51:10 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-16 19:51:10 +0300
commite997d092bb47ed71c50d3454db99ff59648abe76 (patch)
tree9d660a592e31815f45651e6f4b46dd7d8a9a2d3d
parent1db0a96eb28faade39d4cef422e32f794291944e (diff)
downloaddebhelper-e997d092bb47ed71c50d3454db99ff59648abe76.tar.gz
Make dh_installsystemd a no-op on non-linux
-rwxr-xr-xdh_installsystemd7
1 files changed, 7 insertions, 0 deletions
diff --git a/dh_installsystemd b/dh_installsystemd
index 48a0e787..691eeee7 100755
--- a/dh_installsystemd
+++ b/dh_installsystemd
@@ -12,6 +12,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);
+}
+
our $VERSION = DH_BUILTIN_VERSION;
=head1 SYNOPSIS