Browse code

pkg: enable RHEL7-like distros to build with OpenSSL 1.1.1

SPChan authored on 10/06/2021 23:51:11 • sergey-safarov committed on 18/06/2021 12:56:41
Showing 1 changed files
... ...
@@ -172,6 +172,11 @@
172 172
 %define _rundir %{_localstatedir}/run
173 173
 %endif
174 174
 
175
+# build with openssl 1.1.1 on RHEL 7 based dists
176
+%if 0%{?rhel} == 7
177
+%bcond_with openssl11
178
+%endif
179
+
175 180
 # redefine buggy openSUSE Leap _sharedstatedir macro. More info at https://bugzilla.redhat.com/show_bug.cgi?id=183370
176 181
 %if 0%{?suse_version} == 1315
177 182
 %define _sharedstatedir /var/lib
... ...
@@ -279,8 +284,13 @@ Account transaction information in a JSON dictionary.
279 284
 %package    auth-ephemeral
280 285
 Summary:    Functions for authentication using ephemeral credentials
281 286
 Group:      %{PKGGROUP}
287
+%if 0%{?rhel} == 7 && %{with openssl11}
288
+Requires:   openssl11, kamailio = %ver
289
+BuildRequires:  openssl11-devel
290
+%else
282 291
 Requires:   openssl, kamailio = %ver
283 292
 BuildRequires:  openssl-devel
293
+%endif
284 294
 
285 295
 %description    auth-ephemeral
286 296
 Functions for authentication using ephemeral credentials.
... ...
@@ -365,9 +375,14 @@ Requires:   openssl
365 375
 BuildRequires:  openssl-devel
366 376
 %endif
367 377
 %if 0%{?rhel} == 7
378
+%if %{with openssl11}
379
+Requires:   openssl11-libs
380
+BuildRequires:  openssl11-devel
381
+%else
368 382
 Requires:   openssl-libs
369 383
 BuildRequires:  openssl-devel
370 384
 %endif
385
+%endif
371 386
 %if 0%{?fedora}
372 387
 Requires:   openssl-libs
373 388
 BuildRequires:  openssl-devel
... ...
@@ -673,8 +688,13 @@ MySQL database connectivity for Kamailio.
673 688
 %package    outbound
674 689
 Summary:    Outbound (RFC 5626) support for Kamailio
675 690
 Group:      %{PKGGROUP}
691
+%if 0%{?rhel} == 7 && %{with openssl11}
692
+Requires:   openssl11, kamailio = %ver
693
+BuildRequires:  openssl11-devel
694
+%else
676 695
 Requires:   openssl, kamailio = %ver
677 696
 BuildRequires:  openssl-devel
697
+%endif
678 698
 
679 699
 %description    outbound
680 700
 RFC 5626, "Managing Client-Initiated Connections in the Session Initiation
... ...
@@ -952,8 +972,13 @@ SQLite database connectivity for Kamailio.
952 972
 %package    tls
953 973
 Summary:    TLS transport for Kamailio
954 974
 Group:      %{PKGGROUP}
975
+%if 0%{?rhel} == 7 && %{with openssl11}
976
+Requires:   openssl11, kamailio = %ver
977
+BuildRequires:  openssl11-devel
978
+%else
955 979
 Requires:   openssl, kamailio = %ver
956 980
 BuildRequires:  openssl-devel
981
+%endif
957 982
 
958 983
 %description    tls
959 984
 TLS transport for Kamailio.
... ...
@@ -1008,8 +1033,13 @@ Non-SIP utitility functions for Kamailio.
1008 1033
 %package    websocket
1009 1034
 Summary:    WebSocket transport for Kamailio
1010 1035
 Group:      %{PKGGROUP}
1036
+%if 0%{?rhel} == 7 && %{with openssl11}
1037
+Requires:   libunistring, openssl11, kamailio = %ver
1038
+BuildRequires:  libunistring-devel, openssl11-devel
1039
+%else
1011 1040
 Requires:   libunistring, openssl, kamailio = %ver
1012 1041
 BuildRequires:  libunistring-devel, openssl-devel
1042
+%endif
1013 1043
 
1014 1044
 %description    websocket
1015 1045
 WebSocket transport for Kamailio.
... ...
@@ -1106,6 +1136,9 @@ make cfg prefix=/usr \
1106 1136
 make
1107 1137
 make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1108 1138
     jabber ndb_cassandra osp" \
1139
+%if %{with openssl11}
1140
+    SSL_BUILDER="pkg-config libssl11" \
1141
+%endif
1109 1142
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1110 1143
     FREERADIUS=1 \
1111 1144
 %endif
... ...
@@ -1201,6 +1234,9 @@ rm -rf %{buildroot}
1201 1234
 make install
