nbd: added runit service.
This commit is contained in:
parent
1c72b541e1
commit
1abdfcb168
1 changed files with 9 additions and 4 deletions
|
@ -1,12 +1,14 @@
|
|||
# Template file for 'nbd'
|
||||
pkgname=nbd
|
||||
version=3.8
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-syslog --sbindir=/usr/bin"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="glib-devel"
|
||||
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@gmail.com>"
|
||||
|
@ -16,7 +18,10 @@ distfiles="${SOURCEFORGE_SITE}/nbd/nbd-${version}.tar.gz"
|
|||
checksum=bdcbfe6c5f01f5f46efb5cc5b7e10222d76d74d2056bbfb95e34522bd0fddcd9
|
||||
|
||||
post_install() {
|
||||
vsv nbd
|
||||
vinstall ${FILESDIR}/config 644 etc/nbd-server
|
||||
vinstall ${FILESDIR}/nbd.service 644 usr/lib/systemd/system
|
||||
vinstall doc/README 644 usr/share/doc/nbd
|
||||
if [ "$build_option_systemd" ]; then
|
||||
vinstall ${FILESDIR}/nbd.service 644 usr/lib/systemd/system
|
||||
fi
|
||||
vdoc doc/README
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue