diff --git a/pkg/kamailio/deb/bionic/rules b/pkg/kamailio/deb/bionic/rules index 40a8d3f56fd..77c87e558cb 100755 --- a/pkg/kamailio/deb/bionic/rules +++ b/pkg/kamailio/deb/bionic/rules @@ -35,6 +35,7 @@ EXTRA_EXCLUDED_MODULES += java EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt EXTRA_EXCLUDED_MODULES += microhttpd ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/bookworm/rules b/pkg/kamailio/deb/bookworm/rules index 39d8400c00e..31d27ce149f 100755 --- a/pkg/kamailio/deb/bookworm/rules +++ b/pkg/kamailio/deb/bookworm/rules @@ -81,6 +81,7 @@ PACKAGE_GROUPS += mqtt PACKAGE_GROUPS += secsipid PACKAGE_GROUPS += lwsc PACKAGE_GROUPS += nats +PACKAGE_GROUPS += jwt PACKAGE_GROUPS += microhttpd # Module groups to be packaged onto kamailio-extra-modules. diff --git a/pkg/kamailio/deb/bullseye/rules b/pkg/kamailio/deb/bullseye/rules index 0ee134df5ff..49167c46abe 100755 --- a/pkg/kamailio/deb/bullseye/rules +++ b/pkg/kamailio/deb/bullseye/rules @@ -33,6 +33,7 @@ EXTRA_EXCLUDED_MODULES += iptrtpproxy EXTRA_EXCLUDED_MODULES += dnssec EXTRA_EXCLUDED_MODULES += java EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/buster/rules b/pkg/kamailio/deb/buster/rules index 40a8d3f56fd..77c87e558cb 100755 --- a/pkg/kamailio/deb/buster/rules +++ b/pkg/kamailio/deb/buster/rules @@ -35,6 +35,7 @@ EXTRA_EXCLUDED_MODULES += java EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt EXTRA_EXCLUDED_MODULES += microhttpd ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/debian/rules b/pkg/kamailio/deb/debian/rules index de6f9eb9af5..0b7db27d9b2 100755 --- a/pkg/kamailio/deb/debian/rules +++ b/pkg/kamailio/deb/debian/rules @@ -82,6 +82,7 @@ PACKAGE_GROUPS += mqtt PACKAGE_GROUPS += secsipid PACKAGE_GROUPS += lwsc PACKAGE_GROUPS += nats +PACKAGE_GROUPS += jwt PACKAGE_GROUPS += microhttpd # Module groups to be packaged onto kamailio-extra-modules. diff --git a/pkg/kamailio/deb/focal/rules b/pkg/kamailio/deb/focal/rules index d5fee74fba1..4814c410ea2 100755 --- a/pkg/kamailio/deb/focal/rules +++ b/pkg/kamailio/deb/focal/rules @@ -34,6 +34,7 @@ EXTRA_EXCLUDED_MODULES += dnssec EXTRA_EXCLUDED_MODULES += java EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt EXTRA_EXCLUDED_MODULES += microhttpd ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/jammy/rules b/pkg/kamailio/deb/jammy/rules index 39d8400c00e..31d27ce149f 100755 --- a/pkg/kamailio/deb/jammy/rules +++ b/pkg/kamailio/deb/jammy/rules @@ -81,6 +81,7 @@ PACKAGE_GROUPS += mqtt PACKAGE_GROUPS += secsipid PACKAGE_GROUPS += lwsc PACKAGE_GROUPS += nats +PACKAGE_GROUPS += jwt PACKAGE_GROUPS += microhttpd # Module groups to be packaged onto kamailio-extra-modules. diff --git a/pkg/kamailio/deb/jessie/rules b/pkg/kamailio/deb/jessie/rules index 6d737a7d9f8..cd53ddf2f80 100755 --- a/pkg/kamailio/deb/jessie/rules +++ b/pkg/kamailio/deb/jessie/rules @@ -37,6 +37,7 @@ EXTRA_EXCLUDED_MODULES += mongodb EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/precise/rules b/pkg/kamailio/deb/precise/rules index 044e11196c0..aa4946eb2d8 100755 --- a/pkg/kamailio/deb/precise/rules +++ b/pkg/kamailio/deb/precise/rules @@ -44,6 +44,7 @@ EXTRA_EXCLUDED_MODULES += mqtt EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/sid/rules b/pkg/kamailio/deb/sid/rules index 39d8400c00e..31d27ce149f 100755 --- a/pkg/kamailio/deb/sid/rules +++ b/pkg/kamailio/deb/sid/rules @@ -81,6 +81,7 @@ PACKAGE_GROUPS += mqtt PACKAGE_GROUPS += secsipid PACKAGE_GROUPS += lwsc PACKAGE_GROUPS += nats +PACKAGE_GROUPS += jwt PACKAGE_GROUPS += microhttpd # Module groups to be packaged onto kamailio-extra-modules. diff --git a/pkg/kamailio/deb/stretch/rules b/pkg/kamailio/deb/stretch/rules index 3f4727ffcfc..addb69406cc 100755 --- a/pkg/kamailio/deb/stretch/rules +++ b/pkg/kamailio/deb/stretch/rules @@ -35,6 +35,7 @@ EXTRA_EXCLUDED_MODULES += dnssec EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt EXTRA_EXCLUDED_MODULES += microhttpd ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/trusty/rules b/pkg/kamailio/deb/trusty/rules index 4d192d3c85d..4e70da5dd18 100755 --- a/pkg/kamailio/deb/trusty/rules +++ b/pkg/kamailio/deb/trusty/rules @@ -40,6 +40,7 @@ EXTRA_EXCLUDED_MODULES += mqtt EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/wheezy/rules b/pkg/kamailio/deb/wheezy/rules index 044e11196c0..aa4946eb2d8 100755 --- a/pkg/kamailio/deb/wheezy/rules +++ b/pkg/kamailio/deb/wheezy/rules @@ -44,6 +44,7 @@ EXTRA_EXCLUDED_MODULES += mqtt EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt ## --EXCLUDED-- diff --git a/pkg/kamailio/deb/xenial/rules b/pkg/kamailio/deb/xenial/rules index beb99c589eb..563c6af8244 100755 --- a/pkg/kamailio/deb/xenial/rules +++ b/pkg/kamailio/deb/xenial/rules @@ -34,6 +34,7 @@ EXTRA_EXCLUDED_MODULES += iptrtpproxy EXTRA_EXCLUDED_MODULES += secsipid EXTRA_EXCLUDED_MODULES += lwsc EXTRA_EXCLUDED_MODULES += nats +EXTRA_EXCLUDED_MODULES += jwt EXTRA_EXCLUDED_MODULES += microhttpd ## --EXCLUDED-- diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec index 01c185f3cc4..06545ca9275 100644 --- a/pkg/kamailio/obs/kamailio.spec +++ b/pkg/kamailio/obs/kamailio.spec @@ -19,6 +19,7 @@ %bcond_without memcached %bcond_without mongodb %bcond_without nats +%bcond_without jwt %bcond_without perl %bcond_without phonenum %bcond_without python2 @@ -54,6 +55,7 @@ %bcond_without memcached %bcond_with mongodb %bcond_with nats +%bcond_with jwt %bcond_without perl %bcond_with phonenum %bcond_without python2 @@ -90,6 +92,7 @@ %bcond_without memcached %bcond_without mongodb %bcond_with nats +%bcond_with jwt %bcond_without perl %bcond_without phonenum %bcond_without python2 @@ -136,6 +139,7 @@ %bcond_without memcached %bcond_without mongodb %bcond_without nats +%bcond_without jwt %bcond_without perl %bcond_without phonenum %bcond_without python2 @@ -182,6 +186,7 @@ %bcond_without memcached %bcond_without mongodb %bcond_without nats +%bcond_without jwt %bcond_without perl %bcond_without phonenum %bcond_with python2 @@ -211,6 +216,7 @@ %bcond_without memcached %bcond_with mongodb %bcond_with nats +%bcond_with jwt %bcond_without perl %bcond_with phonenum %bcond_without python2 @@ -275,6 +281,7 @@ Conflicts: kamailio-ims < %ver, kamailio-java < %ver, kamailio-json < %ver Conflicts: kamailio-kazoo < %ver Conflicts: kamailio-lcr < %ver, kamailio-ldap < %ver, kamailio-lost < %ver, kamailio-lua < %ver Conflicts: kamailio-nats < %ver +Conflicts: kamailio-jwt < %ver Conflicts: kamailio-rabbitmq < %ver Conflicts: kamailio-memcached < %ver, kamailio-mongodb < %ver, kamailio-mysql < %ver Conflicts: kamailio-outbound < %ver, kamailio-perl < %ver @@ -759,6 +766,18 @@ The module provides an NATS consumer for Kamailio. NATS is a real time distribut %endif +%if %{with jwt} +%package jwt +Summary: JWT functions for Kamailio +Group: %{PKGGROUP} +Requires: libjwt, kamailio = %ver +BuildRequires: libjwt-dev + +%description jwt +The module provides JWT (JSON Web Token) functions to be used in Kamailio configuration file. +%endif + + %package outbound Summary: Outbound (RFC 5626) support for Kamailio Group: %{PKGGROUP} @@ -1291,6 +1310,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \ %if %{with nats} knats \ %endif +%if %{with jwt} + kjwt \ +%endif %if %{with perl} kperl \ %endif @@ -1399,6 +1421,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \ %if %{with nats} knats \ %endif +%if %{with jwt} + kjwt \ +%endif %if %{with perl} kperl \ %endif @@ -2111,6 +2136,14 @@ fi %endif +%if %{with jwt} +%files jwt +%defattr(-,root,root) +%doc %{_docdir}/kamailio/modules/README.jwt +%{_libdir}/kamailio/modules/jwt.so +%endif + + %files outbound %defattr(-,root,root) %doc %{_docdir}/kamailio/modules/README.outbound