Diff imagemagick-7.1.1.11 with a imagemagick-7.1.1.11-r2
/usr/portage/media-gfx/imagemagick/imagemagick-7.1.1.11-r2.ebuild 2023-10-09 14:52:31.632368404 +0300 | ||
---|---|---|
14 | 14 |
MY_PV="$(ver_rs 3 '-')" |
15 | 15 |
MY_P="ImageMagick-${MY_PV}" |
16 | 16 |
SRC_URI="mirror://imagemagick/${MY_P}.tar.xz" |
17 |
KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" |
|
17 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" |
|
18 | 18 |
fi |
19 | 19 | |
20 | 20 |
S="${WORKDIR}/${MY_P}" |
... | ... | |
101 | 101 |
#elibtoolize # for Darwin modules |
102 | 102 |
eautoreconf |
103 | 103 | |
104 |
# Apply hardening, bug #664236 |
|
105 |
cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die |
|
106 |
sed -i -e '/^<policymap>$/ { |
|
107 |
r policy-hardening.snippet |
|
108 |
d |
|
109 |
}' \ |
|
110 |
config/policy.xml || \ |
|
111 |
die "Failed to apply hardening of policy.xml" |
|
112 |
einfo "policy.xml hardened" |
|
113 | ||
114 | 104 |
# For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3 |
115 | 105 |
local ati_cards mesa_cards nvidia_cards render_cards |
116 | 106 |
shopt -s nullglob |
... | ... | |
247 | 237 |
insinto /usr/share/${PN} |
248 | 238 |
doins config/*icm |
249 | 239 |
} |
250 | ||
251 |
pkg_postinst() { |
|
252 |
local _show_policy_xml_notice= |
|
253 | ||
254 |
if [[ -z "${REPLACING_VERSIONS}" ]]; then |
|
255 |
# This is a new installation |
|
256 |
_show_policy_xml_notice=yes |
|
257 |
else |
|
258 |
local v |
|
259 |
for v in ${REPLACING_VERSIONS}; do |
|
260 |
if ! ver_test "${v}" -gt "7.0.8.10-r2"; then |
|
261 |
# This is an upgrade |
|
262 |
_show_policy_xml_notice=yes |
|
263 | ||
264 |
# Show this elog only once |
|
265 |
break |
|
266 |
fi |
|
267 |
done |
|
268 |
fi |
|
269 | ||
270 |
if [[ -n "${_show_policy_xml_notice}" ]]; then |
|
271 |
elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7" |
|
272 |
elog "which will prevent the usage of the following coders by default:" |
|
273 |
elog "" |
|
274 |
elog " - PS" |
|
275 |
elog " - PS2" |
|
276 |
elog " - PS3" |
|
277 |
elog " - EPS" |
|
278 |
elog " - PDF" |
|
279 |
elog " - XPS" |
|
280 |
fi |
|
281 |
} |