View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
aho-corasick@1.1.3
anstream@0.6.20
anstyle-parse@0.2.7
anstyle-query@1.1.4
anstyle-wincon@3.0.10
anstyle@1.0.11
anyhow@1.0.99
autocfg@1.5.0
base16ct@0.2.0
base64@0.22.1
base64ct@1.6.0
bitflags@2.9.2
block-buffer@0.10.4
byteorder@1.5.0
bytes@1.10.1
cc@1.2.33
cfg-if@1.0.1
cipher@0.4.4
colorchoice@1.0.4
const-oid@0.9.6
cpufeatures@0.2.17
crypto-bigint@0.5.5
crypto-common@0.1.6
curve25519-dalek-derive@0.1.1
curve25519-dalek@4.1.3
der@0.7.10
deranged@0.4.0
digest@0.10.7
doctest-file@1.0.0
ecdsa@0.16.9
ed25519-dalek@2.2.0
ed25519@2.2.3
elliptic-curve@0.13.8
env_filter@0.1.3
env_logger@0.11.8
error-chain@0.12.4
ff@0.13.1
fiat-crypto@0.2.9
foreign-types-shared@0.1.1
foreign-types@0.3.2
generic-array@0.14.7
getrandom@0.2.16
getrandom@0.3.3
group@0.13.0
hkdf@0.12.4
hmac@0.12.1
hostname@0.3.1
inout@0.1.4
interprocess@2.2.3
is_terminal_polyfill@1.70.1
itoa@1.0.15
jiff-static@0.2.15
jiff@0.2.15
lazy_static@1.5.0
libc@0.2.175
libm@0.2.15
log@0.4.27
match_cfg@0.1.0
memchr@2.7.5
num-bigint-dig@0.8.4
num-conv@0.1.0
num-integer@0.1.46
num-iter@0.1.45
num-traits@0.2.19
num_threads@0.1.7
once_cell@1.21.3
once_cell_polyfill@1.70.1
openssl-sys@0.9.109
openssl-macros@0.1.1
openssl@0.10.73
p256@0.13.2
p384@0.13.1
p521@0.13.3
pam-bindings@0.1.1
pem-rfc7468@0.7.0
pkcs1@0.7.5
pkcs8@0.10.2
pkg-config@0.3.32
portable-atomic-util@0.2.4
portable-atomic@1.11.1
powerfmt@0.2.0
ppv-lite86@0.2.21
primeorder@0.13.6
proc-macro2@1.0.98
quote@1.0.40
r-efi@5.3.0
rand@0.8.5
rand_chacha@0.3.1
rand_core@0.6.4
recvmsg@1.0.0
regex-automata@0.4.9
regex-syntax@0.8.5
regex@1.11.1
rfc6979@0.4.0
rsa@0.9.8
rustc_version@0.4.1
sec1@0.7.3
semver@1.0.26
serde@1.0.219
serde_derive@1.0.219
sha2@0.10.9
shlex@1.3.0
signature@2.2.0
smallvec@1.15.1
spin@0.9.8
spki@0.7.3
ssh-agent-client-rs@1.1.1
ssh-cipher@0.2.0
ssh-encoding@0.2.0
ssh-key@0.6.7
subtle@2.6.1
syn@2.0.106
syslog@6.1.1
thiserror-impl@2.0.14
thiserror@2.0.14
time-core@0.1.4
time-macros@0.2.22
time@0.3.41
typenum@1.18.0
unicode-ident@1.0.18
utf8parse@0.2.2
uzers@0.12.1
vcpkg@0.2.15
version_check@0.9.5
wait-timeout@0.2.1
wasi@0.11.1+wasi-snapshot-preview1
wasi@0.14.2+wasi-0.2.4
widestring@1.2.0
winapi-i686-pc-windows-gnu@0.4.0
winapi-x86_64-pc-windows-gnu@0.4.0
winapi@0.3.9
windows-link@0.1.3
windows-sys@0.52.0
windows-sys@0.60.2
windows-targets@0.52.6
windows-targets@0.53.3
windows_aarch64_gnullvm@0.52.6
windows_aarch64_gnullvm@0.53.0
windows_aarch64_msvc@0.52.6
windows_aarch64_msvc@0.53.0
windows_i686_gnu@0.52.6
windows_i686_gnu@0.53.0
windows_i686_gnullvm@0.52.6
windows_i686_gnullvm@0.53.0
windows_i686_msvc@0.52.6
windows_i686_msvc@0.53.0
windows_x86_64_gnu@0.52.6
windows_x86_64_gnu@0.53.0
windows_x86_64_gnullvm@0.52.6
windows_x86_64_gnullvm@0.53.0
windows_x86_64_msvc@0.52.6
windows_x86_64_msvc@0.53.0
wit-bindgen-rt@0.39.0
zerocopy-derive@0.8.26
zerocopy@0.8.26
zeroize@1.8.1
"
inherit cargo pam
DESCRIPTION="A PAM module that authenticates using the ssh-agent."
HOMEPAGE="https://github.com/nresare/pam-ssh-agent"
SRC_URI="
https://github.com/nresare/pam-ssh-agent/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
${CARGO_CRATE_URIS}
"
LICENSE="|| ( Apache-2.0 MIT )"
LICENSE+=" 0BSD Apache-2.0 BSD MIT Unicode-3.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="native-crypto"
RDEPENDS="
dev-libs/openssl:=
"
src_configure() {
export OPENSSL_NO_VENDOR=1
local myfeatures=(
$(usev native-crypto)
)
cargo_src_configure --no-default-features
}
src_install() {
dodoc README.md
newpammod target/release/libpam_ssh_agent.so pam_ssh_agent.so
}