Skip to content

Commit

Permalink
pkg/kamailio/deb: phonenum requires libphonenum >= 7
Browse files Browse the repository at this point in the history
* remove jessie support

(cherry picked from commit c804420)
  • Loading branch information
linuxmaniac committed Dec 8, 2017
1 parent bdd347b commit 6e358a4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/buster/control
Expand Up @@ -33,7 +33,7 @@ Build-Depends:
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libphonenumber-dev,
libphonenumber-dev (>= 7),
libpq-dev,
librabbitmq-dev,
libradcli-dev,
Expand Down
6 changes: 6 additions & 0 deletions pkg/kamailio/deb/debian/backports/jessie
Expand Up @@ -33,6 +33,12 @@ sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \
sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules

# No phonenum module
sed -i -e '/libphonenumber-dev/d' -e '/^Package: kamailio-phonenum-modules/,/^$/d' \
${DIST}/control
sed -i -e 's/ phonenum[ ,$]*/ /' ${DIST}/rules
sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ phonenum/' ${DIST}/rules

# clean backports scripts
rm -rf ${DIST}/backports
exit 0
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/debian/control
Expand Up @@ -33,7 +33,7 @@ Build-Depends:
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libphonenumber-dev,
libphonenumber-dev (>= 7),
libpq-dev,
librabbitmq-dev,
libradcli-dev,
Expand Down
18 changes: 0 additions & 18 deletions pkg/kamailio/deb/jessie/control
Expand Up @@ -32,7 +32,6 @@ Build-Depends:
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libphonenumber-dev,
libpq-dev,
librabbitmq-dev,
libfreeradius-client-dev,
Expand Down Expand Up @@ -758,23 +757,6 @@ Description: systemd logging modules for the Kamailio SIP server
This package provides logging to systemd journal directly from the
Kamailio configuration and routing scripts.

Package: kamailio-phonenum-modules
Architecture: linux-any
Multi-Arch: same
Pre-Depends:
${misc:Pre-Depends},
Depends:
kamailio (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: phonenum modules 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 real-time queries against the libphonenumber to be
performed directly from the Kamailio configuration and routing scripts.

Package: kamailio-extra-modules
Architecture: linux-any
Multi-Arch: same
Expand Down
4 changes: 2 additions & 2 deletions pkg/kamailio/deb/jessie/rules
Expand Up @@ -27,7 +27,7 @@ EXCLUDED_MODULES=
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
# they will be excluded from compile and install of all
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc geoip2
EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc geoip2 phonenum

# module groups that are packaged in seperate packages
# (with the name kamailio-$(group_name)-modules)
Expand All @@ -38,7 +38,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
snmpstats carrierroute xmpp cpl redis python geoip \
sqlite json mono ims sctp java \
tls outbound websocket autheph dnssec kazoo cnxcc \
erlang systemd phonenum rabbitmq
erlang systemd rabbitmq

# module groups to be packaged onto kamailio-extra-modules
EXTRA_GROUPS=gzcompress uuid ev jansson http_async
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/sid/control
Expand Up @@ -33,7 +33,7 @@ Build-Depends:
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libphonenumber-dev,
libphonenumber-dev (>= 7),
libpq-dev,
librabbitmq-dev,
libradcli-dev,
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/stretch/control
Expand Up @@ -33,7 +33,7 @@ Build-Depends:
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libphonenumber-dev,
libphonenumber-dev (>= 7),
libpq-dev,
librabbitmq-dev,
libradcli-dev,
Expand Down
2 changes: 1 addition & 1 deletion pkg/kamailio/deb/xenial/control
Expand Up @@ -33,7 +33,7 @@ Build-Depends:
libncurses5-dev,
libpcre3-dev,
libperl-dev,
libphonenumber-dev,
libphonenumber-dev (>= 7),
libpq-dev,
librabbitmq-dev,
libradcli-dev,
Expand Down

0 comments on commit 6e358a4

Please sign in to comment.