From de22721f09fd3776586a020d1dfa373f69a88cbd Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Fri, 8 Dec 2017 09:32:46 +0100 Subject: [PATCH] pkg/kamailio/deb: geoip2 module [skip ci] fix #1352 (cherry picked from commit f4f2b7b201d1cc5bbb0cc915835873a1e03270ac) --- pkg/kamailio/deb/buster/control | 19 +++++++++++++++++++ pkg/kamailio/deb/buster/rules | 2 +- pkg/kamailio/deb/debian/backports/jessie | 6 ++++++ pkg/kamailio/deb/debian/backports/precise | 6 ++++++ pkg/kamailio/deb/debian/backports/trusty | 6 ++++++ pkg/kamailio/deb/debian/backports/wheezy | 6 ++++++ pkg/kamailio/deb/debian/control | 19 +++++++++++++++++++ pkg/kamailio/deb/debian/rules | 2 +- pkg/kamailio/deb/jessie/rules | 4 ++-- pkg/kamailio/deb/precise/rules | 4 ++-- pkg/kamailio/deb/sid/control | 19 +++++++++++++++++++ pkg/kamailio/deb/sid/rules | 2 +- pkg/kamailio/deb/stretch/control | 19 +++++++++++++++++++ pkg/kamailio/deb/stretch/rules | 2 +- pkg/kamailio/deb/trusty/rules | 4 ++-- pkg/kamailio/deb/wheezy/rules | 4 ++-- pkg/kamailio/deb/xenial/control | 19 +++++++++++++++++++ pkg/kamailio/deb/xenial/rules | 2 +- 18 files changed, 132 insertions(+), 13 deletions(-) diff --git a/pkg/kamailio/deb/buster/control b/pkg/kamailio/deb/buster/control index eb5c417d541..6b4e5ceab5d 100644 --- a/pkg/kamailio/deb/buster/control +++ b/pkg/kamailio/deb/buster/control @@ -51,6 +51,7 @@ Build-Depends: unixodbc-dev, uuid-dev, xsltproc, + libmaxminddb-dev, zlib1g-dev, Standards-Version: 3.9.5 Homepage: http://www.kamailio.org/ @@ -146,6 +147,24 @@ Description: The geoip module for the Kamailio SIP Server This package provides the geoip module, an extension enabling usage of the GeoIP API within the Kamailio configuration file. +Package: kamailio-geoip2-modules +Architecture: linux-any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + kamailio (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: The geoip2 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 geoip2 module, an extension enabling + real-time queries against the Max Mind GeoIP2 database within the Kamailio + configuration file. + Package: kamailio-sqlite-modules Architecture: linux-any Multi-Arch: same diff --git a/pkg/kamailio/deb/buster/rules b/pkg/kamailio/deb/buster/rules index 53e7361fa1a..0f0acccb2e3 100755 --- a/pkg/kamailio/deb/buster/rules +++ b/pkg/kamailio/deb/buster/rules @@ -35,7 +35,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\ + snmpstats carrierroute xmpp cpl redis python geoip geoip2 \ sqlite json mono ims sctp java \ tls outbound websocket autheph kazoo cnxcc \ erlang systemd rabbitmq diff --git a/pkg/kamailio/deb/debian/backports/jessie b/pkg/kamailio/deb/debian/backports/jessie index 8b6faf4425d..5933fc5d96f 100755 --- a/pkg/kamailio/deb/debian/backports/jessie +++ b/pkg/kamailio/deb/debian/backports/jessie @@ -27,6 +27,12 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client # no libssl-dev sed -i -e '/libssl-dev/d' ${DIST}/control +# No geoip2 module +sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \ + ${DIST}/control +sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules +sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules + # clean backports scripts rm -rf ${DIST}/backports exit 0 diff --git a/pkg/kamailio/deb/debian/backports/precise b/pkg/kamailio/deb/debian/backports/precise index 457426f2b10..47bdfbe1c91 100755 --- a/pkg/kamailio/deb/debian/backports/precise +++ b/pkg/kamailio/deb/debian/backports/precise @@ -64,6 +64,12 @@ sed -i -e '/librabbitmq-dev/d' \ sed -i -e 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ rabbitmq/' ${DIST}/rules +# No geoip2 module +sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \ + ${DIST}/control +sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules +sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules + # clean backports scripts rm -rf ${DIST}/backports exit 0 diff --git a/pkg/kamailio/deb/debian/backports/trusty b/pkg/kamailio/deb/debian/backports/trusty index 5924af05879..c7e0a12bcc3 100755 --- a/pkg/kamailio/deb/debian/backports/trusty +++ b/pkg/kamailio/deb/debian/backports/trusty @@ -38,6 +38,12 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client # no libssl-dev sed -i -e '/libssl-dev/d' ${DIST}/control +# No geoip2 module +sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \ + ${DIST}/control +sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules +sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules + # clean backports scripts rm -rf ${DIST}/backports exit 0 diff --git a/pkg/kamailio/deb/debian/backports/wheezy b/pkg/kamailio/deb/debian/backports/wheezy index 411e0ae0aa9..2d293a60efa 100755 --- a/pkg/kamailio/deb/debian/backports/wheezy +++ b/pkg/kamailio/deb/debian/backports/wheezy @@ -64,6 +64,12 @@ sed -i -e '/librabbitmq-dev/d' \ sed -i -e 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ rabbitmq/' ${DIST}/rules +# No geoip2 module +sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \ + ${DIST}/control +sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules +sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules + # clean backports scripts rm -rf ${DIST}/backports exit 0 diff --git a/pkg/kamailio/deb/debian/control b/pkg/kamailio/deb/debian/control index a494a7fbaa0..d5444f460fc 100644 --- a/pkg/kamailio/deb/debian/control +++ b/pkg/kamailio/deb/debian/control @@ -27,6 +27,7 @@ Build-Depends: libjson-c-dev, libldap2-dev, liblua5.1-0-dev, + libmaxminddb-dev, libmemcached-dev, libmono-2.0-dev, libncurses5-dev, @@ -148,6 +149,24 @@ Description: The geoip module for the Kamailio SIP Server This package provides the geoip module, an extension enabling usage of the GeoIP API within the Kamailio configuration file. +Package: kamailio-geoip2-modules +Architecture: linux-any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + kamailio (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: The geoip2 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 geoip2 module, an extension enabling + real-time queries against the Max Mind GeoIP2 database within the Kamailio + configuration file. + Package: kamailio-sqlite-modules Architecture: linux-any Multi-Arch: same diff --git a/pkg/kamailio/deb/debian/rules b/pkg/kamailio/deb/debian/rules index 7319a6c6120..ccded2f4b7f 100755 --- a/pkg/kamailio/deb/debian/rules +++ b/pkg/kamailio/deb/debian/rules @@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy # 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\ + snmpstats carrierroute xmpp cpl redis python geoip geoip2 \ sqlite json mono ims sctp java \ tls outbound websocket autheph dnssec kazoo cnxcc \ erlang systemd rabbitmq diff --git a/pkg/kamailio/deb/jessie/rules b/pkg/kamailio/deb/jessie/rules index 51fbf6033f9..5dd090872ee 100755 --- a/pkg/kamailio/deb/jessie/rules +++ b/pkg/kamailio/deb/jessie/rules @@ -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 +EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc geoip2 # module groups that are packaged in seperate packages # (with the name kamailio-$(group_name)-modules) @@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc # 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\ + snmpstats carrierroute xmpp cpl redis python geoip \ sqlite json mono ims sctp java \ tls outbound websocket autheph dnssec kazoo cnxcc \ erlang systemd rabbitmq diff --git a/pkg/kamailio/deb/precise/rules b/pkg/kamailio/deb/precise/rules index 2a1920ba832..269a53712d2 100755 --- a/pkg/kamailio/deb/precise/rules +++ b/pkg/kamailio/deb/precise/rules @@ -26,7 +26,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 dnssec kazoo cnxcc systemd rabbitmq +EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2 # module groups that are packaged in seperate packages # (with the name kamailio-$(group_name)-modules) @@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo c # 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\ + snmpstats carrierroute xmpp cpl redis python geoip \ sqlite json mono ims sctp java \ tls outbound websocket autheph \ erlang diff --git a/pkg/kamailio/deb/sid/control b/pkg/kamailio/deb/sid/control index eb5c417d541..6b4e5ceab5d 100644 --- a/pkg/kamailio/deb/sid/control +++ b/pkg/kamailio/deb/sid/control @@ -51,6 +51,7 @@ Build-Depends: unixodbc-dev, uuid-dev, xsltproc, + libmaxminddb-dev, zlib1g-dev, Standards-Version: 3.9.5 Homepage: http://www.kamailio.org/ @@ -146,6 +147,24 @@ Description: The geoip module for the Kamailio SIP Server This package provides the geoip module, an extension enabling usage of the GeoIP API within the Kamailio configuration file. +Package: kamailio-geoip2-modules +Architecture: linux-any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + kamailio (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: The geoip2 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 geoip2 module, an extension enabling + real-time queries against the Max Mind GeoIP2 database within the Kamailio + configuration file. + Package: kamailio-sqlite-modules Architecture: linux-any Multi-Arch: same diff --git a/pkg/kamailio/deb/sid/rules b/pkg/kamailio/deb/sid/rules index 53e7361fa1a..0f0acccb2e3 100755 --- a/pkg/kamailio/deb/sid/rules +++ b/pkg/kamailio/deb/sid/rules @@ -35,7 +35,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\ + snmpstats carrierroute xmpp cpl redis python geoip geoip2 \ sqlite json mono ims sctp java \ tls outbound websocket autheph kazoo cnxcc \ erlang systemd rabbitmq diff --git a/pkg/kamailio/deb/stretch/control b/pkg/kamailio/deb/stretch/control index eb5c417d541..6b4e5ceab5d 100644 --- a/pkg/kamailio/deb/stretch/control +++ b/pkg/kamailio/deb/stretch/control @@ -51,6 +51,7 @@ Build-Depends: unixodbc-dev, uuid-dev, xsltproc, + libmaxminddb-dev, zlib1g-dev, Standards-Version: 3.9.5 Homepage: http://www.kamailio.org/ @@ -146,6 +147,24 @@ Description: The geoip module for the Kamailio SIP Server This package provides the geoip module, an extension enabling usage of the GeoIP API within the Kamailio configuration file. +Package: kamailio-geoip2-modules +Architecture: linux-any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + kamailio (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: The geoip2 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 geoip2 module, an extension enabling + real-time queries against the Max Mind GeoIP2 database within the Kamailio + configuration file. + Package: kamailio-sqlite-modules Architecture: linux-any Multi-Arch: same diff --git a/pkg/kamailio/deb/stretch/rules b/pkg/kamailio/deb/stretch/rules index 53e7361fa1a..0f0acccb2e3 100755 --- a/pkg/kamailio/deb/stretch/rules +++ b/pkg/kamailio/deb/stretch/rules @@ -35,7 +35,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\ + snmpstats carrierroute xmpp cpl redis python geoip geoip2 \ sqlite json mono ims sctp java \ tls outbound websocket autheph kazoo cnxcc \ erlang systemd rabbitmq diff --git a/pkg/kamailio/deb/trusty/rules b/pkg/kamailio/deb/trusty/rules index f547e3445fb..7f187151ed4 100755 --- a/pkg/kamailio/deb/trusty/rules +++ b/pkg/kamailio/deb/trusty/rules @@ -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 systemd +EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2 # module groups that are packaged in seperate packages # (with the name kamailio-$(group_name)-modules) @@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd # 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\ + snmpstats carrierroute xmpp cpl redis python geoip \ sqlite json mono ims sctp java \ tls outbound websocket autheph dnssec kazoo cnxcc \ erlang rabbitmq diff --git a/pkg/kamailio/deb/wheezy/rules b/pkg/kamailio/deb/wheezy/rules index 2a1920ba832..269a53712d2 100755 --- a/pkg/kamailio/deb/wheezy/rules +++ b/pkg/kamailio/deb/wheezy/rules @@ -26,7 +26,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 dnssec kazoo cnxcc systemd rabbitmq +EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2 # module groups that are packaged in seperate packages # (with the name kamailio-$(group_name)-modules) @@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo c # 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\ + snmpstats carrierroute xmpp cpl redis python geoip \ sqlite json mono ims sctp java \ tls outbound websocket autheph \ erlang diff --git a/pkg/kamailio/deb/xenial/control b/pkg/kamailio/deb/xenial/control index 18997bc3627..044a42a64c0 100644 --- a/pkg/kamailio/deb/xenial/control +++ b/pkg/kamailio/deb/xenial/control @@ -52,6 +52,7 @@ Build-Depends: unixodbc-dev, uuid-dev, xsltproc, + libmaxminddb-dev, zlib1g-dev, Standards-Version: 3.9.5 Homepage: http://www.kamailio.org/ @@ -147,6 +148,24 @@ Description: The geoip module for the Kamailio SIP Server This package provides the geoip module, an extension enabling usage of the GeoIP API within the Kamailio configuration file. +Package: kamailio-geoip2-modules +Architecture: linux-any +Multi-Arch: same +Pre-Depends: + ${misc:Pre-Depends}, +Depends: + kamailio (= ${binary:Version}), + ${misc:Depends}, + ${shlibs:Depends}, +Description: The geoip2 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 geoip2 module, an extension enabling + real-time queries against the Max Mind GeoIP2 database within the Kamailio + configuration file. + Package: kamailio-sqlite-modules Architecture: linux-any Multi-Arch: same diff --git a/pkg/kamailio/deb/xenial/rules b/pkg/kamailio/deb/xenial/rules index 7319a6c6120..ccded2f4b7f 100755 --- a/pkg/kamailio/deb/xenial/rules +++ b/pkg/kamailio/deb/xenial/rules @@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy # 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\ + snmpstats carrierroute xmpp cpl redis python geoip geoip2 \ sqlite json mono ims sctp java \ tls outbound websocket autheph dnssec kazoo cnxcc \ erlang systemd rabbitmq