Skip to content

Commit

Permalink
sys-block/nbd: bump to v3.18
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.47, Repoman-2.3.10
  • Loading branch information
Whissi committed Aug 20, 2018
1 parent a483a59 commit 5a94066
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-block/nbd/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST nbd-3.15.3.tar.xz 505856 BLAKE2B 8536b01908eb84733448382dcafe011e2786fe5e1363d6d957f1f8895ff257a35c56cecba3b177a1eb2270cec2a7c00082db7408cb8023aa3f20a22eb28bc295 SHA512 c4cd580272faa6a0564469d188decd2db99a5b9d691dca511eea16154ce6185c38e6f695a05bd18941d42cb9e4bb92e30e9eca70d38dce8054a0785ab16b711a
DIST nbd-3.16.2.tar.xz 504880 BLAKE2B 12579169755f4f57ec295531dc11b88ff412678270cf77cb80b7c76cf3193d115c4602432b7913e58abe417a6e59a13c3ffaee84bd9b4a1f0f34ae104491ce5c SHA512 ebdf42a837aeed7625420958d136c7a98c0b168d80fbfbab4b96cb6510dbc12ec2410716301f68385d69f68329c751aef3266cc74c6e341540e1df5f6c531349
DIST nbd-3.17.tar.xz 511224 BLAKE2B 9289419e6d1c030d37704e1482f6fbdd2cacb8a1d0f5403e307fbef9b307e842a3bb7ee7240a6b31467ced3ecef1f244fbd916138a32521d26848b3fd1fdc42e SHA512 bcbd025d829d407dc3c0b837cbc1c16f673c5f4c0483d5bee83a52b40d528088499860c775e4e77cf47a8ac1d83dcda24df1092d658dd915ed01c638b3ebc57b
DIST nbd-3.18.tar.xz 527436 BLAKE2B 6f87f013ff00b3cb478a038f07a83fba44b41c257a689be498959d90bb44dd39681fdcd005fe8e48f9a79fbe29bfd67d98fc0eb6440e51b1ac3a5de4d002060d SHA512 f9fe221b585c126efa3fb65e2344477a38f2ce42164b04d0dc4681c5a3bfd34d5d3e227454fff24eee9039853eb38a8707ea0aab0337f44906cccf379c185ce8
60 changes: 60 additions & 0 deletions sys-block/nbd/nbd-3.18.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Userland client/server for kernel network block device"
HOMEPAGE="http://nbd.sourceforge.net/"
if [[ "${PV}" = 9999 ]] ; then
inherit autotools git-r3
EGIT_REPO_URI="https://github.com/NetworkBlockDevice/nbd.git"
else
SRC_URI="mirror://sourceforge/nbd/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE="debug gnutls netlink zlib"

RDEPEND="
>=dev-libs/glib-2.26.0
gnutls? ( >=net-libs/gnutls-2.12.0 )
netlink? ( >=dev-libs/libnl-3.1 )
zlib? ( sys-libs/zlib )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"

if [[ "${PV}" = 9999 ]] ; then
DEPEND+="
app-text/docbook-sgml-dtd:4.5
app-text/docbook-sgml-utils
"
fi

src_prepare() {
default
if [[ "${PV}" = 9999 ]] ; then
emake -C man -f Makefile.am \
nbd-server.1.sh.in \
nbd-server.5.sh.in \
nbd-client.8.sh.in \
nbd-trdump.1.sh.in \
nbdtab.5.sh.in
emake -C systemd -f Makefile.am nbd@.service.sh.in
eautoreconf
fi
}

src_configure() {
local myeconfargs=(
--enable-lfs
$(use_enable !debug syslog)
$(use_enable debug)
$(use_enable zlib gznbd)
$(use_with gnutls)
$(use_with netlink libnl)
)
econf "${myeconfargs[@]}"
}

0 comments on commit 5a94066

Please sign in to comment.