From 54bf5136a7d2d3873e6b91916c93752048313b43 Mon Sep 17 00:00:00 2001 From: James Clarke Date: Sat, 4 Jun 2016 15:15:34 +0200 Subject: [PATCH] debian/rules: Build without systemd support on non-Linux kernels --- debian/rules | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 499bd8a..95373be 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,13 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) +ifneq (,$(findstring linux,$(DEB_HOST_ARCH_OS))) + CONFIGURE_SYSTEMD = --enable-systemd +else + CONFIGURE_SYSTEMD = --disable-systemd +endif + %: dh $@ $(DHFLAGS) @@ -20,7 +27,7 @@ override_dh_auto_configure: --libexecdir=/usr/lib/${pkgname} \ --localstatedir=/var \ --disable-static \ - --enable-systemd \ + $(CONFIGURE_SYSTEMD) \ --with-gtk=3.0 override_dh_strip: