summaryrefslogtreecommitdiff
path: root/community/virtualbox/virtualbox-host-dkms.install
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-01-01 15:38:30 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-01-01 15:38:30 +0100
commitb63a03da360e5a18e9044e7058ae69898db5ffb0 (patch)
tree2901728a2c53e2eb590d577db1531ee2976a2cbf /community/virtualbox/virtualbox-host-dkms.install
parent73346505421c2d923e13e2020dd31ddd764b8fe4 (diff)
parent26ac5932cb02318206fa6a528ed4bd82ad6af87c (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/blender/PKGBUILD community/cdfs/PKGBUILD community/cdfs/cdfs.install community/mc/PKGBUILD community/open-vm-tools-modules/PKGBUILD community/open-vm-tools-modules/modprobe.conf community/open-vm-tools-modules/open-vm-tools-modules.install community/open-vm-tools/PKGBUILD community/open-vm-tools/open-vm-tools.conf.d community/open-vm-tools/open-vm-tools.rc.d community/open-vm-tools/scripts-network-FS19541.patch community/pekwm/PKGBUILD community/r8168-lts/PKGBUILD community/simutrans/PKGBUILD community/spectrwm/PKGBUILD community/supertuxkart/PKGBUILD community/tp_smapi/PKGBUILD community/tp_smapi/tp_smapi.install community/vhba-module/PKGBUILD community/vhba-module/vhba-module.install core/gcc/PKGBUILD core/glibc/PKGBUILD extra/fcgi/PKGBUILD extra/gst-plugins-bad/PKGBUILD extra/imap/PKGBUILD extra/kdebase-runtime/PKGBUILD extra/lirc/PKGBUILD extra/lirc/lirc.install extra/llvm/PKGBUILD extra/nvidia-304xx-utils/PKGBUILD extra/ruby/PKGBUILD extra/xscreensaver/PKGBUILD
Diffstat (limited to 'community/virtualbox/virtualbox-host-dkms.install')
-rw-r--r--community/virtualbox/virtualbox-host-dkms.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/virtualbox/virtualbox-host-dkms.install b/community/virtualbox/virtualbox-host-dkms.install
new file mode 100644
index 000000000..8028cb7e0
--- /dev/null
+++ b/community/virtualbox/virtualbox-host-dkms.install
@@ -0,0 +1,30 @@
+#/bin/sh
+
+# arg 1: the new package version
+post_install() {
+ dkms add vboxhost/${1%-*}
+ cat << EOF
+==> To build and install your modules run dkms install vboxhost/${1%-*}
+==> To do this automatically at startup you can add dkms in your DAEMONS
+EOF
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ pre_remove "$2"
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install "$1"
+}
+
+# arg 1: the old package version
+pre_remove() {
+ # Remove modules using dkms
+ [ -n "${1%-*}" ] && dkms remove vboxhost/${1%-*} --all >/dev/null || true
+}
+
+# vim:set ts=2 sw=2 ft=sh et: