logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: d0722bd796a9c0f94dc994990da0e29e799b800b
parent 2ae4815c129ffe5e47f905842f7f7f1271d72ab5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 18 May 2021 22:44:18 +0200

sys-apps/tcb: Depend on acct-group/chkpwd

Diffstat:

Asys-apps/tcb/tcb-1.2-r1.ebuild36++++++++++++++++++++++++++++++++++++
Dsys-apps/tcb/tcb-1.2.ebuild34----------------------------------
2 files changed, 36 insertions(+), 34 deletions(-)

diff --git a/sys-apps/tcb/tcb-1.2-r1.ebuild b/sys-apps/tcb/tcb-1.2-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Libraries and tools implementing the tcb password shadowing scheme" +HOMEPAGE="http://www.openwall.com/tcb/" +SRC_URI="https://www.openwall.com/tcb/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="pam" + +DEPEND=" + acct-group/chkpwd + acct-group/shadow + sys-libs/libxcrypt:= +" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i 's;CC =;#&;' "${S}/Make.defs" || die "Failed un-forcing CC" + + if use !pam; then + sed -i '/pam_tcb/d' Makefile \ + || die "Failed disabling pam_tcb" + fi + + default +} + +src_install() { + einstalldocs + emake install DESTDIR="${D}" \ + SLIBDIR=/$(get_libdir) LIBDIR=/usr/$(get_libdir) MANDIR=/usr/share/man +} diff --git a/sys-apps/tcb/tcb-1.2.ebuild b/sys-apps/tcb/tcb-1.2.ebuild @@ -1,34 +0,0 @@ -# Copyright 2021 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -DESCRIPTION="Libraries and tools implementing the tcb password shadowing scheme" -HOMEPAGE="http://www.openwall.com/tcb/" -SRC_URI="https://www.openwall.com/tcb/${P}.tar.gz" -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -IUSE="pam" - -DEPEND=" - sys-libs/libxcrypt:= -" -RDEPEND="${DEPEND}" - -src_prepare() { - sed -i 's;CC =;#&;' "${S}/Make.defs" || die "Failed un-forcing CC" - - if use !pam; then - sed -i '/pam_tcb/d' Makefile \ - || die "Failed disabling pam_tcb" - fi - - default -} - -src_install() { - einstalldocs - emake install DESTDIR="${D}" \ - SLIBDIR=/$(get_libdir) LIBDIR=/usr/$(get_libdir) MANDIR=/usr/share/man -}