From: Vincent Bernat Date: Fri, 7 Aug 2015 09:22:38 +0000 (+0200) Subject: redhat: on RHEL 5, use --enable-oldies X-Git-Tag: 0.7.17~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d81ecdd370fd1b6199f1db1d3a3daa750b8fedf;p=thirdparty%2Flldpd.git redhat: on RHEL 5, use --enable-oldies Kernel is too old to support everything we need (2.6.18). --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index f9ed0cb5..73236457 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -24,6 +24,13 @@ %bcond_without snmp %endif +# On RHEL < 6, compile with oldies +%if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 600 || 0%{?centos_version} > 0 && 0%{?centos_version} < 600 +%bcond_without oldies +%else +%bcond_with oldies +%endif + %define lldpd_user _lldpd %define lldpd_group _lldpd %define lldpd_chroot /var/run/lldpd @@ -142,6 +149,11 @@ to adjacent network devices. --enable-custom \ %else --disable-custom \ +%endif +%if %{with oldies} + --enable-oldies \ +%else + --disable-oldies \ %endif --with-privsep-user=%lldpd_user \ --with-privsep-group=%lldpd_group \