diff --git a/sys-fs/gocryptfs/Manifest b/sys-fs/gocryptfs/Manifest index b52ce5f..09dd7c0 100644 --- a/sys-fs/gocryptfs/Manifest +++ b/sys-fs/gocryptfs/Manifest @@ -1,22 +1,23 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +DIST gocryptfs-1.7.1.tar.gz 8439919 BLAKE2B 3122312964a7bfca86920d036b94ecf00258adfef83014a78da96fd39a004d7c1d5f8100b9a2581ba3a4d1de719c4d5c72df1f3f2eaf1b5e571bd2dbfd0048e2 SHA512 7ab22100adee2bc880ffb09f5adafe269dee481d50497ee7a3c8c24405d229f26a22f6cec635230d6bd1753d702f9de08c537f313d02ba46fd5c754be59e2146 DIST gocryptfs-1.7.tar.gz 8232803 BLAKE2B ea89754b03d47be5e6102e7cf90bad1bc25cff7fc364cff6d62f9eaa439a33a96e3ec2315b24082c1a74ff33b3126b0450964f83a0df9025d1bb5d01f1686b42 SHA512 3555d7d505b7859fefd4c74d7df0dd990a5241bb5feebae2b1ce0bc8b9d10d6dc7e3aef527bb45624c56c20a19f931ff78ee9363fd47e21b8d8f5ca847d2cad2 -----BEGIN PGP SIGNATURE----- -iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAl2U8eRfFIAAAAAALgAo +iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAl2+skRfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDcy MERFQ0UyRTUxQUUxNzEzQkQ5NzU5MEJDNURDMjk5OEFBRDJCMjEACgkQvF3CmYqt -KyET5A/+MHyk+Rol3AHEje9QlJoUooRW8kwNub+bgSj3o7/5upTImEeKdHxET/lh -LfqV8YLzHgmwZnpOpqLwwJZJQnf/xY9f5YZr+5cM+AYxKsYRpq4ACgNDze/pJVMF -xr2FyzvI/C3w8vQU3cz93npuhj6bshMAHRfxU2GvoZMA8MA755li+UmRJSIvdh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sLZMbbeT0NnsqA8pAb8qIa821qkPHVEkkwJ8FlXr +1r/B5aorMm4ecQdW8UpaWM5ptoCwDGHH8rUPL8RudCR4qESNsPrVbjhuSMn0TZWu +djgkNeXWzeK1nq4DVevPSimCkceHZNb7iAvEbhKJ4HKleZemhPE= +=4kXO -----END PGP SIGNATURE----- diff --git a/sys-fs/gocryptfs/gocryptfs-1.7.1.ebuild b/sys-fs/gocryptfs/gocryptfs-1.7.1.ebuild new file mode 100644 index 0000000..c952b1c --- /dev/null +++ b/sys-fs/gocryptfs/gocryptfs-1.7.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Note: For distfiles verification see https://nuetzlich.net/gocryptfs/releases. + +EAPI=7 + +EGO_PN="github.com/rfjakob/${PN}" + +inherit golang-vcs-snapshot + +DESCRIPTION="Encrypted overlay filesystem written in Go" +HOMEPAGE="https://nuetzlich.net/gocryptfs" +SRC_URI="https://${EGO_PN}/releases/download/v${PV}/${PN}_v${PV}_src-deps.tar.gz -> ${P}.tar.gz" + +# in detail: +# BSD vendor/golang.org/x/sys/LICENSE +# BSD vendor/golang.org/x/crypto/LICENSE +# BSD vendor/golang.org/x/sync/LICENSE +# BSD: vendor/github.com/hanwen/go-fuse/LICENSE +# BSD-2: vendor/github.com/pkg/xattr/LICENSE +# Apache-2.0: vendor/github.com/rfjakob/eme/LICENSE +LICENSE="Apache-2.0 BSD BSD-2 MIT" + +SLOT="0" +KEYWORDS="~amd64" + +IUSE="debug libressl +man pie +ssl" + +BDEPEND="man? ( dev-go/go-md2man )" +RDEPEND=" + sys-fs/fuse + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) +" + +QA_PRESTRIPPED="usr/bin/.*" + +G="${WORKDIR}/${P}" +S="${G}/src/${EGO_PN}" + +src_compile() { + export GOPATH="${G}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + local myldflags=( + "$(usex !debug '-s -w' '')" + -X "main.GitVersion=v${PV}" + -X "'main.GitVersionFuse=[vendored]'" + -X "main.BuildDate=$(date -u '+%Y-%m-%d')" + ) + local mygoargs=( + -v -work -x + "-buildmode=$(usex pie pie exe)" + "-asmflags=all=-trimpath=${S}" + "-gcflags=all=-trimpath=${S}" + -ldflags "${myldflags[*]}" + -tags "$(usex !ssl 'without_openssl' 'none')" + ) + go build "${mygoargs[@]}" || die + use man && go-md2man -in Documentation/MANPAGE.md -out gocryptfs.1 +} + +src_install() { + dobin gocryptfs + use debug && dostrip -x /usr/bin/gocryptfs + use man && doman gocryptfs.1 +}