1202 1235
 make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1203 1236
     iptrtpproxy jabber osp" \
1237
+%if %{with openssl11}
1238
+    SSL_BUILDER="pkg-config libssl11" \
1239
+%endif
1204 1240
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1205 1241
     FREERADIUS=1 \
1206 1242
 %endif
Browse code

pkg/kamailio/obs: disabled lwsc build on CentOS 6 dist

Sergey Safarov authored on 14/06/2021 12:31:32
Showing 1 changed files
... ...
@@ -14,6 +14,7 @@
14 14
 %bcond_without jansson
15 15
 %bcond_without json
16 16
 %bcond_without lua
17
+%bcond_without lwsc
17 18
 %bcond_without kazoo
18 19
 %bcond_without memcached
19 20
 %bcond_without mongodb
... ...
@@ -46,6 +47,7 @@
46 47
 %bcond_without jansson
47 48
 %bcond_without json
48 49
 %bcond_without lua
50
+%bcond_with lwsc
49 51
 %bcond_without kazoo
50 52
 %bcond_without memcached
51 53
 %bcond_with mongodb
... ...
@@ -79,6 +81,7 @@
79 81
 %bcond_without jansson
80 82
 %bcond_without json
81 83
 %bcond_without lua
84
+%bcond_without lwsc
82 85
 %bcond_without kazoo
83 86
 %bcond_without memcached
84 87
 %bcond_without mongodb
... ...
@@ -122,6 +125,7 @@
122 125
 %bcond_without jansson
123 126
 %bcond_without json
124 127
 %bcond_without lua
128
+%bcond_without lwsc
125 129
 %bcond_without kazoo
126 130
 %bcond_without memcached
127 131
 %bcond_without mongodb
... ...
@@ -148,6 +152,7 @@
148 152
 %bcond_without jansson
149 153
 %bcond_without json
150 154
 %bcond_without lua
155
+%bcond_without lwsc
151 156
 %bcond_with kazoo
152 157
 %bcond_without memcached
153 158
 %bcond_with mongodb
... ...
@@ -611,6 +616,7 @@ Lua extensions for Kamailio.
611 616
 %endif
612 617
 
613 618
 
619
+%if %{with lwsc}
614 620
 %package    lwsc
615 621
 Summary:    Websocket client implementation to interact with external systems, similar to http client
616 622
 Group:      %{PKGGROUP}
... ...
@@ -619,6 +625,7 @@ BuildRequires:  libwebsockets-devel
619 625
 
620 626
 %description    lwsc
621 627
 Websocket client implementation to interact with external systems, similar to http client.
628
+%endif
622 629
 
623 630
 
624 631
 %if %{with memcached}
... ...
@@ -1138,7 +1145,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1138 1145
 %if %{with lua}
1139 1146
     klua \
1140 1147
 %endif
1148
+%if %{with lwsc}
1141 1149
     klwsc \
1150
+%endif
1142 1151
 %if %{with memcached}
1143 1152
     kmemcached \
1144 1153
 %endif
... ...
@@ -1231,7 +1240,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1231 1240
 %if %{with lua}
1232 1241
     klua \
1233 1242
 %endif
1243
+%if %{with lwsc}
1234 1244
     klwsc \
1245
+%endif
1235 1246
 %if %{with memcached}
1236 1247
     kmemcached \
1237 1248
 %endif
... ...
@@ -1894,10 +1905,12 @@ fi
1894 1905
 %endif
1895 1906
 
1896 1907
 
1908
+%if %{with lwsc}
1897 1909
 %files      lwsc
1898 1910
 %defattr(-,root,root)
1899 1911
 %doc %{_docdir}/kamailio/modules/README.lwsc
1900 1912
 %{_libdir}/kamailio/modules/lwsc.so
1913
+%endif
1901 1914
 
1902 1915
 %if %{with memcached}
1903 1916
 %files      memcached
Browse code

pkg/kamailio/obs: simlifid module definition for RHEL dist

Sergey Safarov authored on 14/06/2021 05:05:41
Showing 1 changed files
... ...
@@ -28,9 +28,15 @@
28 28
 %bcond_without xmlrpc
29 29
 %endif
30 30
 
31
-%if 0%{?centos_ver} == 6
31
+%if 0%{?rhel} == 6
32
+%if 0%{?centos_ver}
32 33
 %define dist_name centos
33 34
 %define dist_version %{?centos}
35
+%endif
36
+%if 0%{?centos_ver} == 0
37
+%define dist_name rhel
38
+%define dist_version %{?rhel}
39
+%endif
34 40
 %bcond_with cnxcc
35 41
 %bcond_without dnssec
36 42
 %bcond_without evapi
