diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-08-07 11:27:50 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-08-07 11:27:50 +0000 |
commit | c8181c41cefab7a3012a91ff74a69ba5ff912eea (patch) | |
tree | 6e87e1c5318ee7250215c522301a73c19f265236 /sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild | |
parent | Apply ldap implicit pointer conversion patch again to fix failure on amd64 hosts (diff) | |
download | gentoo-2-c8181c41cefab7a3012a91ff74a69ba5ff912eea.tar.gz gentoo-2-c8181c41cefab7a3012a91ff74a69ba5ff912eea.tar.bz2 gentoo-2-c8181c41cefab7a3012a91ff74a69ba5ff912eea.zip |
Hide all non-necessary symbols, fix using this with dovecot (bug #274924).
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild')
-rw-r--r-- | sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
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..2ca8d978fed6 --- /dev/null +++ b/sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_ssh/pam_ssh-1.97-r2.ebuild,v 1.1 2010/08/07 11:27:50 flameeyes Exp $ + +EAPI=2 + +inherit pam autotools + +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 as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-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() { + # 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." +} |