summaryrefslogtreecommitdiff
path: root/community/libvirt/libvirt.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/libvirt/libvirt.install')
-rw-r--r--community/libvirt/libvirt.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/community/libvirt/libvirt.install b/community/libvirt/libvirt.install
new file mode 100644
index 000000000..efb652a88
--- /dev/null
+++ b/community/libvirt/libvirt.install
@@ -0,0 +1,19 @@
+_libvirt_setup() {
+ systemd-tmpfiles --create libvirt.conf
+}
+
+post_install() {
+ _libvirt_setup || return 1
+ echo ">>> See https://wiki.archlinux.org/index.php/Libvirt for more info"
+}
+
+post_upgrade() {
+ _libvirt_setup || return 1
+ echo ">>> You may need to run 'rm -rf ~/.libvirt'"
+ echo ">>> libvirt runs qemu from nobody:nobody by default"
+ echo ">>> change it in /etc/libvirt/qemu.conf"
+}
+
+post_remove() {
+ rm -f /usr/lib/python[0-9].[0-9]/site-packages/libvirt.pyc
+}