void-packages/srcpkgs/nbd/template

28 lines
777 B
Bash
Raw Normal View History

2014-01-04 11:03:06 +01:00
# Template file for 'nbd'
pkgname=nbd
2015-05-27 06:51:52 +02:00
version=3.11
2015-03-03 08:27:50 +01:00
revision=1
2014-01-04 11:03:06 +01:00
build_style=gnu-configure
configure_args="--enable-syslog --sbindir=/usr/bin"
hostmakedepends="pkg-config"
2014-10-27 18:27:50 +01:00
makedepends="libglib-devel"
build_options="systemd"
2014-01-04 11:03:06 +01:00
system_accounts="nbd"
2014-10-27 18:27:50 +01:00
nbd_homedir="/var/chroot"
2014-01-04 11:03:06 +01:00
conf_files="/etc/nbd-server/config"
short_desc="Network Block Device utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2014-01-04 11:03:06 +01:00
license="GPL-2"
homepage="http://nbd.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
2015-05-27 06:51:52 +02:00
checksum=b681ff0ae05e16e679814d8c87661844c582c716f9440bcfbd673ebc1dba1cfc
2014-01-04 11:03:06 +01:00
post_install() {
2014-10-27 18:27:50 +01:00
vsv nbd
2014-01-04 11:03:06 +01:00
vinstall ${FILESDIR}/config 644 etc/nbd-server
2014-10-27 18:27:50 +01:00
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/nbd.service 644 usr/lib/systemd/system
fi
vdoc doc/README
2014-01-04 11:03:06 +01:00
}