Сравнение imagemagick-6.9.12.89-r1 с imagemagick-6.9.12.89-r2

/usr/portage/media-gfx/imagemagick/imagemagick-6.9.12.89-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 ~mips ppc ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
17
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
18 18
fi
19 19

  
20 20
S="${WORKDIR}/${MY_P}"
......
92 92
src_prepare() {
93 93
	default
94 94

  
95
	# Apply hardening, bug #664236
96
	cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
97
	sed -i -e '/^<policymap>$/ {
98
			r policy-hardening.snippet
99
			d
100
		}' \
101
		config/policy.xml || \
102
		die "Failed to apply hardening of policy.xml"
103
	einfo "policy.xml hardened"
104

  
105 95
	# for Darwin modules
106 96
	elibtoolize
107 97

  
......
237 227
	insinto /usr/share/${PN}
238 228
	doins config/*icm
239 229
}
240

  
241
pkg_postinst() {
242
	local _show_policy_xml_notice=
243

  
244
	if [[ -z "${REPLACING_VERSIONS}" ]]; then
245
		# This is a new installation
246
		_show_policy_xml_notice=yes
247
	else
248
		local v
249
		for v in ${REPLACING_VERSIONS}; do
250
			if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
251
				# This is an upgrade
252
				_show_policy_xml_notice=yes
253

  
254
				# Show this elog only once
255
				break
256
			fi
257
		done
258
	fi
259

  
260
	if [[ -n "${_show_policy_xml_notice}" ]]; then
261
		elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
262
		elog "which will prevent the usage of the following coders by default:"
263
		elog ""
264
		elog "  - PS"
265
		elog "  - PS2"
266
		elog "  - PS3"
267
		elog "  - EPS"
268
		elog "  - PDF"
269
		elog "  - XPS"
270
	fi
271
}
Спасибо!