From 42e82780761e75f17a5cc96626558a297782f385 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Jun 2023 15:51:39 +0100 Subject: gentoo auto-resync : 10:06:2023 - 15:51:39 --- sys-fs/fscrypt/fscrypt-0.3.4.ebuild | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 sys-fs/fscrypt/fscrypt-0.3.4.ebuild (limited to 'sys-fs/fscrypt/fscrypt-0.3.4.ebuild') diff --git a/sys-fs/fscrypt/fscrypt-0.3.4.ebuild b/sys-fs/fscrypt/fscrypt-0.3.4.ebuild new file mode 100644 index 000000000000..f7c15620c327 --- /dev/null +++ b/sys-fs/fscrypt/fscrypt-0.3.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module pam + +DESCRIPTION="Tool for managing Linux filesystem encryption" +HOMEPAGE="https://github.com/google/fscrypt" +SRC_URI=" + https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~flow/distfiles/${PN}/${P}-deps.tar.xz +" + +# Apache-2.0: fscrypt, google/renameio +# BSD: golang/protobuf, rogpeppe/go-internal, golang/x/* +# BSD-2: pkg/errors +# MIT: BurntSushi/toml, kisielk/gotool, kr/*, urfave/cli, honnef.co/go/tools +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="sys-libs/pam" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/0001-Remove-TestLoadSourceDevice.patch" +) + +src_compile() { + # Set GO_LINK_FLAGS to the empty string, as fscrypt strips the + # binary by default. See bug #783780. + emake GO_LINK_FLAGS="" +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + PREFIX="/usr" \ + PAM_MODULE_DIR="$(getpam_mod_dir)" \ + PAM_CONFIG_DIR= \ + install + einstalldocs + + newpamd "${FILESDIR}/fscrypt.pam-config" fscrypt +} -- cgit v1.2.3