diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-auth/pam_ssh |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-auth/pam_ssh')
-rw-r--r-- | sys-auth/pam_ssh/Manifest | 15 | ||||
-rw-r--r-- | sys-auth/pam_ssh/files/pam_ssh-1.97-EOF.patch | 11 | ||||
-rw-r--r-- | sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch | 20 | ||||
-rw-r--r-- | sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch | 22 | ||||
-rw-r--r-- | sys-auth/pam_ssh/files/pam_symbols.ver | 4 | ||||
-rw-r--r-- | sys-auth/pam_ssh/metadata.xml | 10 | ||||
-rw-r--r-- | sys-auth/pam_ssh/pam_ssh-1.97-r1.ebuild | 45 | ||||
-rw-r--r-- | sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild | 51 | ||||
-rw-r--r-- | sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild | 52 | ||||
-rw-r--r-- | sys-auth/pam_ssh/pam_ssh-1.98.ebuild | 45 | ||||
-rw-r--r-- | sys-auth/pam_ssh/pam_ssh-2.1.ebuild | 60 |
11 files changed, 335 insertions, 0 deletions
diff --git a/sys-auth/pam_ssh/Manifest b/sys-auth/pam_ssh/Manifest new file mode 100644 index 000000000000..e46cc62cf8c9 --- /dev/null +++ b/sys-auth/pam_ssh/Manifest @@ -0,0 +1,15 @@ +AUX pam_ssh-1.97-EOF.patch 433 SHA256 47315060f04fe991e443c9e9bfb8cc072c0d81d901ee6706cd29255ad08e44ac SHA512 3987eee53a3ef009aaaa0729d57cc33df9d94cd3e1288e450066b6d4df1b108eade079b6516a112a5b1eebec8a3b158405ed87b7edb8c39bb23e30499675ebb1 WHIRLPOOL b7cd8da53b9d88359ec55728c6f79035c401817eda7206ebd6fb21f6009dd11a56a1d698b0ba55df28ac3eca00c183ee42d42e35655b2242008a0f9dd59cc7e9 +AUX pam_ssh-1.97-doublefree.patch 975 SHA256 035b20e4cfc0e723166c44414216ed4234d130877f9d717c905c5f1697421df0 SHA512 a80592c8e36cc1a27de07e11c79a449d33fa9f976df459add7def643af4c2d65863e0b4e28f4f73038002fcf0c874ba583e9b96f30dc90a1ed161afa0d7d3efb WHIRLPOOL 6fc74640b368daac54f730cbf323d6cd77cc6ca3478e08e74c6e1ee71f4d3541525c7fd809034cb458a53a96b251f8eeae020cb388a2f2788f862b9956545170 +AUX pam_ssh-2.1-dot-ssh-check.patch 701 SHA256 c145bb267c77dc5896a34a1eb692315f451a8c520c4de26449a3c43c26057701 SHA512 96fd0d648115f5004a5a8b67f23240abdb2a58e46ba10009030bb1162561c1554fdf5c14c56605d7e1758dd1c2560a1b7647532a4c69c75df85e141df394d794 WHIRLPOOL 5f66c4231a7b049df295d7a26b5a1cc6a59720ed849a8e7430db0cfa7d37b03473f6b5478dd91a9deca53317eebaad9e8ed374baac3c26e97a15f71ba311125a +AUX pam_symbols.ver 35 SHA256 3359a9186617879479a4e943a16bc8c69e4d0ab259e6b729f983ca9328616756 SHA512 40e2d23783153bdfefc9ec7d9caf818e1d157bfa4f3074434e034aae47e3aa7d08b04dedbe06ef60ed2a93729f0e04aa09cf8e9f6929dfb15e4ae49c75c9d0d9 WHIRLPOOL 38a5ec5d4befec6eaf034471f8c37554a42d56ed88f4586d7bf964a8f0850968ad0d94bc44f4fc0830e34edbef5f851eb58722cefb5be4916f68cc33a1ffe3d3 +DIST pam_ssh-1.97.tar.bz2 200184 SHA256 10233b0d3e480fdc977d4e3a1ea5a994cf1f257c3b948650a86e4d753796789d SHA512 78632ef5baf8c7ac6d28d16a4c7e452978ad09a969c562cfcc708b835dbba3da12317569a618768ef6f9d59db1d5d31f2a0c7b2ab1244ed9caa37eb89413494e WHIRLPOOL efe23d1d86f92298682edeb960e046d0c5def65961e3e51dc82bb244b98f76ac7b7a456fd80d31740e851602e8d8cd27d17d0b66ca6e0e44d1356982c4496887 +DIST pam_ssh-1.98.tar.bz2 292989 SHA256 30312f242c00551b120cc39defd3745b8cb50408ea845e8688d18d2a28b51180 SHA512 bf6da4ced0619549d56516c6b24e899664e0948da7a0cc04ff1b536d06cc8c26242c83eb36ed835668c824b777e270aa293162ac77e3c479311386e6e5da39ff WHIRLPOOL a62dccfec3a0208e8e94c0635aa1d8813ff3bbfeba5eebbff854c44638c51a547251a22460f78d08d34cc60b0318bcec622649b6a0dac030d159378451df09ae +DIST pam_ssh-2.1.tar.xz 361000 SHA256 55fbe8488d59cff05a77523b4afc2e2a8d1ba35d93546f1828ec48e20e2600cb SHA512 8252b15efffa5687f740963f7a3c3479b73f99eca26a17155f915a10b9a71362a2778449adf10f01c174cc8545961ce3ea64459338a7c995c242b209529fd640 WHIRLPOOL e46d22325b06d9801d99d36b1045a4b8da0b8e874d83c6309353c54827189e47bbadb5789f498037829b6b9b9e618fec3ea5a441ac349643d93667fcf1dc2759 +EBUILD pam_ssh-1.97-r1.ebuild 1049 SHA256 cb9d61699605260aa035fe7a387f620f62917d661a067d88eda3f55db9cbe6af SHA512 5b63cea3bfb1a0c85b51bfd87a53dd4bd0685a9a70dcd8c7a3e5f58d71202de7704cfebec87bcc04d1d5fffd03f2b06c0d44acce112673c55aebaf18a8239632 WHIRLPOOL 737d78a9b7edc6d0a799c5e95d73c4cb20b467aa0e75c2321db91def11555545c6e1bd9da038f83a699c90a2bb36f78b85e274cbe7c3018a4a2aac0f37cac8d1 +EBUILD pam_ssh-1.97-r2.ebuild 1372 SHA256 f8ddd0392d5bbef5b179257367c74265c8a791f630b3762b1c04e5ed4b9bd286 SHA512 a08ad0de3d85fbe0c798082a52bd7dfb1e105850e96012e1cd59e68a4c53d9528378f8ad044f650383f7b89bae99332a1290972f8420b054372c723a7ac6f712 WHIRLPOOL d5d8c25f964527cc3d940c85af56caf279e600fc34ba04744fddaa6eaab960386d5584d9a752093f5525998189da8ba7915732c8b8b53b24f4348f586f5e9ada +EBUILD pam_ssh-1.97-r3.ebuild 1420 SHA256 af309d429cc643e89a1c786bfa15bf5d64ec48e7845cf41e32ed7cd54151e11a SHA512 403f33e263f97cb1589d9178850b94fe2aaa85fe3fdc5919c673627a9ddf0f9310210cb6c0b054cc36225dbc09793190bf97b8849a2392816a7053ab0f9dccb3 WHIRLPOOL f381135e16e8798159b9ecdeccb51d009508fe5e443e4136b87e5eeb707238830c2d15c541e6a29e4a61918332cd7c1ca4b3b4c0adcc00b9600362a857cd77d5 +EBUILD pam_ssh-1.98.ebuild 1150 SHA256 1b8f08926c13d33d9b991cbdb2ea6a96abf467fc8e855aca52901223ce7268a4 SHA512 8d74d642a671baad3ad0a08037cafe9b59720cfb3c9e66b1a745599868b8809ebfc17bd273e7dc3d770e71e062318b982e48dfb13770da9acec76b9660419230 WHIRLPOOL 2835ec5a03636518a43a0b50b11fea1c6a8a120776cbf058aa13a9c0c7978731ad6db9b4412808e60e8eb9e8d323230be65a475a380afbab3fc948cca27ff17e +EBUILD pam_ssh-2.1.ebuild 1674 SHA256 1c74616a9190054ad1bb586d6c4bca8ac21797ebe7231dc557155595271793e3 SHA512 12508a96cff523b740ee0dc8cded9ddec545124417e65290fabe7644f5cc9b96206804cf7f071b793722f41305ad4e49ba4612a97ebea6ee01036a5f37cbc62e WHIRLPOOL f4a1d5a4f6ef4f18fbd432f8c8fd437160a833538d528c8a5ed2ef662fb6bd652e360e1cd494d5383002b78220cac95e74bccaea6cdd0caeed0e9128d25b7442 +MISC ChangeLog 3045 SHA256 5c89320c22eae65d5106e2d3db75e70aa1c30491b5094f7ce4d7f0e2f71b1142 SHA512 5970b34279dd2f37f955bfc2f87d10224d00c8d57dbbe8d04d2c6a12f2b85230d27471fd270bd473a143d0ebdb03b54f3be4a35e49ad44724d35189437f370a1 WHIRLPOOL a62b915f7f2bb9344c9135c3dfa68d96f1166cd4f1228d8ff3d4de75d5c3f892cc0a54070689d6415112328f8deaff4415d741653638ca8ced1e14dd747993c7 +MISC ChangeLog-2015 8924 SHA256 2337eaead4e1ac5fcd83a6a6d1f902e793d53c3b22cdeb99ee1d7689dde4b9a4 SHA512 9c2f2384a5400c7136f90c3f20a32630ac1bf8c0381f174e969aaa41cfe78843aab828340df97764c67587d11d369c62ecdfc8eaf363fb8d48eb5c20430a857d WHIRLPOOL 828bf10358a2196a27d0beed0d2ed3a445d52e55f83d1c3b0152b8992883856a212ec95cf7a01a5e1a6f28ad2f5d86e7153f6f1c6f0fc44b4f57791d35dd74b6 +MISC metadata.xml 297 SHA256 920c427e9078daf7c855a89d22a193b010b4ce829bc0a63c9a274f5d077cb992 SHA512 f524068347954519bce747d0bcb8b45ef078438da36f5f3ad18b07429b731e15c3ab6f888e7f0d399a9c93ff76fb07d36087bdb55afee3eae1499ffeb8ff1d27 WHIRLPOOL da30c011bf2505719c6d2865f19daf99c921eb402fb040f40a8e5b8170e0bcab4595c591bc5da473d69ed794d09c7b2d8a99a2d9fce27a3e7e2afc31eee8b07f diff --git a/sys-auth/pam_ssh/files/pam_ssh-1.97-EOF.patch b/sys-auth/pam_ssh/files/pam_ssh-1.97-EOF.patch new file mode 100644 index 000000000000..80214a1df70c --- /dev/null +++ b/sys-auth/pam_ssh/files/pam_ssh-1.97-EOF.patch @@ -0,0 +1,11 @@ +--- pam_ssh-1.92.orig/pam_get_pass.c 2004-02-19 19:59:05.000000000 +0100 ++++ pam_ssh-1.92/pam_get_pass.c 2009-04-18 13:51:10.000000000 +0200 +@@ -63,6 +63,8 @@ + retval = conv->conv(1, msgs, &resp, conv->appdata_ptr); + if (retval != PAM_SUCCESS) + return retval; ++ if (resp[0].resp == NULL) ++ return PAM_AUTHTOK_RECOVERY_ERR; + retval = pam_set_item(pamh, PAM_AUTHTOK, resp[0].resp); + if (retval != PAM_SUCCESS) + return retval; diff --git a/sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch b/sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch new file mode 100644 index 000000000000..2f63ff8bdcb0 --- /dev/null +++ b/sys-auth/pam_ssh/files/pam_ssh-1.97-doublefree.patch @@ -0,0 +1,20 @@ +--- pam_ssh-1.97/pam_ssh.c.orig 2009-08-01 20:11:00.000000000 +0200 ++++ pam_ssh-1.97/pam_ssh.c 2009-08-01 20:11:16.000000000 +0200 +@@ -627,7 +627,7 @@ + * than the file creation time */ + if (retval = stat(per_agent, &stat_buf)) { + pam_ssh_log(LOG_ERR, "stat() failed on %s", per_agent); +- free(per_agent); ++ pam_set_data(pamh, "ssh_agent_env_agent", NULL, NULL); + fclose(env_read); + return retval; + } +@@ -646,7 +646,7 @@ + if (start_agent) { + if ((env_write = open(per_agent, O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) { + pam_ssh_log(LOG_ERR, "can't write to %s", per_agent); +- free(per_agent); ++ pam_set_data(pamh, "ssh_agent_env_agent", NULL, NULL); + openpam_restore_cred(pamh); + return PAM_SERVICE_ERR; + } diff --git a/sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch b/sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch new file mode 100644 index 000000000000..a0737b377bea --- /dev/null +++ b/sys-auth/pam_ssh/files/pam_ssh-2.1-dot-ssh-check.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/503424#c5 +https://sourceforge.net/p/pam-ssh/bugs/16/ + +--- a/pam_ssh.c ++++ b/pam_ssh.c +@@ -867,6 +867,7 @@ + int attempt; /* No. of attempt to contact agent */ + const char *user; /* username */ + struct options options; /* PAM options */ ++ struct stat sb; /* to check for existing .ssh */ + + #if HAVE_PAM_STRUCT_OPTIONS || !HAVE_PAM_STD_OPTION + memset(&options, 0, sizeof options); +@@ -916,7 +917,7 @@ + openpam_restore_cred(pamh); + return PAM_SERVICE_ERR; + } +- if ((access(dotdir,F_OK)) == -1) { ++ if (stat(dotdir, &sb) == -1) { + pam_ssh_log(LOG_DEBUG, "inexistent configuration directory"); + free(dotdir); + openpam_restore_cred(pamh); diff --git a/sys-auth/pam_ssh/files/pam_symbols.ver b/sys-auth/pam_ssh/files/pam_symbols.ver new file mode 100644 index 000000000000..dbc677b77a2d --- /dev/null +++ b/sys-auth/pam_ssh/files/pam_symbols.ver @@ -0,0 +1,4 @@ +{ + global: pam_sm_*; + local: *; +}; diff --git a/sys-auth/pam_ssh/metadata.xml b/sys-auth/pam_ssh/metadata.xml new file mode 100644 index 000000000000..0bfa63fd11c6 --- /dev/null +++ b/sys-auth/pam_ssh/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>pam-bugs@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">pam-ssh</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-auth/pam_ssh/pam_ssh-1.97-r1.ebuild b/sys-auth/pam_ssh/pam_ssh-1.97-r1.ebuild new file mode 100644 index 000000000000..37f128a89230 --- /dev/null +++ b/sys-auth/pam_ssh/pam_ssh-1.97-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit pam autotools eutils + +DESCRIPTION="Uses ssh-agent to provide single sign-on" +HOMEPAGE="http://pam-ssh.sourceforge.net/" +SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.bz2" + +LICENSE="BSD-2 BSD ISC" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +# Doesn't work on OpenPAM. +DEPEND="sys-libs/pam + sys-devel/libtool" + +RDEPEND="sys-libs/pam + virtual/ssh" + +src_prepare() { + epatch "${FILESDIR}/${P}-doublefree.patch" + eautoreconf +} + +src_configure() { + econf \ + "--with-pam-dir=$(getpam_mod_dir)" \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + dodoc AUTHORS ChangeLog NEWS README TODO || die + + find "${D}" -name '*.la' -delete || die "Unable to remove libtool archives." +} + +pkg_postinst() { + elog "You can enable pam_ssh for system authentication by enabling" + elog "the ssh USE flag on sys-auth/pambase." +} diff --git a/sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild b/sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild new file mode 100644 index 000000000000..11e3cc24d817 --- /dev/null +++ b/sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit pam autotools eutils flag-o-matic + +DESCRIPTION="Uses ssh-agent to provide single sign-on" +HOMEPAGE="http://pam-ssh.sourceforge.net/" +SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.bz2" + +LICENSE="BSD-2 BSD ISC" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ~ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +# Doesn't work on OpenPAM; looks for OpenSSH at build time (bug +# #282993) and won't work with other implementations either +RDEPEND="sys-libs/pam + net-misc/openssh" + +DEPEND="${RDEPEND} + sys-devel/libtool" + +src_prepare() { + epatch "${FILESDIR}/${P}-doublefree.patch" + eautoreconf +} + +src_configure() { + # hide all the otherwise-exported symbols that may clash with + # other software loading the PAM modules (see bug #274924 as an + # example). + append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver + + econf \ + "--with-pam-dir=$(getpam_mod_dir)" \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + dodoc AUTHORS ChangeLog NEWS README TODO || die + + find "${D}" -name '*.la' -delete || die "Unable to remove libtool archives." +} + +pkg_postinst() { + elog "You can enable pam_ssh for system authentication by enabling" + elog "the ssh USE flag on sys-auth/pambase." +} diff --git a/sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild b/sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild new file mode 100644 index 000000000000..d4c29b80106a --- /dev/null +++ b/sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit pam autotools eutils flag-o-matic + +DESCRIPTION="Uses ssh-agent to provide single sign-on" +HOMEPAGE="http://pam-ssh.sourceforge.net/" +SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.bz2" + +LICENSE="BSD-2 BSD ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +# Doesn't work on OpenPAM; looks for OpenSSH at build time (bug +# #282993) and won't work with other implementations either +RDEPEND="sys-libs/pam + net-misc/openssh" + +DEPEND="${RDEPEND} + sys-devel/libtool" + +src_prepare() { + epatch "${FILESDIR}/${P}-doublefree.patch" + epatch "${FILESDIR}/${P}-EOF.patch" + eautoreconf +} + +src_configure() { + # hide all the otherwise-exported symbols that may clash with + # other software loading the PAM modules (see bug #274924 as an + # example). + append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver + + econf \ + "--with-pam-dir=$(getpam_mod_dir)" \ + || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + dodoc AUTHORS ChangeLog NEWS README TODO || die + + find "${D}" -name '*.la' -delete || die "Unable to remove libtool archives." +} + +pkg_postinst() { + elog "You can enable pam_ssh for system authentication by enabling" + elog "the ssh USE flag on sys-auth/pambase." +} diff --git a/sys-auth/pam_ssh/pam_ssh-1.98.ebuild b/sys-auth/pam_ssh/pam_ssh-1.98.ebuild new file mode 100644 index 000000000000..46964376549b --- /dev/null +++ b/sys-auth/pam_ssh/pam_ssh-1.98.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit pam eutils flag-o-matic readme.gentoo + +DESCRIPTION="Uses ssh-agent to provide single sign-on" +HOMEPAGE="http://pam-ssh.sourceforge.net/" +SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.bz2" + +LICENSE="BSD-2 BSD ISC" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux" +IUSE="" + +# Doesn't work on OpenPAM; looks for OpenSSH at build time (bug +# #282993) and won't work with other implementations either +RDEPEND=" + sys-libs/pam + net-misc/openssh +" +DEPEND="${RDEPEND} + sys-devel/libtool +" + +DOC_CONTENTS=" + You can enable pam_ssh for system authentication by enabling + the pam_ssh USE flag on sys-auth/pambase. +" + +src_configure() { + # hide all the otherwise-exported symbols that may clash with + # other software loading the PAM modules (see bug #274924 as an + # example). + append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver + + econf \ + "--with-pam-dir=$(getpam_mod_dir)" +} + +src_install() { + default + prune_libtool_files --modules + readme.gentoo_create_doc +} diff --git a/sys-auth/pam_ssh/pam_ssh-2.1.ebuild b/sys-auth/pam_ssh/pam_ssh-2.1.ebuild new file mode 100644 index 000000000000..fc7b3e0e8a1c --- /dev/null +++ b/sys-auth/pam_ssh/pam_ssh-2.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit pam eutils flag-o-matic readme.gentoo + +DESCRIPTION="Uses ssh-agent to provide single sign-on" +HOMEPAGE="http://pam-ssh.sourceforge.net/" +SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.xz" + +LICENSE="BSD-2 BSD ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +# Only supports OpenSSH via `ssh-agent` #282993 +DEPEND="virtual/pam + dev-libs/openssl:0=" +RDEPEND="${DEPEND} + net-misc/openssh" + +DOC_CONTENTS=" + You can enable pam_ssh for system authentication by enabling + the pam_ssh USE flag on sys-auth/pambase. +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-dot-ssh-check.patch #503424#c5 +} + +src_configure() { + # hide all the otherwise-exported symbols that may clash with + # other software loading the PAM modules (see bug #274924 as an + # example). + append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver + + # Set the cache var so the configure script doesn't go probing hardcoded + # file system paths and picking up the wrong thing. + export ac_cv_openssldir='' + + # Avoid cross-compiling funkiness and requiring openssh at build time. + export PATH_SSH_AGENT="${EPREFIX}/usr/bin/ssh-agent" + + econf \ + "--with-pam-dir=$(getpam_mod_dir)" +} + +src_install() { + default + prune_libtool_files --modules + readme.gentoo_create_doc +} + +pkg_preinst() { + if has_version "<${CATEGORY}/${PN}-2.0" ; then #554150 + ewarn "Upstream pam_ssh has changed where ssh keys live. Only keys in your" + ewarn "~/.ssh/login-keys.d/ will be accepted for authentication." + fi +} |