%bcond_with rlm_yubikey
#%bcond_with experimental_modules
+%{!?_with_rlm_cache_memcached: %global _without_rlm_cache_memcached --without-rlm_cache_memcached}
%{!?_with_rlm_eap_pwd: %global _without_rlm_eap_pwd --without-rlm_eap_pwd}
%{!?_with_rlm_eap_tnc: %global _without_rlm_eap_tnc --without-rlm_eap_tnc}
%{!?_with_rlm_yubikey: %global _without_rlm_yubikey --without-rlm_yubikey}
%debug_package
%endif
+%if %{?_with_rlm_cache_memcached:1}%{?!_with_rlm_cache_memcached:0}
+%package memcached
+Summary: Memcached support for freeRADIUS
+Group: System Environment/Daemons
+Requires: %{name} = %{version}-%{release}
+Requires: libmemcached
+BuildRequires: libmemcached-devel
+
+%description memcached
+Adds support for rlm_memcached as a cache driver.
+%endif
+
%package config
Group: System Environment/Daemons
Summary: FreeRADIUS config files
%{?_without_rlm_sql_freetds} \
%{?_with_rlm_ruby} \
%{?_without_rlm_ruby}
+ %{?_with_rlm_cache_memcached} \
+ %{?_without_rlm_cache_memcached} \
# --with-modules="rlm_wimax" \
%if "%{_lib}" == "lib64"
%doc %{_mandir}/man8/radsqlrelay.8.gz
%doc %{_mandir}/man8/rlm_ippool_tool.8.gz
+%if %{?_with_rlm_cache_memcached:1}%{!?_with_rlm_cache_memcached:0}
+%files memcached
+%defattr(-,root,root)
+%{_libdir}/freeradius/rlm_cache_memcached.so
+%endif
+
%files krb5
%defattr(-,root,root)
%{_libdir}/freeradius/rlm_krb5.so