1 |
commit: 3e7ae6985e5f2c3ac6ebcc30d94449337a09bf31 |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 19:25:09 2021 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 19:25:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e7ae698 |
7 |
|
8 |
dev-php/PHPMailer: remove vulnerable PHPMailer-6.4.1.ebuild. |
9 |
|
10 |
Bug: https://bugs.gentoo.org/798138 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
12 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
13 |
|
14 |
dev-php/PHPMailer/Manifest | 1 - |
15 |
dev-php/PHPMailer/PHPMailer-6.4.1.ebuild | 74 -------------------------------- |
16 |
2 files changed, 75 deletions(-) |
17 |
|
18 |
diff --git a/dev-php/PHPMailer/Manifest b/dev-php/PHPMailer/Manifest |
19 |
index de4c646f8b9..353f53822af 100644 |
20 |
--- a/dev-php/PHPMailer/Manifest |
21 |
+++ b/dev-php/PHPMailer/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST PHPMailer-6.4.1.tar.gz 98058 BLAKE2B 88b11e096be6a81591b2c68efb1fdc9a5ff0c384508939545c333f940a60949acb34db000ccd3ae9dbc4c5609f6d20006b7d08ad61bb96edf1d7f11b8091c236 SHA512 c702e53afec4a4c9cdb8757928883fcfd6ed5f2babc03466ca2a698e4e4535014407be5618e6dbcd69135f36f6f723fdee266f70fa6546563949d785f5db4f51 |
24 |
DIST PHPMailer-6.5.0.tar.gz 99073 BLAKE2B dcb917233da29ab45305f7cf0405f9bb384bd4f98f062a74d94a168868d0cd92017e555bf8e7139130dd669e0a04917e3789c548b5165112d591aa403bfd56b8 SHA512 0632ec8b80c30393b00aebbadde7dd032eb2553232a100a74d69b6ed6465adf1eb3a4acca0aaf040665a978e7507aee9350b092336056ccb5306fbaea4640376 |
25 |
|
26 |
diff --git a/dev-php/PHPMailer/PHPMailer-6.4.1.ebuild b/dev-php/PHPMailer/PHPMailer-6.4.1.ebuild |
27 |
deleted file mode 100644 |
28 |
index 48dc349297f..00000000000 |
29 |
--- a/dev-php/PHPMailer/PHPMailer-6.4.1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,74 +0,0 @@ |
32 |
-# Copyright 1999-2021 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-DESCRIPTION="Full-featured email creation and transfer class for PHP" |
38 |
-HOMEPAGE="https://github.com/PHPMailer/PHPMailer" |
39 |
-SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
- |
41 |
-LICENSE="LGPL-2.1" |
42 |
-SLOT="0" |
43 |
-KEYWORDS="~amd64 ~x86" |
44 |
- |
45 |
-# To help out the Composer children, the tests and examples are missing |
46 |
-# from the release tarballs. |
47 |
-IUSE="doc idn ssl" |
48 |
- |
49 |
-# The ctype and filter extensions get used unconditionally, with no |
50 |
-# fallback and no "extension missing" exception. All of the other |
51 |
-# extensions are technically optional, depending on how you use |
52 |
-# PHPMailer and whether or not you're willing to settle for fallback |
53 |
-# implementations. |
54 |
-# |
55 |
-# The insane dependency string is to prevent the ctype and filter |
56 |
-# extensions from being provided by one version (i.e. slot) of PHP, |
57 |
-# while intl and unicode are provided by another. |
58 |
-RDEPEND=" |
59 |
- ssl? ( |
60 |
- idn? ( dev-lang/php:*[ctype,filter,intl,ssl,unicode] ) |
61 |
- !idn? ( dev-lang/php:*[ctype,filter,ssl] ) |
62 |
- ) |
63 |
- !ssl? ( |
64 |
- idn? ( dev-lang/php:*[ctype,filter,intl,unicode] ) |
65 |
- !idn? ( dev-lang/php:*[ctype,filter] ) |
66 |
- )" |
67 |
-BDEPEND="doc? ( dev-php/phpDocumentor )" |
68 |
- |
69 |
-src_prepare() { |
70 |
- default |
71 |
- |
72 |
- # OAuth.php relies on a (now non-nonexistent) autoloader. We remove |
73 |
- # it early so that we don't generate documentation for it later on. |
74 |
- rm src/OAuth.php || die 'failed to remove src/OAuth.php' |
75 |
-} |
76 |
- |
77 |
-src_compile() { |
78 |
- if use doc; then |
79 |
- phpdoc --filename="src/*.php" \ |
80 |
- --target="./html" \ |
81 |
- --cache-folder="${T}" \ |
82 |
- --title="${PN}" \ |
83 |
- --sourcecode \ |
84 |
- --force \ |
85 |
- --progressbar \ |
86 |
- || die "failed to generate API documentation" |
87 |
- fi |
88 |
-} |
89 |
- |
90 |
-src_install() { |
91 |
- # The PHPMailer class loads its language files |
92 |
- # using a relative path, so we need to keep the "src" here. |
93 |
- insinto "/usr/share/php/${PN}" |
94 |
- doins -r language src |
95 |
- |
96 |
- dodoc README.md SECURITY.md |
97 |
- use doc && dodoc -r html/* |
98 |
-} |
99 |
- |
100 |
-pkg_postinst() { |
101 |
- elog "${PN} has been installed in /usr/share/php/${PN}/." |
102 |
- elog "Upstream no longer provides an autoloader, so you will need" |
103 |
- elog "to include each source file (for example: PHPMailer.php," |
104 |
- elog "Exception.php,...) that you need." |
105 |
-} |