... ...
@@ -54,10 +60,16 @@
54 60
 %bcond_without xmlrpc
55 61
 %endif
56 62
 
57
-%if 0%{?centos_ver} == 7
63
+%if 0%{?rhel} == 7
64
+%if 0%{?centos_ver}
58 65
 %define dist_name centos
59 66
 %define dist_version %{?centos}
60 67
 %define dist .el7.centos
68
+%endif
69
+%if 0%{?centos_ver} == 0
70
+%define dist_name rhel
71
+%define dist_version %{?rhel}
72
+%endif
61 73
 %bcond_without cnxcc
62 74
 %bcond_with dnssec
63 75
 %bcond_without evapi
... ...
@@ -81,23 +93,26 @@
81 93
 %bcond_without xmlrpc
82 94
 %endif
83 95
 
84
-%if 0%{?centos_ver} == 8 || 0%{?almalinux_ver} == 8 || 0%{?rocky_ver} == 8
85
-%define rhel_rebuild 8
86
-% if 0%{?centos_ver}
96
+%if 0%{?rhel} == 8
97
+%if 0%{?centos_ver}
87 98
 %define dist_name centos
88 99
 %define dist_version %{?centos}
89 100
 %define dist .el8.centos
90 101
 %endif
91
-% if 0%{?almalinux_ver}
102
+%if 0%{?almalinux_ver}
92 103
 %define dist_name centos
93 104
 %define dist_version %{?almalinux}
94 105
 %define dist .el8.almalinux
95 106
 %endif
96
-% if 0%{?rocky_ver}
107
+%if 0%{?rocky_ver}
97 108
 %define dist_name centos
98 109
 %define dist_version %{?rocky}
99 110
 %define dist .el8.rocky
100 111
 %endif
112
+%if 0%{?centos_ver} == 0 && 0%{?almalinux_ver} == 0 && 0%{?rocky_ver} == 0
113
+%define dist_name rhel
114
+%define dist_version %{?rhel}
115
+%endif
101 116
 %bcond_without cnxcc
102 117
 %bcond_with dnssec
103 118
 %bcond_without evapi
... ...
@@ -147,84 +162,6 @@
147 162
 %bcond_without xmlrpc
148 163
 %endif
149 164
 
150
-%if 0%{?rhel} == 6 && 0%{?centos_ver} != 6
151
-%define dist_name rhel
152
-%define dist_version %{?rhel}
153
-%bcond_with cnxcc
154
-%bcond_without dnssec
155
-%bcond_without evapi
156
-%bcond_with geoip
157
-%bcond_with http_async_client
158
-%bcond_with ims
159
-%bcond_with jansson
160
-%bcond_with json
161
-%bcond_with lua
162
-%bcond_with kazoo
163
-%bcond_with memcached
164
-%bcond_with mongodb
165
-%bcond_with perl
166
-%bcond_with phonenum
167
-%bcond_with python3
168
-%bcond_with rabbitmq
169
-%bcond_with redis
170
-%bcond_with ruby
171
-%bcond_with sctp
172
-%bcond_with websocket
173
-%bcond_without xmlrpc
174
-%endif
175
-
176
-%if 0%{?rhel} == 7 && 0%{?centos_ver} != 7
177
-%define dist_name rhel
178
-%define dist_version %{?rhel}
179
-%bcond_without cnxcc
180
-%bcond_with dnssec
181
-%bcond_without evapi
182
-%bcond_without geoip
183
-%bcond_without http_async_client
184
-%bcond_without ims
185
-%bcond_without jansson
186
-%bcond_without json
187
-%bcond_without lua
188
-%bcond_without kazoo
189
-%bcond_without memcached
190
-%bcond_without mongodb
191
-%bcond_without perl
192
-%bcond_without phonenum
193
-%bcond_without python3
194
-%bcond_without rabbitmq
195
-%bcond_without redis
196
-%bcond_without ruby
197
-%bcond_without sctp
198
-%bcond_without websocket
199
-%bcond_without xmlrpc
200
-%endif
201
-
202
-%if 0%{?rhel} == 8 && 0%{?rhel_rebuild} != 8
203
-%define dist_name rhel
204
-%define dist_version %{?rhel}
205
-%bcond_without cnxcc
206
-%bcond_with dnssec
207
-%bcond_without evapi
208
-%bcond_without geoip
209
-%bcond_without http_async_client
210
-%bcond_without ims
211
-%bcond_without jansson
212
-%bcond_without json
213
-%bcond_without lua
214
-%bcond_without kazoo
215
-%bcond_without memcached
216
-%bcond_without mongodb
217
-%bcond_without perl
218
-%bcond_without phonenum
219
-%bcond_without python3
220
-%bcond_without rabbitmq
221
-%bcond_without redis
222
-%bcond_without ruby
223
-%bcond_without sctp
224
-%bcond_without websocket
225
-%bcond_without xmlrpc
226
-%endif
227
-
228 165
 # Defining missing macros on RHEL/CentOS 6
