]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
debian: on old Debian releases, enable "oldies"
authorVincent Bernat <vincent@bernat.im>
Wed, 23 Sep 2015 21:24:05 +0000 (23:24 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 23 Sep 2015 21:24:05 +0000 (23:24 +0200)
debian/control
debian/rules

index 5046d418c22d6f6c853a49eafa8da8e99e1e3987..cef184228cafbe7e7c08307ce456a6139f8ef216 100644 (file)
@@ -13,7 +13,8 @@ Build-Depends: debhelper (>= 5),
                libnl-3-dev,
                libreadline-dev,
                libbsd-dev,
-               pkg-config 
+               pkg-config,
+               lsb-release
 Standards-Version: 3.9.6
 Homepage: http://vincentbernat.github.com/lldpd/
 
index 69ac2f99be6f11967df0806662f8e9be6d5429ac..bdac494051f0144c598b1d270b962e2e061f7d93 100755 (executable)
@@ -5,3 +5,8 @@ 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
+
+distrel := $(shell lsb_release --codename --short)
+ifneq (,$(filter $(distrel),lucid lenny etch squeeze))
+       DEB_CONFIGURE_EXTRA_FLAGS += --enable-oldies
+endif