void-packages/srcpkgs/nbd/template
2017-10-21 10:04:02 +02:00

30 lines
781 B
Bash

# Template file for 'nbd'
pkgname=nbd
version=3.16.2
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="https://nbd.sourceforge.io/"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
checksum=59104937ead7692a64892fec78f3e7b004ddb943621a59b3d990938dcc50921e
CFLAGS+="-DPROG_NAME='\"nbd-client\"'"
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
}