229 166
 %if 0%{?rhel} == 6
230 167
 %define _rundir %{_localstatedir}/run
Browse code

pkg: add support for AlmaLinux and Rocky Linux

SPChan authored on 11/06/2021 03:23:55 • sergey-safarov committed on 11/06/2021 11:41:12
Showing 1 changed files
... ...
@@ -81,10 +81,23 @@
81 81
 %bcond_without xmlrpc
82 82
 %endif
83 83
 
84
-%if 0%{?centos_ver} == 8
84
+%if 0%{?centos_ver} == 8 || 0%{?almalinux_ver} == 8 || 0%{?rocky_ver} == 8
85
+%define rhel_rebuild 8
86
+% if 0%{?centos_ver}
85 87
 %define dist_name centos
86 88
 %define dist_version %{?centos}
87 89
 %define dist .el8.centos
90
+%endif
91
+% if 0%{?almalinux_ver}
92
+%define dist_name centos
93
+%define dist_version %{?almalinux}
94
+%define dist .el8.almalinux
95
+%endif
96
+% if 0%{?rocky_ver}
97
+%define dist_name centos
98
+%define dist_version %{?rocky}
99
+%define dist .el8.rocky
100
+%endif
88 101
 %bcond_without cnxcc
89 102
 %bcond_with dnssec
90 103
 %bcond_without evapi
... ...
@@ -186,7 +199,7 @@
186 199
 %bcond_without xmlrpc
187 200
 %endif
188 201
 
189
-%if 0%{?rhel} == 8 && 0%{?centos_ver} != 8
202
+%if 0%{?rhel} == 8 && 0%{?rhel_rebuild} != 8
190 203
 %define dist_name rhel
191 204
 %define dist_version %{?rhel}
192 205
 %bcond_without cnxcc
Browse code

pkg/kamailio/obs: added lwsc module packaging

Sergey Safarov authored on 16/04/2021 09:36:55
Showing 1 changed files
... ...
@@ -661,6 +661,16 @@ Lua extensions for Kamailio.
661 661
 %endif
662 662
 
663 663
 
664
+%package    lwsc
665
+Summary:    Websocket client implementation to interact with external systems, similar to http client
666
+Group:      %{PKGGROUP}
667
+Requires:   libwebsockets, kamailio = %ver
668
+BuildRequires:  libwebsockets-devel
669
+
670
+%description    lwsc
671
+Websocket client implementation to interact with external systems, similar to http client.
672
+
673
+
664 674
 %if %{with memcached}
665 675
 %package    memcached
666 676
 Summary:    Memcached configuration file support for Kamailio
... ...
@@ -1178,6 +1188,7 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1178 1188
 %if %{with lua}
1179 1189
     klua \
1180 1190
 %endif
1191
+    klwsc \
1181 1192
 %if %{with memcached}
1182 1193
     kmemcached \
1183 1194
 %endif
... ...
@@ -1270,6 +1281,7 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1270 1281
 %if %{with lua}
1271 1282
     klua \
1272 1283
 %endif
1284
+    klwsc \
1273 1285
 %if %{with memcached}
1274 1286
     kmemcached \
1275 1287
 %endif
... ...
@@ -1932,6 +1944,11 @@ fi
1932 1944
 %endif
1933 1945
 
1934 1946
 
1947
+%files      lwsc
1948
+%defattr(-,root,root)
1949
+%doc %{_docdir}/kamailio/modules/README.lwsc
1950
+%{_libdir}/kamailio/modules/lwsc.so
1951
+
1935 1952
 %if %{with memcached}
1936 1953
 %files      memcached
1937 1954
 %defattr(-,root,root)
Browse code

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

Sergey Safarov authored on 15/03/2021 15:44:17
Showing 1 changed files
... ...
@@ -1448,6 +1448,7 @@ fi
1448 1448
 %doc %{_docdir}/kamailio/modules/README.ipops
1449 1449
 %doc %{_docdir}/kamailio/modules/README.kemix
1450 1450
 %doc %{_docdir}/kamailio/modules/README.kex
1451
+%doc %{_docdir}/kamailio/modules/README.lrkproxy
1451 1452
 %doc %{_docdir}/kamailio/modules/README.malloc_test
1452 1453
 %doc %{_docdir}/kamailio/modules/README.mangler
1453 1454
 %doc %{_docdir}/kamailio/modules/README.matrix
