control: Nodejs is not available on all archs, build server packages only where it is.

This commit is contained in:
Timo Aaltonen
2018-12-06 02:16:29 +02:00
parent 9d7e80c3bb
commit 5a1fb50a0a
4 changed files with 12 additions and 4 deletions

8
debian/rules vendored
View File

@@ -5,7 +5,13 @@
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
ONLY_CLIENT=0
# build server only where nodejs is available
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armhf i386 mips mips64el mipsel ppc64 ppc64el s390x))
ONLY_CLIENT=0
else
ONLY_CLIENT=1
endif
DESTDIR=$(CURDIR)/debian/tmp
export PYTHON=python