void-packages/srcpkgs/nbd/template
2019-01-31 10:58:53 -02:00

31 lines
774 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.19
revision=1
build_style=gnu-configure
configure_args="--enable-syslog"
hostmakedepends="pkg-config"
makedepends="libglib-devel"
short_desc="Network Block Device utilities"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://nbd.sourceforge.io/"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
checksum=f0b52d03f35fee3a00d2f7c27974dce8fc797f35c708786e36fd2cd2fe48879d
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
}