... ...
@@ -1606,6 +1607,7 @@ fi
1606 1607
 %{_libdir}/kamailio/modules/ipops.so
1607 1608
 %{_libdir}/kamailio/modules/kemix.so
1608 1609
 %{_libdir}/kamailio/modules/kex.so
1610
+%{_libdir}/kamailio/modules/lrkproxy.so
1609 1611
 %{_libdir}/kamailio/modules/malloc_test.so
1610 1612
 %{_libdir}/kamailio/modules/mangler.so
1611 1613
 %{_libdir}/kamailio/modules/matrix.so
Browse code

pkg/kamailio/obs: added --atexit=no into systemd unit file [skip ci]

Sergey Safarov authored on 15/02/2021 07:11:25
Showing 1 changed files
... ...
@@ -1119,6 +1119,12 @@ UUID module for Kamailio.
1119 1119
 sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1120 1120
 %endif
1121 1121
 
1122
+# on latest dist need to add --atexit=no for Kamailio options. More details GH #2616
1123
+%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
1124
+sed -i -e 's|/usr/sbin/kamailio|/usr/sbin/kamailio --atexit=no|' pkg/kamailio/obs/kamailio.service
1125
+%endif
1126
+
1127
+
1122 1128
 %build
1123 1129
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
1124 1130
 %if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} == 8
Browse code

pkg/kamailio/obs: packaged sworker module

Sergey Safarov authored on 28/11/2020 15:41:16
Showing 1 changed files
... ...
@@ -1491,6 +1491,7 @@ fi
1491 1491
 %doc %{_docdir}/kamailio/modules/README.sst
1492 1492
 %doc %{_docdir}/kamailio/modules/README.statistics
1493 1493
 %doc %{_docdir}/kamailio/modules/README.stun
1494
+%doc %{_docdir}/kamailio/modules/README.sworker
1494 1495
 %doc %{_docdir}/kamailio/modules/README.textops
1495 1496
 %doc %{_docdir}/kamailio/modules/README.textopsx
1496 1497
 %doc %{_docdir}/kamailio/modules/README.timer
... ...
@@ -1648,6 +1649,7 @@ fi
1648 1649
 %{_libdir}/kamailio/modules/sst.so
1649 1650
 %{_libdir}/kamailio/modules/statistics.so
1650 1651
 %{_libdir}/kamailio/modules/stun.so
1652
+%{_libdir}/kamailio/modules/sworker.so
1651 1653
 %{_libdir}/kamailio/modules/textops.so
1652 1654
 %{_libdir}/kamailio/modules/textopsx.so
1653 1655
 %{_libdir}/kamailio/modules/timer.so
Browse code

pkg/kamailio/obs: renamed userblacklist to userblocklist

Sergey Safarov authored on 25/11/2020 17:23:14
Showing 1 changed files
... ...
@@ -1506,7 +1506,7 @@ fi
1506 1506
 %doc %{_docdir}/kamailio/modules/README.uid_gflags
1507 1507
 %doc %{_docdir}/kamailio/modules/README.uid_uri_db
1508 1508
 %doc %{_docdir}/kamailio/modules/README.uri_db
1509
-%doc %{_docdir}/kamailio/modules/README.userblacklist
1509
+%doc %{_docdir}/kamailio/modules/README.userblocklist
1510 1510
 %doc %{_docdir}/kamailio/modules/README.usrloc
1511 1511
 %doc %{_docdir}/kamailio/modules/README.xhttp
1512 1512
 %doc %{_docdir}/kamailio/modules/README.xhttp_prom
... ...
@@ -1663,7 +1663,7 @@ fi
1663 1663
 %{_libdir}/kamailio/modules/uid_gflags.so
1664 1664
 %{_libdir}/kamailio/modules/uid_uri_db.so
1665 1665
 %{_libdir}/kamailio/modules/uri_db.so
1666
-%{_libdir}/kamailio/modules/userblacklist.so
1666
+%{_libdir}/kamailio/modules/userblocklist.so
1667 1667
 %{_libdir}/kamailio/modules/usrloc.so
1668 1668
 %{_libdir}/kamailio/modules/xhttp.so
1669 1669
 %{_libdir}/kamailio/modules/xhttp_prom.so
Browse code

pkg/kamailio/obs: spec formating

Sergey Safarov authored on 27/07/2020 06:50:54
Showing 1 changed files
... ...
@@ -1168,10 +1168,7 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1168 1168
 %if %{with kazoo}
1169 1169
     kkazoo \
1170 1170
 %endif
1171
-%if %{with rabbitmq}
1172
-    krabbitmq \
1173
-%endif
1174
-    kldap 
1171
+    kldap \
1175 1172
 %if %{with lua}
1176 1173
     klua \
1177 1174
 %endif
