diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-09-21 22:57:15 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-09-21 22:57:15 +0300 |
commit | 8542099257f8457970df5d001dd0ac1f632951fb (patch) | |
tree | a4022b4e716d64810bba52ece7b99ac4e2baa1e4 /dh_systemd_enable | |
parent | 296138c560140868ab58e20a8ff5e86d18b55dfc (diff) | |
download | debhelper-8542099257f8457970df5d001dd0ac1f632951fb.tar.gz |
dh_systemd_* are stubs on non-linux
Diffstat (limited to 'dh_systemd_enable')
-rwxr-xr-x | dh_systemd_enable | 7 |
1 files changed, 7 insertions, 0 deletions
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<dh_systemd_enable> [S<I<debhelper options>>] [B<--no-enable>] [B<--name=>I<name>] [S<I<unit file> ...>] |