commit:     c67faa602c59f057953c182ab13437df5ab72209
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 25 09:32:05 2025 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Nov 25 09:32:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c67faa60

sys-fs/fscrypt: add 0.3.6

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-fs/fscrypt/Manifest             |  2 ++
 sys-fs/fscrypt/fscrypt-0.3.6.ebuild | 42 +++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/sys-fs/fscrypt/Manifest b/sys-fs/fscrypt/Manifest
index e325d5a9e0bd..40231bd69a42 100644
--- a/sys-fs/fscrypt/Manifest
+++ b/sys-fs/fscrypt/Manifest
@@ -1,2 +1,4 @@
 DIST fscrypt-0.3.4-deps.tar.xz 29862020 BLAKE2B 
86c68888687e18bc46b791bcba4f5d08d91605d9e0397bdc94347f76c549ec9afd3f1b5030812a4eb0339a4cb6882e4db31aeb3beb543c53e7949db80adb6ceb
 SHA512 
a406b3f4153dea04cac66bce3e0b29ec162f8dc57c3460f03489e830c43b968288d956079e22277760283bd96f7e6a8120b7bde765c4c964c8cb999871f1c04a
 DIST fscrypt-0.3.4.tar.gz 175778 BLAKE2B 
b8f548690fb908dd5bfbab45d70e77d773d3d46aeb89cb0f3bb397af97058f2fcf4d4d6694c66b2cefe3d5db4a0b11e9ee1a19044700183160d0d1a2917054a0
 SHA512 
e99ade63092281f3db948564458ddd259420bb7295c6ad896fb5e22697405aa471725c929cf98631e91c05615141c9715bce3eb1b37cbe7c07a7c7c248117b06
+DIST fscrypt-0.3.6-deps.tar.xz 16568204 BLAKE2B 
c3ff9730ddc0d2ac3474b760a9d508b3c4e62e3cab6cbd15f67aff97f907a1addbffb39f4ba1465043c5c30f5911f442cde8d843cbc25d043d6a1cd85d125bc5
 SHA512 
aa310871aeb98360912e03b303eb19995690898c11de076a4e88da454c1d95bcde74e7c0986dc5d01a2f2ee858360f36b171b13dccb715530507404698b63208
+DIST fscrypt-0.3.6.tar.gz 174244 BLAKE2B 
c6b5ca3c5fb614eb2c7d6eefbbdb04dcc1956ab57bc4204f22e5aacea02511fffaef8d45829210e16f1503a849767cfb2759f04de57b3c2b409de1c8b937f810
 SHA512 
ddabe9f9387faf4633de36eb778f1bb7986bc54db6bfa9f60521bf7faa69c7ad191e4a8eff30ea3be0742d9a4372270dd20e8018c6464806d2332636ebd7e110

diff --git a/sys-fs/fscrypt/fscrypt-0.3.6.ebuild 
b/sys-fs/fscrypt/fscrypt-0.3.6.ebuild
new file mode 100644
index 000000000000..d09820d75896
--- /dev/null
+++ b/sys-fs/fscrypt/fscrypt-0.3.6.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2020-2025 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 ~arm64 ~x86"
+
+DEPEND="sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+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
+}

Reply via email to