Skip to content

Commit

Permalink
redhat: replace deprecated radiuslient with radcli
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 19, 2024
1 parent bf0e1ee commit b36a247
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions packaging/redhat_fedora/opensips.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
%global _with_cachedb_mongodb 1
%endif

%if 0%{?rhel} > 7 || 0%{?fedora} > 23
%global _without_aaa_radius 1
%endif

%if 0%{?rhel} > 7 || 0%{?fedora} > 36
%global _with_python3 1
%endif
Expand All @@ -41,7 +37,7 @@
%global _with_wolfssl 1
%endif

%global EXCLUDE_MODULES %{!?_with_auth_jwt:auth_jwt} %{!?_with_cachedb_cassandra:cachedb_cassandra} %{!?_with_cachedb_couchbase:cachedb_couchbase} %{!?_with_cachedb_dynamodb:cachedb_dynamodb} %{!?_with_cachedb_mongodb:cachedb_mongodb} %{!?_with_cachedb_redis:cachedb_redis} %{!?_with_db_oracle:db_oracle} %{!?_with_osp:osp} %{!?_with_sngtc:sngtc} %{!?_with_aaa_diameter:aaa_diameter aka_av_diameter} %{?_without_aaa_radius:aaa_radius} %{?_without_db_perlvdb:db_perlvdb} %{?_without_snmpstats:snmpstats} %{!?_with_wolfssl:tls_wolfssl} launch_darkly http2d
%global EXCLUDE_MODULES %{!?_with_auth_jwt:auth_jwt} %{!?_with_cachedb_cassandra:cachedb_cassandra} %{!?_with_cachedb_couchbase:cachedb_couchbase} %{!?_with_cachedb_dynamodb:cachedb_dynamodb} %{!?_with_cachedb_mongodb:cachedb_mongodb} %{!?_with_cachedb_redis:cachedb_redis} %{!?_with_db_oracle:db_oracle} %{!?_with_osp:osp} %{!?_with_sngtc:sngtc} %{!?_with_aaa_diameter:aaa_diameter aka_av_diameter} %{?_without_db_perlvdb:db_perlvdb} %{?_without_snmpstats:snmpstats} %{!?_with_wolfssl:tls_wolfssl} launch_darkly http2d

Summary: Very fast and configurable SIP server
Name: opensips
Expand Down Expand Up @@ -685,9 +681,7 @@ module to publish RabbitMQ messages to a RabbitMQ server.
Summary: Radius modules for OpenSIPS
Group: System Environment/Daemons
Requires: %{name} = %{version}-%{release}
%if 0%{!?_without_aaa_radius:1}
BuildRequires: radiusclient-ng-devel
%endif
BuildRequires: radcli-devel

%description radius-modules
OpenSIPS is a very fast and flexible SIP (RFC3261)
Expand Down Expand Up @@ -1077,9 +1071,7 @@ fi
%attr(755,root,root) %{_initrddir}/opensips
%endif

%if 0%{!?_without_aaa_radius:1}
%config(noreplace) %{_sysconfdir}/opensips/dictionary.opensips
%endif
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(640,%{name},%{name}) %config(noreplace) %{_sysconfdir}/opensips/opensips.cfg
%attr(640,%{name},%{name}) %config(noreplace) %{_sysconfdir}/opensips/scenario_callcenter.xml
Expand Down Expand Up @@ -1572,10 +1564,8 @@ fi
%files radius-modules
%{_libdir}/opensips/modules/peering.so
%doc docdir/README.peering
%if 0%{!?_without_aaa_radius:1}
%{_libdir}/opensips/modules/aaa_radius.so
%doc docdir/README.aaa_radius
%endif

%if 0%{?_with_cachedb_redis:1}
%files redis-module
Expand Down Expand Up @@ -1674,6 +1664,9 @@ fi


%changelog
* Mon Aug 19 2024 Razvan Crainea <[email protected]> - 3.6.0-1
- Replace deprecated dependency for radius modules

* Sat May 18 2024 Nick Altmann <[email protected]> - 3.5.0-1
- Specification updated for opensips 3.5
- New modules: aka_av_diameter, auth_aka, mqueue, presence_reginfo, proto_ipsec, pua_reginfo
Expand Down

0 comments on commit b36a247

Please sign in to comment.