Skip to content

Commit f6f738b

Browse files
committed
nbd: update to 3.27.0
- new version - move from sourceforge to github - add gnutls library - fix compilation warning, by removing CFLAGS addition: ``` <command-line>: warning: "PROG_NAME" redefined <command-line>: note: this is the location of the previous definition ``` - fix compilation by adding libnl3 which is detected by configure script and defines macros modifying the code. Error was: ``` nbd-client.c: In function 'main': nbd-client.c:1723:32: error: implicit declaration of function 'persist_mode_main' [-Wimplicit-function-declaration] 1723 | return persist_mode_main(index, sockfds, flags); | ^~~~~~~~~~~~~~~~~ ``` NETLINK-related compilation problem reported upstream, with a proposed fix: NetworkBlockDevice/nbd#183
1 parent 9bf66b2 commit f6f738b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

srcpkgs/nbd/template

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
# Template file for 'nbd'
22
pkgname=nbd
3-
version=3.24
3+
version=3.27.0
44
revision=1
55
build_style=gnu-configure
66
configure_args="--enable-syslog"
77
hostmakedepends="pkg-config bison"
8-
makedepends="libglib-devel"
8+
makedepends="libglib-devel libnl3-devel gnutls-devel"
99
short_desc="Network Block Device utilities"
1010
maintainer="Orphaned <orphan@voidlinux.org>"
1111
license="GPL-2.0-or-later"
1212
homepage="https://nbd.sourceforge.io/"
13-
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
14-
checksum=a771022599525fd4f5c17c7b1c88696a91927c227e770425a55f67a7384441b6
13+
distfiles="https://github.com/NetworkBlockDevice/nbd/releases/download/nbd-${version}/nbd-${version}.tar.xz"
14+
checksum=422a02adcdbab01c622307c6babeda5c84ca6c6f2d4e0b29936e6ae9b6a7662f
1515

1616
system_accounts="nbd"
1717
nbd_homedir="/var/chroot"
1818
conf_files="/etc/nbd-server/config"
1919

20-
CFLAGS+="-DPROG_NAME='\"nbd-client\"'"
21-
2220
post_configure() {
2321
# skip systemd unit
2422
vsed -e '/^SUBDIRS =/s/systemd//' -i Makefile

0 commit comments

Comments
 (0)