]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Package memcached
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 15 Sep 2015 14:06:43 +0000 (15:06 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 15 Sep 2015 14:15:26 +0000 (15:15 +0100)
redhat/freeradius.spec

index 8976d56573d6ed25f64b0ad64388dbfeb622a83c..c791777df1bddfa238c4bddd397b3f71194f9bde 100644 (file)
@@ -1,6 +1,7 @@
 %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}
@@ -99,6 +100,18 @@ done when adding or deleting new users.
 %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
@@ -343,6 +356,8 @@ export CFLAGS="$RPM_OPT_FLAGS -fpic"
         %{?_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"
@@ -713,6 +728,12 @@ fi
 %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