void-packages/srcpkgs/nbd/template
2022-03-14 18:04:19 +01:00

31 lines
780 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.24
revision=1
build_style=gnu-configure
configure_args="--enable-syslog"
hostmakedepends="pkg-config bison"
makedepends="libglib-devel"
short_desc="Network Block Device utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://nbd.sourceforge.io/"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
checksum=a771022599525fd4f5c17c7b1c88696a91927c227e770425a55f67a7384441b6
system_accounts="nbd"
nbd_homedir="/var/chroot"
conf_files="/etc/nbd-server/config"
CFLAGS+="-DPROG_NAME='\"nbd-client\"'"
post_configure() {
# skip systemd unit
vsed -e '/^SUBDIRS =/s/systemd//' -i Makefile
}
post_install() {
vsv nbd
vinstall ${FILESDIR}/config 644 etc/nbd-server
vdoc doc/README
}