Skip to content

Commit

Permalink
pkg/kamailio/deb: fix bookworm and sid build
Browse files Browse the repository at this point in the history
* no python2 and dh-systemd package available
  • Loading branch information
linuxmaniac committed Dec 4, 2021
1 parent 3c905ec commit 986b9be
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 46 deletions.
21 changes: 0 additions & 21 deletions pkg/kamailio/deb/bookworm/control
Expand Up @@ -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,
Expand Down Expand Up @@ -51,8 +50,6 @@ Build-Depends:
libxml2-dev,
openssl,
pkg-config,
python,
python-dev,
python3,
python3-dev,
ruby-dev,
Expand Down Expand Up @@ -262,24 +259,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}),
python-dev,
${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
Expand Down
4 changes: 2 additions & 2 deletions pkg/kamailio/deb/bookworm/rules
Expand Up @@ -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,
Expand All @@ -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 secsipid lwsc
Expand Down
10 changes: 10 additions & 0 deletions pkg/kamailio/deb/debian/backports/bookworm
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions pkg/kamailio/deb/debian/backports/sid
Expand Up @@ -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
Expand Down
21 changes: 0 additions & 21 deletions pkg/kamailio/deb/sid/control
Expand Up @@ -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,
Expand Down Expand Up @@ -51,8 +50,6 @@ Build-Depends:
libxml2-dev,
openssl,
pkg-config,
python,
python-dev,
python3,
python3-dev,
ruby-dev,
Expand Down Expand Up @@ -262,24 +259,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}),
python-dev,
${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
Expand Down
4 changes: 2 additions & 2 deletions pkg/kamailio/deb/sid/rules
Expand Up @@ -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,
Expand All @@ -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 secsipid lwsc
Expand Down

0 comments on commit 986b9be

Please sign in to comment.