| # Copyright 1999-2014 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Id$ |
| |
| EAPI=4 |
| |
| inherit autotools-utils eutils multilib user |
| |
| DESCRIPTION="Hardened implementation of user account utilities" |
| HOMEPAGE="https://code.google.com/p/hardened-shadow/" |
| SRC_URI="https://hardened-shadow.googlecode.com/files/${P}.tar.gz" |
| |
| LICENSE="BSD" |
| SLOT="0" |
| KEYWORDS="~x86" |
| IUSE="" |
| |
| DEPEND="sys-libs/pam |
| !sys-apps/shadow" |
| RDEPEND="${DEPEND} |
| >=sys-auth/pambase-20120417" |
| |
| DOCS=( README ) |
| |
| pkg_setup() { |
| # The hardened-shadow group is needed at src_install time, |
| # so the only place we can create the group is pkg_setup. |
| enewgroup hardened-shadow |
| } |
| |
| src_install() { |
| autotools-utils_src_install |
| |
| # Remove pam.d files colliding with pambase. |
| rm -r "${ED}"/etc/pam.d || die |
| } |