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/pam_passwdqc/pam_passwdqc-1.0.4.ebuild

48 lines
1.0 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit pam eutils toolchain-funcs
DESCRIPTION="Password strength checking for PAM aware password changing programs"
HOMEPAGE="http://www.openwall.com/passwdqc/"
SRC_URI="http://www.openwall.com/pam/modules/pam_passwdqc/${P}.tar.gz"
LICENSE="Openwall BSD public-domain"
SLOT="0"
KEYWORDS="alpha ~amd64 arm ~hppa m68k ~mips ppc s390 sh ~sparc x86"
DEPEND="virtual/pam"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-makefile.patch"
}
src_compile() {
emake \
OPTCFLAGS="${CFLAGS}" \
CC="$(tc-getCC)" \
LD="$(tc-getCC)" \
|| die "emake failed"
}
src_install() {
dopammod pam_passwdqc.so
doman pam_passwdqc.8
dodoc README PLATFORMS INTERNALS
}
pkg_postinst() {
elog
elog "To activate pam_passwdqc use pam_passwdqc.so instead"
elog "of pam_cracklib.so in /etc/pam.d/system-auth."
elog "Also, if you want to change the parameters, read up"
elog "on the pam_passwdqc(8) man page."
elog
}