|
@@ -251,19 +251,11 @@ Conflicts: kamailio-utils < %ver, kamailio-websocket < %ver
|
|
|
Conflicts: kamailio-xhttp-pi < %ver, kamailio-xmlops < %ver
|
|
|
Conflicts: kamailio-xmlrpc < %ver, kamailio-xmpp < %ver
|
|
|
Conflicts: kamailio-uuid < %ver
|
|
|
+BuildRequires: bison, flex, which, make, gcc, gcc-c++, pkgconfig, readline-devel
|
|
|
+%if 0%{?rhel} != 6
|
|
|
Requires: systemd
|
|
|
BuildRequires: systemd-devel
|
|
|
-BuildRequires: bison
|
|
|
-BuildRequires: flex
|
|
|
-BuildRequires: which
|
|
|
-BuildRequires: make
|
|
|
-BuildRequires: gcc
|
|
|
-BuildRequires: gcc-c++
|
|
|
-BuildRequires: pkgconfig
|
|
|
-BuildRequires: readline-devel
|
|
|
-BuildRequires: libxslt
|
|
|
-BuildRequires: lynx
|
|
|
-BuildRequires: docbook-style-xsl
|
|
|
+%endif
|
|
|
|
|
|
%if 0%{?suse_version} == 1315 || 0%{?suse_version} == 1330
|
|
|
Requires: filesystem
|
|
@@ -289,8 +281,13 @@ like Asterisk™, FreeSWITCH™ or SEMS.
|
|
|
Summary: Account transaction information in a JSON dictionary
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: kamailio = %ver
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+Requires: libevent2
|
|
|
+BuildRequires: libevent2-devel
|
|
|
+%else
|
|
|
Requires: libevent
|
|
|
BuildRequires: libevent-devel
|
|
|
+%endif
|
|
|
%if 0%{?suse_version}
|
|
|
Requires: libjansson
|
|
|
BuildRequires: libjansson-devel
|
|
@@ -306,8 +303,14 @@ Account transaction information in a JSON dictionary.
|
|
|
|
|
|
%package auth-ephemeral
|
|
|
Summary: Functions for authentication using ephemeral credentials
|
|
|
+Group: %{PKGGROUP}
|
|
|
+%if 0%{?rhel} == 7 && %{with openssl11}
|
|
|
+Requires: openssl11, kamailio = %ver
|
|
|
+BuildRequires: openssl11-devel
|
|
|
+%else
|
|
|
Requires: openssl, kamailio = %ver
|
|
|
BuildRequires: openssl-devel
|
|
|
+%endif
|
|
|
|
|
|
%description auth-ephemeral
|
|
|
Functions for authentication using ephemeral credentials.
|
|
@@ -387,7 +390,20 @@ CPL (Call Processing Language) interpreter for Kamailio.
|
|
|
Summary: Module to support cryptographic extensions
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: kamailio = %ver
|
|
|
-%if 0%{?rhel} || 0%{?fedora}
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+Requires: openssl
|
|
|
+BuildRequires: openssl-devel
|
|
|
+%endif
|
|
|
+%if 0%{?rhel} == 7
|
|
|
+%if %{with openssl11}
|
|
|
+Requires: openssl11-libs
|
|
|
+BuildRequires: openssl11-devel
|
|
|
+%else
|
|
|
+Requires: openssl-libs
|
|
|
+BuildRequires: openssl-devel
|
|
|
+%endif
|
|
|
+%endif
|
|
|
+%if 0%{?fedora}
|
|
|
Requires: openssl-libs
|
|
|
BuildRequires: openssl-devel
|
|
|
%endif
|
|
@@ -471,8 +487,13 @@ Compressed body (SIP and HTTP) handling for kamailio.
|
|
|
Summary: Async HTTP client module for Kamailio
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: kamailio = %ver
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+Requires: libevent2
|
|
|
+BuildRequires: libevent2-devel
|
|
|
+%else
|
|
|
Requires: libevent
|
|
|
BuildRequires: libevent-devel
|
|
|
+%endif
|
|
|
%if 0%{?suse_version}
|
|
|
Requires: libcurl4
|
|
|
BuildRequires: libcurl-devel
|
|
@@ -518,8 +539,13 @@ IMS modules and extensions module for Kamailio.
|
|
|
Summary: JSON string handling and RPC modules for Kamailio using JANSSON library
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: kamailio = %ver
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+Requires: libevent2
|
|
|
+BuildRequires: libevent2-devel
|
|
|
+%else
|
|
|
Requires: libevent
|
|
|
BuildRequires: libevent-devel
|
|
|
+%endif
|
|
|
%if 0%{?suse_version}
|
|
|
Requires: libjson-c2
|
|
|
BuildRequires: libjansson-devel
|
|
@@ -538,8 +564,13 @@ JSON string handling and RPC modules for Kamailio using JANSSON library.
|
|
|
Summary: JSON string handling and RPC modules for Kamailio
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: kamailio = %ver
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+Requires: libevent2
|
|
|
+BuildRequires: libevent2-devel
|
|
|
+%else
|
|
|
Requires: libevent
|
|
|
BuildRequires: libevent-devel
|
|
|
+%endif
|
|
|
%if 0%{?suse_version}
|
|
|
Requires: libjson-c2
|
|
|
BuildRequires: libjson-c-devel
|
|
@@ -570,8 +601,13 @@ Summary: Kazoo middle layer connector support for Kamailio
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: libuuid, librabbitmq, json-c, kamailio = %ver
|
|
|
BuildRequires: libuuid-devel, librabbitmq-devel, json-c-devel
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+Requires: libevent2
|
|
|
+BuildRequires: libevent2-devel
|
|
|
+%else
|
|
|
Requires: libevent
|
|
|
BuildRequires: libevent-devel
|
|
|
+%endif
|
|
|
|
|
|
%description kazoo
|
|
|
Kazoo module for Kamailio.
|
|
@@ -670,8 +706,12 @@ BuildRequires: zlib-devel
|
|
|
Requires: libmysqlclient18
|
|
|
BuildRequires: libmysqlclient-devel
|
|
|
%else
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+BuildRequires: mysql-devel
|
|
|
+%else
|
|
|
BuildRequires: mariadb-devel
|
|
|
%endif
|
|
|
+%endif
|
|
|
|
|
|
%description mysql
|
|
|
MySQL database connectivity for Kamailio.
|
|
@@ -692,8 +732,13 @@ The module provides an NATS consumer for Kamailio. NATS is a real time distribut
|
|
|
%package outbound
|
|
|
Summary: Outbound (RFC 5626) support for Kamailio
|
|
|
Group: %{PKGGROUP}
|
|
|
+%if 0%{?rhel} == 7 && %{with openssl11}
|
|
|
+Requires: openssl11, kamailio = %ver
|
|
|
+BuildRequires: openssl11-devel
|
|
|
+%else
|
|
|
Requires: openssl, kamailio = %ver
|
|
|
BuildRequires: openssl-devel
|
|
|
+%endif
|
|
|
|
|
|
%description outbound
|
|
|
RFC 5626, "Managing Client-Initiated Connections in the Session Initiation
|
|
@@ -801,7 +846,7 @@ RabbitMQ module for Kamailio.
|
|
|
Summary: RADIUS modules for Kamailio
|
|
|
Group: %{PKGGROUP}
|
|
|
Requires: kamailio = %ver
|
|
|
-%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel}
|
|
|
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
|
|
|
Requires: freeradius-client
|
|
|
BuildRequires: freeradius-client-devel
|
|
|
%else
|
|
@@ -877,6 +922,18 @@ Requires: kamailio = %ver
|
|
|
Additional layer of security over our communications.
|
|
|
|
|
|
|
|
|
+%package sipcapture-daemon-config
|
|
|
+Summary: Reference config for sipcapture daemon
|
|
|
+Group: %{PKGGROUP}
|
|
|
+Requires: kamailio = %ver
|
|
|
+%if 0%{?suse_version}
|
|
|
+Requires: filesystem
|
|
|
+%endif
|
|
|
+
|
|
|
+%description sipcapture-daemon-config
|
|
|
+reference config for sipcapture daemon.
|
|
|
+
|
|
|
+
|
|
|
%package sipdump
|
|
|
Summary: This module writes SIP traffic and some associated details into local files
|
|
|
Group: %{PKGGROUP}
|
|
@@ -1050,8 +1107,13 @@ Non-SIP utitility functions for Kamailio.
|
|
|
%package websocket
|
|
|
Summary: WebSocket transport for Kamailio
|
|
|
Group: %{PKGGROUP}
|
|
|
+%if 0%{?rhel} == 7 && %{with openssl11}
|
|
|
+Requires: libunistring, openssl11, kamailio = %ver
|
|
|
+BuildRequires: libunistring-devel, openssl11-devel
|
|
|
+%else
|
|
|
Requires: libunistring, openssl, kamailio = %ver
|
|
|
BuildRequires: libunistring-devel, openssl-devel
|
|
|
+%endif
|
|
|
|
|
|
%description websocket
|
|
|
WebSocket transport for Kamailio.
|
|
@@ -1123,223 +1185,287 @@ UUID module for Kamailio.
|
|
|
|
|
|
%prep
|
|
|
%setup -n %{name}-%{ver}
|
|
|
+# python3 does not exist in RHEL 6 and similar dist.
|
|
|
+%if 0%{?rhel} == 6
|
|
|
+sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
|
|
|
+%endif
|
|
|
+
|
|
|
# on latest dist need to add --atexit=no for Kamailio options. More details GH #2616
|
|
|
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
|
|
|
sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|' pkg/kamailio/obs/kamailio.service
|
|
|
sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|' pkg/kamailio/obs/[email protected]
|
|
|
+%endif
|
|
|
+
|
|
|
|
|
|
%build
|
|
|
-MODULES="\
|
|
|
-acc_json \
|
|
|
-acc_radius \
|
|
|
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
|
|
|
+export FREERADIUS=1
|
|
|
+%endif
|
|
|
+make cfg prefix=/usr \
|
|
|
+ basedir=%{buildroot} \
|
|
|
+ cfg_prefix=%{buildroot} \
|
|
|
+ doc_prefix=%{buildroot} \
|
|
|
+ doc_dir=%{_docdir}/kamailio/ \
|
|
|
+ cfg_target=%{_sysconfdir}/kamailio/ modules_dirs="modules"
|
|
|
+make
|
|
|
+make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
|
|
|
+ jabber ndb_cassandra osp" \
|
|
|
+%if %{with openssl11}
|
|
|
+ SSL_BUILDER="pkg-config libssl11" \
|
|
|
+%endif
|
|
|
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
|
|
|
+ FREERADIUS=1 \
|
|
|
+%endif
|
|
|
+%if 0%{?rhel} >= 8
|
|
|
+ PYTHON3=python3.12 \
|
|
|
+%endif
|
|
|
+ WOLFSSL_INTERNAL=no \
|
|
|
+ group_include="kstandard kautheph kberkeley kcarrierroute \
|
|
|
+%if %{with cnxcc}
|
|
|
+ kcnxcc \
|
|
|
+%endif
|
|
|
+ kcpl \
|
|
|
+%if %{with dnssec}
|
|
|
+ kdnssec \
|
|
|
+%endif
|
|
|
+%if %{with evapi}
|
|
|
+ kev \
|
|
|
+%endif
|
|
|
+ kgeoip2 \
|
|
|
+ kgzcompress \
|
|
|
+%if %{with http_async_client}
|
|
|
+ khttp_async \
|
|
|
+%endif
|
|
|
+ kxhttp_prom \
|
|
|
+%if %{with ims}
|
|
|
+ kims \
|
|
|
+%endif
|
|
|
+%if %{with jansson}
|
|
|
+ kjansson \
|
|
|
+%endif
|
|
|
+%if %{with json}
|
|
|
+ kjson \
|
|
|
+%endif
|
|
|
+ kjsonrpcs \
|
|
|
+ kjwt \
|
|
|
+%if %{with kazoo}
|
|
|
+ kkazoo \
|
|
|
+%endif
|
|
|
+ kldap \
|
|
|
%if %{with lua}
|
|
|
-app_lua \
|
|
|
+ klua \
|
|
|
+%endif
|
|
|
+%if %{with lwsc}
|
|
|
+ klwsc \
|
|
|
+%endif
|
|
|
+%if %{with memcached}
|
|
|
+ kmemcached \
|
|
|
+%endif
|
|
|
+%if %{with xmlrpc}
|
|
|
+ kmi_xmlrpc \
|
|
|
+%endif
|
|
|
+%if %{with mongodb}
|
|
|
+ kmongodb \
|
|
|
+%endif
|
|
|
+ kmysql koutbound \
|
|
|
+%if %{with nats}
|
|
|
+ knats \
|
|
|
%endif
|
|
|
%if %{with perl}
|
|
|
-app_perl \
|
|
|
+ kperl \
|
|
|
%endif
|
|
|
+%if %{with phonenum}
|
|
|
+ kphonenum \
|
|
|
+%endif
|
|
|
+ kpostgres kpresence \
|
|
|
%if %{with python2}
|
|
|
-app_python \
|
|
|
+ kpython \
|
|
|
%endif
|
|
|
%if %{with python3}
|
|
|
-app_python3 \
|
|
|
-app_python3s \
|
|
|
+ kpython3 \
|
|
|
+%endif
|
|
|
+%if %{with rabbitmq}
|
|
|
+ krabbitmq \
|
|
|
+%endif
|
|
|
+ kradius \
|
|
|
+%if %{with redis}
|
|
|
+ kredis \
|
|
|
%endif
|
|
|
%if %{with ruby}
|
|
|
-app_ruby \
|
|
|
-app_ruby_proc \
|
|
|
+ kruby \
|
|
|
%endif
|
|
|
-auth_ephemeral \
|
|
|
-auth_radius \
|
|
|
-cdp \
|
|
|
-cdp_avp \
|
|
|
-%if %{with cnxcc}
|
|
|
-cnxcc \
|
|
|
+%if %{with sctp}
|
|
|
+ ksctp \
|
|
|
%endif
|
|
|
-cplc \
|
|
|
-crypto \
|
|
|
-db2_ldap \
|
|
|
-%if %{with mongodb}
|
|
|
-db_mongodb \
|
|
|
+ ksnmpstats ksqlite \
|
|
|
+%if "%{?_unitdir}" != ""
|
|
|
+ ksystemd \
|
|
|
%endif
|
|
|
-db_mysql \
|
|
|
-%if %{with perl}
|
|
|
-db_perlvdb
|
|
|
+ ktls \
|
|
|
+%if %{with wolfssl}
|
|
|
+ ktls_wolfssl \
|
|
|
%endif
|
|
|
-db_postgres \
|
|
|
-%if %{with redis}
|
|
|
-db_redis \
|
|
|
+ kunixodbc kutils \
|
|
|
+%if %{with websocket}
|
|
|
+ kwebsocket \
|
|
|
+%endif
|
|
|
+ kxml kxmpp kuuid"
|
|
|
+
|
|
|
+make utils
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+%install
|
|
|
+rm -rf %{buildroot}
|
|
|
+
|
|
|
+make install
|
|
|
+make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
|
|
|
+ iptrtpproxy jabber osp" \
|
|
|
+%if %{with openssl11}
|
|
|
+ SSL_BUILDER="pkg-config libssl11" \
|
|
|
%endif
|
|
|
-db_sqlite \
|
|
|
-db_text \
|
|
|
-db_text \
|
|
|
-db_unixodbc \
|
|
|
-dialplan \
|
|
|
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 8
|
|
|
+ FREERADIUS=1 \
|
|
|
+%endif
|
|
|
+%if 0%{?rhel} >= 8
|
|
|
+ PYTHON3=python3.12 \
|
|
|
+%endif
|
|
|
+ WOLFSSL_INTERNAL=no \
|
|
|
+ group_include="kstandard kautheph kberkeley kcarrierroute \
|
|
|
+%if %{with cnxcc}
|
|
|
+ kcnxcc \
|
|
|
+%endif
|
|
|
+ kcpl \
|
|
|
%if %{with dnssec}
|
|
|
-dnssec \
|
|
|
+ kdnssec \
|
|
|
%endif
|
|
|
%if %{with evapi}
|
|
|
-evapi \
|
|
|
+ kev \
|
|
|
%endif
|
|
|
-geoip2 \
|
|
|
-gzcompress \
|
|
|
-h350 \
|
|
|
+ kgeoip2 \
|
|
|
+ kgzcompress \
|
|
|
%if %{with http_async_client}
|
|
|
-http_async_client \
|
|
|
+ khttp_async \
|
|
|
%endif
|
|
|
-http_client \
|
|
|
+ kxhttp_prom \
|
|
|
%if %{with ims}
|
|
|
-ims_auth \
|
|
|
-ims_charging \
|
|
|
-ims_dialog \
|
|
|
-ims_diameter_server \
|
|
|
-ims_icscf \
|
|
|
-ims_ipsec_pcscf \
|
|
|
-ims_isc \
|
|
|
-ims_ocs \
|
|
|
-ims_qos \
|
|
|
-ims_qos_npn \
|
|
|
-ims_registrar_pcscf \
|
|
|
-ims_registrar_scscf \
|
|
|
-ims_usrloc_pcscf \
|
|
|
-ims_usrloc_scscf \
|
|
|
+ kims \
|
|
|
%endif
|
|
|
%if %{with jansson}
|
|
|
-jansson db_berkeley \
|
|
|
-janssonrpcc \
|
|
|
+ kjansson \
|
|
|
%endif
|
|
|
%if %{with json}
|
|
|
-json \
|
|
|
+ kjson \
|
|
|
%endif
|
|
|
-jsonrpcc \
|
|
|
-jwt \
|
|
|
+ kjsonrpcs \
|
|
|
+ kjwt \
|
|
|
%if %{with kazoo}
|
|
|
-kazoo \
|
|
|
+ kkazoo \
|
|
|
%endif
|
|
|
-lcr \
|
|
|
-ldap \
|
|
|
-%if "%{?_unitdir}" != ""
|
|
|
-log_systemd \
|
|
|
+ kldap \
|
|
|
+%if %{with lua}
|
|
|
+ klua \
|
|
|
%endif
|
|
|
-lost \
|
|
|
%if %{with lwsc}
|
|
|
-lwsc \
|
|
|
+ klwsc \
|
|
|
%endif
|
|
|
%if %{with memcached}
|
|
|
-memcached \
|
|
|
+ kmemcached \
|
|
|
%endif
|
|
|
-misc_radius \
|
|
|
-%if %{with nats}
|
|
|
-nats \
|
|
|
+%if %{with xmlrpc}
|
|
|
+ kmi_xmlrpc \
|
|
|
%endif
|
|
|
%if %{with mongodb}
|
|
|
-ndb_mongodb \
|
|
|
+ kmongodb \
|
|
|
%endif
|
|
|
-%if %{with redis}
|
|
|
-ndb_redis \
|
|
|
+ kmysql koutbound \
|
|
|
+%if %{with nats}
|
|
|
+ knats \
|
|
|
+%endif
|
|
|
+%if %{with perl}
|
|
|
+ kperl \
|
|
|
%endif
|
|
|
-outbound \
|
|
|
-peering \
|
|
|
%if %{with phonenum}
|
|
|
-phonenum \
|
|
|
-%endif
|
|
|
-presence \
|
|
|
-presence_conference \
|
|
|
-presence_dfks \
|
|
|
-presence_dialoginfo \
|
|
|
-presence_mwi \
|
|
|
-presence_profile \
|
|
|
-presence_reginfo \
|
|
|
-presence_xml \
|
|
|
-pua \
|
|
|
-pua_bla \
|
|
|
-pua_dialoginfo \
|
|
|
-pua_json \
|
|
|
-pua_reginfo \
|
|
|
-pua_rpc \
|
|
|
-pua_rpc \
|
|
|
-pua_usrloc \
|
|
|
-pua_xmpp \
|
|
|
-pvtpl \
|
|
|
+ kphonenum \
|
|
|
+%endif
|
|
|
+ kpostgres kpresence \
|
|
|
+%if %{with python2}
|
|
|
+ kpython \
|
|
|
+%endif
|
|
|
+%if %{with python3}
|
|
|
+ kpython3 \
|
|
|
+%endif
|
|
|
%if %{with rabbitmq}
|
|
|
-rabbitmq \
|
|
|
+ krabbitmq \
|
|
|
+%endif
|
|
|
+ kradius \
|
|
|
+%if %{with redis}
|
|
|
+ kredis \
|
|
|
+%endif
|
|
|
+%if %{with ruby}
|
|
|
+ kruby \
|
|
|
%endif
|
|
|
-regex \
|
|
|
-rls \
|
|
|
%if %{with sctp}
|
|
|
-sctp \
|
|
|
+ ksctp \
|
|
|
%endif
|
|
|
-siprepo \
|
|
|
-slack \
|
|
|
-snmpstats \
|
|
|
+ ksnmpstats ksqlite \
|
|
|
%if "%{?_unitdir}" != ""
|
|
|
-systemdops \
|
|
|
+ ksystemd \
|
|
|
%endif
|
|
|
-tls \
|
|
|
+ ktls \
|
|
|
%if %{with wolfssl}
|
|
|
-tls_wolfssl \
|
|
|
+ ktls_wolfssl \
|
|
|
%endif
|
|
|
-%if %{with redis}
|
|
|
-topos_redis \
|
|
|
-%endif
|
|
|
-utils \
|
|
|
-uuid \
|
|
|
+ kunixodbc kutils \
|
|
|
%if %{with websocket}
|
|
|
-websocket \
|
|
|
+ kwebsocket \
|
|
|
%endif
|
|
|
-xcap_client \
|
|
|
-xcap_server \
|
|
|
-xhttp_pi \
|
|
|
-xmlops \
|
|
|
-%if %{with xmlrpc}
|
|
|
-xmlrpc \
|
|
|
-%endif
|
|
|
-xmpp \
|
|
|
-"
|
|
|
-
|
|
|
-%{cmake} \
|
|
|
- -DBUILD_DOC=ON \
|
|
|
- -DUSE_TLS=ON \
|
|
|
- -DRADIUSCLIENT="FREERADIUS" \
|
|
|
- -DINCLUDE_MODULES="${MODULES}"
|
|
|
+ kxml kxmpp kuuid"
|
|
|
|
|
|
-%{cmake_build}
|
|
|
-%{cmake_build} --target dbschema
|
|
|
-%{cmake_build} --target man
|
|
|
-
|
|
|
-%install
|
|
|
-%{cmake_install}
|
|
|
-%{cmake_install} --component tls-cfg
|
|
|
-rm -f %{buildroot}%{_sysconfdir}/kamailio/tls.cfg.sample
|
|
|
-%{cmake_install} --component xhttp_pi-cfg
|
|
|
-rm -f %{buildroot}%{_sysconfdir}/kamailio/pi_framework.xml.sample
|
|
|
+make install-cfg-pkg
|
|
|
|
|
|
install -d %{buildroot}%{_sharedstatedir}/kamailio
|
|
|
|
|
|
+%if "%{?_unitdir}" == ""
|
|
|
+# On RedHat 6 like
|
|
|
+install -d %{buildroot}%{_var}/run/kamailio
|
|
|
+install -d %{buildroot}%{_sysconfdir}/rc.d/init.d
|
|
|
+install -m755 pkg/kamailio/obs/kamailio.init \
|
|
|
+ %{buildroot}%{_sysconfdir}/rc.d/init.d/kamailio
|
|
|
+%else
|
|
|
+# systemd
|
|
|
install -d %{buildroot}%{_unitdir}
|
|
|
install -Dpm 0644 pkg/kamailio/obs/kamailio.service %{buildroot}%{_unitdir}/kamailio.service
|
|
|
install -Dpm 0644 pkg/kamailio/obs/[email protected] %{buildroot}%{_unitdir}/[email protected]
|
|
|
+install -Dpm 0644 pkg/kamailio/obs/sipcapture.service %{buildroot}%{_unitdir}/sipcapture.service
|
|
|
install -Dpm 0644 pkg/kamailio/obs/kamailio.tmpfiles %{buildroot}%{_tmpfilesdir}/kamailio.conf
|
|
|
+install -Dpm 0644 pkg/kamailio/obs/sipcapture.tmpfiles %{buildroot}%{_tmpfilesdir}/sipcapture.conf
|
|
|
+%endif
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
install -d %{buildroot}%{_fillupdir}
|
|
|
install -m644 pkg/kamailio/obs/kamailio.sysconfig \
|
|
|
%{buildroot}%{_fillupdir}/sysconfig.kamailio
|
|
|
+install -m644 pkg/kamailio/obs/sipcapture.sysconfig \
|
|
|
+ %{buildroot}%{_fillupdir}/sysconfig.sipcapture
|
|
|
%else
|
|
|
install -d %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
install -m644 pkg/kamailio/obs/kamailio.sysconfig \
|
|
|
%{buildroot}%{_sysconfdir}/sysconfig/kamailio
|
|
|
+install -m644 pkg/kamailio/obs/sipcapture.sysconfig \
|
|
|
+ %{buildroot}%{_sysconfdir}/sysconfig/sipcapture
|
|
|
%endif
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
%py_compile -O %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
|
|
|
%endif
|
|
|
-
|
|
|
+%if 0%{?fedora} || 0%{?rhel} >= 8
|
|
|
%py_byte_compile %{__python3} %{buildroot}%{_libdir}/kamailio/kamctl/dbtextdb
|
|
|
+%endif
|
|
|
|
|
|
# Removing devel files
|
|
|
rm -f %{buildroot}%{_libdir}/kamailio/lib*.so
|
|
|
|
|
|
-
|
|
|
%pre
|
|
|
if ! /usr/bin/id kamailio &>/dev/null; then
|
|
|
/usr/sbin/useradd --system \
|
|
@@ -1350,7 +1476,6 @@ if ! /usr/bin/id kamailio &>/dev/null; then
|
|
|
%logmsg "Unexpected error adding user \"kamailio\". Aborting installation."
|
|
|
fi
|
|
|
|
|
|
-
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
@@ -1364,6 +1489,13 @@ rm -rf %{buildroot}
|
|
|
%endif
|
|
|
|
|
|
|
|
|
+%if "%{?_unitdir}" != ""
|
|
|
+%post sipcapture-daemon-config
|
|
|
+%tmpfiles_create sipcapture.conf
|
|
|
+/usr/bin/systemctl -q enable sipcapture.service
|
|
|
+%endif
|
|
|
+
|
|
|
+
|
|
|
%preun
|
|
|
if [ $1 = 0 ]; then
|
|
|
%if "%{?_unitdir}" == ""
|
|
@@ -1734,7 +1866,7 @@ fi
|
|
|
%files bdb
|
|
|
%defattr(-,root,root)
|
|
|
%doc %{_docdir}/kamailio/modules/README.db_berkeley
|
|
|
-%{_sbindir}/kamdb_recover
|
|
|
+%{_sbindir}/kambdb_recover
|
|
|
%{_libdir}/kamailio/modules/db_berkeley.so
|
|
|
%{_libdir}/kamailio/kamctl/kamctl.db_berkeley
|
|
|
%{_libdir}/kamailio/kamctl/kamdbctl.db_berkeley
|
|
@@ -1942,90 +2074,6 @@ fi
|
|
|
%doc %{_docdir}/kamailio/modules/README.ndb_mongodb
|
|
|
%{_libdir}/kamailio/modules/db_mongodb.so
|
|
|
%{_libdir}/kamailio/modules/ndb_mongodb.so
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/acc_cdrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/acc.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/active_watchers.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/address.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/aliases.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/carrierfailureroute.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/carrier_name.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/carrierroute.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/contact.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/cpl.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dbaliases.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dialog_in.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dialog.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dialog_out.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dialog_vars.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dialplan.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dispatcher.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/domain_attrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/domain.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/domain_name.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/domainpolicy.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dr_gateways.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dr_groups.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dr_gw_lists.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/dr_rules.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/globalblocklist.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/grp.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/htable.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/imc_members.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/imc_rooms.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/impu_contact.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/impu.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/impu_subscriber.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/lcr_gw.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/lcr_rule.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/lcr_rule_target.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/location_attrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/location.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/matrix.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/missed_calls.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/mohqcalls.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/mohqueues.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/mtree.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/mtrees.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/nds_trusted_domains.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/pcscf_location.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/pdt.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/pl_pipes.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/presentity.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/pua.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/purplemap.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/re_grp.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/rls_presentity.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/rls_watchers.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/ro_session.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/rtpengine.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/rtpproxy.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/sca_subscriptions.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/s_cscf_capabilities.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/s_cscf.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/secfilter.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/silo.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/sip_trace.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/speed_dial.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/subscriber.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/subscriber_scscf.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/topos_d.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/topos_t.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/trusted.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uacreg.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_credentials.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_domain_attrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_domain.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_global_attrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_uri_attrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_uri.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uid_user_attrs.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/uri.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/userblocklist.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/usr_preferences.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/version.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/version-create.mongo
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/watchers.json
|
|
|
-%{_datadir}/kamailio/mongodb/kamailio/xcap.json
|
|
|
%endif
|
|
|
|
|
|
|
|
@@ -2211,6 +2259,20 @@ fi
|
|
|
%{_libdir}/kamailio/modules/rtjson.so
|
|
|
|
|
|
|
|
|
+%files sipcapture-daemon-config
|
|
|
+%defattr(-,root,root)
|
|
|
+%config(noreplace) %{_sysconfdir}/kamailio/kamailio-sipcapture.cfg
|
|
|
+%if 0%{?suse_version}
|
|
|
+%{_fillupdir}/sysconfig.sipcapture
|
|
|
+%else
|
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/sipcapture
|
|
|
+%endif
|
|
|
+%if "%{?_unitdir}" != ""
|
|
|
+%{_unitdir}/sipcapture.service
|
|
|
+%{_tmpfilesdir}/sipcapture.conf
|
|
|
+%endif
|
|
|
+
|
|
|
+
|
|
|
%if %{with ruby}
|
|
|
%files ruby
|
|
|
%defattr(-,root,root)
|