2
0
Эх сурвалжийг харах

pkg/kamailio/deb: geoip2 module [skip ci]

fix #1352
Victor Seva 7 жил өмнө
parent
commit
f4f2b7b201

+ 19 - 0
pkg/kamailio/deb/buster/control

@@ -51,6 +51,7 @@ Build-Depends:
  unixodbc-dev,
  unixodbc-dev,
  uuid-dev,
  uuid-dev,
  xsltproc,
  xsltproc,
+ libmaxminddb-dev,
  zlib1g-dev,
  zlib1g-dev,
 Standards-Version: 3.9.5
 Standards-Version: 3.9.5
 Homepage: http://www.kamailio.org/
 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
  This package provides the geoip module, an extension enabling
  usage of the GeoIP API within the Kamailio configuration file.
  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
 Package: kamailio-sqlite-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   erlang systemd rabbitmq
 			   erlang systemd rabbitmq

+ 6 - 0
pkg/kamailio/deb/debian/backports/jessie

@@ -27,6 +27,12 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client
 # no libssl-dev
 # no libssl-dev
 sed -i -e '/libssl-dev/d' ${DIST}/control
 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
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 6 - 0
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 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/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
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 6 - 0
pkg/kamailio/deb/debian/backports/trusty

@@ -38,6 +38,12 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client
 # no libssl-dev
 # no libssl-dev
 sed -i -e '/libssl-dev/d' ${DIST}/control
 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
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 6 - 0
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 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/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
 # clean backports scripts
 rm -rf ${DIST}/backports
 rm -rf ${DIST}/backports
 exit 0
 exit 0

+ 19 - 0
pkg/kamailio/deb/debian/control

@@ -27,6 +27,7 @@ Build-Depends:
  libjson-c-dev,
  libjson-c-dev,
  libldap2-dev,
  libldap2-dev,
  liblua5.1-0-dev,
  liblua5.1-0-dev,
+ libmaxminddb-dev,
  libmemcached-dev,
  libmemcached-dev,
  libmono-2.0-dev,
  libmono-2.0-dev,
  libncurses5-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
  This package provides the geoip module, an extension enabling
  usage of the GeoIP API within the Kamailio configuration file.
  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
 Package: kamailio-sqlite-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
pkg/kamailio/deb/debian/rules

@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
 # on which other depend first)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   erlang systemd rabbitmq
 			   erlang systemd rabbitmq

+ 2 - 2
pkg/kamailio/deb/jessie/rules

@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # 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
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   erlang systemd rabbitmq
 			   erlang systemd rabbitmq

+ 2 - 2
pkg/kamailio/deb/precise/rules

@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # 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
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph \
 			   tls outbound websocket autheph \
 			   erlang 
 			   erlang 

+ 19 - 0
pkg/kamailio/deb/sid/control

@@ -51,6 +51,7 @@ Build-Depends:
  unixodbc-dev,
  unixodbc-dev,
  uuid-dev,
  uuid-dev,
  xsltproc,
  xsltproc,
+ libmaxminddb-dev,
  zlib1g-dev,
  zlib1g-dev,
 Standards-Version: 3.9.5
 Standards-Version: 3.9.5
 Homepage: http://www.kamailio.org/
 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
  This package provides the geoip module, an extension enabling
  usage of the GeoIP API within the Kamailio configuration file.
  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
 Package: kamailio-sqlite-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   erlang systemd rabbitmq
 			   erlang systemd rabbitmq

+ 19 - 0
pkg/kamailio/deb/stretch/control

@@ -51,6 +51,7 @@ Build-Depends:
  unixodbc-dev,
  unixodbc-dev,
  uuid-dev,
  uuid-dev,
  xsltproc,
  xsltproc,
+ libmaxminddb-dev,
  zlib1g-dev,
  zlib1g-dev,
 Standards-Version: 3.9.5
 Standards-Version: 3.9.5
 Homepage: http://www.kamailio.org/
 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
  This package provides the geoip module, an extension enabling
  usage of the GeoIP API within the Kamailio configuration file.
  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
 Package: kamailio-sqlite-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   tls outbound websocket autheph kazoo cnxcc \
 			   erlang systemd rabbitmq
 			   erlang systemd rabbitmq

+ 2 - 2
pkg/kamailio/deb/trusty/rules

@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # 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
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   erlang rabbitmq
 			   erlang rabbitmq

+ 2 - 2
pkg/kamailio/deb/wheezy/rules

@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
 # extra modules to skip, because they are not compilable now
 # extra modules to skip, because they are not compilable now
 # - regardless if they go to the main kamailio package or to some module package,
 # - regardless if they go to the main kamailio package or to some module package,
 # they will be excluded from compile and install of all
 # 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
 # module groups that are packaged in seperate packages
 # (with the name kamailio-$(group_name)-modules)
 # (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)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph \
 			   tls outbound websocket autheph \
 			   erlang 
 			   erlang 

+ 19 - 0
pkg/kamailio/deb/xenial/control

@@ -52,6 +52,7 @@ Build-Depends:
  unixodbc-dev,
  unixodbc-dev,
  uuid-dev,
  uuid-dev,
  xsltproc,
  xsltproc,
+ libmaxminddb-dev,
  zlib1g-dev,
  zlib1g-dev,
 Standards-Version: 3.9.5
 Standards-Version: 3.9.5
 Homepage: http://www.kamailio.org/
 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
  This package provides the geoip module, an extension enabling
  usage of the GeoIP API within the Kamailio configuration file.
  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
 Package: kamailio-sqlite-modules
 Architecture: linux-any
 Architecture: linux-any
 Multi-Arch: same
 Multi-Arch: same

+ 1 - 1
pkg/kamailio/deb/xenial/rules

@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
 # on which other depend first)
 # on which other depend first)
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
 			   ldap xml perl utils lua memcached \
 			   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 \
 			   sqlite json mono ims sctp java \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
 			   erlang systemd rabbitmq
 			   erlang systemd rabbitmq