Browse code

pkg/kamailio/deb: add kamailio-nats-modules to bookworm

https://tracker.debian.org/news/1305763/natsc-320-1-migrated-to-testing/

Victor Seva authored on 23/02/2022 13:25:46
Showing 3 changed files
... ...
@@ -29,6 +29,7 @@ Build-Depends:
29 29
  libmongoc-dev,
30 30
  libmono-2.0-dev [amd64 armel armhf i386 mipsel kfreebsd-amd64 kfreebsd-i386 ppc64 ppc64el s390x],
31 31
  libmosquitto-dev,
32
+ libnats-dev,
32 33
  libncurses5-dev,
33 34
  libpcre3-dev,
34 35
  libperl-dev,
... ...
@@ -840,6 +841,24 @@ Description: Libwebsockets module for the Kamailio SIP server
840 841
  This package contains the lwcs module, which provides a client-side WebSockets
841 842
  API through libwebsockets.
842 843
 
844
+Package: kamailio-nats-modules
845
+Architecture: 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: Nats 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 nats module, which provides a NATS consumer for Kamailio.
859
+ NATS is a real time distributed messaging platform, more details about it can be
860
+ found at nats.io.
861
+
843 862
 Package: kamailio-extra-modules
844 863
 Architecture: any
845 864
 Multi-Arch: same
... ...
@@ -21,7 +21,7 @@ include /usr/share/dpkg/buildflags.mk
21 21
 export RADCLI=1
22 22
 
23 23
 # modules not in the "main" kamailio package
24
-EXCLUDED_MODULES= java python nats
24
+EXCLUDED_MODULES= java python
25 25
 
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,
... ...
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
38 38
 			   sqlite json mono ruby ims sctp \
39 39
 			   tls outbound websocket autheph kazoo cnxcc \
40
-			   erlangsystemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
40
+			   erlang nats systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
41 41
 
42 42
 # module groups to be packaged onto kamailio-extra-modules
43 43
 EXTRA_GROUPS=gzcompress uuid ev jansson http_async
... ...
@@ -35,13 +35,6 @@ sed -i -e '/^ python,/d' -e '/python-dev/d' \
35 35
 sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
36 36
 sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
37 37
 
38
-# no libnats-dev
39
-sed -i -e '/^ libnats-dev,/d' \
40
-  -e '/^Package: kamailio-nats-modules/,/^$/d' \
41
-  ${DIST}/control
42
-sed -i -e 's/ nats [ ,$]*//' ${DIST}/rules
43
-sed -i -e '/^EXCLUDED_MODULES=/s/$/ nats/' ${DIST}/rules
44
-
45 38
 wrap-and-sort -sat -d ${DIST}
46 39
 
47 40
 # clean backports scripts