Skip to content

Commit 47f2ee2

Browse files
committed
build: stir_shaken should be used with openssl if wolfssl is not available
1 parent 6edc38a commit 47f2ee2

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

packaging/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Build-Depends: bison,
3939
libsnmp-dev,
4040
libsqlite3-dev,
4141
libssl-dev,
42-
libwolfssl-dev,
42+
libwolfssl-dev <!nowolfssl>,
4343
lsb-release,
4444
uuid-dev,
4545
libxml2-dev,

packaging/debian/rules

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ ifeq ($(DEB_HOST_ARCH_OS),linux)
117117
ALL_MODPKG_LIST += PROTO_SCTP
118118
endif
119119

120+
#
121+
# STIR_SHAKEN package
122+
#
123+
ifneq (,$(filter nowolfssl,$(DEB_BUILD_PROFILES)))
124+
ALL_MODPKG_LIST += OPENTELEMETRY
125+
endif
126+
120127

121128
ifeq ($(BUILD_MODPKG_LIST),NONE)
122129
override BUILD_MODPKG_LIST :=
@@ -349,6 +356,11 @@ endif
349356
# Enable verbose compile logs
350357
VARS += NICER=0
351358

359+
ifneq (,$(filter nowolfssl,$(DEB_BUILD_PROFILES)))
360+
VARS += STIR_SHAKEN_OPENSSL=true
361+
endif
362+
363+
352364
# support parallel compiling
353365
NJOBS =
354366
FASTER =

packaging/redhat_fedora/opensips.spec

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ BuildRequires: gcc
7070
Requires: m4
7171
BuildRequires: unixODBC-devel
7272
BuildRequires: openssl-devel
73-
BuildRequires: wolfssl-devel
7473
BuildRequires: expat-devel
7574
BuildRequires: xmlrpc-c-devel
7675
BuildRequires: libconfuse-devel
@@ -856,8 +855,13 @@ This package provides the SQLite database schema files for OpenSIPS.
856855
Summary: STIR/SHAKEN support for OpenSIPS
857856
Group: System Environment/Daemons
858857
Requires: %{name} = %{version}-%{release}
858+
%if 0%{?_with_wolfssl:1}
859859
Requires: wolfssl
860860
BuildRequires: wolfssl-devel
861+
%else
862+
Requires: openssl
863+
BuildRequires: openssl-devel
864+
%endif
861865

862866
%description stir-shaken-module
863867
OpenSIPS is a very fast and flexible SIP (RFC3261)
@@ -1008,14 +1012,14 @@ This package provides the SIP to XMPP IM translator module for OpenSIPS.
10081012
%setup -q -n %{name}-%{version}
10091013

10101014
%build
1011-
LOCALBASE=/usr NICER=0 CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" %{?_with_python3:PYTHON=python3} %{?_with_db_oracle:ORAHOME="$ORACLE_HOME"} %{__make} all modules-readme %{?_smp_mflags} TLS=1 \
1015+
LOCALBASE=/usr NICER=0 CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" %{?_with_python3:PYTHON=python3} %{?_with_db_oracle:ORAHOME="$ORACLE_HOME"} %{!?_with_wolfssl:STIR_SHAKEN_OPENSSL=true} %{__make} all modules-readme %{?_smp_mflags} TLS=1 \
10121016
exclude_modules="%EXCLUDE_MODULES" \
10131017
cfg_target=%{_sysconfdir}/opensips/ \
10141018
modules_prefix=%{buildroot}%{_prefix} \
10151019
modules_dir=%{_lib}/%{name}/modules
10161020

10171021
%install
1018-
%{__make} install TLS=1 LIBDIR=%{_lib} \
1022+
%{__make} install TLS=1 LIBDIR=%{_lib} %{!?_with_wolfssl:STIR_SHAKEN_OPENSSL=true} \
10191023
exclude_modules="%EXCLUDE_MODULES" \
10201024
basedir=%{buildroot} prefix=%{_prefix} \
10211025
cfg_prefix=%{buildroot} \

0 commit comments

Comments
 (0)