diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2021-05-24 18:08:37 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-05-28 06:55:33 -0700 |
| commit | 1fa26e59ba32ce9e011cac5f756d2ae351898484 (patch) | |
| tree | f94245a16106fbe5dd1df6095eec8ca8db54b2db /meta-oe/recipes-support/mime-support/mime-support_3.62.bb | |
| parent | 6ab9a61fdfb1687f64de1d6d8798820292f9ec8d (diff) | |
| download | meta-openembedded-1fa26e59ba32ce9e011cac5f756d2ae351898484.tar.gz | |
mime-support: upgrade 3.48 -> 3.62
* Many changes since 2009 (!!!) - most notable:
CVE-2014-7209: run-mailcap shellcommand injection.
* They added Bellcore license for mailcap.man
* There is a later version 3.66 available but tarball is almost empty because
with 3.65 they splitted mime-support into several packages
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mime-support/mime-support_3.62.bb')
| -rw-r--r-- | meta-oe/recipes-support/mime-support/mime-support_3.62.bb | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mime-support/mime-support_3.62.bb b/meta-oe/recipes-support/mime-support/mime-support_3.62.bb new file mode 100644 index 0000000000..858521b65f --- /dev/null +++ b/meta-oe/recipes-support/mime-support/mime-support_3.62.bb | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | SECTION = "base" | ||
| 2 | SUMMARY = "MIME files 'mime.types' & 'mailcap', and support programs" | ||
| 3 | LICENSE = "PD & Bellcore" | ||
| 4 | LICENSE_${PN} = "PD" | ||
| 5 | # mailcap.man's license is Bellcore | ||
| 6 | LICENSE_${PN}-doc = "PD & Bellcore" | ||
| 7 | LIC_FILES_CHKSUM = "file://debian/copyright;md5=53c851e31d27c3ea8a6217073a5ff01c" | ||
| 8 | |||
| 9 | DEPENDS = "file" | ||
| 10 | RDEPENDS_${PN} = "perl" | ||
| 11 | RRECOMMENDS_${PN} = "file" | ||
| 12 | |||
| 13 | SRC_URI = "${DEBIAN_MIRROR}/main/m/mime-support/mime-support_${PV}.tar.gz" | ||
| 14 | SRC_URI[sha256sum] = "54e0a03e0cd63c7c9fe68a18ead0a2143fd3c327604215f989d85484d0409f4a" | ||
| 15 | S = "${WORKDIR}/${BPN}" | ||
| 16 | |||
| 17 | inherit update-alternatives | ||
| 18 | |||
| 19 | FILES_${PN} += " ${libdir}/mime" | ||
| 20 | |||
| 21 | docdir_append = "/${BPN}" | ||
| 22 | |||
| 23 | do_install () { | ||
| 24 | install -d ${D}${sysconfdir} | ||
| 25 | install -d ${D}${libdir}/mime/packages | ||
| 26 | install -d ${D}${docdir} | ||
| 27 | install -d ${D}${sbindir} | ||
| 28 | install -d ${D}${bindir} | ||
| 29 | install -d ${D}${mandir}/man1 | ||
| 30 | install -d ${D}${mandir}/man5 | ||
| 31 | install -d ${D}${mandir}/man8 | ||
| 32 | install -m 644 mime.types ${D}${sysconfdir}/ | ||
| 33 | install -m 644 mailcap ${D}${libdir}/mime/ | ||
| 34 | install -m 644 mailcap.order ${D}${sysconfdir}/ | ||
| 35 | install -m 644 mailcap.man ${D}${mandir}/man5/mailcap.5 | ||
| 36 | install -m 644 mailcap.order.man ${D}${mandir}/man5/mailcap.order.5 | ||
| 37 | # install -m 755 install-mime ${D}${sbindir}/ | ||
| 38 | # install -m 644 install-mime.man ${D}${mandir}/man8/install-mime.8 | ||
| 39 | install -m 755 update-mime ${D}${sbindir}/ | ||
| 40 | install -m 644 update-mime.man ${D}${mandir}/man8/update-mime.8 | ||
| 41 | install -m 755 run-mailcap ${D}${bindir}/ | ||
| 42 | install -m 644 run-mailcap.man ${D}${mandir}/man1/run-mailcap.1 | ||
| 43 | # install -m 644 rfcs/* ${D}${docdir}/ | ||
| 44 | install -m 644 debian/changelog ${D}${docdir}/changelog.Debian | ||
| 45 | install -m 644 debian/copyright ${D}${docdir}/copyright | ||
| 46 | install -m 755 debian-view ${D}${libdir}/mime/ | ||
| 47 | install -m 755 playaudio ${D}${libdir}/mime/ | ||
| 48 | install -m 755 playdsp ${D}${libdir}/mime/ | ||
| 49 | install -m 644 mailcap.entries ${D}${libdir}/mime/packages/mime-support | ||
| 50 | cd ${D}${mandir}; gzip -9fv */* | ||
| 51 | cd ${D}${docdir}; gzip -9v * | ||
| 52 | cd ${D}${docdir}; gunzip copyright.gz | ||
| 53 | cd ${D}${bindir}; ln -s run-mailcap see | ||
| 54 | cd ${D}${bindir}; ln -s run-mailcap edit | ||
| 55 | cd ${D}${bindir}; ln -s run-mailcap compose | ||
| 56 | cd ${D}${bindir}; ln -s run-mailcap print | ||
| 57 | cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz see.1.gz | ||
| 58 | cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz edit.1.gz | ||
| 59 | cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz compose.1.gz | ||
| 60 | cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz print.1.gz | ||
| 61 | } | ||
| 62 | |||
| 63 | ALTERNATIVE_PRIORITY = "90" | ||
| 64 | ALTERNATIVE_${PN} = "mime.types" | ||
| 65 | ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types" | ||
