Browse code

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

fix #1352

Victor Seva authored on 08/12/2017 08:32:46
Showing 18 changed files
... ...
@@ -51,6 +51,7 @@ Build-Depends:
51 51
  unixodbc-dev,
52 52
  uuid-dev,
53 53
  xsltproc,
54
+ libmaxminddb-dev,
54 55
  zlib1g-dev,
55 56
 Standards-Version: 3.9.5
56 57
 Homepage: http://www.kamailio.org/
... ...
@@ -146,6 +147,24 @@ Description: The geoip module for the Kamailio SIP Server
146 147
  This package provides the geoip module, an extension enabling
147 148
  usage of the GeoIP API within the Kamailio configuration file.
148 149
 
150
+Package: kamailio-geoip2-modules
151
+Architecture: linux-any
152
+Multi-Arch: same
153
+Pre-Depends:
154
+ ${misc:Pre-Depends},
155
+Depends:
156
+ kamailio (= ${binary:Version}),
157
+ ${misc:Depends},
158
+ ${shlibs:Depends},
159
+Description: The geoip2 module for the Kamailio SIP Server
160
+ Kamailio is a very fast and flexible SIP (RFC3261)
161
+ server. Written entirely in C, Kamailio can handle thousands calls
162
+ per second even on low-budget hardware.
163
+ .
164
+ This package provides the geoip2 module, an extension enabling
165
+ real-time queries against the Max Mind GeoIP2 database within the Kamailio
166
+ configuration file.
167
+
149 168
 Package: kamailio-sqlite-modules
150 169
 Architecture: linux-any
151 170
 Multi-Arch: same
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph kazoo cnxcc \
41 41
 			   erlang systemd rabbitmq
... ...
@@ -27,6 +27,12 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client
27 27
 # no libssl-dev
28 28
 sed -i -e '/libssl-dev/d' ${DIST}/control
29 29
 
30
+# No geoip2 module
31
+sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \
32
+	${DIST}/control
33
+sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules
34
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules
35
+
30 36
 # clean backports scripts
31 37
 rm -rf ${DIST}/backports
32 38
 exit 0
... ...
@@ -64,6 +64,12 @@ sed -i -e '/librabbitmq-dev/d' \
64 64
 sed -i -e 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules
65 65
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ rabbitmq/' ${DIST}/rules
66 66
 
67
+# No geoip2 module
68
+sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \
69
+	${DIST}/control
70
+sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules
71
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules
72
+
67 73
 # clean backports scripts
68 74
 rm -rf ${DIST}/backports
69 75
 exit 0
... ...
@@ -38,6 +38,12 @@ echo "kamailio-mysql-modules: depends-on-obsolete-package depends: mysql-client
38 38
 # no libssl-dev
39 39
 sed -i -e '/libssl-dev/d' ${DIST}/control
40 40
 
41
+# No geoip2 module
42
+sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \
43
+	${DIST}/control
44
+sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules
45
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules
46
+
41 47
 # clean backports scripts
42 48
 rm -rf ${DIST}/backports
43 49
 exit 0
... ...
@@ -64,6 +64,12 @@ sed -i -e '/librabbitmq-dev/d' \
64 64
 sed -i -e 's/ rabbitmq[ ,$]*/ /' ${DIST}/rules
65 65
 sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ rabbitmq/' ${DIST}/rules
66 66
 
67
+# No geoip2 module
68
+sed -i -e '/libmaxminddb-dev/d' -e '/^Package: kamailio-geoip2-modules/,/^$/d' \
69
+	${DIST}/control
70
+sed -i -e 's/ geoip2[ ,$]*/ /' ${DIST}/rules
71
+sed -i -e '/^EXTRA_EXCLUDED_MODULES=/s/$/ geoip2/' ${DIST}/rules
72
+
67 73
 # clean backports scripts
68 74
 rm -rf ${DIST}/backports
69 75
 exit 0
... ...
@@ -27,6 +27,7 @@ Build-Depends:
27 27
  libjson-c-dev,
28 28
  libldap2-dev,
29 29
  liblua5.1-0-dev,
30
+ libmaxminddb-dev,
30 31
  libmemcached-dev,
31 32
  libmono-2.0-dev,
32 33
  libncurses5-dev,
