1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Userland client/server for kernel network block device"
7 HOMEPAGE="http://nbd.sourceforge.net/"
8 if [[ "${PV}" = 9999 ]] ; then
9 inherit autotools git-r3
10 EGIT_REPO_URI="https://github.com/NetworkBlockDevice/nbd.git"
12 SRC_URI="mirror://sourceforge/nbd/${P}.tar.xz"
13 KEYWORDS="~alpha amd64 arm hppa ~ia64 ppc ppc64 ~sparc x86"
17 IUSE="debug gnutls netlink zlib"
20 >=dev-libs/glib-2.26.0
21 gnutls? ( >=net-libs/gnutls-2.12.0 )
22 netlink? ( >=dev-libs/libnl-3.1 )
23 zlib? ( sys-libs/zlib )
29 if [[ "${PV}" = 9999 ]] ; then
31 app-text/docbook-sgml-dtd:4.5
32 app-text/docbook-sgml-utils
38 if [[ "${PV}" = 9999 ]] ; then
39 emake -C man -f Makefile.am \
45 emake -C systemd -f Makefile.am nbd@.service.sh.in
53 $(use_enable !debug syslog)
55 $(use_enable zlib gznbd)
57 $(use_with netlink libnl)
59 econf "${myeconfargs[@]}"