summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2021-05-24 18:08:37 +0200
committerKhem Raj <raj.khem@gmail.com>2021-05-28 06:55:33 -0700
commit1fa26e59ba32ce9e011cac5f756d2ae351898484 (patch)
treef94245a16106fbe5dd1df6095eec8ca8db54b2db
parent6ab9a61fdfb1687f64de1d6d8798820292f9ec8d (diff)
downloadmeta-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>
-rw-r--r--meta-oe/licenses/Bellcore13
-rw-r--r--meta-oe/recipes-support/mime-support/mime-support_3.62.bb (renamed from meta-oe/recipes-support/mime-support/mime-support_3.48.bb)35
2 files changed, 31 insertions, 17 deletions
diff --git a/meta-oe/licenses/Bellcore b/meta-oe/licenses/Bellcore
new file mode 100644
index 000000000..6bbbf94e6
--- /dev/null
+++ b/meta-oe/licenses/Bellcore
@@ -0,0 +1,13 @@
1Copyright: (c) 1991 Bell Communications Research, Inc. (Bellcore)
2License: Bellcore
3 Permission to use, copy, modify, and distribute this material
4 for any purpose and without fee is hereby granted, provided
5 that the above copyright notice and this permission notice
6 appear in all copies, and that the name of Bellcore not be
7 used in advertising or publicity pertaining to this
8 material without the specific, prior written permission
9 of an authorized representative of Bellcore. BELLCORE
10 MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
11 OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS",
12 WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
13
diff --git a/meta-oe/recipes-support/mime-support/mime-support_3.48.bb b/meta-oe/recipes-support/mime-support/mime-support_3.62.bb
index 1137f5012..858521b65 100644
--- a/meta-oe/recipes-support/mime-support/mime-support_3.48.bb
+++ b/meta-oe/recipes-support/mime-support/mime-support_3.62.bb
@@ -1,13 +1,17 @@
1SECTION = "base" 1SECTION = "base"
2SUMMARY = "MIME files 'mime.types' & 'mailcap', and support programs" 2SUMMARY = "MIME files 'mime.types' & 'mailcap', and support programs"
3LICENSE = "PD" 3LICENSE = "PD & Bellcore"
4LIC_FILES_CHKSUM = "file://debian/README;md5=36bbe2ace0a05c3fb684b73208fbf30b" 4LICENSE_${PN} = "PD"
5# mailcap.man's license is Bellcore
6LICENSE_${PN}-doc = "PD & Bellcore"
7LIC_FILES_CHKSUM = "file://debian/copyright;md5=53c851e31d27c3ea8a6217073a5ff01c"
5 8
6DEPENDS = "file" 9DEPENDS = "file"
7RDEPENDS_${PN} = "perl" 10RDEPENDS_${PN} = "perl"
8RRECOMMENDS_${PN} = "file" 11RRECOMMENDS_${PN} = "file"
9 12
10SRC_URI = "${DEBIAN_MIRROR}/main/m/mime-support/mime-support_${PV}-1.tar.gz" 13SRC_URI = "${DEBIAN_MIRROR}/main/m/mime-support/mime-support_${PV}.tar.gz"
14SRC_URI[sha256sum] = "54e0a03e0cd63c7c9fe68a18ead0a2143fd3c327604215f989d85484d0409f4a"
11S = "${WORKDIR}/${BPN}" 15S = "${WORKDIR}/${BPN}"
12 16
13inherit update-alternatives 17inherit update-alternatives
@@ -27,22 +31,22 @@ do_install () {
27 install -d ${D}${mandir}/man8 31 install -d ${D}${mandir}/man8
28 install -m 644 mime.types ${D}${sysconfdir}/ 32 install -m 644 mime.types ${D}${sysconfdir}/
29 install -m 644 mailcap ${D}${libdir}/mime/ 33 install -m 644 mailcap ${D}${libdir}/mime/
30 install -m 644 mailcap.order ${D}${sysconfdir}/ 34 install -m 644 mailcap.order ${D}${sysconfdir}/
31 install -m 644 mailcap.man ${D}${mandir}/man5/mailcap.5 35 install -m 644 mailcap.man ${D}${mandir}/man5/mailcap.5
32 install -m 644 mailcap.order.man ${D}${mandir}/man5/mailcap.order.5 36 install -m 644 mailcap.order.man ${D}${mandir}/man5/mailcap.order.5
33# install -m 755 install-mime ${D}${sbindir}/ 37# install -m 755 install-mime ${D}${sbindir}/
34# install -m 644 install-mime.man ${D}${mandir}/man8/install-mime.8 38# install -m 644 install-mime.man ${D}${mandir}/man8/install-mime.8
35 install -m 755 update-mime ${D}${sbindir}/ 39 install -m 755 update-mime ${D}${sbindir}/
36 install -m 644 update-mime.man ${D}${mandir}/man8/update-mime.8 40 install -m 644 update-mime.man ${D}${mandir}/man8/update-mime.8
37 install -m 755 run-mailcap ${D}${bindir}/ 41 install -m 755 run-mailcap ${D}${bindir}/
38 install -m 644 run-mailcap.man ${D}${mandir}/man1/run-mailcap.1 42 install -m 644 run-mailcap.man ${D}${mandir}/man1/run-mailcap.1
39# install -m 644 rfcs/* ${D}${docdir}/ 43# install -m 644 rfcs/* ${D}${docdir}/
40 install -m 644 debian/changelog ${D}${docdir}/changelog.Debian 44 install -m 644 debian/changelog ${D}${docdir}/changelog.Debian
41 install -m 644 debian/README ${D}${docdir}/copyright 45 install -m 644 debian/copyright ${D}${docdir}/copyright
42 install -m 755 debian-view ${D}${libdir}/mime/ 46 install -m 755 debian-view ${D}${libdir}/mime/
43 install -m 755 playaudio ${D}${libdir}/mime/ 47 install -m 755 playaudio ${D}${libdir}/mime/
44 install -m 755 playdsp ${D}${libdir}/mime/ 48 install -m 755 playdsp ${D}${libdir}/mime/
45 install -m 644 mailcap.entries ${D}${libdir}/mime/packages/mime-support 49 install -m 644 mailcap.entries ${D}${libdir}/mime/packages/mime-support
46 cd ${D}${mandir}; gzip -9fv */* 50 cd ${D}${mandir}; gzip -9fv */*
47 cd ${D}${docdir}; gzip -9v * 51 cd ${D}${docdir}; gzip -9v *
48 cd ${D}${docdir}; gunzip copyright.gz 52 cd ${D}${docdir}; gunzip copyright.gz
@@ -56,9 +60,6 @@ do_install () {
56 cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz print.1.gz 60 cd ${D}${mandir}/man1; ln -s run-mailcap.1.gz print.1.gz
57} 61}
58 62
59SRC_URI[md5sum] = "d6e5d715e331147352c50c158dbdec6d"
60SRC_URI[sha256sum] = "a529c7892cb786f514af71f4ca5a4c3ebc58b538a49ff959c0d97592d38f040a"
61
62ALTERNATIVE_PRIORITY = "90" 63ALTERNATIVE_PRIORITY = "90"
63ALTERNATIVE_${PN} = "mime.types" 64ALTERNATIVE_${PN} = "mime.types"
64ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types" 65ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types"