diff options
author | Koen Kooi <koen@openembedded.org> | 2008-10-09 13:08:09 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-10-09 13:08:09 +0000 |
commit | b4bc4a62a9b71131ef8b616458a90b59e55560e1 (patch) | |
tree | 8c252cfa9312f8fc2f8120f14569331a1f727449 | |
parent | 60ba8aed7663f849f32a639ddac4d5bf78f0084e (diff) |
makedevs: use update-alternatives
-rw-r--r-- | packages/makedevs/makedevs_1.0.0.bb | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/packages/makedevs/makedevs_1.0.0.bb b/packages/makedevs/makedevs_1.0.0.bb index a80a518709..249e1a47c4 100644 --- a/packages/makedevs/makedevs_1.0.0.bb +++ b/packages/makedevs/makedevs_1.0.0.bb @@ -2,9 +2,13 @@ DESCRIPTION = "A tool to make device nodes" LICENSE = "GPL" SECTION = "base" PRIORITY = "required" + SRC_URI = "file://makedevs.c" S = "${WORKDIR}/makedevs-${PV}" -PR = "r5" + +PR = "r6" + +inherit update-alternatives do_configure() { install -m 0644 ${WORKDIR}/makedevs.c ${S}/ @@ -16,5 +20,12 @@ do_compile() { do_install() { install -d ${D}${base_sbindir} - install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs + install -m 0755 ${S}/makedevs ${D}${base_sbindir}/makedevs.makedevs } + +ALTERNATIVE_PATH = "${base_sbindir}/makedevs.makedevs" +ALTERNATIVE_NAME = "makedevs" +ALTERNATIVE_LINK = "${base_sbindir}/makedevs" +ALTERNATIVE_PRIORITY = "50" + + |