Do not FTBFS when building the arch:all packages only

This commit is contained in:
Laurent Bigonville 2019-08-01 17:05:54 +02:00
parent 247c516a79
commit e8aa8ec3ff
2 changed files with 6 additions and 6 deletions

View File

@ -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

10
debian/rules vendored
View File

@ -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