... ...
@@ -1194,6 +1191,9 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1194 1191
     kpostgres kpresence kpython \
1195 1192
 %if %{with python3}
1196 1193
     kpython3 \
1194
+%endif
1195
+%if %{with rabbitmq}
1196
+    krabbitmq \
1197 1197
 %endif
1198 1198
     kradius \
1199 1199
 %if %{with redis}
... ...
@@ -1259,9 +1259,6 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1259 1259
     kjsonrpcs \
1260 1260
 %if %{with kazoo}
1261 1261
     kkazoo \
1262
-%endif
1263
-%if %{with rabbitmq}
1264
-    krabbitmq \
1265 1262
 %endif
1266 1263
     kldap \
1267 1264
 %if %{with lua}
... ...
@@ -1286,6 +1283,9 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1286 1283
     kpostgres kpresence kpython \
1287 1284
 %if %{with python3}
1288 1285
     kpython3 \
1286
+%endif
1287
+%if %{with rabbitmq}
1288
+    krabbitmq \
1289 1289
 %endif
1290 1290
     kradius \
1291 1291
 %if %{with redis}
Browse code

pkg: obs/kamailio.spec - simplified pkgconfig requirements

for more detail pleae look GH #2368

Sergey Safarov authored on 24/06/2020 14:49:24
Showing 1 changed files
... ...
@@ -271,20 +271,12 @@ Conflicts:  kamailio-utils < %ver, kamailio-websocket < %ver
271 271
 Conflicts:  kamailio-xhttp-pi < %ver, kamailio-xmlops < %ver
272 272
 Conflicts:  kamailio-xmlrpc < %ver, kamailio-xmpp < %ver
273 273
 Conflicts:  kamailio-uuid < %ver
274
-BuildRequires:  bison, flex, which, make, gcc, gcc-c++
274
+BuildRequires:  bison, flex, which, make, gcc, gcc-c++, pkgconfig
275 275
 %if 0%{?rhel} != 6
276 276
 Requires:  systemd
277 277
 BuildRequires:  systemd-devel
278 278
 %endif
279 279
 
280
-%if 0%{?rhel} || 0%{?centos_ver}
281
-%if 0%{?rhel} > 6 || 0%{?centos_ver} > 6
282
-BuildRequires:  pkgconfig
283
-%endif
284
-%else
285
-BuildRequires:  pkgconfig
286
-%endif
287
-
288 280
 %if 0%{?suse_version} == 1315 || 0%{?suse_version} == 1330
289 281
 Requires:  filesystem
290 282
 BuildRequires:  shadow
Browse code

pkg: obs/kamailio.spec - set version to 5.4.0

- set packager to Sergey Safarov
- add more build requirements, including those from GH #2368

Daniel-Constantin Mierla authored on 23/06/2020 17:00:13
Showing 1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 %define name    kamailio
2
-%define ver 5.2.0
2
+%define ver 5.4.0
3 3
 %define rel dev1.0%{dist}
4 4
 
5 5
 %if 0%{?fedora}
... ...
@@ -238,11 +238,11 @@
238 238
 %endif
239 239
 
240 240
 
241
-Summary:    Kamailio (former OpenSER) - the Open Source SIP Server
241
+Summary:    Kamailio - the Open Source SIP Server
242 242
 Name:       %name
243 243
 Version:    %ver
244 244
 Release:    %rel
245
-Packager:   Peter Dunkley <peter@dunkley.me.uk>
245
+Packager:   Sergey Safarov <s.safarov@gmail.com>
246 246
 License:    GPL-2.0
247 247
 Group:      %{PKGGROUP}
248 248
 Source:     http://kamailio.org/pub/kamailio/%{ver}/src/%{name}-%{ver}_src.tar.gz
... ...
@@ -271,11 +271,20 @@ Conflicts:  kamailio-utils < %ver, kamailio-websocket < %ver
271 271
 Conflicts:  kamailio-xhttp-pi < %ver, kamailio-xmlops < %ver
272 272
 Conflicts:  kamailio-xmlrpc < %ver, kamailio-xmpp < %ver
273 273
 Conflicts:  kamailio-uuid < %ver
274
-BuildRequires:  bison, flex
274
+BuildRequires:  bison, flex, which, make, gcc, gcc-c++
275 275
 %if 0%{?rhel} != 6
276 276
 Requires:  systemd
277 277
 BuildRequires:  systemd-devel
278 278
 %endif
279
+
280
+%if 0%{?rhel} || 0%{?centos_ver}
281
+%if 0%{?rhel} > 6 || 0%{?centos_ver} > 6
282
+BuildRequires:  pkgconfig
283
+%endif
284
+%else
285
+BuildRequires:  pkgconfig
286
+%endif
287
+
279 288
 %if 0%{?suse_version} == 1315 || 0%{?suse_version} == 1330
