blob: 242864f55575ed0dcc710a6fb4da8a35271fac5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
VERIFY_SIG_METHOD="signify"
inherit toolchain-funcs verify-sig
DESCRIPTION="Cryptographically sign and verify files"
HOMEPAGE="http://www.openbsd.org/ https://github.com/aperezdc/signify"
SRC_URI="
https://github.com/aperezdc/${PN}/releases/download/v${PV}/${P}.tar.xz
verify-sig? (
https://github.com/aperezdc/${PN}/releases/download/v${PV}/SHA256.sig
-> ${P}.sha.sig
)"
LICENSE="BSD-1"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc x86"
RDEPEND="!net-mail/signify
>=dev-libs/libbsd-0.7"
DEPEND="${RDEPEND}"
BDEPEND="verify-sig? ( sec-keys/signify-keys-signify )"
PATCHES=( "${FILESDIR}"/${PN}-30-man_compress.patch )
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/signify-keys/${P}.pub"
src_unpack() {
if use verify-sig; then
# Too many levels of symbolic links
cp "${DISTDIR}"/${P}.{sha.sig,tar.xz} "${WORKDIR}" || die
verify-sig_verify_signed_checksums \
${P}.sha.sig sha256 ${P}.tar.xz
fi
default
}
src_configure() {
tc-export CC
}
src_install() {
emake DESTDIR="${ED}" PREFIX="/usr" install
einstalldocs
}
|