diff options
Diffstat (limited to 'net-mail/checkpassword/checkpassword-0.90-r5.ebuild')
-rw-r--r-- | net-mail/checkpassword/checkpassword-0.90-r5.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net-mail/checkpassword/checkpassword-0.90-r5.ebuild b/net-mail/checkpassword/checkpassword-0.90-r5.ebuild new file mode 100644 index 000000000000..04702ce840d7 --- /dev/null +++ b/net-mail/checkpassword/checkpassword-0.90-r5.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fixheadtails flag-o-matic toolchain-funcs + +DESCRIPTION="A uniform password checking interface for root applications" +HOMEPAGE="https://cr.yp.to/checkpwd.html" +SRC_URI="https://cr.yp.to/checkpwd/${P}.tar.gz" + +# http://cr.yp.to/distributors.html +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86" +IUSE="static" +RESTRICT="mirror bindist" + +RDEPEND="virtual/libcrypt:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-errno.patch + "${FILESDIR}"/${P}-exit.patch + "${FILESDIR}"/${P}-headers.patch +) + +src_prepare() { + default + + ht_fix_file Makefile print-cc.sh + + use static && append-ldflags -static + + echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.' + echo "$(tc-getCC) ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.' +} + +src_install() { + dobin checkpassword + einstalldocs +} |