aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nbd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-03-28 14:44:30 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2015-03-28 14:44:30 +0000
commit6b7049409d546148da83811c2c6c0205b5fa7111 (patch)
treec39eafb3d5fa84a583a862fe0c1aa6a8c4f3ed24 /testing/nbd
parent526fd56c0dedc1167eb58da2667010062e8b7a8d (diff)
downloadaports-6b7049409d546148da83811c2c6c0205b5fa7111.tar.bz2
aports-6b7049409d546148da83811c2c6c0205b5fa7111.tar.xz
testing/nbd: new aport
Diffstat (limited to 'testing/nbd')
-rw-r--r--testing/nbd/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/nbd/APKBUILD b/testing/nbd/APKBUILD
new file mode 100644
index 0000000000..a4a9fecd4b
--- /dev/null
+++ b/testing/nbd/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=nbd
+pkgver=3.10
+pkgrel=0
+pkgdesc="tools for network block devices, allowing you to use remote block devices over TCP/IP"
+url="http://nbd.sourceforge.net"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="glib-dev"
+makedepends="$depends_dev linux-headers"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/nbd/nbd-$pkgver.tar.xz"
+
+_builddir="$srcdir"/nbd-$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"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-lfs \
+ --enable-syslog \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="c39aea16c30850812c0137714668b0f3 nbd-3.10.tar.xz"
+sha256sums="6fc53a7a67ab6c786586ee155b76b502d3ff14f4233e9077957968b3bf3847ce nbd-3.10.tar.xz"
+sha512sums="39b0190e136783ba765079340858c82992392e5711ec046238eb47f9de07163f7d4289b6b1abd35d9d35e61c7ea53fefa3c9dfc7de0deba699663b392277cd4e nbd-3.10.tar.xz"