mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
sys-block/nbdkit: drop 1.32.4, 1.36.1, 1.42.0, 1.44.1
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/45382 Closes: https://github.com/gentoo/gentoo/pull/45382 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
This commit is contained in:
committed by
Arsen Arsenović
parent
d347172b35
commit
fcbf8cfbb7
@@ -1,6 +1,2 @@
|
||||
DIST nbdkit-1.32.4.tar.gz 2342420 BLAKE2B 3ea6692a534548707bc488560b0f0bd0ddeb0daa4b2432da5de18a9a735408370c61b8c0a30d7d4ed6c915eb118948d2462ff4565036bec8a77c2c2fb712f4da SHA512 0eb1f0f492ce3558fba8d472b26f7ca3db7beeba411c98e7e06b55c5456399be56f6b4cd4adb54567f744f8e07986af9f676a983da052d174ce2e3c28109dbc5
|
||||
DIST nbdkit-1.36.1.tar.gz 2400838 BLAKE2B afbfbda18122b17cbcdcc5b3a04ab37b7dffb139d084b196ef45e33717f376af61189beb63b2541444eaae0ed860b752c20cfe9cf27bf06bfb04bba1b5ce60c8 SHA512 ca0e6e6729fb6f43a9717a3815dfb8ff54a2f182ef079e72b0e5e1b018c55f2205be52a10abc0b0a2243d0737f27b1ccf67c0d9586135454a460d39dad79f042
|
||||
DIST nbdkit-1.42.0.tar.gz 2591226 BLAKE2B ee92187d3697c45289f0f1872bd39bce04c64c88b7c8e0551588db704062c699d2996ee729b50a526527107e899e83c09871990ef080416c56f18d9e65ab3a19 SHA512 c8360fc2d9e6806ab241dcd61da82f52a881dd394d2e6c8c5372d4920f0751fe20dfe9bf45ff35c34cd1e12fd35d2b7dcf17374387805ff6cdec599c543c6bdc
|
||||
DIST nbdkit-1.44.1.tar.gz 2648353 BLAKE2B 5c930a325669c20142e9a4f11d5d115791c1d6f75fb4b9c8e2994223eb7b620a43903b9e8608de67ec490a832207a0270415af36865f0db2a63db12187666a93 SHA512 150a31ca7f64b76a4e4cc90d077e88531458f2766c0bb1f6f1ae23176d5c55a2e4dab61be58bd92b166e67fe70b67c9458a04d29978cbb1b89a6fa8ebca4617d
|
||||
DIST nbdkit-1.44.3.tar.gz 2656054 BLAKE2B 9c63ac0a70e1398789609d68b854ddaea3ce24fb5335f6378833c72903d03a10446418f68282d065bc0233244bb170103a142f8e8508d6f7f0dc0b499feb7b03 SHA512 5809c11dd5bf73efd0ce92076647ece61af856f01f6a5e61ac9cddcd50de90e9d8b51ef1d91adfda075d74a8236972457ea3efa7ff1ea5ee7f2f11ba943c9ed7
|
||||
DIST nbdkit-1.46.0.tar.gz 2739966 BLAKE2B 38a2c98a90b4bfaa594b6bbbc0db59971290c6f5aa4ca7b8c317c910bfaa6b2ea7cad9c6e4c37c4288d82e03c1854c7e23d70f4ef1d4460d20111dc2ffa446d8 SHA512 ed225bdbd5c1e96b40ed0493f72173853cedafc9ada2296e6418021d4e3f2e6732dbbb764d24baf6263f4b07c3868b05207518d34667fe68c7324360fc3f5254
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
From acf0b5e279d7a5154c32cac5e0ca820685bd01de Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me>
|
||||
Date: Sun, 27 Nov 2022 16:08:38 +0100
|
||||
Subject: [PATCH] configure: Add --with s for automagic dependencies
|
||||
|
||||
---
|
||||
Upstreamed after release, see
|
||||
https://gitlab.com/nbdkit/nbdkit/-/merge_requests/18/pipelines
|
||||
|
||||
configure.ac | 109 +++++++++++++++++++++++++++++++++++----------------
|
||||
1 file changed, 76 insertions(+), 33 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index c379edfb..5a64ed88 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -604,22 +604,40 @@ AC_MSG_RESULT([$is_glibc_234])
|
||||
AM_CONDITIONAL([HAVE_GLIBC_234], [test "x$is_glibc_234" = "xyes"])
|
||||
|
||||
dnl Check for SELinux socket labelling (optional).
|
||||
-PKG_CHECK_MODULES([LIBSELINUX], [libselinux], [
|
||||
- AC_SUBST([LIBSELINUX_CFLAGS])
|
||||
- AC_SUBST([LIBSELINUX_LIBS])
|
||||
- AC_DEFINE([HAVE_LIBSELINUX],[1],[libselinux found at compile time.])
|
||||
-], [
|
||||
- AC_MSG_WARN([libselinux not found, SELinux socket labelling support will be disabled.])
|
||||
+AC_ARG_WITH([selinux],
|
||||
+ AS_HELP_STRING([--without-selinux], [disable SELinux support, used for socket labelling @<:@default=check@:>@]))
|
||||
+AS_IF([test "x$with_selinux" != xno], [
|
||||
+ PKG_CHECK_MODULES([LIBSELINUX], [libselinux], [
|
||||
+ AC_SUBST([LIBSELINUX_CFLAGS])
|
||||
+ AC_SUBST([LIBSELINUX_LIBS])
|
||||
+ AC_DEFINE([HAVE_LIBSELINUX],[1],[libselinux found at compile time.])
|
||||
+ ], [AC_MSG_WARN([libselinux not found, sockets will not be labeled.])])
|
||||
+])
|
||||
+
|
||||
+AS_IF([test "x$with_selinux" = xyes && test "x$LIBSELINUX_LIBS" = x], [
|
||||
+ AC_MSG_ERROR([selinux requested but not found])
|
||||
])
|
||||
|
||||
dnl Check for GnuTLS (optional, for TLS support).
|
||||
-PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.3.0], [
|
||||
- AC_SUBST([GNUTLS_CFLAGS])
|
||||
- AC_SUBST([GNUTLS_LIBS])
|
||||
- AC_DEFINE([HAVE_GNUTLS],[1],[gnutls found at compile time.])
|
||||
-], [
|
||||
- AC_MSG_WARN([gnutls not found or < 3.3.0, TLS support will be disabled.])
|
||||
+AC_ARG_WITH([gnutls],
|
||||
+ [AS_HELP_STRING([--without-gnutls], [disable TLS support via GnuTLS @<:@default=check@:>@])],
|
||||
+ [],
|
||||
+ [: m4_divert_text([DEFAULTS], [with_manpages=check])])
|
||||
+
|
||||
+AS_IF([test "x$with_gnutls" != xno], [
|
||||
+ PKG_CHECK_MODULES([GNUTLS], [gnutls >= 3.3.0], [
|
||||
+ AC_SUBST([GNUTLS_CFLAGS])
|
||||
+ AC_SUBST([GNUTLS_LIBS])
|
||||
+ AC_DEFINE([HAVE_GNUTLS],[1],[gnutls found at compile time.])
|
||||
+ ], [
|
||||
+ AC_MSG_WARN([gnutls not found or < 3.3.0, TLS support will be disabled.])
|
||||
+ ])
|
||||
])
|
||||
+
|
||||
+AS_IF([test "x$with_gnutls" = xyes && test x"$GNUTLS_LIBS" = x], [
|
||||
+ AC_MSG_ERROR([gnutls requested but not found])
|
||||
+])
|
||||
+
|
||||
AM_CONDITIONAL([HAVE_GNUTLS], [test "x$GNUTLS_LIBS" != "x"])
|
||||
|
||||
AS_IF([test "x$GNUTLS_LIBS" != "x"],[
|
||||
@@ -733,34 +751,59 @@ AM_CONDITIONAL([USE_LINKER_SCRIPT],
|
||||
[test "x$use_linker_script" = "xyes"])
|
||||
|
||||
dnl Bash completion.
|
||||
-PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0], [
|
||||
- bash_completion=yes
|
||||
- AC_MSG_CHECKING([for bash-completions directory])
|
||||
- m4_ifdef([PKG_CHECK_VAR],[
|
||||
- PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir])
|
||||
+AC_ARG_WITH([bash-completions],
|
||||
+ [AS_HELP_STRING([--without-bash-completions], [disable installing bash completions @<:@default=check@:>@])],
|
||||
+ [],
|
||||
+ [: m4_divert_text([DEFAULTS], [with_readline=check])])
|
||||
+
|
||||
+AS_IF([test "x$with_bash_completions" != xno], [
|
||||
+ PKG_CHECK_MODULES([BASH_COMPLETION], [bash-completion >= 2.0], [
|
||||
+ bash_completion=yes
|
||||
+ AC_MSG_CHECKING([for bash-completions directory])
|
||||
+ m4_ifdef([PKG_CHECK_VAR],[
|
||||
+ PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir])
|
||||
+ ])
|
||||
+ AS_IF([test -z "$bashcompdir"], [
|
||||
+ bashcompdir="${sysconfdir}/bash_completion.d"
|
||||
+ ])
|
||||
+ AC_MSG_RESULT([$bashcompdir])
|
||||
+ AC_SUBST([bashcompdir])
|
||||
+ ],[
|
||||
+ bash_completion=no
|
||||
+ AC_MSG_WARN([bash-completion not installed])
|
||||
])
|
||||
- AS_IF([test -z "$bashcompdir"], [
|
||||
- bashcompdir="${sysconfdir}/bash_completion.d"
|
||||
- ])
|
||||
- AC_MSG_RESULT([$bashcompdir])
|
||||
- AC_SUBST([bashcompdir])
|
||||
-],[
|
||||
- bash_completion=no
|
||||
- AC_MSG_WARN([bash-completion not installed])
|
||||
])
|
||||
+
|
||||
+AS_IF([test "x$bash_completion" = xno && test "x$with_bash_completions" = xyes], [
|
||||
+ AC_MSG_ERROR([bash-completions requested but required packages not found])
|
||||
+])
|
||||
+
|
||||
AM_CONDITIONAL([HAVE_BASH_COMPLETION],[test "x$bash_completion" = "xyes"])
|
||||
|
||||
dnl Check we have enough to run podwrapper.
|
||||
-AC_CHECK_PROG([PERL],[perl],[perl],[no])
|
||||
-AS_IF([test "x$PERL" != "xno"],[
|
||||
- AC_MSG_CHECKING([if we have perl Pod::Man and Pod::Simple])
|
||||
- AS_IF([$PERL -MPod::Man -MPod::Simple -e 1 >&AS_MESSAGE_LOG_FD 2>&1],[
|
||||
- enable_pod=yes
|
||||
- ],[
|
||||
- enable_pod=no
|
||||
+
|
||||
+AC_ARG_WITH([manpages],
|
||||
+ [AS_HELP_STRING([--without-manpages], [Do not build man pages @<:@default=check@:>@])],
|
||||
+ [],
|
||||
+ [: m4_divert_text([DEFAULTS], [with_manpages=check])])
|
||||
+
|
||||
+enable_pod=no
|
||||
+AC_CHECK_PROGS([PERL], [perl], [])
|
||||
+
|
||||
+AS_IF([test "x$enable_manpages" != xno], [
|
||||
+ AS_IF([test "x$PERL" != "x"],[
|
||||
+ AC_MSG_CHECKING([if we have perl Pod::Man and Pod::Simple])
|
||||
+ AS_IF([$PERL -MPod::Man -MPod::Simple -e 1 >&AS_MESSAGE_LOG_FD 2>&1],[
|
||||
+ enable_pod=yes
|
||||
+ ])
|
||||
+ AC_MSG_RESULT([$enable_pod])
|
||||
])
|
||||
- AC_MSG_RESULT([$enable_pod])
|
||||
])
|
||||
+
|
||||
+AS_IF([test "x$enable_pod" = xno && test "x$enable_manpages" = xyes], [
|
||||
+ AC_MSG_ERROR([man-pages requested but required packages not found])
|
||||
+])
|
||||
+
|
||||
AM_CONDITIONAL([HAVE_POD],
|
||||
[test "x$PERL" != "xno" && test "x$enable_pod" = "xyes"])
|
||||
|
||||
--
|
||||
2.38.1
|
||||
|
||||
@@ -1,116 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools optfeature
|
||||
|
||||
DESCRIPTION="NBD server with stable plugin ABI and permissive license"
|
||||
HOMEPAGE="https://gitlab.com/nbdkit/nbdkit"
|
||||
SRC_URI="https://download.libguestfs.org/nbdkit/$(ver_cut 1-2)-stable/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~sparc ~x86"
|
||||
IUSE="curl ext2 nbd gnutls libguestfs libssh libvirt lzma selinux torrent valgrind zlib zstd"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
selinux? ( sys-libs/libselinux )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
curl? ( net-misc/curl )
|
||||
libssh? ( net-libs/libssh:= )
|
||||
libvirt? ( app-emulation/libvirt:= )
|
||||
zlib? ( virtual/zlib:= )
|
||||
nbd? ( sys-libs/libnbd )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
libguestfs? ( app-emulation/libguestfs:= )
|
||||
ext2? ( sys-fs/e2fsprogs )
|
||||
torrent? ( net-libs/libtorrent-rasterbar:= )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
valgrind? ( dev-debug/valgrind )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-automagics.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# TODO(arsen): This test fails for some reason.
|
||||
cat <<-HACK > tests/test-file-extents.sh || die
|
||||
#!/bin/sh
|
||||
echo Gentoo: This test is skipped
|
||||
exit 77
|
||||
HACK
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-extra=Gentoo
|
||||
|
||||
--with-iconv
|
||||
--with-manpages
|
||||
|
||||
$(use_with selinux)
|
||||
$(use_with gnutls)
|
||||
$(use_with curl)
|
||||
$(use_with libvirt)
|
||||
$(use_with zlib)
|
||||
$(use_with nbd libnbd)
|
||||
$(use_with lzma liblzma)
|
||||
$(use_with zstd libzstd)
|
||||
$(use_with libguestfs)
|
||||
$(use_with ext2)
|
||||
$(use_enable torrent)
|
||||
$(use_enable valgrind)
|
||||
|
||||
--disable-linuxdisk # Not in Gentoo.
|
||||
--disable-libfuzzer # Should not be used normally according to upstream
|
||||
|
||||
# TODO(arsen): Bindings left out
|
||||
--disable-perl
|
||||
--disable-python
|
||||
--disable-ocaml
|
||||
--disable-rust
|
||||
--disable-ruby
|
||||
--disable-tcl
|
||||
--disable-lua
|
||||
--disable-golang
|
||||
|
||||
# This just enabled a few code paths with no extra library
|
||||
# dependencies, but it does have an extra xorriso runtime
|
||||
# dependency. Seeing as it's optional, and it conflates BDEPEND
|
||||
# and RDEPEND; I think it's okay to just specify that it uses
|
||||
# XORRISO installed as xorriso. Maybe the user should be able
|
||||
# to override this in the future if they prefer one of the other
|
||||
# ISOPROGs?
|
||||
--with-iso
|
||||
ac_cv_prog_XORRISO=xorriso
|
||||
|
||||
# Involves proprietary code and a dlopen mess, see
|
||||
# plugins/vddk/README.VDDK.
|
||||
--disable-vddk
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "virtual ISO plugin via xorriso" dev-libs/libisoburn
|
||||
}
|
||||
@@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools optfeature bash-completion-r1
|
||||
|
||||
DESCRIPTION="NBD server with stable plugin ABI and permissive license"
|
||||
HOMEPAGE="https://gitlab.com/nbdkit/nbdkit"
|
||||
SRC_URI="https://download.libguestfs.org/nbdkit/$(ver_cut 1-2)-stable/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc64 ~sparc ~x86"
|
||||
IUSE="
|
||||
curl ext2 nbd gnutls libguestfs libssh libvirt lzma selinux torrent
|
||||
valgrind zlib zlib-ng zstd
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
selinux? ( sys-libs/libselinux )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
curl? ( net-misc/curl )
|
||||
libssh? ( net-libs/libssh:= )
|
||||
libvirt? ( app-emulation/libvirt:= )
|
||||
zlib? ( virtual/zlib:= )
|
||||
zlib-ng? ( sys-libs/zlib-ng )
|
||||
nbd? ( sys-libs/libnbd )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
libguestfs? ( app-emulation/libguestfs:= )
|
||||
ext2? ( sys-fs/e2fsprogs )
|
||||
torrent? ( net-libs/libtorrent-rasterbar:= )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
valgrind? ( dev-debug/valgrind )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# TODO(arsen): This test fails for some reason.
|
||||
cat <<-HACK > tests/test-file-extents.sh || die
|
||||
#!/bin/sh
|
||||
echo Gentoo: This test is skipped
|
||||
exit 77
|
||||
HACK
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-extra=Gentoo
|
||||
|
||||
--with-iconv
|
||||
--with-manpages
|
||||
|
||||
$(use_with selinux)
|
||||
$(use_with gnutls)
|
||||
$(use_with curl)
|
||||
$(use_with libvirt)
|
||||
$(use_with zlib)
|
||||
$(use_with zlib-ng)
|
||||
$(use_with nbd libnbd)
|
||||
$(use_with lzma liblzma)
|
||||
$(use_with zstd libzstd)
|
||||
$(use_with libguestfs)
|
||||
$(use_with ext2)
|
||||
$(use_enable torrent)
|
||||
$(use_enable valgrind)
|
||||
|
||||
--disable-linuxdisk # Not in Gentoo.
|
||||
--disable-libfuzzer # Should not be used normally according to upstream
|
||||
--without-libblkio # Not in Gentoo.
|
||||
--without-bash-completions # Handled manually.
|
||||
|
||||
# TODO(arsen): Bindings left out
|
||||
--disable-perl
|
||||
--disable-python
|
||||
--disable-ocaml
|
||||
--disable-rust
|
||||
--disable-ruby
|
||||
--disable-tcl
|
||||
--disable-lua
|
||||
--disable-golang
|
||||
|
||||
# This just enabled a few code paths with no extra library
|
||||
# dependencies, but it does have an extra xorriso runtime
|
||||
# dependency. Seeing as it's optional, and it conflates BDEPEND
|
||||
# and RDEPEND; I think it's okay to just specify that it uses
|
||||
# XORRISO installed as xorriso. Maybe the user should be able
|
||||
# to override this in the future if they prefer one of the other
|
||||
# ISOPROGs?
|
||||
--with-iso
|
||||
ac_cv_prog_XORRISO=xorriso
|
||||
|
||||
# Involves proprietary code and a dlopen mess, see
|
||||
# plugins/vddk/README.VDDK.
|
||||
--disable-vddk
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
dobashcomp bash-completion/nbdkit
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "virtual ISO plugin via xorriso" dev-libs/libisoburn
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit autotools bash-completion-r1 optfeature python-single-r1
|
||||
|
||||
DESCRIPTION="NBD server with stable plugin ABI and permissive license"
|
||||
HOMEPAGE="https://gitlab.com/nbdkit/nbdkit"
|
||||
SRC_URI="https://download.libguestfs.org/nbdkit/$(ver_cut 1-2)-stable/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~sparc ~x86"
|
||||
IUSE="
|
||||
curl ext2 nbd gnutls libguestfs libssh libvirt lzma selinux python
|
||||
torrent valgrind zlib zlib-ng zstd
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
selinux? ( sys-libs/libselinux )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
curl? ( net-misc/curl )
|
||||
libssh? ( net-libs/libssh:= )
|
||||
libvirt? ( app-emulation/libvirt:= )
|
||||
zlib? ( virtual/zlib:= )
|
||||
zlib-ng? ( sys-libs/zlib-ng )
|
||||
nbd? ( sys-libs/libnbd )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
libguestfs? ( app-emulation/libguestfs:= )
|
||||
ext2? ( sys-fs/e2fsprogs )
|
||||
torrent? ( net-libs/libtorrent-rasterbar:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
valgrind? ( dev-debug/valgrind )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# TODO(arsen): This test fails for some reason.
|
||||
cat <<-HACK > tests/test-file-extents.sh || die
|
||||
#!/bin/sh
|
||||
echo Gentoo: This test is skipped
|
||||
exit 77
|
||||
HACK
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-extra=Gentoo
|
||||
|
||||
--with-iconv
|
||||
--with-manpages
|
||||
|
||||
$(use_with selinux)
|
||||
$(use_with gnutls)
|
||||
$(use_with curl)
|
||||
$(use_with libvirt)
|
||||
$(use_with zlib)
|
||||
$(use_with zlib-ng)
|
||||
$(use_with nbd libnbd)
|
||||
$(use_with lzma liblzma)
|
||||
$(use_with zstd libzstd)
|
||||
$(use_with libguestfs)
|
||||
$(use_with ext2)
|
||||
$(use_with libssh ssh)
|
||||
$(use_enable torrent)
|
||||
$(use_enable valgrind)
|
||||
|
||||
--disable-linuxdisk # Not in Gentoo.
|
||||
--disable-libfuzzer # Should not be used normally according to upstream
|
||||
--without-libblkio # Not in Gentoo.
|
||||
--without-bash-completions # Handled manually.
|
||||
|
||||
# TODO(arsen): Bindings left out
|
||||
--disable-perl
|
||||
# salahx: Add python support
|
||||
$(use_enable python)
|
||||
--disable-ocaml
|
||||
--disable-rust
|
||||
--disable-tcl
|
||||
--disable-lua
|
||||
--disable-golang
|
||||
|
||||
# This just enabled a few code paths with no extra library
|
||||
# dependencies, but it does have an extra xorriso runtime
|
||||
# dependency. Seeing as it's optional, and it conflates BDEPEND
|
||||
# and RDEPEND; I think it's okay to just specify that it uses
|
||||
# XORRISO installed as xorriso. Maybe the user should be able
|
||||
# to override this in the future if they prefer one of the other
|
||||
# ISOPROGs?
|
||||
--with-iso
|
||||
ac_cv_prog_XORRISO=xorriso
|
||||
|
||||
# Involves proprietary code and a dlopen mess, see
|
||||
# plugins/vddk/README.VDDK.
|
||||
--disable-vddk
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
dobashcomp bash-completion/nbdkit
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "virtual ISO plugin via xorriso" dev-libs/libisoburn
|
||||
if use python; then
|
||||
optfeature "Amazon S3 support" dev-python/boto3
|
||||
fi
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..14} )
|
||||
|
||||
inherit autotools bash-completion-r1 optfeature python-single-r1
|
||||
|
||||
DESCRIPTION="NBD server with stable plugin ABI and permissive license"
|
||||
HOMEPAGE="https://gitlab.com/nbdkit/nbdkit"
|
||||
SRC_URI="https://download.libguestfs.org/nbdkit/$(ver_cut 1-2)-stable/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~sparc ~x86"
|
||||
IUSE="
|
||||
curl ext2 nbd gnutls libguestfs libssh libvirt lzma selinux python
|
||||
torrent valgrind zlib zlib-ng zstd
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
selinux? ( sys-libs/libselinux )
|
||||
gnutls? ( net-libs/gnutls:= )
|
||||
curl? ( net-misc/curl )
|
||||
libssh? ( net-libs/libssh:= )
|
||||
libvirt? ( app-emulation/libvirt:= )
|
||||
zlib? ( virtual/zlib:= )
|
||||
zlib-ng? ( sys-libs/zlib-ng )
|
||||
nbd? ( sys-libs/libnbd )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zstd? ( app-arch/zstd:= )
|
||||
libguestfs? ( app-emulation/libguestfs:= )
|
||||
ext2? ( sys-fs/e2fsprogs )
|
||||
torrent? ( net-libs/libtorrent-rasterbar:= )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
valgrind? ( dev-debug/valgrind )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-lang/perl
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# TODO(arsen): This test fails for some reason.
|
||||
cat <<-HACK > tests/test-file-extents.sh || die
|
||||
#!/bin/sh
|
||||
echo Gentoo: This test is skipped
|
||||
exit 77
|
||||
HACK
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--with-extra=Gentoo
|
||||
|
||||
--with-iconv
|
||||
--with-manpages
|
||||
|
||||
$(use_with selinux)
|
||||
$(use_with gnutls)
|
||||
$(use_with curl)
|
||||
$(use_with libvirt)
|
||||
$(use_with zlib)
|
||||
$(use_with zlib-ng)
|
||||
$(use_with nbd libnbd)
|
||||
$(use_with lzma liblzma)
|
||||
$(use_with zstd libzstd)
|
||||
$(use_with libguestfs)
|
||||
$(use_with ext2)
|
||||
$(use_with libssh ssh)
|
||||
$(use_enable torrent)
|
||||
$(use_enable valgrind)
|
||||
|
||||
--disable-linuxdisk # Not in Gentoo.
|
||||
--disable-libfuzzer # Should not be used normally according to upstream
|
||||
--without-libblkio # Not in Gentoo.
|
||||
--without-bash-completions # Handled manually.
|
||||
|
||||
# TODO(arsen): Bindings left out
|
||||
--disable-perl
|
||||
# salahx: Add python support
|
||||
$(use_enable python)
|
||||
--disable-ocaml
|
||||
--disable-rust
|
||||
--disable-tcl
|
||||
--disable-lua
|
||||
--disable-golang
|
||||
|
||||
# This just enabled a few code paths with no extra library
|
||||
# dependencies, but it does have an extra xorriso runtime
|
||||
# dependency. Seeing as it's optional, and it conflates BDEPEND
|
||||
# and RDEPEND; I think it's okay to just specify that it uses
|
||||
# XORRISO installed as xorriso. Maybe the user should be able
|
||||
# to override this in the future if they prefer one of the other
|
||||
# ISOPROGs?
|
||||
--with-iso
|
||||
ac_cv_prog_XORRISO=xorriso
|
||||
|
||||
# Involves proprietary code and a dlopen mess, see
|
||||
# plugins/vddk/README.VDDK.
|
||||
--disable-vddk
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
dobashcomp bash-completion/nbdkit
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "virtual ISO plugin via xorriso" dev-libs/libisoburn
|
||||
if use python; then
|
||||
optfeature "Amazon S3 support" dev-python/boto3
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user