From d8f8572ea3720f3f9ddd53b874b200a72b88f0a0 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 23 Sep 2015 23:24:05 +0200 Subject: [PATCH] debian: on old Debian releases, enable "oldies" --- debian/control | 3 ++- debian/rules | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 5046d418..cef18422 100644 --- a/debian/control +++ b/debian/control @@ -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/ diff --git a/debian/rules b/debian/rules index 69ac2f99..bdac4940 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.39.5