void-packages/srcpkgs/nbd/template

29 lines
738 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.14
revision=1
build_style=gnu-configure
configure_args="--enable-syslog --sbindir=/usr/bin"
hostmakedepends="pkg-config"
makedepends="libglib-devel"
system_accounts="nbd"
nbd_homedir="/var/chroot"
conf_files="/etc/nbd-server/config"
short_desc="Network Block Device utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://nbd.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
checksum=b0052dfdfbc9317f87dbb4586b8de55f43f7758c8c1f30086ea11c6b96e39933
post_configure() {
# skip systemd unit
sed -i '/^SUBDIRS =/s/systemd//' -i Makefile
}
post_install() {
vsv nbd
vinstall ${FILESDIR}/config 644 etc/nbd-server
vdoc doc/README
}