From: Jeroen Roovers Date: Wed, 19 Oct 2011 09:03:47 +0000 (+0000) Subject: http://my.opera.com/desktopteam/blog/2011/10/19/opera-11-52-security-update X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fa990d9d18472ba2ad0f8c2e525c60adde1c2c2a;p=gentoo.git my.opera.com/desktopteam/blog/2011/10/19/opera-11-52-security-update Package-Manager: portage-2.2.0_alpha69/cvs/Linux x86_64 --- diff --git a/www-client/opera/ChangeLog b/www-client/opera/ChangeLog index 0dab3e870694..1d1555f30653 100644 --- a/www-client/opera/ChangeLog +++ b/www-client/opera/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/opera # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.650 2011/10/17 21:09:00 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/ChangeLog,v 1.651 2011/10/19 09:03:47 jer Exp $ + +*opera-11.52.1100 (19 Oct 2011) + + 19 Oct 2011; Jeroen Roovers +opera-11.52.1100.ebuild: + http://my.opera.com/desktopteam/blog/2011/10/19/opera-11-52-security-update *opera-11.51.1087-r1 (17 Oct 2011) diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest index 9dd89a839942..2bec1fde6976 100644 --- a/www-client/opera/Manifest +++ b/www-client/opera/Manifest @@ -4,14 +4,18 @@ Hash: SHA1 DIST opera-11.51-1087.i386.freebsd.tar.xz 11149240 RMD160 1c44af8ffabfb2800db2b90d3cb988fd00966cab SHA1 2a0dd4151f4bab974f9fa13c17b9684ac4b991a2 SHA256 290589cf4c7ef1824c893a7fc5d42cbe964c361113bcc1c7ed0c5bc945b56118 DIST opera-11.51-1087.i386.linux.tar.xz 11091928 RMD160 310b0cb07b973c17e633aaa467e7aeb4f2e2b1af SHA1 66bbb7be225cc873557f30fed0a3e9572c408650 SHA256 e2da38a1775b59ebf09e3695505634a3df9655b8812e3b4fe3163d02488d4aad DIST opera-11.51-1087.x86_64.linux.tar.xz 11847484 RMD160 9be81036bc18d7d4f91ab18cf03a5c33b38488e9 SHA1 6e519ba468f09cf1de34ca659f71efe9aa8be664 SHA256 63a4fb2e480bd895384bfb8e2c8e71dc979354f0eb8423b552dc37089dc791ad +DIST opera-11.52-1100.i386.freebsd.tar.xz 11116644 RMD160 7692b599389e2d3e3e6f8c3ad8176d1d3bec6eff SHA1 4335431402fc0aea985c045c818dc23fbe00a6c4 SHA256 ae90c802ba9f1f487df71dddfb538af08265421341cc3146ac80ddfaa6b452d3 +DIST opera-11.52-1100.i386.linux.tar.xz 11083092 RMD160 54252f6f655e2d7f38931ab3338c100e4ed49eca SHA1 3c4a7b36016aa9727cb7805db504d0159fe8ac6e SHA256 ccbfdcd0f9f5e35f64f6b71410b5af7b5e749f0976e530d1543d6cc58b989af9 +DIST opera-11.52-1100.x86_64.linux.tar.xz 11860188 RMD160 dbeb3375eb9443559bbda05fc90a1e00f81df6cf SHA1 69eab27253f7dc9bb1e7ecf57983f0d675ec158e SHA256 9880b91733eddc17b85edba3eef0fe96c7e6a8fb3cc8c802b3719307214cb7a5 EBUILD opera-11.51.1087-r1.ebuild 5698 RMD160 d980286b2b46a5ee044d1e408d5ad8843f1afd95 SHA1 d4788470adb61cf10fe176f06a664db32b0ea94c SHA256 7f881fbb0f90df955df387fe9283c8485e31b390979eb6f55b0702bca001918b EBUILD opera-11.51.1087.ebuild 6046 RMD160 e24f0a3ba2562a7f982eff551a50e6869cb7457e SHA1 c26eb97c0c32f6c5e02735e5bd5c5260d77a07b6 SHA256 1bf4d29b385dcd3a80649b03eeb64b31c131c08467df87a2810a15a8585c14ef -MISC ChangeLog 124228 RMD160 dc51cff7899cac0052ff0817ea8da79f1e2a416d SHA1 fa30ba524cafdea2ecdab30a3019f6c59398235e SHA256 f40fc584fbd9347e24f877ecefb929daac3c460c877690604c99fb0214b725bd +EBUILD opera-11.52.1100.ebuild 5695 RMD160 22943a92191e66ecd9d58ad4770be996acd7fbbb SHA1 c26d2ac4b959ef94e175705f449db76570a9aaae SHA256 20849466b8e4eeb79a75718167a19a0ad65eda895ed2baabd1018fba32e0e930 +MISC ChangeLog 124413 RMD160 03b56079608e8bb4bff834680a48e99e78bbad1e SHA1 360e2211fd82322d85736c558c645892fa608175 SHA256 cb87b9c555148f0f209a868d02dbafbccef0fbc71148e4c988775d9dc40fc351 MISC metadata.xml 620 RMD160 f8a12fd1775a3eedf492dad65b79198d452f60a4 SHA1 d537cfe0d1da51a92612821d24ac851174389340 SHA256 208c8c09c43c5092d2491833c97990cd5b3d8fce38e03d70d90f0ffbbee84282 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk6cmXIACgkQVWmRsqeSphP9IwCeLAU4+EuZeGh9Gr+LmqYEWy5u -bMcAn1Orfp0npUKd+4KBHTywmbUkWIs6 -=yY1j +iEYEARECAAYFAk6eknkACgkQVWmRsqeSphOWGQCcDv5tsgVBssec+DWLEsv6qPjB +9WkAnjhECkb8bqasncuZe4VN7Y451jz9 +=QLFP -----END PGP SIGNATURE----- diff --git a/www-client/opera/opera-11.52.1100.ebuild b/www-client/opera/opera-11.52.1100.ebuild new file mode 100644 index 000000000000..8598c772c633 --- /dev/null +++ b/www-client/opera/opera-11.52.1100.ebuild @@ -0,0 +1,227 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/opera/opera-11.52.1100.ebuild,v 1.1 2011/10/19 09:03:47 jer Exp $ + +EAPI="4" + +inherit eutils fdo-mime gnome2-utils multilib pax-utils versionator + +DESCRIPTION="A fast and secure web browser and Internet suite" +HOMEPAGE="http://www.opera.com/" + +SLOT="0" +LICENSE="OPERA-11 LGPL-2 LGPL-3" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="elibc_FreeBSD gtk kde +gstreamer" + +O_V="$(get_version_component_range 1-2)" # Major version, i.e. 11.00 +O_B="$(get_version_component_range 3)" # Build version, i.e. 1156 + +O_D="${O_V/./}" +O_P="${PN}-${O_V}-${O_B}" +O_U="mirror://opera/" + +SRC_URI=" + amd64? ( ${O_U}linux/${O_D}/${O_P}.x86_64.linux.tar.xz ) + x86? ( ${O_U}linux/${O_D}/${O_P}.i386.linux.tar.xz ) + x86-fbsd? ( ${O_U}unix/${O_D}/${O_P}.i386.freebsd.tar.xz ) +" + +OPREFIX="/usr/$(get_libdir)" + +QA_DT_HASH="${OPREFIX}/${PN}/.*" +QA_PRESTRIPPED="${OPREFIX}/${PN}/.*" + +O_LINGUAS="af az be bg bn cs da de el en-GB es-ES es-LA et fi fr fr-CA fy gd hi +hr hu id it ja ka ko lt me mk ms nb nl nn pa pl pt pt-BR ro ru sk sr sv sw ta te +th tl tr uk uz vi zh-CN zh-TW zu" + +for O_LINGUA in ${O_LINGUAS}; do + IUSE="${IUSE} linguas_${O_LINGUA/-/_}" +done + +DEPEND=" + >=sys-apps/sed-4 + app-arch/xz-utils +" +GTKRDEPEND=" + dev-libs/atk + dev-libs/glib:2 + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/pango + x11-libs/pixman +" +KDERDEPEND=" + kde-base/kdelibs + x11-libs/qt-core + x11-libs/qt-gui +" +GSTRDEPEND=" + dev-libs/glib + dev-libs/libxml2 + media-plugins/gst-plugins-meta + media-libs/gstreamer +" +RDEPEND=" + media-libs/fontconfig + media-libs/freetype + sys-apps/util-linux + sys-libs/zlib + virtual/opengl + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXft + x11-libs/libXrender + gtk? ( ${GTKRDEPEND} ) + kde? ( ${KDERDEPEND} ) + gstreamer? ( ${GSTRDEPEND} ) +" + +pkg_setup() { + echo -e \ + " ${GOOD}****************************************************${NORMAL}" + elog "If you seek support, please file a bug report at" + elog "https://bugs.gentoo.org and post the output of" + elog " \`emerge --info =${CATEGORY}/${P}'" + echo -e \ + " ${GOOD}****************************************************${NORMAL}" +} + +src_unpack() { + unpack ${A} + mv -v ${PN}* "${S}" || die +} + +src_prepare() { + local LNGDIR="share/${PN}/locale" + + # Count linguas + count() { echo ${#}; } + local lingua_count=$(count ${O_LINGUAS} en) + local locale_count=$(count ${LNGDIR}/*) + [[ ${lingua_count} = ${locale_count} ]] \ + || die "Number of LINGUAS does not match number of locales" + unset count + + # Remove unwanted linguas + einfo "Keeping these locales (linguas): ${LINGUAS}." + for LINGUA in ${O_LINGUAS}; do + if ! use linguas_${LINGUA/-/_}; then + LINGUA=$(find "${LNGDIR}" -maxdepth 1 -type d -iname ${LINGUA/_/-}) + rm -r "${LINGUA}" || die "The list of linguas needs to be fixed" + fi + done + + # Remove doc directory but keep the LICENSE under another name (bug #315473) + mv share/doc/${PN}/LICENSE share/${PN}/defaults/license.txt + rm -rf share/doc + for locale in share/${PN}/locale/*; do + rm -f "${locale}/license.txt" + ln -sn /usr/share/${PN}/defaults/license.txt "${locale}/license.txt" \ + || die + done + + # Remove package directory + rm -rf share/${PN}/package + + # Optional libraries + if ! use gtk; then + rm lib/${PN}/liboperagtk.so || die + fi + if ! use kde; then + rm lib/${PN}/liboperakde4.so || die + fi + if ! use gstreamer; then + rm -r lib/${PN}/gstreamer || die + fi + + # Unzip the man pages before sedding + gunzip share/man/man1/* || die + + # Replace PREFIX, SUFFIX and PN in various files + sed -i \ + -e "s:@@{PREFIX}:/usr:g" \ + -e "s:@@{SUFFIX}::g" \ + -e "s:@@{_SUFFIX}::g" \ + -e "s:@@{USUFFIX}::g" \ + -e "s:opera:${PN}:g" \ + share/man/man1/* \ + share/applications/${PN}-*.desktop \ + || die + + # Replace "Opera" with "Opera Next" + if [[ ${PN} = opera-next ]]; then + sed -i share/applications/${PN}-*.desktop \ + -e "/^Name=Opera\|^ Next/s:Opera:& Next:" || die + fi + + # Create /usr/bin/opera wrapper + echo '#!/bin/sh' > ${PN} + echo 'export OPERA_DIR=/usr/share/'"${PN}" >> ${PN} + echo 'export OPERA_PERSONALDIR=${OPERA_PERSONALDIR:-"${HOME}/.'${PN}'"}' \ + >> ${PN} + echo 'exec '"${OPREFIX}/${PN}/${PN}"' "$@"' >> ${PN} + + # Change libz.so.3 to libz.so.1 for gentoo/freebsd + if use elibc_FreeBSD; then + scanelf -qR -N libz.so.3 -F "#N" lib/${PN}/ | \ + while read i; do + if [[ $(strings "$i" | fgrep -c libz.so.3) -ne 1 ]]; + then + export SANITY_CHECK_LIBZ_FAILED=1 + break + fi + sed -i \ + "$i" \ + -e 's/libz\.so\.3/libz.so.1/g' + done + [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die + fi +} + +src_install() { + # We install into usr instead of opt as Opera does not support the latter + dodir /usr + mv lib/ "${D}/${OPREFIX}" || die + mv share/ "${D}/usr/" || die + + # Install startup scripts + dobin ${PN} + + # Stop revdep-rebuild from checking opera binaries + dodir /etc/revdep-rebuild + echo "SEARCH_DIRS_MASK=\"${OPREFIX}/${PN}\"" \ + > "${D}"/etc/revdep-rebuild/90${PN} + + # Set PaX markings for hardened/PaX (bug #344267) + pax-mark m \ + "${D}/${OPREFIX}/${PN}/${PN}" \ + "${D}/${OPREFIX}/${PN}/operaplugincleaner" \ + "${D}/${OPREFIX}/${PN}/operapluginwrapper" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + if use elibc_FreeBSD; then + elog + elog "To improve shared memory usage please set:" + elog "$ sysctl kern.ipc.shm_allow_removed=1" + fi + + # Update desktop file database and gtk icon cache (bug #334993) + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} + +pkg_postrm() { + # Update desktop file database and gtk icon cache (bug #334993) + gnome2_icon_cache_update + fdo-mime_desktop_database_update +}