aboutsummaryrefslogtreecommitdiffstats
path: root/community/nbd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-10-14 14:20:12 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-10-14 14:20:12 +0200
commitf3c3150e6348344e50e67446cad28c78bc1d2f86 (patch)
treecd7f1d993da87f418ef3df022b7d28eb3a1b77ba /community/nbd
parentd696932ea9aa5d332298bb13bf6e587c8e230b56 (diff)
downloadaports-f3c3150e6348344e50e67446cad28c78bc1d2f86.tar.bz2
aports-f3c3150e6348344e50e67446cad28c78bc1d2f86.tar.xz
community/nbd: moved from unmaintained and upgraded to 3.14
Diffstat (limited to 'community/nbd')
-rw-r--r--community/nbd/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/nbd/APKBUILD b/community/nbd/APKBUILD
new file mode 100644
index 0000000000..f4bb8e0321
--- /dev/null
+++ b/community/nbd/APKBUILD
@@ -0,0 +1,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"