27 lines
777 B
Bash
27 lines
777 B
Bash
# Template file for 'nbd'
|
|
pkgname=nbd
|
|
version=3.10
|
|
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=0417b77c2c88b89f4f8f4f4bdd17aac9c3c9bd50af2e0ae08683baf9c688145d
|
|
|
|
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
|
|
}
|