... ...
@@ -148,6 +149,24 @@ Description: The geoip module for the Kamailio SIP Server
148 149
  This package provides the geoip module, an extension enabling
149 150
  usage of the GeoIP API within the Kamailio configuration file.
150 151
 
152
+Package: kamailio-geoip2-modules
153
+Architecture: linux-any
154
+Multi-Arch: same
155
+Pre-Depends:
156
+ ${misc:Pre-Depends},
157
+Depends:
158
+ kamailio (= ${binary:Version}),
159
+ ${misc:Depends},
160
+ ${shlibs:Depends},
161
+Description: The geoip2 module for the Kamailio SIP Server
162
+ Kamailio is a very fast and flexible SIP (RFC3261)
163
+ server. Written entirely in C, Kamailio can handle thousands calls
164
+ per second even on low-budget hardware.
165
+ .
166
+ This package provides the geoip2 module, an extension enabling
167
+ real-time queries against the Max Mind GeoIP2 database within the Kamailio
168
+ configuration file.
169
+
151 170
 Package: kamailio-sqlite-modules
152 171
 Architecture: linux-any
153 172
 Multi-Arch: same
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang systemd rabbitmq
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc geoip2
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang systemd rabbitmq
... ...
@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
26 26
 # extra modules to skip, because they are not compilable now
27 27
 # - regardless if they go to the main kamailio package or to some module package,
28 28
 # they will be excluded from compile and install of all
29
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq
29
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2
30 30
 
31 31
 # module groups that are packaged in seperate packages
32 32
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo c
34 34
 # on which other depend first)
35 35
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
36 36
 			   ldap xml perl utils lua memcached \
37
-			   snmpstats carrierroute xmpp cpl redis python geoip\
37
+			   snmpstats carrierroute xmpp cpl redis python geoip \
38 38
 			   sqlite json mono ims sctp java \
39 39
 			   tls outbound websocket autheph \
40 40
 			   erlang 
... ...
@@ -51,6 +51,7 @@ Build-Depends:
51 51
  unixodbc-dev,
52 52
  uuid-dev,
53 53
  xsltproc,
54
+ libmaxminddb-dev,
54 55
  zlib1g-dev,
55 56
 Standards-Version: 3.9.5
56 57
 Homepage: http://www.kamailio.org/
... ...
@@ -146,6 +147,24 @@ Description: The geoip module for the Kamailio SIP Server
146 147
  This package provides the geoip module, an extension enabling
147 148
  usage of the GeoIP API within the Kamailio configuration file.
148 149
 
150
+Package: kamailio-geoip2-modules
151
+Architecture: linux-any
152
+Multi-Arch: same
153
+Pre-Depends:
154
+ ${misc:Pre-Depends},
155
+Depends:
156
+ kamailio (= ${binary:Version}),
157
+ ${misc:Depends},
158
+ ${shlibs:Depends},
159
+Description: The geoip2 module for the Kamailio SIP Server
160
+ Kamailio is a very fast and flexible SIP (RFC3261)
161
+ server. Written entirely in C, Kamailio can handle thousands calls
162
+ per second even on low-budget hardware.
163
+ .
164
+ This package provides the geoip2 module, an extension enabling
165
+ real-time queries against the Max Mind GeoIP2 database within the Kamailio
166
+ configuration file.
167
+
149 168
 Package: kamailio-sqlite-modules
150 169
 Architecture: linux-any
151 170
 Multi-Arch: same
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph kazoo cnxcc \
41 41
 			   erlang systemd rabbitmq
... ...
@@ -51,6 +51,7 @@ Build-Depends:
51 51
  unixodbc-dev,
52 52
  uuid-dev,
53 53
  xsltproc,
54
+ libmaxminddb-dev,
54 55
  zlib1g-dev,
55 56
 Standards-Version: 3.9.5
56 57
 Homepage: http://www.kamailio.org/
... ...
@@ -146,6 +147,24 @@ Description: The geoip module for the Kamailio SIP Server
146 147
  This package provides the geoip module, an extension enabling
147 148
  usage of the GeoIP API within the Kamailio configuration file.
148 149
 
