void-packages/srcpkgs/nbd/template

32 lines
780 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.23
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=3c969cd9cf83dae9276f999b7ff8e31e32411c8cc751221e698861bc05b8f76c
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
}