debian/rules, debian/control: Override --with-systemdshutdowndir passed to configure to fix FTBFS on non-linux architectures and do not build-depend against systemd

This commit is contained in:
Laurent Bigonville 2019-08-01 14:59:43 +02:00
parent 34f0448c77
commit 247c516a79
3 changed files with 7 additions and 4 deletions

3
debian/rules vendored
View file

@ -24,7 +24,8 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix= \
--datadir=/usr/share/nut \
--with-pkgconfig-dir=/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \
--with-user=nut --with-group=nut \
--with-udev-dir=/lib/udev --with-systemdsystemunitdir=/lib/systemd/system
--with-udev-dir=/lib/udev --with-systemdsystemunitdir=/lib/systemd/system \
--with-systemdshutdowndir=/lib/systemd/system-shutdown
# only build documentation if asciidoc is installed
ifneq ($(shell which asciidoc),)