diff options
author | Alexey Korepanov <kaikaikai@yandex.ru> | 2024-04-23 23:02:06 +0100 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-05-20 11:26:41 -0400 |
commit | b619310e4abb5543c116efd9feac18ad3ff88ae5 (patch) | |
tree | b6a446ea7c6324812efd98f16fabb4ad25f5cb72 /net-fs/s3backer | |
parent | net-vpn/i2pd: version bump 2.52.0 (diff) | |
download | gentoo-b619310e4abb5543c116efd9feac18ad3ff88ae5.tar.gz gentoo-b619310e4abb5543c116efd9feac18ad3ff88ae5.tar.bz2 gentoo-b619310e4abb5543c116efd9feac18ad3ff88ae5.zip |
net-fs/s3backer: version bump 2.1.2
Signed-off-by: Alexey Korepanov <kaikaikai@yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/36390
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-fs/s3backer')
-rw-r--r-- | net-fs/s3backer/Manifest | 1 | ||||
-rw-r--r-- | net-fs/s3backer/metadata.xml | 5 | ||||
-rw-r--r-- | net-fs/s3backer/s3backer-2.1.2.ebuild | 54 |
3 files changed, 60 insertions, 0 deletions
diff --git a/net-fs/s3backer/Manifest b/net-fs/s3backer/Manifest index 2f0d6ca8b1b8..4456927cf5a7 100644 --- a/net-fs/s3backer/Manifest +++ b/net-fs/s3backer/Manifest @@ -1 +1,2 @@ DIST s3backer-1.6.3.tar.gz 129742 BLAKE2B 05f8b94e9b5e6ffd11b20d5945a9705f1830f3f358c2777695d0c5066bb044bd314d65259ecde299a51288908fcd869b8c516b30b0fbf66975b46a021d4d5bd6 SHA512 f7db1d733a0426df22c1b7d9c1150f8dbfedd0ba2e9120bd61026a481ed52a16f7f09e9e4fcd072cb656da0536cf98472f369eec0195a03b3f105fb3c9a8ba99 +DIST s3backer-2.1.2.tar.gz 156281 BLAKE2B 5891dbcecbd08b73d69218894d29ec56323d53ff9b594a853d42d6a621787392061895ae3168d6671b65db1b62cdca26959a122250e8878d740c2d806c9d305f SHA512 58e8bd5909b5f714ead7add9dcfe798d626628519e75f4f4347175c92fdf652e08f6ae00c2d9bf34fa859d46c111b846047ee4e613b94e81b7a7cdfc8e26fd9a diff --git a/net-fs/s3backer/metadata.xml b/net-fs/s3backer/metadata.xml index f18a0fb25a1f..af27462af85c 100644 --- a/net-fs/s3backer/metadata.xml +++ b/net-fs/s3backer/metadata.xml @@ -9,6 +9,11 @@ <email>proxy-maint@gentoo.org</email> <name>Proxy Maintainers</name> </maintainer> + <use> + <flag name="nbd"> + Support export as an nbd device + </flag> + </use> <upstream> <remote-id type="google-code">s3backer</remote-id> <remote-id type="github">archiecobbs/s3backer</remote-id> diff --git a/net-fs/s3backer/s3backer-2.1.2.ebuild b/net-fs/s3backer/s3backer-2.1.2.ebuild new file mode 100644 index 000000000000..edc38736a8af --- /dev/null +++ b/net-fs/s3backer/s3backer-2.1.2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="A filesystem that contains a single file backed by Amazon S3" +HOMEPAGE="https://github.com/archiecobbs/s3backer" +SRC_URI="https://github.com/archiecobbs/s3backer/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="nbd" + +RDEPEND=" + dev-libs/expat + dev-libs/openssl:0= + net-misc/curl + sys-fs/fuse:0 + sys-libs/zlib + nbd? ( sys-block/nbd sys-block/nbdkit ) +" +DEPEND="${RDEPEND} + elibc_musl? ( sys-libs/queue-standalone ) +" +BDEPEND=" + virtual/pkgconfig +" + +src_prepare() { + default + + # s3backer builds support for nbdkit if it finds nbdkit during build, no config is needed. + # yet it will still build support for nbd if USE="-nbd" but nbdkit is installed + + sed -e "/docdir=/s:packages/\$(PACKAGE):${PF}:" \ + -e "/doc_DATA=/d" \ + -i Makefile.am || die + + eautoreconf +} + +src_compile() { + emake CFLAGS="${CFLAGS}" +} + +src_install() { + default + + # skip /run/s3backer-nbd if present + rm -rf "${ED}/run" +} |