From: Vincent Bernat Date: Wed, 23 Sep 2015 21:24:05 +0000 (+0200) Subject: debian: on old Debian releases, enable "oldies" X-Git-Tag: 0.8.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8f8572ea3720f3f9ddd53b874b200a72b88f0a0;p=thirdparty%2Flldpd.git debian: on old Debian releases, enable "oldies" --- 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