Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/pam_ssh/
Date: Sat, 19 Jan 2019 14:51:57
Message-Id: 1547909494.9c6f17ceea09f7ecb6790d86b93e6e86ad5fe2ba.soap@gentoo
1 commit: 9c6f17ceea09f7ecb6790d86b93e6e86ad5fe2ba
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 19 14:50:34 2019 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 19 14:51:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c6f17ce
7
8 sys-auth/pam_ssh: Version bump to 2.2
9
10 Bug: https://bugs.gentoo.org/674194
11 Package-Manager: Portage-2.3.56, Repoman-2.3.12
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 sys-auth/pam_ssh/Manifest | 1 +
15 sys-auth/pam_ssh/pam_ssh-2.2.ebuild | 67 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 68 insertions(+)
17
18 diff --git a/sys-auth/pam_ssh/Manifest b/sys-auth/pam_ssh/Manifest
19 index 4f6c1889d98..84a053bb6ba 100644
20 --- a/sys-auth/pam_ssh/Manifest
21 +++ b/sys-auth/pam_ssh/Manifest
22 @@ -1,2 +1,3 @@
23 DIST pam_ssh-1.98.tar.bz2 292989 BLAKE2B 08744c6649aa58c7221e5ec07e0c6aefa8d045cf30df01b941962d29f3abdae902b0fbad37923e3ff05536e422a1062732a6998e4b58d978d369df3d866ec1aa SHA512 bf6da4ced0619549d56516c6b24e899664e0948da7a0cc04ff1b536d06cc8c26242c83eb36ed835668c824b777e270aa293162ac77e3c479311386e6e5da39ff
24 DIST pam_ssh-2.1.tar.xz 361000 BLAKE2B f22836af20b41ae7254f816c33793bb3a128b604ec36a20b207610deebf61f4d5dd070fd6f5093c6f7b6eb9e14f85cd81ddbbed7e97ee581124e5335722d036b SHA512 8252b15efffa5687f740963f7a3c3479b73f99eca26a17155f915a10b9a71362a2778449adf10f01c174cc8545961ce3ea64459338a7c995c242b209529fd640
25 +DIST pam_ssh-2.2.tar.xz 382244 BLAKE2B b3e6122530244add64400a6c4ea9811eb6feb0309b11d9ad17d800c3ced555f5459a8dc55ec58b0649017bcce9fb12417d4ba52ab2acd3acdf5e4a0cfe956e57 SHA512 b3caeb6065b2ac925cfd1a12107902f8474badfa1770d6499508d00bf41b54497fa17080f84af9dde0b6b7692d4bd58d33d94257c3106dac7eee79ebcf3b4692
26
27 diff --git a/sys-auth/pam_ssh/pam_ssh-2.2.ebuild b/sys-auth/pam_ssh/pam_ssh-2.2.ebuild
28 new file mode 100644
29 index 00000000000..8c54ab76bfa
30 --- /dev/null
31 +++ b/sys-auth/pam_ssh/pam_ssh-2.2.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit pam flag-o-matic readme.gentoo-r1
39 +
40 +DESCRIPTION="Uses ssh-agent to provide single sign-on"
41 +HOMEPAGE="http://pam-ssh.sourceforge.net/"
42 +SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.xz"
43 +
44 +LICENSE="BSD-2 BSD ISC"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE=""
48 +
49 +# Only supports OpenSSH via `ssh-agent` #282993
50 +DEPEND="virtual/pam
51 + dev-libs/openssl:0="
52 +RDEPEND="${DEPEND}
53 + net-misc/openssh"
54 +
55 +PATCHES=(
56 + # 503424#c5
57 + "${FILESDIR}"/${PN}-2.1-dot-ssh-check.patch
58 +)
59 +
60 +src_configure() {
61 + # hide all the otherwise-exported symbols that may clash with
62 + # other software loading the PAM modules (see bug #274924 as an
63 + # example).
64 + append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver
65 +
66 + # Set the cache var so the configure script doesn't go probing hardcoded
67 + # file system paths and picking up the wrong thing.
68 + export ac_cv_openssldir=''
69 +
70 + # Avoid cross-compiling funkiness and requiring openssh at build time.
71 + export PATH_SSH_AGENT="${EPREFIX}/usr/bin/ssh-agent"
72 +
73 + econf \
74 + "--with-pam-dir=$(getpam_mod_dir)"
75 +}
76 +
77 +src_install() {
78 + default
79 +
80 + # pam_ssh only builds plugins
81 + find "${D}" -name '*.la' -delete || die
82 +
83 + local DOC_CONTENTS="
84 + You can enable pam_ssh for system authentication by enabling
85 + the pam_ssh USE flag on sys-auth/pambase.
86 + "
87 + readme.gentoo_create_doc
88 +}
89 +
90 +pkg_preinst() {
91 + if [[ ${REPLACING_VERSIONS} == 1.* ]]; then #554150
92 + ewarn "Upstream pam_ssh has changed where ssh keys live. Only keys in your"
93 + ewarn "~/.ssh/login-keys.d/ will be accepted for authentication."
94 + fi
95 +}
96 +
97 +pkg_postinst() {
98 + readme.gentoo_print_elog
99 +}