1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="PAM interface to bioapi package"
9 HOMEPAGE="https://code.google.com/p/pam-bioapi/"
10 SRC_URI="https://pam-bioapi.googlecode.com/files/${P}.tar.gz"
17 DEPEND="sys-auth/bioapi
21 sys-auth/tfm-fingerprint"
26 epatch "${FILESDIR}"/${P}-headers.patch #241322
28 -e 's/-version-info 0:4:0/-avoid-version/' \
29 libpam_bioapi/Makefile.in #261598
32 -e '/pam_unix.so/s:.*:auth include system-auth:' \
33 etc/pam.d/{bioapi_chbird,test-pam_bioapi}.in #261598
37 econf --sbindir=/sbin || die
42 emake install DESTDIR="${D}" || die
43 dodoc AUTHORS ChangeLog NEWS README TODO
46 mv "${D}"/usr/$(get_libdir)/security "${D}"/$(get_libdir)/ || die
47 rm -f "${D}"/$(get_libdir)/security/*.la