Browse code

pkg/kamailio/deb: add lwcs module

* enable only the ones with libwebsockets >= 3.1

Victor Seva authored on 15/04/2021 11:46:50
Showing 24 changed files
... ...
@@ -26,7 +26,7 @@ EXCLUDED_MODULES= java
26 26
 # extra modules to skip, because they are not compilable now
27 27
 # - regardless if they go to the main kamailio package or to some module package,
28 28
 # they will be excluded from compile and install of all
29
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec secsipid
29
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec secsipid lwcs
30 30
 
31 31
 # module groups that are packaged in seperate packages
32 32
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -46,6 +46,7 @@ Build-Depends:
46 46
  libssl-dev,
47 47
  libsystemd-dev,
48 48
  libunistring-dev,
49
+ libwebsockets-dev,
49 50
  libxml2-dev,
50 51
  openssl,
51 52
  pkg-config,
... ...
@@ -840,6 +841,23 @@ Description: contains the secsipid module
840 841
  .
841 842
  This package contains the secsipid Module.
842 843
 
844
+Package: kamailio-lwsc-modules
845
+Architecture: linux-any
846
+Multi-Arch: same
847
+Pre-Depends:
848
+ ${misc:Pre-Depends},
849
+Depends:
850
+ kamailio (= ${binary:Version}),
851
+ ${misc:Depends},
852
+ ${shlibs:Depends},
853
+Description: Libwebsockets module for the Kamailio SIP server
854
+ Kamailio is a very fast and flexible SIP (RFC3261)
855
+ server. Written entirely in C, Kamailio can handle thousands calls
856
+ per second even on low-budget hardware.
857
+ .
858
+ This package contains the lwcs module, which provides a client-side WebSockets
859
+ API through libwebsockets.
860
+
843 861
 Package: kamailio-extra-modules
844 862
 Architecture: linux-any
845 863
 Multi-Arch: same
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
38 38
 			   sqlite json mono ruby ims sctp \
39 39
 			   tls outbound websocket autheph kazoo cnxcc \
40
-			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid
40
+			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwcs
41 41
 
42 42
 # module groups to be packaged onto kamailio-extra-modules
43 43
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
... ...
@@ -26,7 +26,7 @@ EXCLUDED_MODULES= java
26 26
 # extra modules to skip, because they are not compilable now
27 27
 # - regardless if they go to the main kamailio package or to some module package,
28 28
 # they will be excluded from compile and install of all
29
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec secsipid
29
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec secsipid lwcs
30 30
 
31 31
 # module groups that are packaged in seperate packages
32 32
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -31,6 +31,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
31 31
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
32 32
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
33 33
 
34
+# libwebsockets >= 3.1
35
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
36
+	${DIST}/control
37
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
38
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
39
+
34 40
 wrap-and-sort -sat -d ${DIST}
35 41
 
36 42
 # clean backports scripts
... ...
@@ -31,6 +31,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
31 31
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
32 32
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
33 33
 
34
+# libwebsockets >= 3.1
35
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
36
+	${DIST}/control
37
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
38
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
39
+
34 40
 wrap-and-sort -sat -d ${DIST}
35 41
 
36 42
 # clean backports scripts
... ...
@@ -48,6 +48,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
48 48
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
49 49
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
50 50
 
51
+# libwebsockets >= 3.1
52
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
53
+	${DIST}/control
54
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
55
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
56
+
51 57
 wrap-and-sort -sat -d ${DIST}
52 58
 
53 59
 # clean backports scripts
... ...
@@ -111,6 +111,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
111 111
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
112 112
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
113 113
 
114
+# libwebsockets >= 3.1
115
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
116
+	${DIST}/control
117
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
118
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
119
+
114 120
 wrap-and-sort -sat -d ${DIST}
115 121
 
116 122
 # clean backports scripts
... ...
@@ -28,6 +28,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
28 28
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
29 29
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
30 30
 
31
+# libwebsockets >= 3.1
32
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
33
+	${DIST}/control
34
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
35
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
36
+
31 37
 wrap-and-sort -sat -d ${DIST}
32 38
 
33 39
 # clean backports scripts
... ...
@@ -74,6 +74,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
74 74
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
75 75
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
76 76
 
77
+# libwebsockets >= 3.1
78
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
79
+	${DIST}/control
80
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
81
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
82
+
77 83
 wrap-and-sort -sat -d ${DIST}
78 84
 
79 85
 # clean backports scripts
... ...
@@ -111,6 +111,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
111 111
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
112 112
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
113 113
 
114
+# libwebsockets >= 3.1
115
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
116
+	${DIST}/control
117
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
118
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
119
+
114 120
 wrap-and-sort -sat -d ${DIST}
115 121
 
116 122
 # clean backports scripts
... ...
@@ -31,6 +31,12 @@ sed -i -e '/libsecsipid-dev/d' -e '/^Package: kamailio-secsipid-modules/,/^$/d'
31 31
 sed -i -e 's/ secsipid[ ,$]*/ /' ${DIST}/rules
32 32
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ secsipid/' ${DIST}/rules
33 33
 
34
+# libwebsockets >= 3.1
35
+sed -i -e '/libwebsockets-dev/d' -e '/^Package: kamailio-lwsc-modules/,/^$/d' \
36
+	${DIST}/control
37
+sed -i -e 's/ lwcs[ ,$]*/ /' ${DIST}/rules
38
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ lwcs/' ${DIST}/rules
39
+
34 40
 wrap-and-sort -sat -d ${DIST}
35 41
 
36 42
 # clean backports scripts
... ...
@@ -49,6 +49,7 @@ Build-Depends:
49 49
  libsystemd-dev,
50 50
  libunistring-dev,
51 51
  libval-dev,
52
+ libwebsockets-dev,
52 53
  libxml2-dev,
