summaryrefslogtreecommitdiff
path: root/sysutils/libvirt
diff options
context:
space:
mode:
authorgls <gls@pkgsrc.org>2012-09-04 21:30:51 +0000
committergls <gls@pkgsrc.org>2012-09-04 21:30:51 +0000
commit5ec7938793311bf055d676a120795cc82385a7bd (patch)
tree09a34f3028c3b6668792a27316936e4aac3ea4ec /sysutils/libvirt
parent6a97d11b218793d81c9c78c9b667c0b2d486bf7d (diff)
downloadpkgsrc-5ec7938793311bf055d676a120795cc82385a7bd.tar.gz
Add a startup script for libvirtd.
PKGREVISION++, as this add a new file to the package.
Diffstat (limited to 'sysutils/libvirt')
-rw-r--r--sysutils/libvirt/Makefile5
-rw-r--r--sysutils/libvirt/PLIST3
-rwxr-xr-xsysutils/libvirt/files/libvirtd.sh20
3 files changed, 25 insertions, 3 deletions
diff --git a/sysutils/libvirt/Makefile b/sysutils/libvirt/Makefile
index e46dfc6244d..d7f1fc60bc4 100644
--- a/sysutils/libvirt/Makefile
+++ b/sysutils/libvirt/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2012/08/16 13:15:29 asau Exp $
+# $NetBSD: Makefile,v 1.9 2012/09/04 21:30:51 gls Exp $
DISTNAME= libvirt-0.9.3
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= http://libvirt.org/sources/
@@ -64,6 +64,7 @@ CONF_FILES+= ${EGDIR}/logrotate.d/libvirtd.uml ${PKG_SYSCONFDIR}/logrotate.d/li
CONF_FILES+= ${EGDIR}/sasl2/libvirt.conf ${PKG_SYSCONFDIR}/sasl2/libvirt.conf
AUTO_MKDIRS= yes
+RCD_SCRIPTS= libvirtd
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
diff --git a/sysutils/libvirt/PLIST b/sysutils/libvirt/PLIST
index 1b8c8737db4..e32e42c972d 100644
--- a/sysutils/libvirt/PLIST
+++ b/sysutils/libvirt/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2012/08/14 13:32:18 asau Exp $
+@comment $NetBSD: PLIST,v 1.3 2012/09/04 21:30:51 gls Exp $
bin/virsh
bin/virt-pki-validate
bin/virt-xml-validate
@@ -24,6 +24,7 @@ share/examples/logrotate.d/libvirtd
share/examples/logrotate.d/libvirtd.lxc
share/examples/logrotate.d/libvirtd.qemu
share/examples/logrotate.d/libvirtd.uml
+share/examples/rc.d/libvirtd
share/examples/sasl2/libvirt.conf
include/libvirt/libvirt-qemu.h
include/libvirt/libvirt.h
diff --git a/sysutils/libvirt/files/libvirtd.sh b/sysutils/libvirt/files/libvirtd.sh
new file mode 100755
index 00000000000..9216155af23
--- /dev/null
+++ b/sysutils/libvirt/files/libvirtd.sh
@@ -0,0 +1,20 @@
+# $NetBSD
+#
+# PROVIDE: libvirtd
+# # REQUIRE: DAEMON network
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="libvirtd"
+rcvar=$name
+command="@PREFIX@/sbin/libvirtd"
+command_args="-d"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n "${name}"
+ ${command} ${command_args}
+fi