From 30741f07ea5328160d05a4c5351f9c9af3489358 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 25 Sep 2015 13:52:36 +0200 Subject: [PATCH] debian: only enable systemd unit file on system recent enough --- debian/rules | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index bdac4940..9aaa807b 100755 --- a/debian/rules +++ b/debian/rules @@ -4,9 +4,11 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/class/autotools.mk -DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml --with-json --with-systemdsystemunitdir=/lib/systemd/system +DEB_CONFIGURE_EXTRA_FLAGS = --with-snmp --with-xml --with-json distrel := $(shell lsb_release --codename --short) ifneq (,$(filter $(distrel),lucid lenny etch squeeze)) DEB_CONFIGURE_EXTRA_FLAGS += --enable-oldies +else + DEB_CONFIGURE_EXTRA_FLAGS += --with-systemdsystemunitdir=/lib/systemd/system endif -- 2.39.5