53 54
  libxmlrpc-c3-dev,
54 55
  openssl,
... ...
@@ -878,6 +879,23 @@ Description: contains the secsipid module
878 879
  .
879 880
  This package contains the secsipid Module.
880 881
 
882
+Package: kamailio-lwsc-modules
883
+Architecture: linux-any
884
+Multi-Arch: same
885
+Pre-Depends:
886
+ ${misc:Pre-Depends},
887
+Depends:
888
+ kamailio (= ${binary:Version}),
889
+ ${misc:Depends},
890
+ ${shlibs:Depends},
891
+Description: Libwebsockets module for the Kamailio SIP server
892
+ Kamailio is a very fast and flexible SIP (RFC3261)
893
+ server. Written entirely in C, Kamailio can handle thousands calls
894
+ per second even on low-budget hardware.
895
+ .
896
+ This package contains the lwcs module, which provides a client-side WebSockets
897
+ API through libwebsockets.
898
+
881 899
 Package: kamailio-extra-modules
882 900
 Architecture: linux-any
883 901
 Multi-Arch: same
... ...
@@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
38 38
 			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
39 39
 			   sqlite json mono ruby ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41
-			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid
41
+			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwcs
42 42
 
43 43
 # module groups to be packaged onto kamailio-extra-modules
44 44
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
... ...
@@ -46,6 +46,7 @@ Build-Depends:
46 46
  libssl-dev,
47 47
  libsystemd-dev,
48 48
  libunistring-dev,
49
+ libwebsockets-dev,
49 50
  libxml2-dev,
50 51
  openssl,
51 52
  pkg-config,
... ...
@@ -824,6 +825,23 @@ Description: MQTT modules for the Kamailio SIP Server
824 825
  Messages can be published from any point in the routing script. Also
825 826
  the subscriptions can be fully controlled by scripting commands.
826 827
 
828
+Package: kamailio-lwsc-modules
829
+Architecture: linux-any
830
+Multi-Arch: same
831
+Pre-Depends:
832
+ ${misc:Pre-Depends},
833
+Depends:
834
+ kamailio (= ${binary:Version}),
835
+ ${misc:Depends},
836
+ ${shlibs:Depends},
837
+Description: Libwebsockets module for the Kamailio SIP server
838
+ Kamailio is a very fast and flexible SIP (RFC3261)
839
+ server. Written entirely in C, Kamailio can handle thousands calls
840
+ per second even on low-budget hardware.
841
+ .
842
+ This package contains the lwcs module, which provides a client-side WebSockets
843
+ API through libwebsockets.
844
+
827 845
 Package: kamailio-extra-modules
828 846
 Architecture: linux-any
829 847
 Multi-Arch: same
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
38 38
 			   sqlite json mono ruby ims sctp \
39 39
 			   tls outbound websocket autheph kazoo cnxcc \
40
-			   erlang systemd phonenum mongodb rabbitmq python3 mqtt 
40
+			   erlang systemd phonenum mongodb rabbitmq python3 mqtt lwcs
41 41
 
42 42
 # module groups to be packaged onto kamailio-extra-modules
43 43
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc geoip2 phonenum mongodb secsipid
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc geoip2 phonenum mongodb secsipid lwcs
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
26 26
 # extra modules to skip, because they are not compilable now
27 27
 # - regardless if they go to the main kamailio package or to some module package,
28 28
 # they will be excluded from compile and install of all
29
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2 phonenum mongodb ruby python3 mqtt secsipid
29
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2 phonenum mongodb ruby python3 mqtt secsipid lwcs
30 30
 
31 31
 # module groups that are packaged in seperate packages
32 32
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -47,6 +47,7 @@ Build-Depends:
47 47
  libssl-dev,
48 48
  libsystemd-dev,
49 49
  libunistring-dev,
50
+ libwebsockets-dev,
50 51
  libxml2-dev,
51 52
  openssl,
52 53
  pkg-config,
... ...
@@ -841,6 +842,23 @@ Description: contains the secsipid module
841 842
  .
842 843
  This package contains the secsipid Module.
843 844
 
845
+Package: kamailio-lwsc-modules
846
+Architecture: linux-any
847
+Multi-Arch: same
848
+Pre-Depends:
849
+ ${misc:Pre-Depends},
850
+Depends:
851
+ kamailio (= ${binary:Version}),
852
+ ${misc:Depends},
853
+ ${shlibs:Depends},
854
+Description: Libwebsockets module for the Kamailio SIP server
855
+ Kamailio is a very fast and flexible SIP (RFC3261)
856
+ server. Written entirely in C, Kamailio can handle thousands calls
857
+ per second even on low-budget hardware.
858
+ .
859
+ This package contains the lwcs module, which provides a client-side WebSockets
860
+ API through libwebsockets.
861
+
844 862
 Package: kamailio-extra-modules
845 863
 Architecture: linux-any
846 864
 Multi-Arch: same
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
38 38
 			   sqlite json mono ruby ims sctp \
39 39
 			   tls outbound websocket autheph kazoo cnxcc \
40
-			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid
40
+			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwcs
41 41
 
42 42
 # module groups to be packaged onto kamailio-extra-modules
43 43
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec secsipid
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec secsipid lwcs
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 phonenum mongodb ruby mqtt secsipid lwcs
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
26 26
 # extra modules to skip, because they are not compilable now
27 27
 # - regardless if they go to the main kamailio package or to some module package,
28 28
 # they will be excluded from compile and install of all
29
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2 phonenum mongodb ruby python3 mqtt secsipid
29
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2 phonenum mongodb ruby python3 mqtt secsipid lwcs
30 30
 
31 31
 # module groups that are packaged in seperate packages
32 32
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy secsipid
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy secsipid lwcs
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)