diff options
author | Jamie Lenehan <lenehan@twibble.org> | 2006-10-23 23:56:13 +0000 |
---|---|---|
committer | Jamie Lenehan <lenehan@twibble.org> | 2006-10-23 23:56:13 +0000 |
commit | 5e035af68c660b8f5cd56ba1fa7a0262477216e1 (patch) | |
tree | a4f692804c47caebbabd94bdede9d439b5313112 /packages/patch/patch.inc | |
parent | 0d6366b500dfe1ab4ee228d4a180729dcf49c713 (diff) |
patch 2.5.9: Use alternatives for patch since busybox also provides a patch
command. As per #1472.
Diffstat (limited to 'packages/patch/patch.inc')
-rw-r--r-- | packages/patch/patch.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/patch/patch.inc b/packages/patch/patch.inc index c8240ca3a9..4ce51703aa 100644 --- a/packages/patch/patch.inc +++ b/packages/patch/patch.inc @@ -8,4 +8,12 @@ SECTION = "utils" SRC_URI = "${GNU_MIRROR}/patch/patch-${PV}.tar.gz" S = "${WORKDIR}/patch-${PV}" -inherit autotools +inherit autotools update-alternatives + +do_install_append () { + mv ${D}${bindir}/patch ${D}${bindir}/patch.${PN} +} + +ALTERNATIVE_NAME = "patch" +ALTERNATIVE_PATH = "patch.${PN}" +ALTERNATIVE_PRIORITY = "100" |