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