150
+Package: kamailio-geoip2-modules
151
+Architecture: linux-any
152
+Multi-Arch: same
153
+Pre-Depends:
154
+ ${misc:Pre-Depends},
155
+Depends:
156
+ kamailio (= ${binary:Version}),
157
+ ${misc:Depends},
158
+ ${shlibs:Depends},
159
+Description: The geoip2 module for the Kamailio SIP Server
160
+ Kamailio is a very fast and flexible SIP (RFC3261)
161
+ server. Written entirely in C, Kamailio can handle thousands calls
162
+ per second even on low-budget hardware.
163
+ .
164
+ This package provides the geoip2 module, an extension enabling
165
+ real-time queries against the Max Mind GeoIP2 database within the Kamailio
166
+ configuration file.
167
+
149 168
 Package: kamailio-sqlite-modules
150 169
 Architecture: linux-any
151 170
 Multi-Arch: same
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph kazoo cnxcc \
41 41
 			   erlang systemd rabbitmq
... ...
@@ -27,7 +27,7 @@ EXCLUDED_MODULES=
27 27
 # extra modules to skip, because they are not compilable now
28 28
 # - regardless if they go to the main kamailio package or to some module package,
29 29
 # they will be excluded from compile and install of all
30
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd
30
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd geoip2
31 31
 
32 32
 # module groups that are packaged in seperate packages
33 33
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc systemd
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang rabbitmq
... ...
@@ -26,7 +26,7 @@ EXCLUDED_MODULES=
26 26
 # extra modules to skip, because they are not compilable now
27 27
 # - regardless if they go to the main kamailio package or to some module package,
28 28
 # they will be excluded from compile and install of all
29
-EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq
29
+EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo cnxcc systemd rabbitmq geoip2
30 30
 
31 31
 # module groups that are packaged in seperate packages
32 32
 # (with the name kamailio-$(group_name)-modules)
... ...
@@ -34,7 +34,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy mi_xmlrpc dnssec kazoo c
34 34
 # on which other depend first)
35 35
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
36 36
 			   ldap xml perl utils lua memcached \
37
-			   snmpstats carrierroute xmpp cpl redis python geoip\
37
+			   snmpstats carrierroute xmpp cpl redis python geoip \
38 38
 			   sqlite json mono ims sctp java \
39 39
 			   tls outbound websocket autheph \
40 40
 			   erlang 
... ...
@@ -52,6 +52,7 @@ Build-Depends:
52 52
  unixodbc-dev,
53 53
  uuid-dev,
54 54
  xsltproc,
55
+ libmaxminddb-dev,
55 56
  zlib1g-dev,
56 57
 Standards-Version: 3.9.5
57 58
 Homepage: http://www.kamailio.org/
... ...
@@ -147,6 +148,24 @@ Description: The geoip module for the Kamailio SIP Server
147 148
  This package provides the geoip module, an extension enabling
148 149
  usage of the GeoIP API within the Kamailio configuration file.
149 150
 
151
+Package: kamailio-geoip2-modules
152
+Architecture: linux-any
153
+Multi-Arch: same
154
+Pre-Depends:
155
+ ${misc:Pre-Depends},
156
+Depends:
157
+ kamailio (= ${binary:Version}),
158
+ ${misc:Depends},
159
+ ${shlibs:Depends},
160
+Description: The geoip2 module for the Kamailio SIP Server
161
+ Kamailio is a very fast and flexible SIP (RFC3261)
162
+ server. Written entirely in C, Kamailio can handle thousands calls
163
+ per second even on low-budget hardware.
164
+ .
165
+ This package provides the geoip2 module, an extension enabling
166
+ real-time queries against the Max Mind GeoIP2 database within the Kamailio
167
+ configuration file.
168
+
150 169
 Package: kamailio-sqlite-modules
151 170
 Architecture: linux-any
152 171
 Multi-Arch: same
... ...
@@ -35,7 +35,7 @@ EXTRA_EXCLUDED_MODULES=bdb dbtext oracle pa iptrtpproxy
35 35
 # on which other depend first)
36 36
 PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
37 37
 			   ldap xml perl utils lua memcached \
38
-			   snmpstats carrierroute xmpp cpl redis python geoip\
38
+			   snmpstats carrierroute xmpp cpl redis python geoip geoip2 \
39 39
 			   sqlite json mono ims sctp java \
40 40
 			   tls outbound websocket autheph dnssec kazoo cnxcc \
41 41
 			   erlang systemd rabbitmq