Browse code

pkg/kamailio/obs: packaged evapi module [skip ci]

Releated GH #2098

(cherry picked from commit 298abc9eb6240b9567df5166d64eba9f6da078dd)

Sergey Safarov authored on 24/10/2019 19:13:47
Showing 1 changed files
... ...
@@ -7,6 +7,7 @@
7 7
 %define dist_version %{?fedora}
8 8
 %bcond_without cnxcc
9 9
 %bcond_with dnssec
10
+%bcond_without evapi
10 11
 %bcond_without geoip
11 12
 %bcond_without http_async_client
12 13
 %bcond_without ims
... ...
@@ -32,6 +33,7 @@
32 33
 %define dist_version %{?centos}
33 34
 %bcond_with cnxcc
34 35
 %bcond_without dnssec
36
+%bcond_without evapi
35 37
 %bcond_without geoip
36 38
 %bcond_without http_async_client
37 39
 %bcond_without ims
... ...
@@ -58,6 +60,7 @@
58 60
 %define dist .el7.centos
59 61
 %bcond_without cnxcc
60 62
 %bcond_with dnssec
63
+%bcond_without evapi
61 64
 %bcond_without geoip
62 65
 %bcond_without http_async_client
63 66
 %bcond_without ims
... ...
@@ -84,6 +87,7 @@
84 87
 %define dist .el8.centos
85 88
 %bcond_without cnxcc
86 89
 %bcond_with dnssec
90
+%bcond_without evapi
87 91
 %bcond_with geoip
88 92
 %bcond_without http_async_client
89 93
 %bcond_without ims
... ...
@@ -109,6 +113,7 @@
109 113
 %define dist_version %{?suse_version}
110 114
 %bcond_without cnxcc
111 115
 %bcond_with dnssec
116
+%bcond_with evapi
112 117
 %bcond_without geoip
113 118
 %bcond_without http_async_client
114 119
 %bcond_without ims
... ...
@@ -134,6 +139,7 @@
134 139
 %define dist_version %{?rhel}
135 140
 %bcond_with cnxcc
136 141
 %bcond_without dnssec
142
+%bcond_without evapi
137 143
 %bcond_with geoip
138 144
 %bcond_with http_async_client
139 145
 %bcond_with ims
... ...
@@ -159,6 +165,7 @@
159 165
 %define dist_version %{?rhel}
160 166
 %bcond_without cnxcc
161 167
 %bcond_with dnssec
168
+%bcond_without evapi
162 169
 %bcond_without geoip
163 170
 %bcond_without http_async_client
164 171
 %bcond_without ims
... ...
@@ -184,6 +191,7 @@
184 191
 %define dist_version %{?rhel}
185 192
 %bcond_without cnxcc
186 193
 %bcond_with dnssec
194
+%bcond_without evapi
187 195
 %bcond_with geoip
188 196
 %bcond_without http_async_client
189 197
 %bcond_without ims
... ...
@@ -444,6 +452,21 @@ DNSSEC support for Kamailio.
444 452
 %endif
445 453
 
446 454
 
455
+%if %{with evapi}
456
+%package    evapi
457
+Summary:    Module can be used to create an event message flow from Kamailio to any application that can connect to a TCP socket
458
+Group:      %{PKGGROUP}
459
+Requires:   libev, kamailio = %ver
460
+BuildRequires:  libev-devel
461
+
462
+%description    evapi
463
+The remote application can also issue messages received by Kamailio.
464
+There is no protocol definition, it is all up to the author of the routing script.
465
+Events can be generated for any event in Kamailio. For 3rd party transaction control, a transaction can be automatically
466
+suspended when sending the event, to be resumed at a later point, maybe triggered by an incoming message on the event socket.
467
+%endif
468
+
469
+
447 470
 %if %{with geoip}
448 471
 %package    geoip
449 472
 Summary:    MaxMind GeoIP support for Kamailio
... ...
@@ -1099,6 +1122,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1099 1122
 %if %{with dnssec}
1100 1123
     kdnssec \
1101 1124
 %endif
1125
+%if %{with evapi}
1126
+    kev \
1127
+%endif
1102 1128
 %if %{with geoip}
1103 1129
     kgeoip \
1104 1130
 %endif
... ...
@@ -1183,6 +1209,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1183 1209
 %if %{with dnssec}
1184 1210
     kdnssec \
1185 1211
 %endif
1212
+%if %{with evapi}
1213
+    kev \
1214
+%endif
1186 1215
 %if %{with geoip}
1187 1216
     kgeoip \
1188 1217
 %endif
... ...
@@ -1716,6 +1745,14 @@ fi
1716 1745
 %endif
1717 1746
 
1718 1747
 
1748
+%if %{with evapi}
1749
+%files      evapi
1750
+%defattr(-,root,root)
1751
+%doc %{_docdir}/kamailio/modules/README.evapi
1752
+%{_libdir}/kamailio/modules/evapi.so
1753
+%endif
1754
+
1755
+
1719 1756
 %if %{with geoip}
1720 1757
 %files      geoip
1721 1758
 %defattr(-,root,root)