mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Update done using: ``` git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Plus reverts in sys-libs/minizip-ng and sys-libs/zlib-ng. Signed-off-by: Michał Górny <mgorny@gentoo.org>
83 lines
1.6 KiB
Bash
83 lines
1.6 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit systemd
|
|
|
|
DESCRIPTION="Userland client/server for kernel network block device"
|
|
HOMEPAGE="https://nbd.sourceforge.io/"
|
|
|
|
if [[ ${PV} == 9999 ]] ; then
|
|
inherit autotools git-r3
|
|
EGIT_REPO_URI="https://github.com/NetworkBlockDevice/nbd.git"
|
|
else
|
|
SRC_URI="https://github.com/NetworkBlockDevice/nbd/releases/download/${P}/${P}.tar.xz"
|
|
SRC_URI+=" https://downloads.sourceforge.net/nbd/${P}.tar.xz"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
|
fi
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
IUSE="debug gnutls netlink zlib"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/glib-2.32.0
|
|
gnutls? ( >=net-libs/gnutls-2.12.0 )
|
|
netlink? ( >=dev-libs/libnl-3.1 )
|
|
zlib? ( virtual/zlib )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
sys-devel/bison
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
if [[ ${PV} == 9999 ]] ; then
|
|
BDEPEND+="
|
|
app-text/docbook-sgml-dtd:4.5
|
|
app-text/docbook-sgml-utils
|
|
dev-build/autoconf-archive
|
|
"
|
|
fi
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
if [[ ${PV} == 9999 ]] ; then
|
|
emake -C man -f mans.mk \
|
|
nbd-server.1.sh.in \
|
|
nbd-server.5.sh.in \
|
|
nbd-client.8.sh.in \
|
|
nbd-trdump.1.sh.in \
|
|
nbd-trplay.1.sh.in \
|
|
nbdtab.5.sh.in
|
|
|
|
emake -C systemd -f Makefile.am nbd@.service.sh.in
|
|
|
|
eautoreconf
|
|
fi
|
|
}
|
|
|
|
src_configure() {
|
|
# Needs Bison
|
|
unset YACC
|
|
|
|
local myeconfargs=(
|
|
--enable-lfs
|
|
# https://github.com/NetworkBlockDevice/nbd/issues/149
|
|
--disable-gznbd
|
|
$(use_enable !debug syslog)
|
|
$(use_enable debug)
|
|
$(use_with gnutls)
|
|
$(use_with netlink libnl)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
systemd_dounit systemd/nbd@.service
|
|
}
|