blob: 741e7a764d801184601253288d42a6c41a4fc06e (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2024 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="
https://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"
DEPEND="
>=dev-libs/libbsd-0.7
"
RDEPEND="
${DEPEND}
!net-mail/signify
"
BDEPEND="
verify-sig? ( sec-keys/signify-keys-signify )
"
PATCHES=(
"${FILESDIR}"/${PN}-30-man_compress.patch
"${FILESDIR}"/${PN}-31-fix-build-clang-16.patch
)
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/signify-keys/${PN}-30.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
}
|