2014-01-04 11:03:06 +01:00
|
|
|
# Template file for 'nbd'
|
|
|
|
pkgname=nbd
|
2014-03-19 23:47:52 +01:00
|
|
|
version=3.8
|
2014-10-27 18:31:04 +01:00
|
|
|
revision=3
|
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@gmail.com>"
|
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://nbd.sourceforge.net"
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
|
2014-03-19 23:47:52 +01:00
|
|
|
checksum=bdcbfe6c5f01f5f46efb5cc5b7e10222d76d74d2056bbfb95e34522bd0fddcd9
|
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
|
|
|
}
|