diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-01-31 22:56:36 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-01 14:08:50 -0800 |
| commit | 3a8beb7eef0e1f05ff8549d01056a3f74ee38523 (patch) | |
| tree | 49672182a8785c3bd280393af1e57b765569029f /meta-oe/recipes-support/mime-support | |
| parent | 10f3a928ab37e0088cd16fe9fe58fb79d803fe7e (diff) | |
| download | meta-openembedded-3a8beb7eef0e1f05ff8549d01056a3f74ee38523.tar.gz | |
media-types: add recipe
This recipe is one of the successors of mime-support, which
provided mailcap and mime.types files. This recipe contains
only the mime.types portion.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mime-support')
| -rw-r--r-- | meta-oe/recipes-support/mime-support/media-types_14.0.0.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mime-support/media-types_14.0.0.bb b/meta-oe/recipes-support/mime-support/media-types_14.0.0.bb new file mode 100644 index 0000000000..137d508ebe --- /dev/null +++ b/meta-oe/recipes-support/mime-support/media-types_14.0.0.bb | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | SECTION = "base" | ||
| 2 | SUMMARY = "MIME files 'mime.types'" | ||
| 3 | LICENSE = "PD" | ||
| 4 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=f3ace4a4ff8aa9e374be6080e41a822e" | ||
| 5 | DEPENDS = "file" | ||
| 6 | RDEPENDS:${PN} = "perl" | ||
| 7 | RRECOMMENDS:${PN} = "file" | ||
| 8 | |||
| 9 | SRC_URI = "${DEBIAN_MIRROR}/main/m/${BPN}/${BPN}_${PV}.tar.xz" | ||
| 10 | SRC_URI[sha256sum] = "d5877ac8c1fa3661b3c9ace293ae154c844fad686786f085e954c014f7e73f4d" | ||
| 11 | S = "${UNPACKDIR}/work" | ||
| 12 | |||
| 13 | inherit update-alternatives | ||
| 14 | |||
| 15 | FILES:${PN} += " ${datadir}/bug/media-types" | ||
| 16 | |||
| 17 | docdir:append = "/${BPN}" | ||
| 18 | |||
| 19 | do_install () { | ||
| 20 | install -d ${D}${sysconfdir} | ||
| 21 | install -d ${D}${datadir}/bug/media-types | ||
| 22 | install -d ${D}${docdir} | ||
| 23 | install -m 644 mime.types ${D}${sysconfdir}/ | ||
| 24 | install -m 644 debian/bug-presubj ${D}${datadir}/bug/media-types/presubj | ||
| 25 | install -m 644 debian/changelog ${D}${docdir}/changelog | ||
| 26 | install -m 644 debian/copyright ${D}${docdir}/copyright | ||
| 27 | cd ${D}${docdir}; gzip -9v changelog | ||
| 28 | } | ||
| 29 | |||
| 30 | ALTERNATIVE_PRIORITY = "90" | ||
| 31 | ALTERNATIVE:${PN} = "mime.types" | ||
| 32 | ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types" | ||
| 33 | |||
| 34 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 35 | |||
| 36 | # Debian used to have mime-support package which was media-types and | ||
| 37 | # mailcap recipes in one. | ||
| 38 | PROVIDES += "mime-support" | ||
| 39 | RDEPENDS:mime-support = "mailcap" | ||
