blob: 1acb6b337b47fb566c0e54957a122f3465bded6c [file] [log] [blame]
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/pam_pwdfile/pam_pwdfile-0.99.ebuild,v 1.5 2007/11/04 15:38:35 flameeyes Exp $
inherit flag-o-matic pam
DESCRIPTION="PAM module for authenticating against passwd-like files."
HOMEPAGE="http://cpbotha.net/pam_pwdfile.html"
SRC_URI="http://cpbotha.net/files/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE=""
DEPEND="sys-libs/pam"
src_compile() {
append-flags -DNDEBUG
tc-export CC
# Make upstream Makefile respect the environment.
# In addition, it needs to use gcc for -shared not ld.
sed -i -e 's/CFLAGS =/CFLAGS +=/' \
-e 's/LDFLAGS = .*$/LDFLAGS += -shared/' \
-e 's/LD =/LD ?=/' \
-e 's/CC =/CC ?=/' \
-e 's/$(LD)/$(CC)/' \
contrib/Makefile.standalone
emake -f contrib/Makefile.standalone || die "emake failed"
}
src_install() {
dopammod ${PN}.so
dodoc INSTALL README changelog contrib/warwick_duncan-cyrus_without_system_accounts.txt
}