mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
mime-support: Use update-alternatives
mime.types is also provided by mailcap so use update-alternatives to install is policy when both are added into image Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -21,6 +21,11 @@ SRC_URI = "https://releases.pagure.org/${BPN}/${BP}.tar.xz"
|
|||||||
SRC_URI[md5sum] = "d5701a1a541383c0eda328f4a6518751"
|
SRC_URI[md5sum] = "d5701a1a541383c0eda328f4a6518751"
|
||||||
SRC_URI[sha256sum] = "f7381516bc1a937348efd1d0e14618e0a2afc5d59fe821dd248632d5601b59b5"
|
SRC_URI[sha256sum] = "f7381516bc1a937348efd1d0e14618e0a2afc5d59fe821dd248632d5601b59b5"
|
||||||
|
|
||||||
|
inherit update-alternatives
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
oe_runmake install DESTDIR=${D} sysconfdir=${sysconfdir} mandir=${mandir}
|
oe_runmake install DESTDIR=${D} sysconfdir=${sysconfdir} mandir=${mandir}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ALTERNATIVE_${PN} = "mime.types"
|
||||||
|
ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types"
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ RRECOMMENDS_${PN} = "file"
|
|||||||
SRC_URI = "${DEBIAN_MIRROR}/main/m/mime-support/mime-support_${PV}-1.tar.gz"
|
SRC_URI = "${DEBIAN_MIRROR}/main/m/mime-support/mime-support_${PV}-1.tar.gz"
|
||||||
S = "${WORKDIR}/${BPN}"
|
S = "${WORKDIR}/${BPN}"
|
||||||
|
|
||||||
|
inherit update-alternatives
|
||||||
|
|
||||||
FILES_${PN} += " ${libdir}/mime"
|
FILES_${PN} += " ${libdir}/mime"
|
||||||
|
|
||||||
docdir_append = "/${BPN}"
|
docdir_append = "/${BPN}"
|
||||||
@@ -56,3 +58,7 @@ do_install () {
|
|||||||
|
|
||||||
SRC_URI[md5sum] = "d6e5d715e331147352c50c158dbdec6d"
|
SRC_URI[md5sum] = "d6e5d715e331147352c50c158dbdec6d"
|
||||||
SRC_URI[sha256sum] = "a529c7892cb786f514af71f4ca5a4c3ebc58b538a49ff959c0d97592d38f040a"
|
SRC_URI[sha256sum] = "a529c7892cb786f514af71f4ca5a4c3ebc58b538a49ff959c0d97592d38f040a"
|
||||||
|
|
||||||
|
ALTERNATIVE_PRIORITY = "90"
|
||||||
|
ALTERNATIVE_${PN} = "mime.types"
|
||||||
|
ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types"
|
||||||
|
|||||||
Reference in New Issue
Block a user