diff options
author | root <root@rshg054.dnsready.net> | 2012-05-18 00:02:20 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-18 00:02:20 +0000 |
commit | 2f104ecf78d6a93ba8d67273b76364cb1365a6cf (patch) | |
tree | c93787a9c08d8cb41a424644dc09fc529dfd63f1 /community-testing/libvirt/libvirt.install | |
parent | f675762300c4ee2717e029975bb3f94312245276 (diff) |
Fri May 18 00:02:20 UTC 2012
Diffstat (limited to 'community-testing/libvirt/libvirt.install')
-rw-r--r-- | community-testing/libvirt/libvirt.install | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community-testing/libvirt/libvirt.install b/community-testing/libvirt/libvirt.install new file mode 100644 index 000000000..3881386d2 --- /dev/null +++ b/community-testing/libvirt/libvirt.install @@ -0,0 +1,38 @@ +_libvirt_setup() { + rm -f /usr/lib/python?.?/site-packages/libvirt.pyc + echo ">>> To use libvirt as a non-root user:" + echo ">>> Use polkit to grant access." + echo ">>> ...or change the access model in /etc/libvirt/libvirtd.conf." + echo ">>> (see unixperms.patch in PKGBUILD for help)" + echo "" +} + +post_install() { + _libvirt_setup || return 1 + echo ">>> Be sure to see optdepends as you may find some of them helpfull." + echo ">>> Especially: bridge-utils, dnsmasq, and hal." + echo "" + echo ">>> To start libvirtd run: '/etc/rc.d/libvirtd start' as root." + echo ">>> Add 'libvirtd' to daemons in /etc/rc.conf if you want it to load upon" + echo ">>> booting." + echo "" + /bin/true +} + +post_upgrade() { + _libvirt_setup || return 1 + echo ">>> To finish the upgrade, restart libvirtd by running the command:" + echo ">>> '/etc/rc.d/libvirtd restart' as root or rebooting." + echo ">>> You may also need to run 'rm -rf ~/.libvirt'" + echo "" + /bin/true +} + +post_remove() { + rm -f /usr/lib/python[0-9].[0-9]/site-packages/libvirt.pyc + echo ">>> You may wish to delete the group 'libvirt' if it still exists." + echo ">>> It can be removed by running 'groupdel libvirt' as root." + echo "" + depmod -a + /bin/true +} |