From: Pieter Lexis Date: Fri, 30 Mar 2018 12:44:22 +0000 (+0200) Subject: Update to the latest pdns-builder X-Git-Tag: dnsdist-1.3.3~83^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ceb365e8abf51a042efd622ac1575f813ddcb1e;p=thirdparty%2Fpdns.git Update to the latest pdns-builder --- diff --git a/builder b/builder index c218fa2c8b..781eaa25e0 160000 --- a/builder +++ b/builder @@ -1 +1 @@ -Subproject commit c218fa2c8b028d46e635fffb6d474e4ddcf375c6 +Subproject commit 781eaa25e0308557226e127e3385e2118a4db2f7 diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index 195fbff9bb..885e81c2b2 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -1,11 +1,11 @@ Name: dnsdist -Version: %{getenv:BUILDER_VERSION} -Release: %{getenv:BUILDER_RELEASE} +Version: %{getenv:BUILDER_RPM_VERSION} +Release: %{getenv:BUILDER_RPM_RELEASE}%{dist} Summary: Powerful and scriptable DNS loadbalancer License: GPLv2 Vendor: PowerDNS.COM BV Group: System/DNS -Source: dnsdist-%{version}.tar.bz2 +Source: %{name}-%{getenv:BUILDER_VERSION}.tar.bz2 BuildRequires: readline-devel BuildRequires: libedit-devel BuildRequires: openssl-devel @@ -53,7 +53,11 @@ BuildRequires: fstrm-devel dnsdist is a high-performance DNS loadbalancer that is scriptable in Lua. %prep -%setup +%if 0%{?rhel} == 6 +%setup -n %{name}-%{getenv:BUILDER_VERSION} +%else +%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION} +%endif # run as dnsdist user sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.in diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index 2542e81ba3..0ef7b61039 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -1,11 +1,11 @@ Name: pdns-recursor -Version: %{getenv:BUILDER_VERSION} -Release: %{getenv:BUILDER_RELEASE}%{?dist} +Version: %{getenv:BUILDER_RPM_VERSION} +Release: %{getenv:BUILDER_RPM_RELEASE}%{?dist} Summary: Modern, advanced and high performance recursing/non authoritative name server Group: System Environment/Daemons License: GPLv2 URL: https://powerdns.com -Source0: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{getenv:BUILDER_VERSION}.tar.bz2 %if 0%{?rhel} == 6 Source1: pdns-recursor.init %endif @@ -49,9 +49,9 @@ package if you need a dns cache for your network. %prep %if 0%{?rhel} == 6 -%setup -q -n %{name}-%{version} +%setup -n %{name}-%{getenv:BUILDER_VERSION} %else -%autosetup -p1 +%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION} %endif %build diff --git a/builder-support/specs/pdns.spec b/builder-support/specs/pdns.spec index 6a12122c5c..ca7d72c6cc 100644 --- a/builder-support/specs/pdns.spec +++ b/builder-support/specs/pdns.spec @@ -7,13 +7,13 @@ exit 1 %global backends %{nil} Name: pdns -Version: %{getenv:BUILDER_VERSION} -Release: %{getenv:BUILDER_RELEASE}%{dist} +Version: %{getenv:BUILDER_RPM_VERSION} +Release: %{getenv:BUILDER_RPM_RELEASE}%{dist} Summary: A modern, advanced and high performance authoritative-only nameserver Group: System Environment/Daemons License: GPLv2 URL: https://powerdns.com -Source0: %{name}-%{version}.tar.bz2 +Source0: %{name}-%{getenv:BUILDER_VERSION}.tar.bz2 %if 0%{?rhel} < 7 Source1: pdns.init %endif @@ -175,7 +175,11 @@ This package contains the TinyDNS backend for %{name} %endif %prep -%setup -q -n %{name}-%{version} +%if 0%{?rhel} == 6 +%setup -n %{name}-%{getenv:BUILDER_VERSION} +%else +%autosetup -p1 -n %{name}-%{getenv:BUILDER_VERSION} +%endif %build export CPPFLAGS="-DLDAP_DEPRECATED"