You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-auth/openpam/openpam-20071221.ebuild

49 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-auth/openpam/openpam-20071221.ebuild,v 1.10 2012/05/24 05:04:52 vapier Exp $
EAPI="2"
# https://bugs.gentoo.org/show_bug.cgi?id=318121
WANT_AUTOMAKE=1.9
inherit multilib autotools eutils libtool
DESCRIPTION="Open source PAM library."
HOMEPAGE="http://www.openpam.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~sparc-fbsd ~x86-fbsd"
IUSE="debug vim-syntax"
RDEPEND="!sys-libs/pam"
DEPEND="sys-devel/make
dev-lang/perl"
PDEPEND="sys-auth/pambase
vim-syntax? ( app-vim/pam-syntax )"
src_prepare() {
epatch "${FILESDIR}/${P}-gentoo.patch"
epatch "${FILESDIR}/${PN}-20050201-nbsd.patch"
epatch "${FILESDIR}/${PN}-20050616-redef.patch"
epatch "${FILESDIR}/${PN}-20050616-optional.patch"
sed -i -e 's:-Werror::' "${S}/configure.ac"
eautoreconf
elibtoolize
}
src_configure() {
econf ${myconf} \
--disable-dependency-tracking \
--with-modules-dir=/$(get_libdir)/security/
}
src_install() {
emake -j1 DESTDIR="${D}" install || die
dodoc CREDITS HISTORY RELNOTES README || die
find "${D}" -name '*.la' -delete || die
}