From e8aa8ec3ffc295fc9cfb509a028d98283e037ac9 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Thu, 1 Aug 2019 17:05:54 +0200 Subject: [PATCH] Do not FTBFS when building the arch:all packages only --- debian/nut-client.install | 2 ++ debian/rules | 10 ++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/nut-client.install b/debian/nut-client.install index b42caf0..fb77b23 100644 --- a/debian/nut-client.install +++ b/debian/nut-client.install @@ -20,3 +20,5 @@ debian/tmp/usr/share/augeas/lenses/dist/nutupssetconf.aug debian/tmp/usr/share/augeas/lenses/dist/tests/test_nut.aug debian/tmp/usr/share/bash-completion/completions/nut debian/tmp/lib/systemd/system/nut-monitor.service +debian/tmp/lib/systemd/system/nut-client.service +debian/tmp/lib/systemd/system/ups-monitor.service diff --git a/debian/rules b/debian/rules index 2534d9b..5dcfa4c 100755 --- a/debian/rules +++ b/debian/rules @@ -89,6 +89,10 @@ override_dh_auto_install-arch: install -m 0755 debian/local/upsmon $(CURDIR)/debian/tmp/sbin/upsmon install -m 0755 debian/local/upsd $(CURDIR)/debian/tmp/sbin/upsd + # Add a symlink to mask the LSB initscript + ln -s nut-monitor.service $(CURDIR)/debian/tmp/lib/systemd/system/nut-client.service + ln -s /dev/null $(CURDIR)/debian/tmp/lib/systemd/system/ups-monitor.service + override_dh_auto_install-indep: dh_auto_install -i @@ -106,12 +110,6 @@ override_dh_auto_install-indep: override_dh_installinit: dh_installinit --error-handler=handle_start_failure -override_dh_installsystemd: - # Add a symlink to mask the LSB initscript - ln -s nut-monitor.service $(CURDIR)/debian/nut-client/lib/systemd/system/nut-client.service - ln -s /dev/null $(CURDIR)/debian/nut-client/lib/systemd/system/ups-monitor.service - dh_installsystemd - override_dh_compress: dh_compress -X.pdf