From: Vincent Bernat Date: Fri, 25 Sep 2015 11:52:36 +0000 (+0200) Subject: debian: only enable systemd unit file on system recent enough X-Git-Tag: 0.8.0~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30741f07ea5328160d05a4c5351f9c9af3489358;p=thirdparty%2Flldpd.git debian: only enable systemd unit file on system recent enough --- 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