30 lines
771 B
Bash
30 lines
771 B
Bash
# Template file for 'nbd'
|
|
pkgname=nbd
|
|
version=3.18
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-syslog"
|
|
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.0-or-later"
|
|
homepage="https://nbd.sourceforge.io/"
|
|
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
|
|
checksum=e5ba5544db396e8ade99586c441d01d08089cccdc4eb0d691916acb371b512d4
|
|
|
|
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
|
|
}
|