commit:     ac62b1c71d20d87fcaa1649f3cd4019c5843096c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 16 04:19:58 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 16 04:35:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac62b1c7

net-misc/chrony: add verify-sig support

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/chrony/Manifest             |  1 +
 net-misc/chrony/chrony-4.0-r1.ebuild |  9 +++++++--
 net-misc/chrony/chrony-9999.ebuild   | 11 ++++++++---
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/net-misc/chrony/Manifest b/net-misc/chrony/Manifest
index d338cb37157..d699aaf1a3e 100644
--- a/net-misc/chrony/Manifest
+++ b/net-misc/chrony/Manifest
@@ -1 +1,2 @@
 DIST chrony-4.0.tar.gz 546939 BLAKE2B 
1d4035977be3603b34024c5c1c2aa5f2b4aca03fe7dc1eb41be2e9aeefa06e20a5f74776c50bdadaffba10ae25e7980bcbd9cf2b999bd73087728afe7a80253e
 SHA512 
a1c11a386c43f495910f7f2e9b5fbb1652c3631471d182b9b8203dfef98611d11535ad547a879856551263aed0ae2e30e4135b8ed89553684706166bc1c725c9
+DIST chrony-4.0.tar.gz.asc 195 BLAKE2B 
1947a73f35eb5c58f91775d76473210a7b5edff5b808e360eb0c3724351c54ac4f187a2aa4450830130da718c6a0c488baa170ca87e7e6eac781d85c67b3773f
 SHA512 
c3156d91f4fdb6f9e2fdbc83b1399afb0ecdfa9b7bc92648c5bce477c3f0f921d2a13aa21ac6c281f18b008c60f08e3db6d82b642b646f064aea1dbe19295c4c

diff --git a/net-misc/chrony/chrony-4.0-r1.ebuild 
b/net-misc/chrony/chrony-4.0-r1.ebuild
index 838d655513e..fd4a9fc6eb4 100644
--- a/net-misc/chrony/chrony-4.0-r1.ebuild
+++ b/net-misc/chrony/chrony-4.0-r1.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-inherit systemd tmpfiles toolchain-funcs
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/mlichvar.asc
+inherit systemd tmpfiles toolchain-funcs verify-sig
 
 DESCRIPTION="NTP client and server programs"
 HOMEPAGE="https://chrony.tuxfamily.org/ 
https://git.tuxfamily.org/chrony/chrony.git";
@@ -13,6 +14,7 @@ if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="https://git.tuxfamily.org/chrony/chrony.git";
 else
        SRC_URI="https://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz";
+       SRC_URI+=" verify-sig? ( 
https://download.tuxfamily.org/chrony/${P}-tar-gz-asc.txt -> ${P}.tar.gz.asc )"
        KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 sparc x86"
 fi
 
@@ -33,7 +35,10 @@ REQUIRED_USE="
 "
 RESTRICT="test"
 
-BDEPEND="nettle? ( virtual/pkgconfig )"
+BDEPEND="
+       nettle? ( virtual/pkgconfig )
+       verify-sig? ( app-crypt/openpgp-keys-mlichvar )
+"
 
 if [[ ${PV} == "9999" ]]; then
        # Needed for doc generation in 9999

diff --git a/net-misc/chrony/chrony-9999.ebuild 
b/net-misc/chrony/chrony-9999.ebuild
index 7e6fadddffa..0b13721b537 100644
--- a/net-misc/chrony/chrony-9999.ebuild
+++ b/net-misc/chrony/chrony-9999.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-inherit systemd tmpfiles toolchain-funcs
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/mlichvar.asc
+inherit systemd tmpfiles toolchain-funcs verify-sig
 
 DESCRIPTION="NTP client and server programs"
 HOMEPAGE="https://chrony.tuxfamily.org/ 
https://git.tuxfamily.org/chrony/chrony.git";
@@ -13,7 +14,8 @@ if [[ ${PV} == "9999" ]]; then
        EGIT_REPO_URI="https://git.tuxfamily.org/chrony/chrony.git";
 else
        SRC_URI="https://download.tuxfamily.org/${PN}/${P/_/-}.tar.gz";
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+       SRC_URI+=" verify-sig? ( 
https://download.tuxfamily.org/chrony/${P}-tar-gz-asc.txt -> ${P}.tar.gz.asc )"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
 fi
 
 S="${WORKDIR}/${P/_/-}"
@@ -33,7 +35,10 @@ REQUIRED_USE="
 "
 RESTRICT="test"
 
-BDEPEND="nettle? ( virtual/pkgconfig )"
+BDEPEND="
+       nettle? ( virtual/pkgconfig )
+       verify-sig? ( app-crypt/openpgp-keys-mlichvar )
+"
 
 if [[ ${PV} == "9999" ]]; then
        # Needed for doc generation in 9999

Reply via email to