# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit eutils DESCRIPTION="pam_pgsql is a module for pam to authenticate users with PostgreSQL" HOMEPAGE="http://sourceforge.net/projects/pam-pgsql/" MY_PN="${PN}" MY_PV="_${PV}" SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}${MY_PV}.tar.gz" DEPEND="virtual/libc >=sys-libs/pam-0.72 >=app-crypt/mhash-0.8.18 >=dev-db/postgresql-base-8.0" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" src_unpack() { unpack ${A} || die cd "${S}" epatch "${FILESDIR}/${P}-no_strict_aliasing.patch" epatch "${FILESDIR}/${P}-pam_get_service.patch" } src_compile() { econf \ --libdir=/lib \ --with-docdir=/usr/share/doc/${PF}/html || die "econf failed" emake || die "emake failed" } src_install() { insinto /$(get_libdir)/security doins pam_pgsql.so dodoc debian/changelog README CREDITS insinto /usr/share/doc/${PF}/examples doins "${FILESDIR}/pam_pgsql.conf" } pkg_postinst() { echo einfo "From version 0.6 you can also use new style configuration (overrides" einfo "legacy values). See README for more info." }