From 6357866d6e7d479aa1a020af8f3ad11f89fcce3c Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 5 Jul 2024 16:44:51 +0200 Subject: debian/rules: Build with ENABLE_UBUNTU_ACCOUNTSSERVICE on Ubuntu and derivatives --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 18fd0e0f..56c3a7a8 100755 --- a/debian/rules +++ b/debian/rules @@ -10,7 +10,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk -DEB_CMAKE_EXTRA_FLAGS = $(NULL) +ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) + DEB_CMAKE_EXTRA_FLAGS = "-DENABLE_UBUNTU_ACCOUNTSSERVICE=ON" +endif %: dh $@ --with systemd -- cgit v1.2.3