commit: 3329ca8fd28b4ca651288d7099a9d986b8ebe02b
parent f90db946c1dea2cefbe47f0e83fd91e2ad534cf7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 13 Apr 2021 11:44:27 +0200
sys-apps/tcb: New Package
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/sys-apps/tcb/Manifest b/sys-apps/tcb/Manifest
@@ -0,0 +1 @@
+DIST tcb-1.2.tar.gz 41004 BLAKE2B cb1f5626c3308b0fc7e1e843d2f2eca430446b03b7927dfef77f6a232ebf4826d32e23d8fba35c4950b48e3ad6b89841898ab258d5efbb9ef605f646ba991b58 SHA512 2af84cd15bb6f4e66a690af9709b111bcfd8c1d33842b41f5dc50ed11b50b6fbf17b50830259872834d74137cb56864278dddb31b520b6fb817ef76b5edc5854
diff --git a/sys-apps/tcb/tcb-1.2.ebuild b/sys-apps/tcb/tcb-1.2.ebuild
@@ -0,0 +1,34 @@
+# 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
+}