# 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/" SRC_URI="mirror://sourceforge/${PN/_/-}/lib${PN/_/-}-${PV}.tar.bz2" DEPEND="virtual/libc >=sys-libs/pam-0.72 >=app-crypt/mhash-0.8.18 >=dev-db/postgresql-7.3.6" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc sparc alpha ~amd64" src_unpack() { unpack ${A} || die } src_compile() { econf || die emake CFLAGS="${CFLAGS}" || die } src_install() { insinto /etc newins "${FILESDIR}/pam_pgsql.conf" pam_pgsql.conf exeinto /lib/security doexe pam_pgsql.so dodoc debian/changelog README CREDITS } pkg_postinst() { echo einfo "From version 0.6 you can also use new style configuration (overrides" einfo "legacy values). See README for more info." }