commit: 558c43238d836897a63dc54ad51c060b78785775 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> AuthorDate: Tue Apr 2 12:08:31 2024 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Tue Apr 2 12:20:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=558c4323
www-client/badwolf: Add verify-sig Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> www-client/badwolf/Manifest | 1 + www-client/badwolf/badwolf-1.3.0.ebuild | 27 +++++++++++++++++++++++++-- www-client/badwolf/badwolf-9999.ebuild | 29 ++++++++++++++++++++++++++--- 3 files changed, 52 insertions(+), 5 deletions(-) diff --git a/www-client/badwolf/Manifest b/www-client/badwolf/Manifest index 50e3b52294..943ef0b347 100644 --- a/www-client/badwolf/Manifest +++ b/www-client/badwolf/Manifest @@ -1 +1,2 @@ DIST badwolf-1.3.0.tar.gz 114477 BLAKE2B e79c223b597b08acdc5d090a47c179a8ab27727d3cb7b7f842c021b5f1d1f25c2e5604bf8b1cea986270ec97f3a8e25eeae866a124e72df7a7aaf876ecff9b08 SHA512 f83884f9a1c4d12d641f68697d7fab7885803975ead6cb78e88b0b8d2f7b6f9da116f72e39f02c47e8dca89e4ced9b932524338a6211c7d4509c12206c10cdeb +DIST badwolf-1.3.0.tar.gz.sign 308 BLAKE2B aced82f92e7721a297c1989394a1e5588180ae6c97923892c8bc6d379efc3e6a67957d4b5c10e9ca5786230b7576d7553687adaa2042f1eb341358efb7089072 SHA512 0568e25c6602cad1fbe1e3521ca19e45b9e67e561515e9e43a3a75fb80a08b1e2c0d42b95b6125a743095a6dcaed8d45ea908075c886111c52f32c53df844081 diff --git a/www-client/badwolf/badwolf-1.3.0.ebuild b/www-client/badwolf/badwolf-1.3.0.ebuild index 5cd3ef78ea..a105b1849d 100644 --- a/www-client/badwolf/badwolf-1.3.0.ebuild +++ b/www-client/badwolf/badwolf-1.3.0.ebuild @@ -10,11 +10,16 @@ then EGIT_REPO_URI="https://hacktivis.me/git/badwolf.git" inherit git-r3 else + VERIFY_SIG_METHOD=signify + inherit savedconfig verify-sig + MY_P="${PN}-$(ver_rs 3 - 4 .)" - SRC_URI="https://hacktivis.me/releases/${MY_P}.tar.gz" + SRC_URI=" + https://hacktivis.me/releases/${MY_P}.tar.gz + verify-sig? ( https://hacktivis.me/releases/${MY_P}.tar.gz.sign ) + " KEYWORDS="~amd64 ~arm64 ~ppc64" S="${WORKDIR}/${MY_P}" - inherit savedconfig fi DESCRIPTION="Minimalist and privacy-oriented WebKitGTK+ browser" @@ -39,6 +44,24 @@ PATCHES=( "${FILESDIR}/badwolf-1.3.0-configure_missing_ed.patch" ) +if [[ "${PV}" != "9999" ]] +then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2021-04 )" + + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2021.04.pub" + + src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links + cd "${DISTDIR}" || die + cp ${A} "${WORKDIR}" || die + cd "${WORKDIR}" || die + verify-sig_verify_detached "${MY_P}.tar.gz" "${MY_P}.tar.gz.sign" + fi + default + } +fi + src_configure() { [[ "${PV}" == "9999" ]] || restore_config config.h diff --git a/www-client/badwolf/badwolf-9999.ebuild b/www-client/badwolf/badwolf-9999.ebuild index 1c1de32eff..f372cf41de 100644 --- a/www-client/badwolf/badwolf-9999.ebuild +++ b/www-client/badwolf/badwolf-9999.ebuild @@ -10,11 +10,16 @@ then EGIT_REPO_URI="https://hacktivis.me/git/badwolf.git" inherit git-r3 else + VERIFY_SIG_METHOD=signify + inherit savedconfig verify-sig + MY_P="${PN}-$(ver_rs 3 - 4 .)" - SRC_URI="https://hacktivis.me/releases/${MY_P}.tar.gz" - KEYWORDS="~amd64" + SRC_URI=" + https://hacktivis.me/releases/${MY_P}.tar.gz + verify-sig? ( https://hacktivis.me/releases/${MY_P}.tar.gz.sign ) + " + KEYWORDS="~amd64 ~arm64 ~ppc64" S="${WORKDIR}/${MY_P}" - inherit savedconfig fi DESCRIPTION="Minimalist and privacy-oriented WebKitGTK+ browser" @@ -35,6 +40,24 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="test? ( app-text/mandoc )" +if [[ "${PV}" != "9999" ]] +then + BDEPEND="${BDEPEND} verify-sig? ( sec-keys/signify-keys-lanodan:2021-04 )" + + VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/signify-keys-lanodan-2021.04.pub" + + src_unpack() { + if use verify-sig; then + # Too many levels of symbolic links + cd "${DISTDIR}" || die + cp ${A} "${WORKDIR}" || die + cd "${WORKDIR}" || die + verify-sig_verify_detached "${MY_P}.tar.gz" "${MY_P}.tar.gz.sign" + fi + default + } +fi + src_configure() { [[ "${PV}" == "9999" ]] || restore_config config.h