1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
4 inherit eutils toolchain-funcs flag-o-matic
6 DESCRIPTION="A uniform password checking interface for root applications"
7 HOMEPAGE="http://cr.yp.to/checkpwd.html"
8 SRC_URI="http://cr.yp.to/checkpwd/${P}.tar.gz"
10 LICENSE="all-rights-reserved"
12 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
14 RESTRICT="mirror bindist"
19 epatch "${FILESDIR}"/${PV}-errno.patch
20 epatch "${FILESDIR}"/${PV}-head-1.patch
22 use static && append-ldflags -static
26 echo "$(tc-getCC) ${CFLAGS}" > conf-cc
27 echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
28 make || die "Error in make"
33 dobin checkpassword || die
34 dodoc CHANGES README TODO VERSION FILES SYSDEPS TARGETS