[mate-system-monitor] 01/02: debian/rules: Build without systemd support on non-Linux kernels

John Paul Adrian Glaubitz glaubitz at moszumanska.debian.org
Sat Jun 4 13:32:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

glaubitz pushed a commit to branch master
in repository mate-system-monitor.

commit 54bf5136a7d2d3873e6b91916c93752048313b43
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Sat Jun 4 15:15:34 2016 +0200

    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:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-system-monitor.git



More information about the pkg-mate-commits mailing list