summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@gentoo.org>2023-12-30 00:09:16 +0100
committerPetr Vaněk <arkamar@gentoo.org>2023-12-30 00:17:24 +0100
commit948716606d1caebc4c762d4b90346fcf3e730588 (patch)
tree72ea36f147afb30cea75704f219ade6ad9778565 /net-mail/ripmime
parentnet-mail/ripmime: use https in HOMEPAGE and SRC_URI (diff)
downloadgentoo-948716606d1caebc4c762d4b90346fcf3e730588.tar.gz
gentoo-948716606d1caebc4c762d4b90346fcf3e730588.tar.bz2
gentoo-948716606d1caebc4c762d4b90346fcf3e730588.zip
net-mail/ripmime: add 1.4.1.0
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'net-mail/ripmime')
-rw-r--r--net-mail/ripmime/Manifest1
-rw-r--r--net-mail/ripmime/files/ripmime-1.4.1.0-buffer-overflow.patch15
-rw-r--r--net-mail/ripmime/ripmime-1.4.1.0.ebuild47
3 files changed, 63 insertions, 0 deletions
diff --git a/net-mail/ripmime/Manifest b/net-mail/ripmime/Manifest
index 8dc9681e6039..a122188e5b6b 100644
--- a/net-mail/ripmime/Manifest
+++ b/net-mail/ripmime/Manifest
@@ -1 +1,2 @@
DIST ripmime-1.4.0.10.tar.gz 172155 BLAKE2B 83e7500a8cc48d29d31515487968dfd7a2b1768b12f296e11ac5e55420dc765498859608328618dcd0295f3a9901a06a189ad8ae24c6a6c20e604d48a3dd29ea SHA512 1c2d2180d60a56c70046e95a29925e39d3f76da98cc2fa153b6fc3a8eb0fc5ec5f45524e9f5ae8706a955366a752d25a0a2f560f1d75de3f2733ec31befb83d3
+DIST ripmime-1.4.1.0.tar.gz 174907 BLAKE2B 1a3204ac3b1661b3b06c534970fd13f3287d3cfb328004257e0b42bb26f00b89510853138cfaec4e723840a4cd5fc8a5e0c7e56f1cb5decdd169a042d0a24dd8 SHA512 d93bdb7a581bc5cce79dc87c28783633f1726f55d8aa068a1356e86e1fa76b5401cef4fc27d481ff3d03ad60473cc8b1fb3439ebbec20a2f8761431c2d63fa20
diff --git a/net-mail/ripmime/files/ripmime-1.4.1.0-buffer-overflow.patch b/net-mail/ripmime/files/ripmime-1.4.1.0-buffer-overflow.patch
new file mode 100644
index 000000000000..29d5c3c17568
--- /dev/null
+++ b/net-mail/ripmime/files/ripmime-1.4.1.0-buffer-overflow.patch
@@ -0,0 +1,15 @@
+Upstream-PR: https://github.com/inflex/ripMIME/pull/23
+
+diff --git a/MIME_headers.c b/MIME_headers.c
+index ead3d12..57812d3 100644
+--- a/MIME_headers.c
++++ b/MIME_headers.c
+@@ -2233,7 +2233,7 @@ int MIMEH_parse_contentlocation( char *header_name, char *header_value, struct M
+ {
+ if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIME_parse_contentlocation:DEBUG: filename = %s\n", FL, p);
+ snprintf(hinfo->name, sizeof(hinfo->name),"%s",p);
+- snprintf(hinfo->filename, sizeof(hinfo->name),"%s",p);
++ snprintf(hinfo->filename, sizeof(hinfo->filename),"%s",p);
+ FNFILTER_filter(hinfo->filename, _MIMEH_FILENAMELEN_MAX);
+ SS_push(&(hinfo->ss_filenames), hinfo->filename, strlen(hinfo->filename));
+
diff --git a/net-mail/ripmime/ripmime-1.4.1.0.ebuild b/net-mail/ripmime/ripmime-1.4.1.0.ebuild
new file mode 100644
index 000000000000..73776a065299
--- /dev/null
+++ b/net-mail/ripmime/ripmime-1.4.1.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="extract attachment files out of a MIME-encoded email pack"
+HOMEPAGE="
+ https://github.com/inflex/ripMIME
+ https://pldaniels.com/ripmime/
+"
+SRC_URI="
+ https://github.com/inflex/ripMIME/archive/refs/tags/${PV}.tar.gz
+ -> ${P}.tar.gz
+"
+S="${WORKDIR}/ripMIME-${PV}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.0.9-makefile.patch"
+ "${FILESDIR}/${P}-buffer-overflow.patch"
+)
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ CFLAGS="${CFLAGS}" \
+ default solib
+}
+
+src_install() {
+ dobin ripmime
+ doman ripmime.1
+ dodoc CHANGELOG INSTALL README TODO
+
+ insinto /usr/include/ripmime
+ doins mime.h ripmime-api.h
+
+ dolib.so libripmime.so.1.4.0
+ dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so
+ dosym libripmime.so.1.4.0 /usr/$(get_libdir)/libripmime.so.1
+}