Module: kamailio
Branch: 5.4
Commit: 2f7350d82833ad03b506691138452c7b192185c9
URL:
https://github.com/kamailio/kamailio/commit/2f7350d82833ad03b506691138452c7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-04-06T12:40:07+02:00
pkg/kamailio/deb: fix sid build
* no python2 and dh-systemd package available
(cherry picked from commit 986b9bea258864bf40606afe9761dc17dead6476)
(cherry picked from commit 32cce91f3e6514e9f99f26d2c0dabc56281b034c)
---
Modified: pkg/kamailio/deb/debian/backports/sid
Modified: pkg/kamailio/deb/sid/control
Modified: pkg/kamailio/deb/sid/rules
---
Diff:
https://github.com/kamailio/kamailio/commit/2f7350d82833ad03b506691138452c7…
Patch:
https://github.com/kamailio/kamailio/commit/2f7350d82833ad03b506691138452c7…
---
diff --git a/pkg/kamailio/deb/debian/backports/sid
b/pkg/kamailio/deb/debian/backports/sid
index 8161de7269e..367b53bef04 100755
--- a/pkg/kamailio/deb/debian/backports/sid
+++ b/pkg/kamailio/deb/debian/backports/sid
@@ -25,6 +25,16 @@ sed -i -e '/^export JAVA_HOME/d' ${DIST}/rules
sed -i -e 's/ java[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXCLUDED_MODULES=/s/$/ java/' ${DIST}/rules
+# no dh-systemd
+sed -i -e '/dh-systemd/d' ${DIST}/control
+
+# no python2
+sed -i -e '/^ python,/d' -e '/python-dev/d' \
+ -e '/^Package: kamailio-python-modules/,/^$/d' \
+ ${DIST}/control
+sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
+sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
+
wrap-and-sort -sat -d ${DIST}
# clean backports scripts
diff --git a/pkg/kamailio/deb/sid/control b/pkg/kamailio/deb/sid/control
index ccc4a1cf46b..7867775e16b 100644
--- a/pkg/kamailio/deb/sid/control
+++ b/pkg/kamailio/deb/sid/control
@@ -9,7 +9,6 @@ Build-Depends:
bison,
debhelper (>= 9),
default-libmysqlclient-dev,
- dh-systemd (>= 1.5),
docbook-xml,
dpkg-dev (>= 1.16.1.1),
erlang-dev,
@@ -49,8 +48,6 @@ Build-Depends:
libxml2-dev,
openssl,
pkg-config,
- python,
- python-dev,
python3,
python3-dev,
ruby-dev,
@@ -260,23 +257,6 @@ Description: The app_mono module for the Kamailio SIP server
This package provides the app_mono module, an extension allowing to
execute embedded Mono applications within the Kamailio SIP routing script.
-Package: kamailio-python-modules
-Architecture: linux-any
-Multi-Arch: same
-Pre-Depends:
- ${misc:Pre-Depends},
-Depends:
- kamailio (= ${binary:Version}),
- ${misc:Depends},
- ${shlibs:Depends},
-Description: The app_python module for the Kamailio SIP server
- Kamailio is a very fast and flexible SIP (RFC3261)
- server. Written entirely in C, Kamailio can handle thousands calls
- per second even on low-budget hardware.
- .
- This package provides the app_python module, an extension allowing to
- execute embedded Python applications within the Kamailio SIP routing script.
-
Package: kamailio-python3-modules
Architecture: linux-any
Multi-Arch: same
diff --git a/pkg/kamailio/deb/sid/rules b/pkg/kamailio/deb/sid/rules
index 2e59d0465d9..0460677fba3 100755
--- a/pkg/kamailio/deb/sid/rules
+++ b/pkg/kamailio/deb/sid/rules
@@ -21,7 +21,7 @@ include /usr/share/dpkg/buildflags.mk
export RADCLI=1
# modules not in the "main" kamailio package
-EXCLUDED_MODULES= java
+EXCLUDED_MODULES= java python
# extra modules to skip, because they are not compilable now
# - 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
# on which other depend first)
PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
ldap xml perl utils lua memcached \
- snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
+ snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
sqlite json mono ruby ims sctp \
tls outbound websocket autheph kazoo cnxcc \
erlang systemd phonenum mongodb rabbitmq python3 mqtt