Browse code

pkg/kamailio/deb: fix bookworm and sid build

* no python2 and dh-systemd package available

Victor Seva authored on 04/12/2021 15:52:26
Showing 6 changed files
... ...
@@ -9,7 +9,6 @@ Build-Depends:
9 9
  bison,
10 10
  debhelper (>= 9),
11 11
  default-libmysqlclient-dev,
12
- dh-systemd (>= 1.5),
13 12
  docbook-xml,
14 13
  dpkg-dev (>= 1.16.1.1),
15 14
  erlang-dev,
... ...
@@ -51,8 +50,6 @@ Build-Depends:
51 50
  libxml2-dev,
52 51
  openssl,
53 52
  pkg-config,
54
- python,
55
- python-dev,
56 53
  python3,
57 54
  python3-dev,
58 55
  ruby-dev,
... ...
@@ -262,24 +259,6 @@ Description: The app_mono module for the Kamailio SIP server
262 259
  This package provides the app_mono module, an extension allowing to
263 260
  execute embedded Mono applications within the Kamailio SIP routing script.
264 261
 
265
-Package: kamailio-python-modules
266
-Architecture: linux-any
267
-Multi-Arch: same
268
-Pre-Depends:
269
- ${misc:Pre-Depends},
270
-Depends:
271
- kamailio (= ${binary:Version}),
272
- python-dev,
273
- ${misc:Depends},
274
- ${shlibs:Depends},
275
-Description: The app_python module for the Kamailio SIP server
276
- Kamailio is a very fast and flexible SIP (RFC3261)
277
- server. Written entirely in C, Kamailio can handle thousands calls
278
- per second even on low-budget hardware.
279
- .
280
- This package provides the app_python module, an extension allowing to
281
- execute embedded Python applications within the Kamailio SIP routing script.
282
-
283 262
 Package: kamailio-python3-modules
284 263
 Architecture: linux-any
285 264
 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
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,
... ...
@@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
34 34
 # on which other depend first)
35 35
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
36 36
 			   ldap xml perl utils lua memcached \
37
-			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
37
+			   snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
38 38
 			   sqlite json mono ruby ims sctp \
39 39
 			   tls outbound websocket autheph kazoo cnxcc \
40 40
 			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
... ...
@@ -25,6 +25,16 @@ sed -i -e '/^export JAVA_HOME/d' ${DIST}/rules
25 25
 sed -i -e 's/ java[ ,$]*/ /' ${DIST}/rules
26 26
 sed -i -e '/^EXCLUDED_MODULES=/s/$/ java/' ${DIST}/rules
27 27
 
28
+# no dh-systemd
29
+sed -i -e '/dh-systemd/d' ${DIST}/control
30
+
31
+# no python2
32
+sed -i -e '/^ python,/d' -e '/python-dev/d' \
33
+  -e '/^Package: kamailio-python-modules/,/^$/d' \
34
+  ${DIST}/control
35
+sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
36
+sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
37
+
28 38
 wrap-and-sort -sat -d ${DIST}
29 39
 
30 40
 # clean backports scripts
... ...
@@ -25,6 +25,16 @@ sed -i -e '/^export JAVA_HOME/d' ${DIST}/rules
25 25
 sed -i -e 's/ java[ ,$]*/ /' ${DIST}/rules
26 26
 sed -i -e '/^EXCLUDED_MODULES=/s/$/ java/' ${DIST}/rules
27 27
 
28
+# no dh-systemd
29
+sed -i -e '/dh-systemd/d' ${DIST}/control
30
+
31
+# no python2
32
+sed -i -e '/^ python,/d' -e '/python-dev/d' \
33
+  -e '/^Package: kamailio-python-modules/,/^$/d' \
34
+  ${DIST}/control
35
+sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
36
+sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
37
+
28 38
 wrap-and-sort -sat -d ${DIST}
29 39
 
30 40
 # clean backports scripts
... ...
@@ -9,7 +9,6 @@ Build-Depends:
9 9
  bison,
10 10
  debhelper (>= 9),
11 11
  default-libmysqlclient-dev,
12
- dh-systemd (>= 1.5),
13 12
  docbook-xml,
14 13
  dpkg-dev (>= 1.16.1.1),
15 14
  erlang-dev,
... ...
@@ -51,8 +50,6 @@ Build-Depends:
51 50
  libxml2-dev,
52 51
  openssl,
53 52
  pkg-config,
54
- python,
55
- python-dev,
56 53
  python3,
57 54
  python3-dev,
58 55
  ruby-dev,
... ...
@@ -262,24 +259,6 @@ Description: The app_mono module for the Kamailio SIP server
262 259
  This package provides the app_mono module, an extension allowing to
263 260
  execute embedded Mono applications within the Kamailio SIP routing script.
264 261
 
265
-Package: kamailio-python-modules
266
-Architecture: linux-any
267
-Multi-Arch: same
268
-Pre-Depends:
269
- ${misc:Pre-Depends},
270
-Depends:
271
- kamailio (= ${binary:Version}),
272
- python-dev,
273
- ${misc:Depends},
274
- ${shlibs:Depends},
275
-Description: The app_python module for the Kamailio SIP server
276
- Kamailio is a very fast and flexible SIP (RFC3261)
277
- server. Written entirely in C, Kamailio can handle thousands calls
278
- per second even on low-budget hardware.
279
- .
280
- This package provides the app_python module, an extension allowing to
281
- execute embedded Python applications within the Kamailio SIP routing script.
282
-
283 262
 Package: kamailio-python3-modules
284 263
 Architecture: linux-any
285 264
 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
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,
... ...
@@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
34 34
 # on which other depend first)
35 35
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
36 36
 			   ldap xml perl utils lua memcached \
37
-			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
37
+			   snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
38 38
 			   sqlite json mono ruby ims sctp \
39 39
 			   tls outbound websocket autheph kazoo cnxcc \
40 40
 			   erlang systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc