Diff pam_ssh_agent_auth-0.10.3 with a pam_ssh_agent_auth-0.10.4-r1
/usr/portage/sys-auth/pam_ssh_agent_auth/pam_ssh_agent_auth-0.10.4-r1.ebuild 2023-10-09 14:52:35.428368500 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2020 Gentoo Authors |
|
1 |
# Copyright 1999-2022 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 |
EAPI=7 |
|
4 |
EAPI=8 |
|
5 | 5 | |
6 |
inherit pam |
|
6 |
inherit autotools toolchain-funcs pam flag-o-matic |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="Simple module to authenticate users against their ssh-agent keys" |
9 | 9 |
HOMEPAGE="http://pamsshagentauth.sourceforge.net" |
... | ... | |
12 | 12 |
EGIT_REPO_URI="https://github.com/jbeverly/${PN}.git" |
13 | 13 |
inherit git-r3 |
14 | 14 |
else |
15 |
SRC_URI="mirror://sourceforge/pamsshagentauth/${PN}/v${PV}/${P}.tar.bz2 |
|
16 |
https://dev.gentoo.org/~juippis/distfiles/tmp/pam_ssh_agent_auth-0.10.3-openssl-1.1.1.patch" |
|
15 |
ED25519_DONNA_COMMIT="8757bd4cd209cb032853ece0ce413f122eef212c" |
|
16 |
SRC_URI="https://github.com/jbeverly/pam_ssh_agent_auth/archive/refs/tags/${P}.tar.gz" |
|
17 |
SRC_URI+=" https://github.com/floodyberry/ed25519-donna/archive/${ED25519_DONNA_COMMIT}.tar.gz -> ${PN}-ed25519-donna.tar.gz" |
|
18 |
S="${WORKDIR}"/${PN}-${P} |
|
17 | 19 |
KEYWORDS="~amd64 ~arm ~x86" |
18 | 20 |
fi |
19 | 21 | |
20 | 22 |
LICENSE="MIT" |
21 | 23 |
SLOT="0" |
22 |
IUSE="" |
|
24 | ||
25 |
DEPEND=" |
|
26 |
dev-libs/openssl:= |
|
27 |
sys-libs/pam |
|
28 |
" |
|
29 |
RDEPEND=" |
|
30 |
${DEPEND} |
|
31 |
virtual/ssh |
|
32 |
" |
|
33 |
# Needed for pod2man |
|
34 |
BDEPEND="dev-lang/perl" |
|
23 | 35 | |
24 | 36 |
PATCHES=( |
25 |
"${DISTDIR}/${P}-openssl-1.1.1.patch" |
|
37 |
"${FILESDIR}"/${PN}-0.10.4-0001-Fix-function-prototypes-in-configure.patch |
|
38 |
"${FILESDIR}"/${PN}-0.10.4-0002-Add-missing-includes-implicit-function-declarations.patch |
|
26 | 39 |
) |
27 |
DEPEND="sys-libs/pam |
|
28 |
dev-libs/openssl:0=" |
|
29 | 40 | |
30 |
RDEPEND="${DEPEND} |
|
31 |
virtual/ssh" |
|
41 |
src_prepare() { |
|
42 |
default |
|
32 | 43 | |
33 |
# needed for pod2man |
|
34 |
DEPEND="${DEPEND} |
|
35 |
dev-lang/perl" |
|
44 |
# Missing from tag |
|
45 |
rm -r ed25519-donna || die |
|
46 |
ln -s "${WORKDIR}"/ed25519-donna-${ED25519_DONNA_COMMIT} "${S}"/ed25519-donna || die |
|
47 | ||
48 |
# For configure patches |
|
49 |
eautoreconf |
|
50 |
} |
|
36 | 51 | |
37 | 52 |
src_configure() { |
38 | 53 |
pammod_hide_symbols |
39 | 54 | |
55 |
# bug #874843, use POSIX type names |
|
56 |
use elibc_musl && append-cppflags -Du_char=uint8_t -Du_int=uint32_t |
|
57 | ||
58 |
# bug #725720 |
|
59 |
export AR="$(type -P $(tc-getAR))" |
|
60 | ||
40 | 61 |
econf \ |
41 | 62 |
--without-openssl-header-check \ |
42 | 63 |
--libexecdir="$(getpam_mod_dir)" |