summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/diffutils/diffutils_2.8.1.bb
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:11 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-01 19:09:57 +0100
commitd62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch)
treef36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-extended/diffutils/diffutils_2.8.1.bb
parentcaab7fc509bf27706ff3248689f6afd04225cfda (diff)
downloadpoky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/diffutils/diffutils_2.8.1.bb')
-rw-r--r--meta/recipes-extended/diffutils/diffutils_2.8.1.bb38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-extended/diffutils/diffutils_2.8.1.bb b/meta/recipes-extended/diffutils/diffutils_2.8.1.bb
new file mode 100644
index 0000000000..86b46aafec
--- /dev/null
+++ b/meta/recipes-extended/diffutils/diffutils_2.8.1.bb
@@ -0,0 +1,38 @@
1SECTION = "base"
2LICENSE = "GPL"
3DESCRIPTION = "Diffutils contains the GNU diff, diff3, \
4sdiff, and cmp utilities. These programs are usually \
5used for creating patch files."
6PR = "r3"
7
8SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz"
9
10inherit autotools update-alternatives gettext
11
12# diffutils assumes non-glibc compilation with uclibc and
13# this causes it to generate its own implementations of
14# standard functionality. regex.c actually breaks compilation
15# because it uses __mempcpy, there are other things (TBD:
16# see diffutils.mk in buildroot)
17EXTRA_OECONF_linux-uclibc = "--without-included-regex"
18
19do_install_append () {
20 mv ${D}${bindir}/diff ${D}${bindir}/diff.${PN}
21 mv ${D}${bindir}/cmp ${D}${bindir}/cmp.${PN}
22}
23
24ALTERNATIVE_NAME = "diff"
25ALTERNATIVE_PATH = "diff.${PN}"
26ALTERNATIVE_PRIORITY = "100"
27
28pkg_postinst_${PN} () {
29
30update-alternatives --install /usr/bin/cmp cmp cmp.diffutils 100
31
32}
33
34pkg_postrm_${PN} () {
35
36update-alternatives --remove cmp cmp.diffutils
37
38}