diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-07-12 08:55:04 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-07-12 08:55:48 +0000 |
commit | 3b13b975fda4623df0ae57eaa2af53bfa1917c19 (patch) | |
tree | d862b2e000278eda9ef4b7577ef6ca528a497861 /community/nbd | |
parent | 44bb18d7aca88befae84db47f656741af0fd5945 (diff) | |
download | alpine_aports-3b13b975fda4623df0ae57eaa2af53bfa1917c19.tar.bz2 alpine_aports-3b13b975fda4623df0ae57eaa2af53bfa1917c19.tar.xz alpine_aports-3b13b975fda4623df0ae57eaa2af53bfa1917c19.zip |
community/nbd: add initd netlink and tls support
Diffstat (limited to 'community/nbd')
-rw-r--r-- | community/nbd/APKBUILD | 17 | ||||
-rw-r--r-- | community/nbd/nbd-server.initd | 5 |
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 @@ | |||
2 | # Maintainer: Carlo Landmeter <clandmeter@gmail.com> | 2 | # Maintainer: Carlo Landmeter <clandmeter@gmail.com> |
3 | pkgname=nbd | 3 | pkgname=nbd |
4 | pkgver=3.17 | 4 | pkgver=3.17 |
5 | pkgrel=1 | 5 | pkgrel=2 |
6 | pkgdesc="Tools for network block devices" | 6 | pkgdesc="Tools for network block devices" |
7 | url="http://nbd.sourceforge.net" | 7 | url="http://nbd.sourceforge.net" |
8 | arch="all" | 8 | arch="all" |
9 | license="GPL-2.0-or-later" | 9 | license="GPL-2.0-or-later" |
10 | makedepends="glib-dev linux-headers zlib-dev" | 10 | makedepends="glib-dev linux-headers zlib-dev gnutls-dev libnl3-dev" |
11 | subpackages="$pkgname-doc $pkgname-client" | 11 | subpackages="$pkgname-doc $pkgname-client $pkgname-openrc" |
12 | source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz" | 12 | source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz |
13 | nbd-server.initd | ||
14 | " | ||
13 | 15 | ||
14 | builddir="$srcdir"/$pkgname-$pkgver | 16 | builddir="$srcdir"/$pkgname-$pkgver |
15 | 17 | ||
16 | build() { | 18 | build() { |
17 | cd "$builddir" | 19 | cd "$builddir" |
18 | touch "systemd/nbd@.service.tmpl" | ||
19 | ./configure \ | 20 | ./configure \ |
20 | --build=$CBUILD \ | 21 | --build=$CBUILD \ |
21 | --host=$CHOST \ | 22 | --host=$CHOST \ |
@@ -37,6 +38,9 @@ check() { | |||
37 | package() { | 38 | package() { |
38 | cd "$builddir" | 39 | cd "$builddir" |
39 | make DESTDIR="$pkgdir" install | 40 | make DESTDIR="$pkgdir" install |
41 | install -Dm755 "$srcdir"/nbd-server.initd \ | ||
42 | "$pkgdir"/etc/init.d/nbd-server | ||
43 | mkdir -p "$pkgdir"/etc/nbd-server | ||
40 | } | 44 | } |
41 | 45 | ||
42 | client() { | 46 | client() { |
@@ -46,4 +50,5 @@ client() { | |||
46 | "$subpkgdir"/usr/sbin/ | 50 | "$subpkgdir"/usr/sbin/ |
47 | } | 51 | } |
48 | 52 | ||
49 | sha512sums="bcbd025d829d407dc3c0b837cbc1c16f673c5f4c0483d5bee83a52b40d528088499860c775e4e77cf47a8ac1d83dcda24df1092d658dd915ed01c638b3ebc57b nbd-3.17.tar.xz" | 53 | sha512sums="bcbd025d829d407dc3c0b837cbc1c16f673c5f4c0483d5bee83a52b40d528088499860c775e4e77cf47a8ac1d83dcda24df1092d658dd915ed01c638b3ebc57b nbd-3.17.tar.xz |
54 | 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 @@ | |||
1 | #!/sbin/openrc-run | ||
2 | |||
3 | command=/usr/bin/nbd-server | ||
4 | pidfile=/run/nbd-server.pid | ||
5 | command_args="-p ${pidfile}" | ||