From c23406c5be9f9199d3f003f590da23c871efec4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jerry=20Lundstr=C3=B6m?= Date: Wed, 20 Apr 2022 14:01:50 +0200 Subject: [PATCH] Optional GeoIP - `package`: Build with GeoIP support if available --- debian/control | 3 ++- rpm/dsc.spec | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 466b1c74..26e02471 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,8 @@ Priority: optional Maintainer: Jerry Lundström Build-Depends: debhelper (>= 10), build-essential, automake, autoconf, libpcap-dev, netbase, pkg-config, libmaxminddb-dev, - libdnswire-dev (>= 0.3.0), libuv1-dev, python3 (>= 3.5) + libdnswire-dev (>= 0.3.0), libuv1-dev, python3 (>= 3.5), + libgeoip-dev | libmaxminddb-dev Standards-Version: 3.9.4 Homepage: https://www.dns-oarc.net/oarc/data/dsc Vcs-Git: https://github.com/DNS-OARC/dsc.git diff --git a/rpm/dsc.spec b/rpm/dsc.spec index 41bbc260..5f3b29de 100644 --- a/rpm/dsc.spec +++ b/rpm/dsc.spec @@ -12,6 +12,15 @@ Source0: https://www.dns-oarc.net/files/dsc/%{name}-%{version}.tar.gz?/%{ BuildRequires: libpcap-devel BuildRequires: libmaxminddb-devel +%if 0%{?fedora} +BuildRequires: GeoIP-devel +%endif +%if 0%{?centos} == 0 && 0%{?el7} +BuildRequires: GeoIP-devel +%endif +%if 0%{?centos} == 0 && 0%{?el8} +BuildRequires: GeoIP-devel +%endif BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool