void-packages/srcpkgs/nbd/template
2015-05-27 06:51:52 +02:00

27 lines
777 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.11
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@voidlinux.eu>"
license="GPL-2"
homepage="http://nbd.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
checksum=b681ff0ae05e16e679814d8c87661844c582c716f9440bcfbd673ebc1dba1cfc
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
}