gawk.bbappend: provide link for nawk
authorSteve Sakoman <steve@sakoman.com>
Wed, 2 May 2012 16:51:42 +0000 (09:51 -0700)
committerSteve Sakoman <steve@sakoman.com>
Wed, 2 May 2012 16:51:42 +0000 (09:51 -0700)
needed for vim rpm package dependency

recipes-extended/gawk/gawk_4.0.0.bbappend [new file with mode: 0644]

diff --git a/recipes-extended/gawk/gawk_4.0.0.bbappend b/recipes-extended/gawk/gawk_4.0.0.bbappend
new file mode 100644 (file)
index 0000000..49088e4
--- /dev/null
@@ -0,0 +1,12 @@
+# Hack to satisfy vim rpm package desire for /usr/bin/nawk
+
+PRINC := "${@int(PRINC) + 1}"
+
+do_install_append() {
+       install -d ${D}${bindir}
+       ln -s gawk ${D}${bindir}/nawk
+}
+
+FILES_${PN} += "${bindir}/nawk"
+
+