[oe-commits] org.oe.dev gawk 3.1.4: Use the update-alternatives class rather than manually
lenehan commit
openembedded-commits at lists.openembedded.org
Sun Sep 10 04:29:16 UTC 2006
gawk 3.1.4: Use the update-alternatives class rather than manually
performing the update-alternatives actions.
Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 468b9951456f8fd4e98a0be4c0dc1821406bd322
ViewMTN: http://monotone.openembedded.org/revision.psp?id=468b9951456f8fd4e98a0be4c0dc1821406bd322
Files:
1
packages/gawk/gawk_3.1.4.bb
Diffs:
#
# mt diff -r2be19e7cda66fdcee74d6f98bc0202610bf640c9 -r468b9951456f8fd4e98a0be4c0dc1821406bd322
#
#
#
# patch "packages/gawk/gawk_3.1.4.bb"
# from [f148ece5cdf3e04937c557db6b3f94759a9b1dd5]
# to [7dc5a93ef65fefa374505588b7dcdef75f4761e9]
#
============================================================
--- packages/gawk/gawk_3.1.4.bb f148ece5cdf3e04937c557db6b3f94759a9b1dd5
+++ packages/gawk/gawk_3.1.4.bb 7dc5a93ef65fefa374505588b7dcdef75f4761e9
@@ -8,7 +8,7 @@ SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}
SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz"
-inherit autotools
+inherit autotools update-alternatives
do_configure_prepend () {
grep -E '^AC_DEFUN' m4/*.m4|grep -E '\(\[?(AM|AC)_'|xargs rm -f
@@ -21,9 +21,7 @@ FILES_${PN}-dbg += "${libexecdir}/awk/.d
FILES_pgawk = "${bindir}/pgawk*"
FILES_${PN}-dbg += "${libexecdir}/awk/.debug"
+ALTERNATIVE_NAME = "awk"
+ALTERNATIVE_PATH = "gawk"
+ALTERNATIVE_LINK = "${bindir}/awk"
+ALTERNATIVE_PRIORITY = "100"
-pkg_postinst_${PN} () {
- update-alternatives --install ${bindir}/awk awk gawk 100
-}
-pkg_prerm_${PN} () {
- update-alternatives --remove awk gawk
-}
More information about the Openembedded-commits
mailing list