void-packages/srcpkgs/nbd/template
2019-10-01 18:02:01 +02:00

31 lines
774 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.20
revision=1
build_style=gnu-configure
configure_args="--enable-syslog"
hostmakedepends="pkg-config"
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=b6a82acbc9b1085534820dbc0d23ddbc39b7970e587e6930aec97e262feb222b
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
}