diff options
author | Martin Dietze <di@fh-wedel.de> | 2006-09-21 12:28:49 +0000 |
---|---|---|
committer | Martin Dietze <di@fh-wedel.de> | 2006-09-21 12:28:49 +0000 |
commit | 3afea35fb6c6be5b65b4a9af1de5c30f1beb774b (patch) | |
tree | 15e5534f1d08633eae8dbb04aaaaae6685164e6f /packages/elvis/elvis_2.2.0.bb | |
parent | 5d5ae855a1773a3bd76f6126d4ce01daf4084709 (diff) |
elvis: some finetuning
* added update-alternatives calls to replace/set /bin/vi link
* minor fixes to configuration in elvis-tiny to avoid warnings when loading
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" |