Package request: xnbd
Hi,
qemu-nbd is not sufficient for serious NBD-server tasks.
xnbd-server should be great (https://bitbucket.org/hirofuchi/xnbd/wiki/Home) as it permits live migration of NBD services and has excellent reputation.
I tried do prepare it myself but I run in some compilation problem.
After struggling with it for a couple of days, I gave up because it’s
too low level stuff for my expertize :(
By the way errors did change after latest edge release but are still at
the same line of code…
I also had to hack the $CHOST variable as the configure scripts doesn’t
want CHOST=x86_64-alpine-linux-musl but is happy with CHOST=x86_64.
Here is my APKBUILD draft
# Contributor: Jean-Charles de Longueville <jch@hellea.eu>
# Maintainer:
pkgname=xnbd
pkgver=0.3.0
pkgrel=0
pkgdesc="xNBD is yet another NBD (Network Block Device) server program"
url="https://bitbucket.org/hirofuchi/xnbd/wiki/Home"
arch="all"
license="GPLv2"
depends="glib"
depends_dev="glib-dev"
makedepends="$depends_dev make automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://bitbucket.org/hirofuchi/xnbd/downloads/$pkgname-$pkgver.tar.bz2
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
autoreconf -i || return 1
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="73327ea76230e123aee6e115f9eed779 xnbd-0.3.0.tar.bz2"
sha256sums="8bbac0a95ab31ffac20e06825b5170dd2cf16bd1acfe07e54656ea823a339b4a xnbd-0.3.0.tar.bz2"
sha512sums="650874ae2790619970217917a6d56c7855dd6ab723269c8e027f1ce7abbf9b5b718131571f4ae4f7b3301bde1516f464ec1b1aeb6581e84bfefff5e73903c74f xnbd-0.3.0.tar.bz2"
Hope you find it interresting to have in Alpine too ;)
(from redmine: issue id 3703, created on 2015-01-22, closed on 2015-12-18)