280 289
 Requires:  filesystem
281 290
 BuildRequires:  shadow
Browse code

pkg/kamailio/obs: packaged dlgs module

Sergey Safarov authored on 22/06/2020 14:58:57
Showing 1 changed files
... ...
@@ -1428,6 +1428,7 @@ fi
1428 1428
 %doc %{_docdir}/kamailio/modules/README.dialog
1429 1429
 %doc %{_docdir}/kamailio/modules/README.dispatcher
1430 1430
 %doc %{_docdir}/kamailio/modules/README.diversion
1431
+%doc %{_docdir}/kamailio/modules/README.dlgs
1431 1432
 %doc %{_docdir}/kamailio/modules/README.dmq
1432 1433
 %doc %{_docdir}/kamailio/modules/README.domain
1433 1434
 %doc %{_docdir}/kamailio/modules/README.domainpolicy
... ...
@@ -1584,6 +1585,7 @@ fi
1584 1585
 %{_libdir}/kamailio/modules/dialog.so
1585 1586
 %{_libdir}/kamailio/modules/dispatcher.so
1586 1587
 %{_libdir}/kamailio/modules/diversion.so
1588
+%{_libdir}/kamailio/modules/dlgs.so
1587 1589
 %{_libdir}/kamailio/modules/dmq.so
1588 1590
 %{_libdir}/kamailio/modules/domain.so
1589 1591
 %{_libdir}/kamailio/modules/domainpolicy.so
Browse code

pkg/kamailio/obs: packaged xhttp_prom (prometheus)

Sergey Safarov authored on 23/05/2020 19:24:25
Showing 1 changed files
... ...
@@ -1153,6 +1153,7 @@ make every-module skip_modules="app_mono db_cassandra db_oracle iptrtpproxy \
1153 1153
 %if %{with http_async_client}
1154 1154
     khttp_async \
1155 1155
 %endif
1156
+    kxhttp_prom \
1156 1157
 %if %{with ims}
1157 1158
     kims \
1158 1159
 %endif
... ...
@@ -1244,6 +1245,7 @@ make install-modules-all skip_modules="app_mono db_cassandra db_oracle \
1244 1245
 %if %{with http_async_client}
1245 1246
     khttp_async \
1246 1247
 %endif
1248
+    kxhttp_prom \
1247 1249
 %if %{with ims}
1248 1250
     kims \
1249 1251
 %endif
Browse code

pkg/kamailio: fixed python3 deps for RHEL 6

Sergey Safarov authored on 12/04/2020 16:03:52
Showing 1 changed files
... ...
@@ -1113,6 +1113,10 @@ UUID module for Kamailio.
1113 1113
 
1114 1114
 %prep
1115 1115
 %setup -n %{name}-%{ver}
1116
+# python3 does not exist in RHEL 6 and similar dist.
1117
+%if 0%{?rhel} == 6
1118
+sed -i -e 's/python3/python2/' utils/kamctl/dbtextdb/dbtextdb.py
1119
+%endif
1116 1120
 
1117 1121
 %build
1118 1122
 ln -s ../obs pkg/kamailio/%{dist_name}/%{dist_version}
Browse code

pkg: obs spec - removed lib/srutils from rpm pacaging

Daniel-Constantin Mierla authored on 21/01/2020 13:43:44
Showing 1 changed files
... ...
@@ -1547,8 +1547,6 @@ fi
1547 1547
 %{_libdir}/kamailio/libsrdb1.so.1.0
1548 1548
 %{_libdir}/kamailio/libsrdb2.so.1
1549 1549
 %{_libdir}/kamailio/libsrdb2.so.1.0
1550
-%{_libdir}/kamailio/libsrutils.so.1
1551
-%{_libdir}/kamailio/libsrutils.so.1.0
1552 1550
 %{_libdir}/kamailio/libtrie.so.1
1553 1551
 %{_libdir}/kamailio/libtrie.so.1.0
1554 1552
 
Browse code

pkg/kamailio/obs: enabled build of geoip and phonenum modules for CentOS 8 and RHEL 8 dists

Sergey Safarov authored on 08/01/2020 12:22:28
Showing 1 changed files
... ...
@@ -88,7 +88,7 @@
88 88
 %bcond_without cnxcc
89 89
 %bcond_with dnssec
90 90
 %bcond_without evapi
91
-%bcond_with geoip
91
+%bcond_without geoip
92 92
 %bcond_without http_async_client
93 93
 %bcond_without ims
94 94
 %bcond_without jansson
... ...
@@ -98,7 +98,7 @@
98 98
 %bcond_without memcached
