blob: f4bb8e0321c7c2f8682619467473bf8668a4ec5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=nbd
pkgver=3.14
pkgrel=0
pkgdesc="Tools for network block devices"
url="http://nbd.sourceforge.net"
arch="all"
license="GPL2"
depends=""
depends_dev=""
makedepends="glib-dev linux-headers zlib-dev"
install=""
subpackages="$pkgname-doc $pkgname-client"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
touch "systemd/nbd@.service.tmpl"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-lfs \
--enable-syslog \
--enable-gznbd \
|| return 1
make || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
}
client() {
pkgdesc="$pkgdesc (client)"
mkdir -p "$subpkgdir"/usr/sbin
mv "$pkgdir"/usr/sbin/nbd-client \
"$subpkgdir"/usr/sbin/ || return 1
}
md5sums="fa29f57ca752e363edc15f0e35f0a95f nbd-3.14.tar.xz"
sha256sums="4d3d230ecc0a1302dc08d89f2a12d7596a8745f2b10da9bb035bbeb9ede78631 nbd-3.14.tar.xz"
sha512sums="f65c8bfb9f35931da6ec41bbcf94a34268fb7166b5df224ce525319bb053aa3ed174d242369cffc57a2e0d685c6a540cd2498f8044cd25c0c5bdeb92e9f099d0 nbd-3.14.tar.xz"
|