diff options
author | Fabio Erculiani <lxnay@gentoo.org> | 2012-05-19 11:57:45 +0000 |
---|---|---|
committer | Fabio Erculiani <lxnay@gentoo.org> | 2012-05-19 11:57:45 +0000 |
commit | a7f1c12272e7ba70bde039f27224940976a616b8 (patch) | |
tree | efad8356514c78fd7f8f9a7ee9c2df5ff980c253 /app-admin/packagekit-base | |
parent | Version bump, remove old (diff) | |
download | historical-a7f1c12272e7ba70bde039f27224940976a616b8.tar.gz historical-a7f1c12272e7ba70bde039f27224940976a616b8.tar.bz2 historical-a7f1c12272e7ba70bde039f27224940976a616b8.zip |
version bump, see bug 416593
Package-Manager: portage-2.2.0_alpha104_p26/cvs/Linux x86_64
Diffstat (limited to 'app-admin/packagekit-base')
-rw-r--r-- | app-admin/packagekit-base/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch | 72 | ||||
-rw-r--r-- | app-admin/packagekit-base/packagekit-base-0.7.4.ebuild | 182 |
3 files changed, 261 insertions, 1 deletions
diff --git a/app-admin/packagekit-base/ChangeLog b/app-admin/packagekit-base/ChangeLog index b7a2bb0b687c..16980a877b46 100644 --- a/app-admin/packagekit-base/ChangeLog +++ b/app-admin/packagekit-base/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/packagekit-base # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v 1.20 2012/05/19 11:21:34 lxnay Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v 1.21 2012/05/19 11:56:23 lxnay Exp $ + +*packagekit-base-0.7.4 (19 May 2012) + + 19 May 2012; Fabio Erculiani <lxnay@gentoo.org> + +packagekit-base-0.7.4.ebuild, +files/packagekit-base-0.7.x-npapi-sdk.patch: + version bump, see bug 416593 *packagekit-base-0.6.22 (19 May 2012) diff --git a/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch b/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch new file mode 100644 index 000000000000..c3e034d75ff6 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.7.x-npapi-sdk.patch @@ -0,0 +1,72 @@ +--- PackageKit-0.7.4.orig/configure ++++ PackageKit-0.7.4/configure +@@ -20283,14 +20283,14 @@ if test -n "$PK_BROWSER_PLUGIN_CFLAGS"; + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ +- mozilla-plugin >= 8.0 \\ ++ npapi-sdk \\ + gio-unix-2.0 \\ + nspr >= 4.8 \\ + cairo \\ + pango \\ + gtk+-2.0 >= 2.14.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20300,7 +20300,7 @@ if test -n "$PK_BROWSER_PLUGIN_CFLAGS"; + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PK_BROWSER_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20317,14 +20317,14 @@ if test -n "$PK_BROWSER_PLUGIN_LIBS"; th + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\ +- mozilla-plugin >= 8.0 \\ ++ npapi-sdk \\ + gio-unix-2.0 \\ + nspr >= 4.8 \\ + cairo \\ + pango \\ + gtk+-2.0 >= 2.14.0\""; } >&5 + ($PKG_CONFIG --exists --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20334,7 +20334,7 @@ if test -n "$PK_BROWSER_PLUGIN_LIBS"; th + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_PK_BROWSER_PLUGIN_LIBS=`$PKG_CONFIG --libs "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20360,7 +20360,7 @@ else + fi + if test $_pkg_short_errors_supported = yes; then + PK_BROWSER_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ +@@ -20368,7 +20368,7 @@ fi + gtk+-2.0 >= 2.14.0" 2>&1` + else + PK_BROWSER_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "\ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ diff --git a/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild b/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild new file mode 100644 index 000000000000..a57e118f2b1e --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild @@ -0,0 +1,182 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild,v 1.1 2012/05/19 11:56:23 lxnay Exp $ + +EAPI="3" + +# 0.7.x is untested with Python 3.x +PYTHON_DEPEND="2" + +inherit eutils multilib python nsplugins bash-completion-r1 + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86" +IUSE="connman cron doc +introspection networkmanager nsplugin pm-utils +policykit entropy static-libs test udev" + +CDEPEND="connman? ( net-misc/connman ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9 ) + networkmanager? ( >=net-misc/networkmanager-0.6.4 ) + nsplugin? ( + >=dev-libs/nspr-4.8 + x11-libs/cairo + >=x11-libs/gtk+-2.14.0:2 + x11-libs/pango + ) + policykit? ( >=sys-auth/polkit-0.98 ) + udev? ( || ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-145[extras] ) ) + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.26.1:2 + >=sys-apps/dbus-1.3.0" +DEPEND="${CDEPEND} + doc? ( dev-util/gtk-doc ) + nsplugin? ( >=net-misc/npapi-sdk-0.27 ) + dev-libs/libxslt + >=dev-util/intltool-0.35.0 + virtual/pkgconfig + sys-devel/gettext" + +RDEPEND="${CDEPEND} + entropy? ( >=sys-apps/entropy-1.0_rc27 ) + pm-utils? ( sys-power/pm-utils ) + >=app-portage/layman-1.2.3 + >=sys-apps/portage-2.1.9 + sys-auth/consolekit" + +APP_LINGUAS="as bg bn ca cs da de el en_GB es fi fr gu he hi hu it ja kn ko ml mr +ms nb nl or pa pl pt pt_BR ro ru sk sr sr@latin sv ta te th tr uk zh_CN zh_TW" +for X in ${APP_LINGUAS}; do + IUSE=" ${IUSE} linguas_${X}" +done + +S="${WORKDIR}/${MY_P}" +RESTRICT="test" # tests are failing atm + +# NOTES: +# do not use a specific user, useless and not more secure according to upstream +# doc is in the tarball and always installed +# mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2 +# (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247 + +# UPSTREAM: +# documentation/website with --enable-doc-install +# failing tests + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.7.x-npapi-sdk.patch #383141 +} + +src_configure() { + local myconf="" + + if use policykit; then + myconf+=" --with-security-framework=polkit" + else + myconf+=" --with-security-framework=dummy" + fi + + if [[ -z "${LINGUAS}" ]]; then + myconf+=" --disable-nls" + else + myconf+=" --enable-nls" + fi + + # localstatedir: for gentoo it's /var/lib but for $PN it's /var + # dep-tracking,option-check,libtool-lock,strict,local: obvious reasons + # command,debuginfo,gstreamer,service-packs: not supported by backend + + # NOTE: default backend is autodetected at runtime, also + if use entropy; then + myconf+=" --with-default-backend=entropy" + else + myconf+=" --with-default-backend=portage" + fi + econf \ + ${myconf} \ + --enable-introspection=$(use introspection && echo -n "yes" || echo -n "no") \ + --localstatedir=/var \ + --disable-dependency-tracking \ + --enable-option-checking \ + --enable-libtool-lock \ + --disable-strict \ + --disable-local \ + $(use_enable doc gtk-doc) \ + $(use_enable bash-completion command-not-found) \ + --disable-debuginfo-install \ + --disable-gstreamer-plugin \ + --disable-service-packs \ + --enable-man-pages \ + --enable-portage \ + $(use_enable entropy) \ + $(use_enable cron) \ + --disable-gtk-module \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable nsplugin browser-plugin) \ + $(use_enable pm-utils) \ + --disable-qt \ + $(use_enable static-libs static) \ + $(use_enable test tests) \ + $(use_enable udev device-rebind) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed" + dodoc ChangeLog || die "dodoc failed" + + if use nsplugin; then + dodir "/usr/$(get_libdir)/${PLUGINS_DIR}" + mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \ + "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" + fi + + if ! use static-libs; then + find "${D}" -name *.la | xargs rm || die "removing .la files failed" + fi + + # Remove precompiled python modules, we handle byte compiling + rm -f "${D}/$(python_get_sitedir)"/${PN}*.py[co] + + newbashcomp "${S}/contrib/pk-completion.bash" ${PN} + # Remove bashcomp file installed by build-system + rm -f "${D}/bash_completion.d/pk-completion.bash" + + # Remove unwanted PackageKit website stuff + rm -rf "${D}/usr/share/PackageKit/website" + +} + +pkg_postinst() { + python_mod_optimize ${PN/-base} + + if ! use policykit; then + ewarn "You are not using policykit, the daemon can't be considered as secure." + ewarn "All users will be able to do anything through ${MY_PN}." + ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag." + ewarn "THIS IS A SECURITY ISSUE." + echo + ebeep + epause 5 + fi + bash-completion_pkg_postinst +} + +pkg_prerm() { + einfo "Removing downloaded files with ${MY_PN}..." + [[ -d "${ROOT}"/var/cache/${MY_PN}/downloads/ ]] && \ + rm -rf /var/cache/PackageKit/downloads/* +} + +pkg_postrm() { + python_mod_cleanup ${PN/-base} +} |