aboutsummaryrefslogtreecommitdiffstats
path: root/community/nbd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-12 08:55:04 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2018-07-12 08:55:48 +0000
commit3b13b975fda4623df0ae57eaa2af53bfa1917c19 (patch)
treed862b2e000278eda9ef4b7577ef6ca528a497861 /community/nbd
parent44bb18d7aca88befae84db47f656741af0fd5945 (diff)
downloadaports-3b13b975fda4623df0ae57eaa2af53bfa1917c19.tar.bz2
aports-3b13b975fda4623df0ae57eaa2af53bfa1917c19.tar.xz
community/nbd: add initd netlink and tls support
Diffstat (limited to 'community/nbd')
-rw-r--r--community/nbd/APKBUILD17
-rw-r--r--community/nbd/nbd-server.initd5
2 files changed, 16 insertions, 6 deletions
diff --git a/community/nbd/APKBUILD b/community/nbd/APKBUILD
index 9ac904ff13..576e9452cc 100644
--- a/community/nbd/APKBUILD
+++ b/community/nbd/APKBUILD
@@ -2,20 +2,21 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=nbd
pkgver=3.17
-pkgrel=1
+pkgrel=2
pkgdesc="Tools for network block devices"
url="http://nbd.sourceforge.net"
arch="all"
license="GPL-2.0-or-later"
-makedepends="glib-dev linux-headers zlib-dev"
-subpackages="$pkgname-doc $pkgname-client"
-source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz"
+makedepends="glib-dev linux-headers zlib-dev gnutls-dev libnl3-dev"
+subpackages="$pkgname-doc $pkgname-client $pkgname-openrc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz
+ nbd-server.initd
+ "
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
- touch "systemd/nbd@.service.tmpl"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -37,6 +38,9 @@ check() {
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
+ install -Dm755 "$srcdir"/nbd-server.initd \
+ "$pkgdir"/etc/init.d/nbd-server
+ mkdir -p "$pkgdir"/etc/nbd-server
}
client() {
@@ -46,4 +50,5 @@ client() {
"$subpkgdir"/usr/sbin/
}
-sha512sums="bcbd025d829d407dc3c0b837cbc1c16f673c5f4c0483d5bee83a52b40d528088499860c775e4e77cf47a8ac1d83dcda24df1092d658dd915ed01c638b3ebc57b nbd-3.17.tar.xz"
+sha512sums="bcbd025d829d407dc3c0b837cbc1c16f673c5f4c0483d5bee83a52b40d528088499860c775e4e77cf47a8ac1d83dcda24df1092d658dd915ed01c638b3ebc57b nbd-3.17.tar.xz
+3e71f0cd79d378abb1901038952748b548d18540aa7ebe94bcda65bc331021c1eef942c26283dbbd39471ecfa33c2c5b6165acfcf0abd7d17aed1bdcd47fea31 nbd-server.initd"
diff --git a/community/nbd/nbd-server.initd b/community/nbd/nbd-server.initd
new file mode 100644
index 0000000000..b0cd32d4d1
--- /dev/null
+++ b/community/nbd/nbd-server.initd
@@ -0,0 +1,5 @@
+#!/sbin/openrc-run
+
+command=/usr/bin/nbd-server
+pidfile=/run/nbd-server.pid
+command_args="-p ${pidfile}"