]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
debian: only enable systemd unit file on system recent enough
authorVincent Bernat <vincent@bernat.im>
Fri, 25 Sep 2015 11:52:36 +0000 (13:52 +0200)
committerVincent Bernat <vincent@bernat.im>
Fri, 25 Sep 2015 11:52:36 +0000 (13:52 +0200)
debian/rules

index bdac494051f0144c598b1d270b962e2e061f7d93..9aaa807b9c78c2ce4e7130217449ee6a88b76662 100755 (executable)
@@ -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