From b8e25263bb346c806835a015aad478a718fdbca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Mon, 9 Mar 2020 20:17:54 +0100 Subject: [PATCH] Add source GPG validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verify signature of sources. Disabled, because build failed on my machine. Signed-off-by: Petr Menšík --- dnsmasq.spec | 11 ++++ srkgpg.txt | 117 ++++++++++++++++++++++++++++++++++++++++ test-release-public-key | 32 +++++++++++ 3 files changed, 160 insertions(+) create mode 100644 srkgpg.txt create mode 100644 test-release-public-key diff --git a/dnsmasq.spec b/dnsmasq.spec index 3a7342b..06b32a7 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -21,6 +21,13 @@ URL: http://www.thekelleys.org.uk/dnsmasq/ Source0: http://www.thekelleys.org.uk/dnsmasq/%{?extrapath}%{name}-%{version}%{?extraversion}.tar.xz Source1: %{name}.service Source2: dnsmasq-systemd-sysusers.conf +Source3: %{url}%{?extrapath}%{name}-%{version}%{?extraversion}.tar.xz.asc +# GPG public key +%if 0%{?testrelease} || 0%{?releasecandidate} +Source4: %{url}%{?extrapath}test-release-public-key +%else +Source4: http://www.thekelleys.org.uk/srkgpg.txt +%endif # https://bugzilla.redhat.com/show_bug.cgi?id=1495409 Patch1: dnsmasq-2.77-underflow.patch @@ -56,6 +63,7 @@ BuildRequires: pkgconfig BuildRequires: libidn2-devel BuildRequires: nettle-devel Buildrequires: gcc +BuildRequires: gnupg2 BuildRequires: systemd %{?systemd_requires} @@ -79,6 +87,9 @@ server's leases. %prep +%if 0%{?gpgverify:1} +%gpgverify -k 4 -s 3 -d 0 +%endif %autosetup -p1 -n %{name}-%{version}%{?extraversion} # use /var/lib/dnsmasq instead of /var/lib/misc diff --git a/srkgpg.txt b/srkgpg.txt new file mode 100644 index 0000000..be1f1f2 --- /dev/null +++ b/srkgpg.txt @@ -0,0 +1,117 @@ +-----BEGIN PGP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O0m +OYIHdsEHhKlWsE1GXXVLofBr68UBhYV6/AGXko4Pr+dXLzauN4kALDx6WltFu3qU +voD+uEoLq7IXULMo5Pyd7bO4qGQMKykaXTb5o6dqdu4GzWIUw1fr9kLEmo29ABEB +AAGJAh8EGAEIAAkFAlMgw6ECGwwACgkQFc3aauGRNaIjqA/+PXuaM6JHuudLycmB +0iKAwyB5csOFGpF3b9FgMR68TC4jzi5J5hJZASl0cO/e0ytQsrDUBbH74y+WaA4l +dwBVYr0j/2hqzIjrnGMtgWeHFPLV3sKw8DGuNx1/cOoljJXzi1WWSHIwDvaj3uZ9 +CwHt+4/abR7kdvMcnFhQVA4zuzZWFqpp+CDkkJNVwB9zxtAQwGTGF4cQ0IvTkhCo +6DQhZZVTeyn+nBKxzzWijniWc0LyRsum03MxZ6E7UVIInCTjdXTalnO8wColwIx5 +FV4nTMxdsKKgnIXmLexBdd03bW9TkowWf2C2XfDN+pDS8X3MzO6zAyogqJhAiBFj +nRzkOw0cw1VTL00o8uiWdMeu7OKOKeQbUilMAn4MweKB57mc582kjeGmwdZgWFA4 +BJ2eiH7HwjxiynwMdZwQEBdOTNLbggHk3/mScF8U1KcJhjAFf7Ne+Z0feG/8GgKl +5aj3ucl821+dfpzB79lLo+kmd1qkDyDiUR5yN6P8l8k6IAUJz2KUe0BjtO6VFFw0 +xni05dkrXdfo7IO79ictHmEn+g3QO8ZLUGRwdtZ1cMhTkm7FhH8Bdby0y4Soqluv +Hbri++cC91i1I3a92kHi/8O45rnLhVt+sOfxY1QnSIYh5OFwGMqMCNDTEL7ESiFa +FhSXkmzzVntlyvOBMlgz3IGh2hA= +=TM0e +-----END PGP PUBLIC KEY BLOCK----- diff --git a/test-release-public-key b/test-release-public-key new file mode 100644 index 0000000..a4afa01 --- /dev/null +++ b/test-release-public-key @@ -0,0 +1,32 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQENBFM4adMBCADDTxhfWayeNd99OtOZyzzq5OSR3FeL4m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