]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - redhat/lldpd.spec
lldpd: make custom TLV code optional
[thirdparty/lldpd.git] / redhat / lldpd.spec
index 42fb302c7868633ea7c0af825e01a17dc7f0e2b0..1be407e8a10a002492c19a55a3009cc16a4a4bcb 100644 (file)
@@ -14,6 +14,7 @@
 %bcond_without lldpmed
 %bcond_without dot1
 %bcond_without dot3
+%bcond_without custom
 
 # On RHEL < 5, disable SNMP, Net-SNMP installation seems broken
 %if 0%{?rhel_version} > 0 && 0%{?rhel_version} < 500 || 0%{?centos_version} > 0 && 0%{?centos_version} < 500
@@ -137,6 +138,11 @@ to adjacent network devices.
    --enable-dot3 \
 %else
    --disable-dot3 \
+%endif
+%if %{with custom}
+   --enable-custom \
+%else
+   --disable-custom \
 %endif
    --with-privsep-user=%lldpd_user \
    --with-privsep-group=%lldpd_group \