/[gentoo-x86]/sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild
Gentoo

Contents of /sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Nov 1 13:50:43 2012 UTC (22 months, 2 weeks ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Specify LICENSE more precisely.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_ssh/pam_ssh-1.97-r3.ebuild,v 1.2 2012/05/24 05:06:05 vapier Exp $
4
5 EAPI=2
6
7 inherit pam autotools eutils flag-o-matic
8
9 DESCRIPTION="Uses ssh-agent to provide single sign-on"
10 HOMEPAGE="http://pam-ssh.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/pam-ssh/${P}.tar.bz2"
12
13 LICENSE="BSD-2 BSD ISC"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux"
16 IUSE=""
17
18 # Doesn't work on OpenPAM; looks for OpenSSH at build time (bug
19 # #282993) and won't work with other implementations either
20 RDEPEND="sys-libs/pam
21 net-misc/openssh"
22
23 DEPEND="${RDEPEND}
24 sys-devel/libtool"
25
26 src_prepare() {
27 epatch "${FILESDIR}/${P}-doublefree.patch"
28 epatch "${FILESDIR}/${P}-EOF.patch"
29 eautoreconf
30 }
31
32 src_configure() {
33 # hide all the otherwise-exported symbols that may clash with
34 # other software loading the PAM modules (see bug #274924 as an
35 # example).
36 append-ldflags -Wl,--version-script="${FILESDIR}"/pam_symbols.ver
37
38 econf \
39 "--with-pam-dir=$(getpam_mod_dir)" \
40 || die "econf failed"
41 }
42
43 src_install() {
44 emake DESTDIR="${D}" install || die "install failed"
45 dodoc AUTHORS ChangeLog NEWS README TODO || die
46
47 find "${D}" -name '*.la' -delete || die "Unable to remove libtool archives."
48 }
49
50 pkg_postinst() {
51 elog "You can enable pam_ssh for system authentication by enabling"
52 elog "the ssh USE flag on sys-auth/pambase."
53 }

  ViewVC Help
Powered by ViewVC 1.1.20