diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /sys-fs/fscrypt | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'sys-fs/fscrypt')
| -rw-r--r-- | sys-fs/fscrypt/Manifest | 4 | ||||
| -rw-r--r-- | sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch | 44 | ||||
| -rw-r--r-- | sys-fs/fscrypt/files/fscrypt.pam-config | 3 | ||||
| -rw-r--r-- | sys-fs/fscrypt/fscrypt-0.3.4.ebuild | 46 | ||||
| -rw-r--r-- | sys-fs/fscrypt/fscrypt-0.3.6.ebuild | 42 | ||||
| -rw-r--r-- | sys-fs/fscrypt/metadata.xml | 12 |
6 files changed, 151 insertions, 0 deletions
diff --git a/sys-fs/fscrypt/Manifest b/sys-fs/fscrypt/Manifest new file mode 100644 index 000000000000..40231bd69a42 --- /dev/null +++ b/sys-fs/fscrypt/Manifest @@ -0,0 +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/files/0001-Remove-TestLoadSourceDevice.patch b/sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch new file mode 100644 index 000000000000..c019a080eab5 --- /dev/null +++ b/sys-fs/fscrypt/files/0001-Remove-TestLoadSourceDevice.patch @@ -0,0 +1,44 @@ +From 462a36e7b039d5c7e33d95237f6c697fa59775da Mon Sep 17 00:00:00 2001 +From: Florian Schmaus <flo@geekplace.eu> +Date: Sat, 17 Apr 2021 18:15:05 +0200 +Subject: [PATCH] Remove TestLoadSourceDevice + +This test requires /dev/loop0, which may not always be available. +--- + filesystem/mountpoint_test.go | 20 -------------------- + 1 file changed, 20 deletions(-) + +diff --git a/filesystem/mountpoint_test.go b/filesystem/mountpoint_test.go +index 633ff947aaf7..9981db181a13 100644 +--- a/filesystem/mountpoint_test.go ++++ b/filesystem/mountpoint_test.go +@@ -92,26 +92,6 @@ func TestLoadMountInfoBasic(t *testing.T) { + } + } + +-// Test that Mount.Device is set to the mountpoint's source device if +-// applicable, otherwise it is set to the empty string. +-func TestLoadSourceDevice(t *testing.T) { +- var mountinfo = ` +-15 0 7:0 / / rw shared:1 - foo /dev/loop0 rw,data=ordered +-31 15 0:27 / /tmp rw,nosuid,nodev shared:17 - tmpfs tmpfs rw +-` +- beginLoadMountInfoTest() +- defer endLoadMountInfoTest() +- loadMountInfoFromString(mountinfo) +- mnt := mountForDevice("7:0") +- if mnt.Device != "/dev/loop0" { +- t.Error("mnt.Device wasn't set to source device") +- } +- mnt = mountForDevice("0:27") +- if mnt.Device != "" { +- t.Error("mnt.Device wasn't set to empty string for an invalid device") +- } +-} +- + // Test that non-directory mounts are ignored. + func TestNondirectoryMountsIgnored(t *testing.T) { + beginLoadMountInfoTest() +-- +2.30.2 + diff --git a/sys-fs/fscrypt/files/fscrypt.pam-config b/sys-fs/fscrypt/files/fscrypt.pam-config new file mode 100644 index 000000000000..cfcd60286401 --- /dev/null +++ b/sys-fs/fscrypt/files/fscrypt.pam-config @@ -0,0 +1,3 @@ +# Allow fscrypt to check your login passphrase when you create a login protector +# See https://github.com/google/fscrypt/issues/130#issuecomment-533955949 +auth required pam_unix.so 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..811c90ecc47a --- /dev/null +++ b/sys-fs/fscrypt/fscrypt-0.3.4.ebuild @@ -0,0 +1,46 @@ +# 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}" + +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 +} 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..5aa24776b7e9 --- /dev/null +++ b/sys-fs/fscrypt/fscrypt-0.3.6.ebuild @@ -0,0 +1,42 @@ +# Copyright 2020-2026 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 +} diff --git a/sys-fs/fscrypt/metadata.xml b/sys-fs/fscrypt/metadata.xml new file mode 100644 index 000000000000..180f42bf73cf --- /dev/null +++ b/sys-fs/fscrypt/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>flow@gentoo.org</email> + <name>Florian Schmaus</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:google:fscrypt</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
