# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_mysql/pam_mysql-0.6.0.ebuild,v 1.1 2005/07/04 14:20:50 azarah Exp $ inherit libtool eutils DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql" HOMEPAGE="http://pam-mysql.sourceforge.net/" SRC_URI="mirror://sourceforge/pam-mysql/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~sparc x86" IUSE="md5" DEPEND=">=sys-libs/pam-0.72 >=dev-db/mysql-3.23.38 md5? ( dev-libs/openssl )" src_unpack() { unpack ${A} cd ${S} elibtoolize } src_compile() { local myconf myconf="--host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --disable-static" myconf="${myconf} $(use_with md5 openssl=/usr/include/openssl)" econf $myconf || die "econf failed." make || die "make failed." } src_install() { make DESTDIR=${D} install || die dodoc CREDITS ChangeLog NEWS README }