diff options
Diffstat (limited to 'packages/elvis/elvis_2.2.0.bb')
-rw-r--r-- | packages/elvis/elvis_2.2.0.bb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/elvis/elvis_2.2.0.bb b/packages/elvis/elvis_2.2.0.bb index 49fe5f2a1f..6f0f19fc39 100644 --- a/packages/elvis/elvis_2.2.0.bb +++ b/packages/elvis/elvis_2.2.0.bb @@ -45,6 +45,14 @@ do_install() { rm -rf ${D}/usr/share/elvis/icons } +pkg_postinst_${PN}() { + update-alternatives --install /bin/vi vi /usr/bin/elvis 100 +} + +pkg_prerm_${PN} () { + update-alternatives --remove vi /usr/bin/elvis +} + PACKAGES = "${PN} ${PN}-doc ${PN}-tools" FILES_${PN}-doc = "/usr/share/elvis/manual /usr/share/elvis/README" FILES_${PN}-tools = "/usr/bin/elvfmt /usr/bin/elvtags /usr/bin/ref" |