diff options
author | gls <gls@pkgsrc.org> | 2012-09-04 21:30:51 +0000 |
---|---|---|
committer | gls <gls@pkgsrc.org> | 2012-09-04 21:30:51 +0000 |
commit | 940312f931a508a642aa07d321db5a6341ae9380 (patch) | |
tree | 09a34f3028c3b6668792a27316936e4aac3ea4ec /sysutils | |
parent | 57230dd9f0c0d793f537cc1d9c27a3287a42597c (diff) | |
download | pkgsrc-940312f931a508a642aa07d321db5a6341ae9380.tar.gz |
Add a startup script for libvirtd.
PKGREVISION++, as this add a new file to the package.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/libvirt/Makefile | 5 | ||||
-rw-r--r-- | sysutils/libvirt/PLIST | 3 | ||||
-rwxr-xr-x | sysutils/libvirt/files/libvirtd.sh | 20 |
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 |