"Fossies" - the Fresh Open Source Software Archive

Member "freeradius-server-3.0.23/redhat/freeradius.spec" (10 Jun 2021, 33583 Bytes) of package /linux/misc/freeradius-server-3.0.23.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 %bcond_with rlm_yubikey
    2 %bcond_without ldap
    3 # %%bcond_with experimental_modules
    4 
    5 %{!?_with_rlm_cache_memcached: %global _without_rlm_cache_memcached --without-rlm_cache_memcached}
    6 %{!?_with_rlm_eap_pwd: %global _without_rlm_eap_pwd --without-rlm_eap_pwd}
    7 %{!?_with_rlm_eap_tnc: %global _without_rlm_eap_tnc --without-rlm_eap_tnc}
    8 %{!?_with_rlm_yubikey: %global _without_rlm_yubikey --without-rlm_yubikey}
    9 %{?_without_ldap: %global _without_libfreeradius_ldap --without-libfreeradius-ldap}
   10 
   11 # experimental modules
   12 %bcond_with rlm_idn
   13 %bcond_with rlm_ruby
   14 %bcond_with rlm_sql_oracle
   15 %{?_with_rlm_idn: %global _with_experimental_modules --with-experimental-modules}
   16 %{?_with_rlm_opendirectory: %global _with_experimental_modules --with-experimental-modules}
   17 %{?_with_rlm_ruby: %global _with_experimental_modules --with-experimental-modules}
   18 %{?_with_rlm_securid: %global _with_experimental_modules --with-experimental-modules}
   19 %{?_with_rlm_sql_oracle: %global _with_experimental_modules --with-experimental-modules}
   20 
   21 %if %{?_with_experimental_modules:1}%{!?_with_experimental_modules:0}
   22 %{!?_with_rlm_idn: %global _without_rlm_idn --without-rlm_idn}
   23 %{!?_with_rlm_opendirectory: %global _without_rlm_opendirectory --without-rlm_opendirectory}
   24 %{!?_with_rlm_ruby: %global _without_rlm_ruby --without-rlm_ruby}
   25 %{!?_with_rlm_securid: %global _without_rlm_securid --without-rlm_securid}
   26 %{!?_with_rlm_sql_oracle: %global _without_rlm_sql_oracle --without-rlm_sql_oracle}
   27 %endif
   28 
   29 %{?el6: %global _without_libwbclient --with-winbind-dir=/nonexistant}
   30 
   31 Summary: High-performance and highly configurable free RADIUS server
   32 Name: freeradius
   33 Version: 3.0.23
   34 Release: 1%{?dist}
   35 License: GPLv2+ and LGPLv2+
   36 Group: System Environment/Daemons
   37 URL: http://www.freeradius.org/
   38 
   39 Source0: ftp://ftp.freeradius.org/pub/radius/freeradius-server-%{version}.tar.bz2
   40 %if %{?_unitdir:1}%{!?_unitdir:0}
   41 Source100: radiusd.service
   42 Source104: freeradius-tmpfiles-conf
   43 %else
   44 Source100: freeradius-radiusd-init
   45 %define initddir %{?_initddir:%{_initddir}}%{!?_initddir:%{_initrddir}}
   46 %endif
   47 
   48 Source102: freeradius-logrotate
   49 Source103: freeradius-pam-conf
   50 
   51 Obsoletes: freeradius-devel
   52 Obsoletes: freeradius-libs
   53 
   54 %define docdir %{_docdir}/freeradius-%{version}
   55 %define initddir %{?_initddir:%{_initddir}}%{!?_initddir:%{_initrddir}}
   56 
   57 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
   58 
   59 BuildRequires: autoconf
   60 BuildRequires: gdbm-devel
   61 BuildRequires: openssl, openssl-devel
   62 BuildRequires: pam-devel
   63 BuildRequires: zlib-devel
   64 BuildRequires: net-snmp-devel
   65 BuildRequires: net-snmp-utils
   66 %{?el7:BuildRequires: libwbclient-devel}
   67 %{?el7:BuildRequires: samba-devel}
   68 %if %{?_unitdir:1}%{!?_unitdir:0}
   69 BuildRequires: systemd-devel
   70 %endif
   71 BuildRequires: readline-devel
   72 BuildRequires: libpcap-devel
   73 BuildRequires: libtalloc-devel
   74 BuildRequires: libcurl-devel
   75 
   76 Requires(pre): shadow-utils glibc-common
   77 Requires(post): /sbin/chkconfig
   78 Requires(preun): /sbin/chkconfig
   79 Requires: freeradius-config = %{version}-%{release}
   80 Requires: openssl
   81 Requires: libpcap
   82 Requires: readline
   83 Requires: libtalloc
   84 Requires: net-snmp
   85 %{?el7:Requires: libwbclient}
   86 Requires: zlib
   87 Requires: pam
   88 %{?el6:Requires: redhat-lsb-core}
   89 
   90 %if %{?_with_rlm_idn:1}%{?!_with_rlm_idn:0}
   91 Requires: libidn
   92 BuildRequires: libidn-devel
   93 %endif
   94 
   95 %description
   96 The FreeRADIUS Server Project is a high performance and highly configurable
   97 GPL'd free RADIUS server. The server is similar in some respects to
   98 Livingston's 2.0 server.  While FreeRADIUS started as a variant of the
   99 Cistron RADIUS server, they don't share a lot in common any more. It now has
  100 many more features than Cistron or Livingston, and is much more configurable.
  101 
  102 FreeRADIUS is an Internet authentication daemon, which implements the RADIUS
  103 protocol, as defined in RFC 2865 (and others). It allows Network Access
  104 Servers (NAS boxes) to perform authentication for dial-up users. There are
  105 also RADIUS clients available for Web servers, firewalls, Unix logins, and
  106 more.  Using RADIUS allows authentication and authorization for a network to
  107 be centralized, and minimizes the amount of re-configuration which has to be
  108 done when adding or deleting new users.
  109 
  110 # CentOS defines debug package by default. Only define it if not already defined
  111 %if 0%{!?_enable_debug_packages:1}
  112 %debug_package
  113 %endif
  114 
  115 %if %{?_with_rlm_cache_memcached:1}%{?!_with_rlm_cache_memcached:0}
  116 %package memcached
  117 Summary: Memcached support for freeRADIUS
  118 Group: System Environment/Daemons
  119 Requires: %{name} = %{version}-%{release}
  120 Requires: libmemcached
  121 BuildRequires: libmemcached-devel
  122 
  123 %description memcached
  124 Adds support for rlm_memcached as a cache driver.
  125 %endif
  126 
  127 %package config
  128 Group: System Environment/Daemons
  129 Summary: FreeRADIUS config files
  130 Provides: freeradius-config
  131 
  132 %description config
  133 FreeRADIUS default config files
  134 This package should be used as a base for a site local package
  135 to configure the FreeRADIUS server.
  136 
  137 %package utils
  138 Group: System Environment/Daemons
  139 Summary: FreeRADIUS utilities
  140 Requires: %{name} = %{version}-%{release}
  141 Requires: libpcap >= 0.9.4
  142 
  143 %description utils
  144 The FreeRADIUS server has a number of features found in other servers,
  145 and additional features not found in any other server. Rather than
  146 doing a feature by feature comparison, we will simply list the features
  147 of the server, and let you decide if they satisfy your needs.
  148 
  149 Support for RFC and VSA Attributes Additional server configuration
  150 attributes Selecting a particular configuration Authentication methods
  151 
  152 %package perl-util
  153 Group: System Environment/Daemons
  154 Summary: FreeRADIUS Perl utilities
  155 Requires: perl-Net-IP
  156 
  157 %description perl-util
  158 This package provides Perl utilities for managing IP pools stored in
  159 SQL databases.
  160 
  161 %if %{!?_without_ldap:1}%{?_without_ldap:0}
  162 %package ldap
  163 Summary: LDAP support for FreeRADIUS
  164 Group: System Environment/Daemons
  165 Requires: %{name} = %{version}-%{release}
  166 Requires: openldap-ltb
  167 BuildRequires: openldap-ltb
  168 
  169 %description ldap
  170 This plugin provides LDAP support for the FreeRADIUS server project.
  171 %endif
  172 
  173 %package krb5
  174 Summary: Kerberos 5 support for FreeRADIUS
  175 Group: System Environment/Daemons
  176 Requires: %{name} = %{version}-%{release}
  177 Requires: krb5-libs
  178 BuildRequires: krb5-devel
  179 
  180 %description krb5
  181 This plugin provides Kerberos 5 support for the FreeRADIUS server project.
  182 
  183 %package perl
  184 Summary: Perl support for FreeRADIUS
  185 Group: System Environment/Daemons
  186 Requires: %{name} = %{version}-%{release}
  187 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  188 %{?fedora:BuildRequires: perl-devel}
  189 %if 0%{?rhel} <= 5
  190 BuildRequires: perl
  191 %endif
  192 %if 0%{?rhel} >= 6
  193 BuildRequires: perl-devel
  194 %endif
  195 BuildRequires: perl(ExtUtils::Embed)
  196 
  197 %description perl
  198 This plugin provides Perl support for the FreeRADIUS server project.
  199 
  200 %if %{?el6:0}%{!?el6:1}
  201 %package python
  202 Summary: Python support for FreeRADIUS
  203 Group: System Environment/Daemons
  204 Requires: %{name} = %{version}-%{release}
  205 %{?fedora:Requires: python2}
  206 %{?fedora:BuildRequires: python2-devel}
  207 %if 0%{?rhel} <= 7
  208 Requires: python
  209 BuildRequires: python-devel
  210 %endif
  211 %if 0%{?rhel} >= 8
  212 Requires: python2
  213 BuildRequires: python2-devel
  214 %endif
  215 
  216 %description python
  217 This plugin provides Python support for the FreeRADIUS server project.
  218 %endif
  219 
  220 %package mysql
  221 Summary: MySQL support for FreeRADIUS
  222 Group: System Environment/Daemons
  223 Requires: %{name} = %{version}-%{release}
  224 Requires: mysql
  225 BuildRequires: mysql-devel
  226 
  227 %description mysql
  228 This plugin provides MySQL support for the FreeRADIUS server project.
  229 
  230 %package postgresql
  231 Summary: PostgreSQL support for FreeRADIUS
  232 Group: System Environment/Daemons
  233 Requires: %{name} = %{version}-%{release}
  234 Requires: postgresql
  235 BuildRequires: postgresql-devel
  236 
  237 %description postgresql
  238 This plugin provides PostgreSQL support for the FreeRADIUS server project.
  239 
  240 %package sqlite
  241 Summary: SQLite support for FreeRADIUS
  242 Group: System Environment/Daemons
  243 Requires: %{name} = %{version}-%{release}
  244 Requires: sqlite
  245 BuildRequires: sqlite-devel
  246 
  247 %description sqlite
  248 This plugin provides SQLite support for the FreeRADIUS server project.
  249 
  250 %package unixODBC
  251 Summary: unixODBC support for FreeRADIUS
  252 Group: System Environment/Daemons
  253 Requires: %{name} = %{version}-%{release}
  254 Requires: unixODBC
  255 BuildRequires: unixODBC-devel
  256 
  257 %description unixODBC
  258 This plugin provides unixODBC support for the FreeRADIUS server project.
  259 
  260 %package freetds
  261 Summary: FreeTDS support for FreeRADIUS
  262 Group: System Environment/Daemons
  263 Requires: %{name} = %{version}-%{release}
  264 Requires: freetds
  265 BuildRequires: freetds-devel
  266 
  267 %description freetds
  268 This plugin provides FreeTDS support for the FreeRADIUS server project.
  269 
  270 %if %{?_with_rlm_sql_oracle:1}%{!?_with_rlm_sql_oracle:0}
  271 %package oracle
  272 Summary: Oracle support for FreeRADIUS
  273 Group: System Environment/Daemons
  274 Requires: %{name} = %{version}-%{release}
  275 Requires: oracle-instantclient11.2
  276 BuildRequires: oracle-instantclient11.2-devel
  277 
  278 %description oracle
  279 This plugin provides Oracle support for the FreeRADIUS server project.
  280 
  281 %ifarch x86_64
  282 %global oracle_include_dir /usr/include/oracle/11.2/client64
  283 %global oracle_lib_dir %{_prefix}/lib/oracle/11.2/client64/lib
  284 %endif
  285 %ifarch i386
  286 %global oracle_include_dir /usr/include/oracle/11.2/client
  287 %global oracle_lib_dir %{_prefix}/lib/oracle/11.2/client/lib
  288 %endif
  289 %endif
  290 
  291 %if %{?el6:0}%{!?el6:1}
  292 %package redis
  293 Summary: Redis support for FreeRADIUS
  294 Group: System Environment/Daemons
  295 Requires: %{name} = %{version}-%{release}
  296 Requires: hiredis
  297 BuildRequires: hiredis-devel
  298 
  299 %description redis
  300 This plugin provides Redis support for the FreeRADIUS server project.
  301 %endif
  302 
  303 %package rest
  304 Summary: REST support for FreeRADIUS
  305 Group: System Environment/Daemons
  306 Requires: %{name} = %{version}-%{release}
  307 Requires: json-c >= 0.10
  308 BuildRequires: json-c-devel >= 0.10
  309 
  310 %description rest
  311 This plugin provides REST support for the FreeRADIUS server project.
  312 
  313 %if %{?_with_rlm_ruby:1}%{!?_with_rlm_ruby:0}
  314 %package ruby
  315 Summary: Ruby support for FreeRADIUS
  316 Group: System Environment/Daemons
  317 Requires: %{name} = %{version}-%{release}
  318 Requires: ruby
  319 BuildRequires: ruby ruby-devel
  320 
  321 %description ruby
  322 This plugin provides Ruby support for the FreeRADIUS server project.
  323 %endif
  324 
  325 %if %{?_with_rlm_yubikey:1}%{!?_with_rlm_yubikey:0}
  326 %package yubikey
  327 Summary: YubiCloud support for FreeRADIUS
  328 Group: System Environment/Daemons
  329 Requires: %{name} = %{version}-%{release}
  330 Requires: ykclient >= 2.10
  331 BuildRequires: ykclient-devel >= 2.10
  332 
  333 %description yubikey
  334 This plugin provides YubiCloud support for the FreeRADIUS server project.
  335 %endif
  336 
  337 
  338 %prep
  339 %setup -q -n freeradius-server-%{version}
  340 # Some source files mistakenly have execute permissions set
  341 find $RPM_BUILD_DIR/freeradius-server-%{version} \( -name '*.c' -o -name '*.h' \) -a -perm /0111 -exec chmod a-x {} +
  342 
  343 
  344 %build
  345 # Retain CFLAGS from the environment...
  346 %if %{?_with_developer:1}%{!?_with_developer:0}
  347 export CFLAGS="$CFLAGS -fpic"
  348 export CXXFLAGS="$CFLAGS"
  349 %endif
  350 
  351 # Need to pass these explicitly for clang, else rpmbuilder bails when trying to extract debug info from
  352 # the libraries.  Guessing GCC does this by default.  Why use clang over gcc? The version of clang
  353 # which ships with RHEL 6 has basic C11 support, gcc doesn't.
  354 export LDFLAGS="-Wl,--build-id"
  355 
  356 %configure \
  357         --libdir=%{_libdir}/freeradius \
  358         --sysconfdir=%{_sysconfdir} \
  359         --disable-ltdl-install \
  360         --with-gnu-ld \
  361         --with-threads \
  362         --with-thread-pool \
  363         --with-docdir=%{docdir} \
  364 %if %{!?_without_ldap:1}%{?_without_ldap:0}
  365         --with-rlm-ldap-include-dir=/usr/local/openldap/include \
  366         --with-rlm-ldap-lib-dir=/usr/local/openldap/lib64 \
  367 %endif
  368         --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \
  369         --with-rlm-sql-postgresql-lib-dir=%{_libdir} \
  370         --with-rlm-sql_mysql-include-dir=/usr/include/mysql \
  371         --with-mysql-lib-dir=%{_libdir}/mysql \
  372         --with-unixodbc-lib-dir=%{_libdir} \
  373         --with-rlm-dbm-lib-dir=%{_libdir} \
  374         --with-rlm-krb5-include-dir=/usr/kerberos/include \
  375         --without-rlm_eap_ikev2 \
  376         --without-rlm_sql_iodbc \
  377         --without-rlm_sql_firebird \
  378         --without-rlm_sql_db2 \
  379         --without-rlm_sql_mongo \
  380         --with-jsonc-lib-dir=%{_libdir} \
  381         --with-jsonc-include-dir=/usr/include/json \
  382         --with-winbind-include-dir=/usr/include/samba-4.0 \
  383         --with-winbind-lib-dir=/usr/lib64/samba \
  384         --with-systemd \
  385         %{?_with_rlm_yubikey} \
  386         %{?_without_rlm_yubikey} \
  387         %{?_with_rlm_sql_oracle} \
  388         %{?_with_rlm_sql_oracle: --with-oracle-include-dir=%{oracle_include_dir}} \
  389         %{?_with_rlm_sql_oracle: --with-oracle-lib-dir=%{oracle_lib_dir}} \
  390         %{?_without_rlm_sql_oracle} \
  391         %{?_with_experimental_modules} \
  392         %{?_without_experimental_modules} \
  393         %{?_without_rlm_eap_pwd} \
  394         %{?_without_rlm_eap_tnc} \
  395         %{?_with_rlm_idn} \
  396         %{?_without_rlm_idn} \
  397         %{?_with_rlm_opendirectory} \
  398         %{?_without_rlm_opendirectory} \
  399         %{?_with_rlm_securid} \
  400         %{?_without_rlm_securid} \
  401         %{?_with_rlm_ruby} \
  402         %{?_without_rlm_ruby} \
  403         %{?_with_rlm_cache_memcached} \
  404         %{?_without_rlm_cache_memcached} \
  405         %{?_without_libwbclient} \
  406         %{?_without_libfreeradius_ldap} \
  407 #        --with-modules="rlm_wimax" \
  408 
  409 make %_smp_mflags
  410 
  411 %install
  412 rm -rf $RPM_BUILD_ROOT
  413 mkdir -p $RPM_BUILD_ROOT/var/run/radiusd
  414 mkdir -p $RPM_BUILD_ROOT/var/lib/radiusd
  415 make install R=$RPM_BUILD_ROOT
  416 # modify default configuration
  417 RADDB=$RPM_BUILD_ROOT%{_sysconfdir}/raddb
  418 perl -i -pe 's/^#user =.*$/user = radiusd/'   $RADDB/radiusd.conf
  419 perl -i -pe 's/^#group =.*$/group = radiusd/' $RADDB/radiusd.conf
  420 # logs
  421 mkdir -p $RPM_BUILD_ROOT/var/log/radius/radacct
  422 touch $RPM_BUILD_ROOT/var/log/radius/{radutmp,radius.log}
  423 
  424 # For systemd based systems, that define _unitdir, install the radiusd unit
  425 %if %{?_unitdir:1}%{!?_unitdir:0}
  426 install -D -m 755 redhat/radiusd.service $RPM_BUILD_ROOT/%{_unitdir}/radiusd.service
  427 install -D -m 644 %{SOURCE104} $RPM_BUILD_ROOT/%{_prefix}/lib/tmpfiles.d/radiusd.conf
  428 # For SystemV install the init script
  429 %else
  430 install -D -m 755 redhat/freeradius-radiusd-init $RPM_BUILD_ROOT/%{initddir}/radiusd
  431 %endif
  432 
  433 install -D -m 644 redhat/freeradius-logrotate $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/radiusd
  434 install -D -m 644 redhat/freeradius-pam-conf $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/radiusd
  435 
  436 # remove unneeded stuff
  437 rm -rf doc/00-OLD
  438 rm -f $RPM_BUILD_ROOT/usr/sbin/rc.radiusd
  439 rm -rf $RPM_BUILD_ROOT/%{_libdir}/freeradius/*.a
  440 rm -rf $RPM_BUILD_ROOT/%{_libdir}/freeradius/*.la
  441 %if %{?_with_rlm_idn:0}%{!?_with_rlm_idn:1}
  442 # Does not delete file. Why?
  443 rm -f $RPM_BUILD_ROOT/%{_mandir}/man5/rlm_idn.5.gz
  444 rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-available/idn
  445 %endif
  446 %if %{?_with_rlm_ruby:0}%{!?_with_rlm_ruby:1}
  447 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/ruby
  448 %endif
  449 %if %{?_with_rlm_sql_oracle:0}%{!?_with_rlm_sql_oracle:1}
  450 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/dhcp/oracle
  451 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/ippool/oracle
  452 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/oracle
  453 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/main/oracle
  454 %endif
  455 %if %{?_with_rlm_unbound:0}%{!?_with_rlm_unbound:1}
  456 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/unbound
  457 %endif
  458 rm -rf $RPM_BUILD_ROOT/%{_libdir}/freeradius/rlm_test.so
  459 # remove header files, we don't ship a devel package and the
  460 # headers have multilib conflicts
  461 rm -rf $RPM_BUILD_ROOT/%{_includedir}
  462 
  463 # remove unsupported config files
  464 rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/experimental.conf
  465 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/unbound
  466 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/ippool/mongo
  467 rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/raddb/mods-config/sql/main/mongo
  468 
  469 # install doc files omitted by standard install
  470 for f in COPYRIGHT CREDITS INSTALL.rst README.rst; do
  471     cp $f $RPM_BUILD_ROOT/%{docdir}
  472 done
  473 cp LICENSE $RPM_BUILD_ROOT/%{docdir}/LICENSE.gpl
  474 cp src/lib/LICENSE $RPM_BUILD_ROOT/%{docdir}/LICENSE.lgpl
  475 cp src/LICENSE.openssl $RPM_BUILD_ROOT/%{docdir}/LICENSE.openssl
  476 
  477 # add Red Hat specific documentation
  478 cat >> $RPM_BUILD_ROOT/%{docdir}/REDHAT << EOF
  479 
  480 Red Hat, RHEL, Fedora, and CentOS specific information can be found on the
  481 FreeRADIUS Wiki in the Red Hat FAQ.
  482 
  483 http://wiki.freeradius.org/guide/Red_Hat_FAQ
  484 
  485 Please reference that document.
  486 
  487 EOF
  488 
  489 %clean
  490 rm -rf $RPM_BUILD_ROOT
  491 
  492 
  493 # Make sure our user/group is present prior to any package or subpackage installation
  494 %pre
  495 getent group  radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd
  496 getent passwd radiusd >/dev/null || /usr/sbin/useradd  -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
  497 exit 0
  498 
  499 # Make sure our user/group is present prior to any package or subpackage installation
  500 %pre config
  501 getent group  radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd
  502 getent passwd radiusd >/dev/null || /usr/sbin/useradd  -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1
  503 exit 0
  504 
  505 
  506 %post
  507 if [ $1 = 1 ]; then
  508 %if %{?_unitdir:1}%{!?_unitdir:0}
  509   /bin/systemctl enable radiusd.service
  510 %else
  511   /sbin/chkconfig --add radiusd
  512 %endif
  513 fi
  514 
  515 %post config
  516 if [ $1 = 1 ]; then
  517   if [ ! -e %{_sysconfdir}/raddb/certs/server.pem ]; then
  518     /sbin/runuser -g radiusd -c 'umask 007; %{_sysconfdir}/raddb/certs/bootstrap' > /dev/null 2>&1 || :
  519   fi
  520 fi
  521 
  522 
  523 %preun
  524 if [ $1 = 0 ]; then
  525 %if %{?_unitdir:1}%{!?_unitdir:0}
  526   /bin/systemctl stop radiusd.service || :
  527   /bin/systemctl disable radiusd.service || :
  528 %else
  529   /sbin/chkconfig --del radiusd
  530 %endif
  531 fi
  532 
  533 %postun
  534 if [ $1 -ge 1 ]; then
  535   /sbin/service radiusd condrestart >/dev/null 2>&1 || :
  536 fi
  537 
  538 
  539 %files
  540 %defattr(-,root,root)
  541 %doc %{docdir}/
  542 %config(noreplace) %{_sysconfdir}/pam.d/radiusd
  543 %config(noreplace) %{_sysconfdir}/logrotate.d/radiusd
  544 
  545 %if %{?_unitdir:1}%{!?_unitdir:0}
  546 %{_unitdir}/radiusd.service
  547 %config(noreplace) %{_prefix}/lib/tmpfiles.d/radiusd.conf
  548 %else
  549 %{initddir}/radiusd
  550 %endif
  551 
  552 %dir %attr(755,radiusd,radiusd) /var/lib/radiusd
  553 %dir %attr(755,radiusd,radiusd) /var/run/radiusd/
  554 # binaries
  555 %defattr(-,root,root)
  556 /usr/sbin/checkrad
  557 /usr/sbin/raddebug
  558 /usr/sbin/radiusd
  559 /usr/sbin/radmin
  560 # man-pages
  561 %doc %{_mandir}/man1/smbencrypt.1.gz
  562 %doc %{_mandir}/man5/checkrad.5.gz
  563 %doc %{_mandir}/man5/clients.conf.5.gz
  564 %doc %{_mandir}/man5/dictionary.5.gz
  565 %doc %{_mandir}/man5/radiusd.conf.5.gz
  566 %doc %{_mandir}/man5/radrelay.conf.5.gz
  567 %doc %{_mandir}/man5/rlm_always.5.gz
  568 %doc %{_mandir}/man5/rlm_attr_filter.5.gz
  569 %doc %{_mandir}/man5/rlm_chap.5.gz
  570 %doc %{_mandir}/man5/rlm_counter.5.gz
  571 %doc %{_mandir}/man5/rlm_detail.5.gz
  572 %doc %{_mandir}/man5/rlm_digest.5.gz
  573 %doc %{_mandir}/man5/rlm_expr.5.gz
  574 %doc %{_mandir}/man5/rlm_files.5.gz
  575 %doc %{_mandir}/man5/rlm_idn.5.gz
  576 # %%{?_with_rlm_idn: %doc %{_mandir}/man5/rlm_idn.5.gz}
  577 %doc %{_mandir}/man5/rlm_mschap.5.gz
  578 %doc %{_mandir}/man5/rlm_pap.5.gz
  579 %doc %{_mandir}/man5/rlm_passwd.5.gz
  580 %doc %{_mandir}/man5/rlm_realm.5.gz
  581 %doc %{_mandir}/man5/rlm_sql.5.gz
  582 %doc %{_mandir}/man5/rlm_unix.5.gz
  583 %doc %{_mandir}/man5/unlang.5.gz
  584 %doc %{_mandir}/man5/users.5.gz
  585 %doc %{_mandir}/man8/radcrypt.8.gz
  586 %doc %{_mandir}/man8/raddebug.8.gz
  587 %doc %{_mandir}/man8/radiusd.8.gz
  588 %doc %{_mandir}/man8/radmin.8.gz
  589 %doc %{_mandir}/man8/radrelay.8.gz
  590 %doc %{_mandir}/man8/radsniff.8.gz
  591 # dictionaries
  592 %dir %attr(755,root,root) /usr/share/freeradius
  593 /usr/share/freeradius/*
  594 # logs
  595 %dir %attr(700,radiusd,radiusd) /var/log/radius/
  596 %dir %attr(700,radiusd,radiusd) /var/log/radius/radacct/
  597 %ghost %attr(644,radiusd,radiusd) /var/log/radius/radutmp
  598 %ghost %attr(600,radiusd,radiusd) /var/log/radius/radius.log
  599 # RADIUS shared libs
  600 %attr(755,root,root) %{_libdir}/freeradius/lib*.so*
  601 # RADIUS Loadable Modules
  602 %dir %attr(755,root,root) %{_libdir}/freeradius
  603 %{_libdir}/freeradius/proto_dhcp.so
  604 %{_libdir}/freeradius/proto_vmps.so
  605 %{_libdir}/freeradius/rlm_always.so
  606 %{_libdir}/freeradius/rlm_attr_filter.so
  607 %{_libdir}/freeradius/rlm_cache.so
  608 %{_libdir}/freeradius/rlm_cache_rbtree.so
  609 %{_libdir}/freeradius/rlm_chap.so
  610 %{_libdir}/freeradius/rlm_counter.so
  611 %{_libdir}/freeradius/rlm_cram.so
  612 %{_libdir}/freeradius/rlm_date.so
  613 %{_libdir}/freeradius/rlm_detail.so
  614 %{_libdir}/freeradius/rlm_dhcp.so
  615 %{_libdir}/freeradius/rlm_digest.so
  616 %{_libdir}/freeradius/rlm_dynamic_clients.so
  617 %{_libdir}/freeradius/rlm_eap.so
  618 %{_libdir}/freeradius/rlm_eap_fast.so
  619 %{_libdir}/freeradius/rlm_eap_gtc.so
  620 %{_libdir}/freeradius/rlm_eap_md5.so
  621 %{_libdir}/freeradius/rlm_eap_mschapv2.so
  622 %{_libdir}/freeradius/rlm_eap_peap.so
  623 %{_libdir}/freeradius/rlm_eap_sim.so
  624 %{_libdir}/freeradius/rlm_eap_tls.so
  625 %{_libdir}/freeradius/rlm_eap_ttls.so
  626 %{_libdir}/freeradius/rlm_exec.so
  627 %{_libdir}/freeradius/rlm_expiration.so
  628 %{_libdir}/freeradius/rlm_expr.so
  629 %{_libdir}/freeradius/rlm_files.so
  630 %{_libdir}/freeradius/rlm_ippool.so
  631 %{_libdir}/freeradius/rlm_linelog.so
  632 %{_libdir}/freeradius/rlm_logintime.so
  633 %{_libdir}/freeradius/rlm_mschap.so
  634 %{_libdir}/freeradius/rlm_otp.so
  635 %{_libdir}/freeradius/rlm_pam.so
  636 %{_libdir}/freeradius/rlm_pap.so
  637 %{_libdir}/freeradius/rlm_passwd.so
  638 %{_libdir}/freeradius/rlm_preprocess.so
  639 %{_libdir}/freeradius/rlm_radutmp.so
  640 %{_libdir}/freeradius/rlm_realm.so
  641 %{_libdir}/freeradius/rlm_replicate.so
  642 %{_libdir}/freeradius/rlm_soh.so
  643 %{_libdir}/freeradius/rlm_sometimes.so
  644 %{_libdir}/freeradius/rlm_sql.so
  645 %{_libdir}/freeradius/rlm_sql_null.so
  646 %{_libdir}/freeradius/rlm_sql_sqlite.so
  647 %{_libdir}/freeradius/rlm_sqlcounter.so
  648 %{_libdir}/freeradius/rlm_sqlippool.so
  649 %{_libdir}/freeradius/rlm_sql_map.so
  650 
  651 %if %{?_with_developer:1}%{!?_with_developer:0}
  652 %{_libdir}/freeradius/rlm_sqlhpwippool.so
  653 %endif
  654 
  655 %{_libdir}/freeradius/rlm_totp.so
  656 %{_libdir}/freeradius/rlm_unpack.so
  657 %{_libdir}/freeradius/rlm_unix.so
  658 %{_libdir}/freeradius/rlm_utf8.so
  659 %{_libdir}/freeradius/rlm_wimax.so
  660 %{?_with_rlm_idn: %{_libdir}/freeradius/rlm_idn.so}
  661 %if %{?_with_experimental_modules:1}%{!?_with_experimental_modules:0}
  662 %{_libdir}/freeradius/rlm_example.so
  663 %{_libdir}/freeradius/rlm_smsotp.so
  664 %endif
  665 
  666 %files config
  667 %dir %attr(755,root,radiusd) %{_sysconfdir}/raddb
  668 %defattr(-,root,radiusd)
  669 %attr(644,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/dictionary
  670 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/clients.conf
  671 %config(noreplace) %{_sysconfdir}/raddb/hints
  672 %config(noreplace) %{_sysconfdir}/raddb/huntgroups
  673 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/panic.gdb
  674 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/README.rst
  675 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/proxy.conf
  676 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/radiusd.conf
  677 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/trigger.conf
  678 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/users
  679 %dir %attr(770,root,radiusd) %{_sysconfdir}/raddb/certs
  680 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/certs/*
  681 %attr(750,root,radiusd) %{_sysconfdir}/raddb/certs/bootstrap
  682 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sites-available
  683 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sites-available/*
  684 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/sites-enabled
  685 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/sites-enabled/*
  686 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/policy.d
  687 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/policy.d/*
  688 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/templates.conf
  689 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-available
  690 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-available/*
  691 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config
  692 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/README.rst
  693 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/attr_filter
  694 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/attr_filter/*
  695 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/files
  696 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/files/*
  697 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/perl
  698 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/perl/*
  699 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/preprocess
  700 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/preprocess/*
  701 %if %{?el6:0}%{!?el6:1}
  702 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/python
  703 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/python/*
  704 %endif
  705 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-enabled
  706 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-enabled/*
  707 # ruby
  708 %if %{?_with_rlm_ruby:1}%{!?_with_rlm_ruby:0}
  709 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/ruby
  710 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/ruby/*
  711 %endif
  712 #
  713 # sql - general
  714 #
  715 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql
  716 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/counter
  717 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/cui
  718 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/dhcp
  719 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool
  720 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp
  721 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main
  722 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids
  723 #
  724 # mysql
  725 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/counter/mysql
  726 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/counter/mysql/*
  727 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/cui/mysql
  728 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/cui/mysql/*
  729 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/dhcp/mysql
  730 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/dhcp/mysql/*
  731 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool/mysql
  732 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool/mysql/*
  733 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/mysql
  734 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/mysql/*
  735 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main/mysql
  736 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/main/mysql/*
  737 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main/ndb
  738 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/main/ndb/*
  739 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids/mysql
  740 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids/mysql/*
  741 #
  742 # postgres
  743 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/counter/postgresql
  744 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/counter/postgresql/*
  745 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/cui/postgresql
  746 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/cui/postgresql/*
  747 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/dhcp/postgresql
  748 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/dhcp/postgresql/*
  749 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool/postgresql
  750 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool/postgresql/*
  751 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/postgresql
  752 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/postgresql/*
  753 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main/postgresql
  754 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/main/postgresql/*
  755 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids/postgresql
  756 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids/postgresql/*
  757 #
  758 # sqlite
  759 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/counter/sqlite
  760 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/counter/sqlite/*
  761 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/cui/sqlite
  762 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/cui/sqlite/*
  763 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/dhcp/sqlite
  764 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/dhcp/sqlite/*
  765 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool/sqlite
  766 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool/sqlite/*
  767 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/sqlite
  768 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/sqlite/*
  769 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main/sqlite
  770 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/main/sqlite/*
  771 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids/sqlite
  772 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/moonshot-targeted-ids/sqlite/*
  773 #
  774 # freetds
  775 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/dhcp/mssql
  776 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/dhcp/mssql/*
  777 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool/mssql
  778 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool/mssql/*
  779 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/mssql
  780 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/mssql/*
  781 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main/mssql
  782 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/main/mssql/*
  783 #
  784 # oracle
  785 %if %{?_with_rlm_sql_oracle:1}%{!?_with_rlm_sql_oracle:0}
  786 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/dhcp/oracle
  787 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/dhcp/oracle/*
  788 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool/oracle
  789 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool/oracle/*
  790 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/oracle
  791 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/oracle/*
  792 %dir %attr(750,root,radiusd) %{_sysconfdir}/raddb/mods-config/sql/main/oracle
  793 %attr(640,root,radiusd) %config(noreplace) %{_sysconfdir}/raddb/mods-config/sql/main/oracle/*
  794 %endif
  795 
  796 %files utils
  797 %defattr(-,root,root)
  798 /usr/bin/dhcpclient
  799 /usr/bin/map_unit
  800 /usr/bin/rad_counter
  801 /usr/bin/radattr
  802 /usr/bin/radclient
  803 /usr/bin/radcrypt
  804 /usr/bin/radeapclient
  805 /usr/bin/radlast
  806 /usr/bin/radtest
  807 /usr/bin/radsniff
  808 /usr/bin/radsqlrelay
  809 /usr/bin/radwho
  810 /usr/bin/radzap
  811 /usr/bin/rlm_ippool_tool
  812 /usr/bin/smbencrypt
  813 # man-pages
  814 %doc %{_mandir}/man1/dhcpclient.1.gz
  815 %doc %{_mandir}/man1/rad_counter.1.gz
  816 %doc %{_mandir}/man1/radclient.1.gz
  817 %doc %{_mandir}/man1/radeapclient.1.gz
  818 %doc %{_mandir}/man1/radlast.1.gz
  819 %doc %{_mandir}/man8/radsqlrelay.8.gz
  820 %doc %{_mandir}/man1/radtest.1.gz
  821 %doc %{_mandir}/man1/radwho.1.gz
  822 %doc %{_mandir}/man1/radzap.1.gz
  823 %doc %{_mandir}/man8/rlm_ippool_tool.8.gz
  824 
  825 %files perl-util
  826 %defattr(-,root,root)
  827 /usr/bin/rlm_sqlippool_tool
  828 #man-pages
  829 %doc %{_mandir}/man8/rlm_sqlippool_tool.8.gz
  830 
  831 %if %{?_with_rlm_cache_memcached:1}%{!?_with_rlm_cache_memcached:0}
  832 %files memcached
  833 %defattr(-,root,root)
  834 %{_libdir}/freeradius/rlm_cache_memcached.so
  835 %endif
  836 
  837 %files krb5
  838 %defattr(-,root,root)
  839 %{_libdir}/freeradius/rlm_krb5.so
  840 
  841 %files perl
  842 %defattr(-,root,root)
  843 %{_libdir}/freeradius/rlm_perl.so
  844 
  845 %if %{?el6:0}%{!?el6:1}
  846 %files python
  847 %defattr(-,root,root)
  848 %{_libdir}/freeradius/rlm_python.so
  849 %endif
  850 
  851 %files mysql
  852 %defattr(-,root,root)
  853 %{_libdir}/freeradius/rlm_sql_mysql.so
  854 
  855 %files postgresql
  856 %defattr(-,root,root)
  857 %{_libdir}/freeradius/rlm_sql_postgresql.so
  858 
  859 %files sqlite
  860 %defattr(-,root,root)
  861 %{_libdir}/freeradius/rlm_sql_sqlite.so
  862 
  863 %if %{!?_without_ldap:1}%{?_without_ldap:0}
  864 %files ldap
  865 %defattr(-,root,root)
  866 %{_libdir}/freeradius/rlm_ldap.so
  867 %endif
  868 
  869 %files unixODBC
  870 %defattr(-,root,root)
  871 %{_libdir}/freeradius/rlm_sql_unixodbc.so
  872 
  873 %if %{?el6:0}%{!?el6:1}
  874 %files redis
  875 %defattr(-,root,root)
  876 %{_libdir}/freeradius/rlm_redis.so
  877 %{_libdir}/freeradius/rlm_rediswho.so
  878 %endif
  879 
  880 %files rest
  881 %defattr(-,root,root)
  882 %{_libdir}/freeradius/rlm_rest.so
  883 
  884 %if %{?_with_rlm_ruby:1}%{!?_with_rlm_ruby:0}
  885 %files ruby
  886 %defattr(-,root,root)
  887 %{_libdir}/freeradius/rlm_ruby.so
  888 %endif
  889 
  890 %files freetds
  891 %defattr(-,root,root)
  892 %{_libdir}/freeradius/rlm_sql_freetds.so
  893 
  894 %if %{?_with_rlm_sql_oracle:1}%{!?_with_rlm_sql_oracle:0}
  895 %files oracle
  896 %defattr(-,root,root)
  897 %{_libdir}/freeradius/rlm_sql_oracle.so
  898 %endif
  899 
  900 %if %{?_with_rlm_yubikey:1}%{!?_with_rlm_yubikey:0}
  901 %files yubikey
  902 %defattr(-,root,root)
  903 %{_libdir}/freeradius/rlm_yubikey.so
  904 %endif
  905 
  906 %changelog
  907 * Wed Sep 25 2013 Alan DeKok <aland@freeradius.org> - 3.0.0
  908 - upgrade to latest upstream release