commit:     0a34c563fe50f96e4c1fc9aaa71251b9fa1e87e3
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  9 19:16:11 2024 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Jun  9 19:25:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a34c563

app-crypt/gocryptfs: new package, add 2.4.0

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-crypt/gocryptfs/Manifest               |  1 +
 app-crypt/gocryptfs/gocryptfs-2.4.0.ebuild | 39 ++++++++++++++++++++++++++++++
 app-crypt/gocryptfs/metadata.xml           | 11 +++++++++
 3 files changed, 51 insertions(+)

diff --git a/app-crypt/gocryptfs/Manifest b/app-crypt/gocryptfs/Manifest
new file mode 100644
index 000000000000..6e4250362ab5
--- /dev/null
+++ b/app-crypt/gocryptfs/Manifest
@@ -0,0 +1 @@
+DIST gocryptfs_v2.4.0_src-deps.tar.gz 2927929 BLAKE2B 
e66e91506c5a7abb5413e8797f786145c436ca760e3c7157590ccb1c8430b2ac240b8ba1fd0ed3401ee4277a2e9ef6b8f3a9b3c52c22bac8e6b27b56350d9eec
 SHA512 
b46d6eee21a0194022a042d6ae2a737f221a0932bb899123438f2cf929ecb50635fcfc90012d6a04928fd4b2856d6e24d19392ce5aa87eea573fb58cf5a5d4e1

diff --git a/app-crypt/gocryptfs/gocryptfs-2.4.0.ebuild 
b/app-crypt/gocryptfs/gocryptfs-2.4.0.ebuild
new file mode 100644
index 000000000000..1097ebdaab4d
--- /dev/null
+++ b/app-crypt/gocryptfs/gocryptfs-2.4.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module
+
+DESCRIPTION="Encrypted overlay filesystem written in Go"
+HOMEPAGE="https://github.com/rfjakob/gocryptfs";
+SRC_URI="https://github.com/rfjakob/gocryptfs/releases/download/v${PV}/${PN}_v${PV}_src-deps.tar.gz";
+S=${WORKDIR}/${PN}_v${PV}_src-deps
+LICENSE="MIT"
+LICENSE+=" Apache-2.0 BSD BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+BDEPEND="virtual/pandoc"
+PROPERTIES="test_privileged"
+RESTRICT="test"
+
+src_prepare() {
+       default
+       sed -e 's:ldd gocryptfs 2> /dev/null:! ldd gocryptfs | grep -q 
"statically linked":' \
+               -i "${S}/build-without-openssl.bash" || die
+}
+
+src_compile() {
+       emake build
+}
+
+src_install() {
+       emake "DESTDIR=${ED}" install
+       dobin contrib/statfs/statfs
+       doman Documentation/*.1
+       dodoc -r README.md Documentation
+       rm -f 
"${ED}"/usr/share/doc/${PF}/Documentation/{.gitignore,gocryptfs.1,gocryptfs-xray.1,statfs.1,MANPAGE-render.bash}
 || die
+}
+
+src_test() {
+       emake test
+}

diff --git a/app-crypt/gocryptfs/metadata.xml b/app-crypt/gocryptfs/metadata.xml
new file mode 100644
index 000000000000..9dddd0e70502
--- /dev/null
+++ b/app-crypt/gocryptfs/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Zac Medico</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">rfjakob/gocryptfs</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to