Browse code

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

Releated GH #2098

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
... ...
@@ -448,6 +456,21 @@ DNSSEC support for Kamailio.
448 456
 %endif
449 457
 
450 458
 
459
+%if %{with evapi}
460
+%package    evapi
461
+Summary:    Module can be used to create an event message flow from Kamailio to any application that can connect to a TCP socket
462
+Group:      %{PKGGROUP}
463
+Requires:   libev, kamailio = %ver
464
+BuildRequires:  libev-devel
465
+
466
+%description    evapi
467
+The remote application can also issue messages received by Kamailio.
468
+There is no protocol definition, it is all up to the author of the routing script.
469
+Events can be generated for any event in Kamailio. For 3rd party transaction control, a transaction can be automatically
470
+suspended when sending the event, to be resumed at a later point, maybe triggered by an incoming message on the event socket.
471
+%endif
472
+
473
+
451 474
 %if %{with geoip}
452 475
 %package    geoip
453 476
 Summary:    MaxMind GeoIP support for Kamailio
... ...
@@ -1116,6 +1139,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1116 1139
 %if %{with dnssec}
1117 1140
     kdnssec \
1118 1141
 %endif
1142
+%if %{with evapi}
1143
+    kev \
1144
+%endif
1119 1145
 %if %{with geoip}
1120 1146
     kgeoip \
1121 1147
 %endif
... ...
@@ -1204,6 +1230,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1204 1230
 %if %{with dnssec}
1205 1231
     kdnssec \
1206 1232
 %endif
1233
+%if %{with evapi}
1234
+    kev \
1235
+%endif
1207 1236
 %if %{with geoip}
1208 1237
     kgeoip \
1209 1238
 %endif
... ...
@@ -1755,6 +1784,14 @@ fi
1755 1784
 %endif
1756 1785
 
1757 1786
 
1787
+%if %{with evapi}
1788
+%files      evapi
1789
+%defattr(-,root,root)
1790
+%doc %{_docdir}/kamailio/modules/README.evapi
1791
+%{_libdir}/kamailio/modules/evapi.so
1792
+%endif
1793
+
1794
+
1758 1795
 %if %{with geoip}
1759 1796
 %files      geoip
1760 1797
 %defattr(-,root,root)