summaryrefslogtreecommitdiff
path: root/app-text/antiword
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/antiword
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/antiword')
-rw-r--r--app-text/antiword/Manifest7
-rw-r--r--app-text/antiword/antiword-0.37-r1.ebuild50
-rw-r--r--app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch17
-rw-r--r--app-text/antiword/metadata.xml20
4 files changed, 94 insertions, 0 deletions
diff --git a/app-text/antiword/Manifest b/app-text/antiword/Manifest
new file mode 100644
index 000000000000..9fbf2e10079a
--- /dev/null
+++ b/app-text/antiword/Manifest
@@ -0,0 +1,7 @@
+AUX antiword-0.37-CVE-2014-8123.patch 528 SHA256 130ae28174bfb30d75755e0df55eab33ffc417173c493dc53405cdd47c2ce60c SHA512 412884a236abb5ee75e5c707581c7e0158614d0e168cd9a8fe02dd8dcb8c0963ae2269c9575cd9cb9f4876efb3bec6bef7934fec5c7738530012495637a2d694 WHIRLPOOL b676eb14c31dc6555cd303f42a1c30c84b1c7597ff0de4c28d69278c8d8f67791ca040b03392c73c2e6a785b5958fad60340fce35b89a76eeea3909714c17d28
+DIST antiword-0.37.tar.gz 317884 SHA256 8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac SHA512 6cd8fb9137238417544cf8754829a2d5296055d730ea62a8a025236baa79516190317d146401ff40cde73e1ee2c3c374a2ea01b2e5d24e149310bcabb8bfdce8 WHIRLPOOL 653299ddeba3c153651a664abe12d9c9960227289cfada037574d97dbb3a1a2bf958571815ce6995e38ce7a197714b1852a39aebae108986cb74e861e948c7e3
+DIST antiword-gentoo-patches-r2.tar.bz2 1747 SHA256 62de6106d47e80a5e890bfbe4d2c85c5c78022e196857a4fca035c7c035d583d SHA512 45ed3ee1c514a9ee78bc8963e56be18426b47ea628f02934dbcec83c2d632162e458f75f998da438daae4794fcce36fd8922a172804c0fc83c6f32c9a8092ffe WHIRLPOOL e3a578c1bb082378f0db480aaab640f56f53e23fb35416a04e06803a8fdbd0193f0fbe33cce074dad00d13feada2bc97ce62dae460123047bbe80cd49994b445
+EBUILD antiword-0.37-r1.ebuild 1431 SHA256 e1700fe885c12607b441d31f7e54bcd97162a4989074d5a0268b60e68a20653c SHA512 fdc188c4658e1093e4f843711a1843da8e827f1c737a627e54000bb3b4d16827eb828c52019b64adaca2fcfb20e6f57b29271f8d7c21241fc7fd9878c0204585 WHIRLPOOL 8013bdf71acad70492ec0a9c74794f778cebcd968f063fc72f193de296ccc3b939e2837c69a81e630cfa7532bf59a926701cad96a8159b43a927af96c3386286
+MISC ChangeLog 3228 SHA256 c0bbe8592fe9632f23a9fe4796f5381a91ee9b2de2ddb20c2381bf78955a3672 SHA512 961d0d5f2245b924203a6c459c70246ff9c97265f2b6646ed196bcc9a011f989ee8c4f19f87c2daaea5dd12b004daf3dc7e28097d5f5461ac83f921e538741ae WHIRLPOOL 828ea80e1a5460c9b6ef60ed98b50b607e9827c9e9b42b703d080821004054a31bde16555103d3e3bd5b2b834c97ded630809e583c45704575710e6da4ed4f2b
+MISC ChangeLog-2015 7639 SHA256 72b84b5a396d6611ff98c5f592d2ffe5092f879c8eb0e86a263326b54e52de2b SHA512 5b9e92a8b4ade62db21ab76e5141483bb8028663608d4a54ccff439c254cb98b5b50ede2c0361a56ba6300cb440f9a7ff1542c909ce19df27d423e8dfc2b2c85 WHIRLPOOL f19a682a47c6fb4342409c0b2e8117184a14fb4db552bfbf497edb69f39a64ee195be4d2a80056e772350d532655483cd6a194b35cafcb1ea05a2a7df1095b6a
+MISC metadata.xml 646 SHA256 49743c55af4012113a52ebff24f576dad1d7af6c3e09e7c92f51f1f690478585 SHA512 0959f670bfca8a2d2cba2783fb0d9a9a7102faaa1220e7dc304f709e4cf15132ebbc5c764836c3c5becada9a3058b954d812f944dc3f0103ce0936caa4a804f8 WHIRLPOOL e1b9613c23319cf6f51721c7df1b3ddcb3fbe3541cbd2af8948ce47d4c4d7f6e3535a9794e0f33bec7576cd46236abc4ab149a7b1c4825e8f1f772a8c39935c5
diff --git a/app-text/antiword/antiword-0.37-r1.ebuild b/app-text/antiword/antiword-0.37-r1.ebuild
new file mode 100644
index 000000000000..7aafe949cf22
--- /dev/null
+++ b/app-text/antiword/antiword-0.37-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+IUSE="kde"
+PATCHVER="r2"
+DESCRIPTION="free MS Word reader"
+HOMEPAGE="http://www.winfield.demon.nl"
+SRC_URI="http://www.winfield.demon.nl/linux/${P}.tar.gz
+ https://dev.gentoo.org/~grobian/distfiles/${PN}-gentoo-patches-${PATCHVER}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 ~arm ~hppa ppc ppc64 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+src_prepare() {
+ # Makefile is a symlink to Makefile.Linux, avoid that we patch it by
+ # accident using patch <2.7, see bug #435492
+ rm Makefile || die
+
+ EPATCH_SUFFIX="patch" epatch "${WORKDIR}/${PN}-gentoo-patches-${PATCHVER}"
+
+ # Re-add convenience symlink, see above
+ ln -s Makefile.Linux Makefile
+
+ epatch "${FILESDIR}"/${P}-CVE-2014-8123.patch
+}
+
+src_configure() { :; }
+
+src_compile() {
+ emake PREFIX="${EPREFIX}" OPT="${CFLAGS}" CC="$(tc-getCC)" LD="$(tc-getCC)" \
+ LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ emake -j1 PREFIX="${EPREFIX}" DESTDIR="${D}" global_install || die
+
+ use kde || rm -f "${ED}"/usr/bin/kantiword
+
+ insinto /usr/share/${PN}/examples
+ doins Docs/testdoc.doc Docs/antiword.php || die
+
+ cd Docs
+ doman antiword.1 || die
+ dodoc ChangeLog Exmh Emacs FAQ History Netscape QandA ReadMe Mozilla Mutt || die
+}
diff --git a/app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch b/app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch
new file mode 100644
index 000000000000..8b6baf9b2ca2
--- /dev/null
+++ b/app-text/antiword/files/antiword-0.37-CVE-2014-8123.patch
@@ -0,0 +1,17 @@
+index 8a95fb9..7797d1f 100644
+--- a/wordole.c
++++ b/wordole.c
+@@ -259,6 +259,11 @@ bGetPPS(FILE *pFile,
+ }
+ tNameSize = (size_t)usGetWord(0x40, aucBytes);
+ tNameSize = (tNameSize + 1) / 2;
++ if (tNameSize >= sizeof(atPPSlist[0].szName)) {
++ werr(0, "PPS %d appears to be invalid.", iIndex);
++ atPPSlist = xfree(atPPSlist);
++ return FALSE;
++ }
+ vName2String(atPPSlist[iIndex].szName, aucBytes, tNameSize);
+ atPPSlist[iIndex].ucType = ucGetByte(0x42, aucBytes);
+ if (atPPSlist[iIndex].ucType == 5) {
+--
+2.1.2
diff --git a/app-text/antiword/metadata.xml b/app-text/antiword/metadata.xml
new file mode 100644
index 000000000000..cc6b77e7c645
--- /dev/null
+++ b/app-text/antiword/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>clabbe.montjoie@gmail.com</email>
+ <name>LABBE Corentin (Montjoie)</name>
+ <description>Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>grobian@gentoo.org</email>
+ <name>Fabian Groffen</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:antiword_project:antiword</remote-id>
+ </upstream>
+</pkgmetadata>