]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: on RHEL 5, use --enable-oldies
authorVincent Bernat <vincent@bernat.im>
Fri, 7 Aug 2015 09:22:38 +0000 (11:22 +0200)
committerVincent Bernat <vincent@bernat.im>
Fri, 7 Aug 2015 09:22:38 +0000 (11:22 +0200)
Kernel is too old to support everything we need (2.6.18).

redhat/lldpd.spec

index f9ed0cb5f451bd8ecab8ede5b42d7dcf536a8abd..732364572808fb7b6fbcea871964b19b3a4339cf 100644 (file)
 %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 \