void-packages/srcpkgs/nbd/template

32 lines
774 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.21
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=2c7866be37e63756c00ce54a0655e7a00cc76d256f9cf1c995d1dbe8879c5ae1
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
}