void-packages/srcpkgs/nbd/template

28 lines
775 B
Plaintext

# Template file for 'nbd'
pkgname=nbd
version=3.9.1
revision=1
build_style=gnu-configure
configure_args="--enable-syslog --sbindir=/usr/bin"
hostmakedepends="pkg-config"
makedepends="libglib-devel"
build_options="systemd"
system_accounts="nbd"
nbd_homedir="/var/chroot"
conf_files="/etc/nbd-server/config"
short_desc="Network Block Device utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://nbd.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
checksum=ac51f16fa16f240f06264def02d5200dd108f1922754c5173fa0d69f9b4689d3
post_install() {
vsv nbd
vinstall ${FILESDIR}/config 644 etc/nbd-server
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/nbd.service 644 usr/lib/systemd/system
fi
vdoc doc/README
}