Module: kamailio
Branch: master
Commit: f9d6685c9ae01fa4cdda1ddb20f29f7e1239f981
URL:
https://github.com/kamailio/kamailio/commit/f9d6685c9ae01fa4cdda1ddb20f29f7…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2023-07-04T17:46:25+03:00
pkg/kamailio/obs: packaged geoip2 module
---
Modified: pkg/kamailio/obs/kamailio.spec
---
Diff:
https://github.com/kamailio/kamailio/commit/f9d6685c9ae01fa4cdda1ddb20f29f7…
Patch:
https://github.com/kamailio/kamailio/commit/f9d6685c9ae01fa4cdda1ddb20f29f7…
---
diff --git a/pkg/kamailio/obs/kamailio.spec b/pkg/kamailio/obs/kamailio.spec
index 838aaf7530e..01c185f3cc4 100644
--- a/pkg/kamailio/obs/kamailio.spec
+++ b/pkg/kamailio/obs/kamailio.spec
@@ -43,7 +43,7 @@
%bcond_with cnxcc
%bcond_without dnssec
%bcond_without evapi
-%bcond_without geoip
+%bcond_with geoip
%bcond_without http_async_client
%bcond_without ims
%bcond_without jansson
@@ -505,8 +505,8 @@ suspended when sending the event, to be resumed at a later point,
maybe triggere
%package geoip
Summary: MaxMind GeoIP support for Kamailio
Group: %{PKGGROUP}
-Requires: GeoIP, kamailio = %ver
-BuildRequires: GeoIP-devel
+Requires: GeoIP, libmaxminddb, kamailio = %ver
+BuildRequires: GeoIP-devel, libmaxminddb-devel
%description geoip
MaxMind GeoIP support for Kamailio.
@@ -1251,6 +1251,7 @@ make every-module skip_modules="app_mono db_cassandra db_oracle
iptrtpproxy \
%endif
%if %{with geoip}
kgeoip \
+ kgeoip2 \
%endif
kgzcompress \
%if %{with http_async_client}
@@ -1358,6 +1359,7 @@ make install-modules-all skip_modules="app_mono db_cassandra
db_oracle \
%endif
%if %{with geoip}
kgeoip \
+ kgeoip2 \
%endif
kgzcompress \
%if %{with http_async_client}
@@ -1945,7 +1947,9 @@ fi
%files geoip
%defattr(-,root,root)
%doc %{_docdir}/kamailio/modules/README.geoip
+%doc %{_docdir}/kamailio/modules/README.geoip2
%{_libdir}/kamailio/modules/geoip.so
+%{_libdir}/kamailio/modules/geoip2.so
%endif