99 99
 %bcond_without mongodb
100 100
 %bcond_without perl
101
-%bcond_with phonenum
101
+%bcond_without phonenum
102 102
 %bcond_without python3
103 103
 %bcond_without rabbitmq
104 104
 %bcond_without redis
... ...
@@ -192,7 +192,7 @@
192 192
 %bcond_without cnxcc
193 193
 %bcond_with dnssec
194 194
 %bcond_without evapi
195
-%bcond_with geoip
195
+%bcond_without geoip
196 196
 %bcond_without http_async_client
197 197
 %bcond_without ims
198 198
 %bcond_without jansson
... ...
@@ -202,7 +202,7 @@
202 202
 %bcond_without memcached
203 203
 %bcond_without mongodb
204 204
 %bcond_without perl
205
-%bcond_with phonenum
205
+%bcond_without phonenum
206 206
 %bcond_without python3
207 207
 %bcond_without rabbitmq
208 208
 %bcond_without redis
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)
Browse code

pkg/kamailio/obs: simplified fedora packaging rules [skip ci]

Sergey Safarov authored on 21/12/2019 04:31:20
Showing 1 changed files
... ...
@@ -2,132 +2,7 @@
2 2
 %define ver 5.2.0
3 3
 %define rel dev1.0%{dist}
4 4
 
5
-%if 0%{?fedora} == 27
6
-%define dist_name fedora
7
-%define dist_version %{?fedora}
8
-%bcond_without cnxcc
9
-%bcond_with dnssec
10
-%bcond_without geoip
11
-%bcond_without http_async_client
12
-%bcond_without ims
13
-%bcond_without jansson
14
-%bcond_without json
15
-%bcond_without lua
16
-%bcond_without kazoo
17
-%bcond_without memcached
18
-%bcond_without mongodb
19
-%bcond_without perl
20
-%bcond_without phonenum
21
-%bcond_without python3
22
-%bcond_without rabbitmq
23
-%bcond_without redis
24
-%bcond_without ruby
25
-%bcond_without sctp
26
-%bcond_without websocket
27
-%bcond_without xmlrpc
28
-%endif
29
-
30
-%if 0%{?fedora} == 28
31
-%define dist_name fedora
32
-%define dist_version %{?fedora}
33
-%bcond_without cnxcc
34
-%bcond_with dnssec
35
-%bcond_without geoip
36
-%bcond_without http_async_client
37
-%bcond_without ims
38
-%bcond_without jansson
39
-%bcond_without json
40
-%bcond_without lua
41
-%bcond_without kazoo
42
-%bcond_without memcached
43
-%bcond_without mongodb
44
-%bcond_without perl
45
-%bcond_without phonenum
46
-%bcond_without python3
47
-%bcond_without rabbitmq
48
-%bcond_without redis
49
-%bcond_without ruby
50
-%bcond_without sctp
51
-%bcond_without websocket
52
-%bcond_without xmlrpc
53
-%endif
54
-
55
-%if 0%{?fedora} == 29
56
-%define dist_name fedora
57
-%define dist_version %{?fedora}
58
-%bcond_without cnxcc
59
-%bcond_with dnssec
60
-%bcond_without geoip
61
-%bcond_without http_async_client
62
-%bcond_without ims
63
-%bcond_without jansson
64
-%bcond_without json
65
-%bcond_without lua
66
-%bcond_without kazoo
67
-%bcond_without memcached
68
-%bcond_without mongodb
69
-%bcond_without perl
70
-%bcond_without phonenum
71
-%bcond_without python3
72
-%bcond_without rabbitmq
73
-%bcond_without redis
74
-%bcond_without ruby
75
-%bcond_without sctp
76
-%bcond_without websocket
77
-%bcond_without xmlrpc
78
-%endif
79
-
80
-%if 0%{?fedora} == 30
81
-%define dist_name fedora
82
-%define dist_version %{?fedora}
83
-%bcond_without cnxcc
84
-%bcond_with dnssec
85
-%bcond_without geoip
86
-%bcond_without http_async_client
87
-%bcond_without ims
88
-%bcond_without jansson
89
-%bcond_without json
90
-%bcond_without lua
91
-%bcond_without kazoo
92
-%bcond_without memcached
93
-%bcond_without mongodb
94
-%bcond_without perl
95
-%bcond_without phonenum
96
-%bcond_without python3
97
-%bcond_without rabbitmq
98
-%bcond_without redis
99
-%bcond_without ruby
100
-%bcond_without sctp
101
-%bcond_without websocket
102
-%bcond_without xmlrpc
103
-%endif
104
-
105
-%if 0%{?fedora} == 31
106
-%define dist_name fedora
107
-%define dist_version %{?fedora}
108