From 75ed0c7f7c8076c9dc0545a4ec32c87d5bc61f20 Mon Sep 17 00:00:00 2001 From: Jakov Smolić Date: Sat, 31 Dec 2022 19:10:08 +0100 Subject: net-mail/metamail: treeclean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/882631 Closes: https://bugs.gentoo.org/731256 Closes: https://bugs.gentoo.org/875464 Closes: https://bugs.gentoo.org/882263 Closes: https://bugs.gentoo.org/713492 Signed-off-by: Jakov Smolić --- net-mail/metamail/Manifest | 2 - .../files/metamail-2.7.45.3-CVE-2006-0709.patch | 40 ------------ .../files/metamail-2.7.53.3-glibc-2.10.patch | 30 --------- net-mail/metamail/metadata.xml | 5 -- net-mail/metamail/metamail-2.7.53.3-r3.ebuild | 72 ---------------------- 5 files changed, 149 deletions(-) delete mode 100644 net-mail/metamail/Manifest delete mode 100644 net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch delete mode 100644 net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch delete mode 100644 net-mail/metamail/metadata.xml delete mode 100644 net-mail/metamail/metamail-2.7.53.3-r3.ebuild (limited to 'net-mail') diff --git a/net-mail/metamail/Manifest b/net-mail/metamail/Manifest deleted file mode 100644 index 6ed3f6200210..000000000000 --- a/net-mail/metamail/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST metamail_2.7-53.diff.gz 322363 BLAKE2B bfb3ee13816a62f03ba5cdc3e54957b03d41662d1d32a908b7a02d92490f4c5eafd8e57d945e18902b873c9bbc4615ce7819bfb4fea3f227e1ca918aaa81fd28 SHA512 cb5351308f1ad479e1560446f7f540165ff165d7306a5592a8286edd643301608ff9ace01456d4b0d03d27b9b838b61f08412b15d6b3aa99b95e2ab484e884ed -DIST mm2.7.tar.Z 262881 BLAKE2B da245467b5dd009eb489e136d072205e5bc4a190b2b3a9c558f30c7dc6dfbecff8df1f51359cdc2561f7cd85519a6fd40705f2f640cb6632857507cb6bd551fe SHA512 9cd2619ca83594ca7be94453270b6a9ef01f5a496fd361bb76f16fc575f549ab450efa1d480c3d4b0b172f245d9c3276f99ba1ae4e3ae4bb6618df9d8131f77e diff --git a/net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch b/net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch deleted file mode 100644 index 6572a514c37c..000000000000 --- a/net-mail/metamail/files/metamail-2.7.45.3-CVE-2006-0709.patch +++ /dev/null @@ -1,40 +0,0 @@ ---- src/src/metamail/metamail.c.old 2006-03-14 10:13:35.000000000 -0800 -+++ src/src/metamail/metamail.c 2006-03-14 10:11:52.000000000 -0800 -@@ -313,7 +313,7 @@ - WroteSquirrelFile = 0; - } - LineBuf = XMALLOC(char, LINE_BUF_SIZE); -- sprintf(LineBuf, "--%s", boundary); -+ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary); - strcpy(boundary, LineBuf); - boundarylen = strlen(boundary); - if (BoundaryCt >= BoundaryAlloc) { -@@ -1712,7 +1712,7 @@ - if (boundary[0] == '"') { - boundary=UnquoteString(boundary); - } -- sprintf(LineBuf, "--%s", boundary); -+ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary); - strcpy(boundary, LineBuf); - boundarylen = strlen(boundary); - if (BoundaryCt >= BoundaryAlloc) { ---- src/metamail/metamail.c.old 2006-03-14 10:12:39.000000000 -0800 -+++ src/metamail/metamail.c 2006-03-14 10:14:53.000000000 -0800 -@@ -445,7 +445,7 @@ - } - LineBuf = malloc(LINE_BUF_SIZE); - if (!LineBuf) ExitWithError(nomem); -- sprintf(LineBuf, "--%s", boundary); -+ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary); - strcpy(boundary, LineBuf); - boundarylen = strlen(boundary); - if (BoundaryCt >= BoundaryAlloc) { -@@ -2115,7 +2115,7 @@ - if (boundary[0] == '"') { - boundary=UnquoteString(boundary); - } -- sprintf(LineBuf, "--%s", boundary); -+ snprintf(LineBuf, LINE_BUF_SIZE, "--%s", boundary); - strcpy(boundary, LineBuf); - boundarylen = strlen(boundary); - if (BoundaryCt >= BoundaryAlloc) { diff --git a/net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch b/net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch deleted file mode 100644 index 7da331adbbf8..000000000000 --- a/net-mail/metamail/files/metamail-2.7.53.3-glibc-2.10.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -ur mm2.7.orig/src/metamail/uue.c mm2.7/src/metamail/uue.c ---- mm2.7.orig/src/metamail/uue.c 1993-07-28 21:31:02.000000000 +0300 -+++ mm2.7/src/metamail/uue.c 2009-08-07 12:09:35.000000000 +0300 -@@ -30,7 +30,7 @@ - } - - --getline (buf, size, fp) -+get_line (buf, size, fp) - char *buf; - int size; - FILE *fp; -@@ -70,7 +70,7 @@ - char buf[63]; - - while (1) { -- if (getline (buf, sizeof buf, infp) < 0) { -+ if (get_line (buf, sizeof buf, infp) < 0) { - fprintf (stderr, "Premature EOF!\n"); - return; - } -@@ -82,7 +82,7 @@ - } - } - while (1) { -- if (getline (buf, sizeof buf, infp) < 0) { -+ if (get_line (buf, sizeof buf, infp) < 0) { - fprintf (stderr, "Premature EOF!\n"); - return; - } diff --git a/net-mail/metamail/metadata.xml b/net-mail/metamail/metadata.xml deleted file mode 100644 index 85e4ed814fa2..000000000000 --- a/net-mail/metamail/metadata.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/net-mail/metamail/metamail-2.7.53.3-r3.ebuild b/net-mail/metamail/metamail-2.7.53.3-r3.ebuild deleted file mode 100644 index 1d4ff4fdfb68..000000000000 --- a/net-mail/metamail/metamail-2.7.53.3-r3.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools toolchain-funcs - -MY_PV=$(ver_cut 1-2) -DEB_PV=${MY_PV}-$(ver_cut 3) - -DESCRIPTION="Metamail (with Debian patches) - Generic MIME package" -HOMEPAGE="http://ftp.funet.fi/pub/unix/mail/metamail/" -SRC_URI="http://ftp.funet.fi/pub/unix/mail/metamail/mm${MY_PV}.tar.Z - mirror://debian/pool/main/m/metamail/metamail_${DEB_PV}.diff.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 ~s390 sparc x86" -IUSE="static-libs" - -DEPEND="sys-libs/ncurses:= - app-arch/sharutils - net-mail/mailbase" -RDEPEND=" - ${DEPEND} - app-misc/mime-types - sys-apps/debianutils - !app-misc/run-mailcap" -BDEPEND="virtual/pkgconfig" - -S=${WORKDIR}/mm${MY_PV}/src - -src_prepare() { - eapply "${WORKDIR}"/metamail_${DEB_PV}.diff - eapply "${FILESDIR}"/${PN}-2.7.45.3-CVE-2006-0709.patch - eapply "${FILESDIR}"/${P}-glibc-2.10.patch - - # respect CFLAGS - sed -i -e 's/CFLAGS/LIBS/' \ - "${S}"/src/{metamail,richmail}/Makefile.am || die - - # add missing include - QA - sed -i -e '/config.h/a #include ' \ - "${S}"/src/metamail/shared.c || die - - # Fix building with ncurses[tinfo] - sed -i -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \ - src/richmail/Makefile.am \ - src/metamail/Makefile.am || die - - eapply_user - eautoreconf - chmod +x "${S}"/configure -} - -src_configure() { - econf $(use_enable static-libs static) -} - -src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" -} - -src_install() { - emake DESTDIR="${D}" install - dodoc CREDITS README - rm man/mmencode.1 - rm man/mailcap.5 - doman man/* debian/mimencode.1 debian/mimeit.1 - - use static-libs || find "${D}"/usr/lib* -name '*.la' -delete -} -- cgit v1.2.3-65-gdbad