--- packagekit-0.3.6.orig/debian/gstreamer0.10-packagekit.postinst +++ packagekit-0.3.6/debian/gstreamer0.10-packagekit.postinst @@ -0,0 +1,13 @@ +#!/bin/sh +# postinst script for gstreamer0.10-packagekit + +set -e + +update-alternatives --install /usr/bin/gstreamer-codec-install \ + gstreamer-codec-install \ + /usr/lib/packagekit/pk-gstreamer-install 80 || true + +#DEBHELPER# + +exit 0 + --- packagekit-0.3.6.orig/debian/changelog +++ packagekit-0.3.6/debian/changelog @@ -0,0 +1,232 @@ +packagekit (0.3.6-0ubuntu5) jaunty; urgency=low + + * no changes upload for nss/nspr SONAME mini-transition + + -- Alexander Sack Mon, 12 Jan 2009 16:22:11 +0100 + +packagekit (0.3.6-0ubuntu4) intrepid; urgency=low + + * debian/patches/05_fix_update_stamp.patch: + - fix syntax for the -APT::Update::Post-Invoke-Success hook + so that it works together with update-notifier + + -- Michael Vogt Mon, 27 Oct 2008 13:25:34 +0100 + +packagekit (0.3.6-0ubuntu3) intrepid; urgency=low + + * debian/patches: + - Rename 01_disable_package_list_refresh to 01_disable_refresh_actions + and also disable the scanning of installed applications after refreshing + - Add 04_fix_idle_timer: do not exit on pending actions + Cherry pick of 69e5277c1aac1ece9c76c499d8c65ae67b2a84f9 + + -- Sebastian Heinlein Sun, 19 Oct 2008 19:54:01 +0200 + +packagekit (0.3.6-0ubuntu2) intrepid; urgency=low + + * Version the conflicts on gnome-app-install from gstreamer0.10-packagekit + to (< 0.5.12), as that now installs an alternative for the codec install. + * Remove the alternative of the obsolete gnome-codec-install. + * Apologies to Sebastian for messing up his beautiful packages by + not uploading these changes in the last upload. + + -- James Westby Mon, 20 Oct 2008 15:28:26 +0100 + +packagekit (0.3.6-0ubuntu1) intrepid; urgency=low + + * New upstream bugfix release + * debian/patches: + - Remove 02_fix_statushaschanged_call.patch (applied upstream) + - Add 02_fix_codec_regex.patch: + extract the codec information correctly from the helper script output + - Add 03_vendor.patch: + Set the vendor information to Canonical + - Add 03_change_mime_codec_db_path.patch: Use the databases created by + the new update-packagekit-app-data + * debian/control: + - Ship the gstreamer plugin in a separate package gstreamer0.10-packagekit + and therefor add libgstreamer-plugins-base0.10-dev as build dependency + - gstreamer0.10-packagekit conflicts with gnome-app-install + - packagekit-backend-apt depends on app-install-data + * debian/gstreamer0.10-packagekit.(prerm|postinst): + - Install pk-codec-install as an alternative for gnome-codec-install + and gstreamer-codec-install + * debian/update-packagekit-app-data, debian/packagekit-backend-apt.install: + - Ship a simplified version of gnome-app-install's update-app-install-data + which caches mime type and codec information only + * debian/packagekit-backend-apt-postinst: + - Run update-packagekit-app-data + * debian/packagekit-backend-apt.triggers + - State an interest in /usr/share/app-install/desktop + + -- Sebastian Heinlein Thu, 09 Oct 2008 18:17:10 +0200 + +packagekit (0.3.5-1) UNRELEASED; urgency=low + + * New upstream bugfix release + * debian/patches: + - Remove 01_cleanup_cache_lock.patch (applied upstream) + - Add 01_disable_package_list_refresh.patch: + Disable the creation of the package list after each refresh since + GetPackages() is too slow for the apt backend + - Add 02_fix_statushaschanged_call.patch: + Cherry pick of d9f49bb24cf0df98ffc2b0216ff458f8671c05be + Use the correct apt hook, full path to dbus-send and do not wait for a + reply from packagekit + * debian/control: + - Ship libpackagekit in its own package libpackagekit8 + - Rename packagekit-dev to libpackagekit-dev + - Fix sections of the binary packages + - More detailed package descriptions + - Move recommendation of app-install-data and apt-xapian-index from + packagekit to packagekit-backend-apt + - Raise recommendation of update-manager-core and + python-software-properties to build dependecies and dependecies of + packagekit-backend-apt (backend capabillities are now detected at + build time) + * debian/packgekit.install: + - Remove pk-generate-package-list and pk-import-desktop (is now done by + the packagekitd) + * debian/packagekit-backend-apt.install + - Adapt apt config file path + + -- Sebastian Heinlein Tue, 30 Sep 2008 10:49:39 +0200 + +packagekit (0.3.3-0ubuntu1) intrepid; urgency=low + + * Latest release of the 0.3 series with the following apt highlights: + - Implement UpdatePackages, GetDepends, GetRequires, SetProxy, SetLocale, + InstallFiles, RepoEnable, RepoList, WhatProvides and GetFiles + - Show the changelog in UpdateDetails + - Several small enhancements + * debian/control: + - Point to the correct bzr repository in X-Vcs + - Ship the mozilla plugin and the apt, yum and smart backends in + separate binary package + - Add build dependecy on xulrunner-1.9-dev, libgtk+2.0-dev, + libdbus-glib-1-dev, network-manager-dev, python-dev and + libarchive-dev + - Packagekit recommands app-install-data to support codecs and + mime type handlers in WhatProvides + - Recommend update-manager-core to get notified about distro releases and + python-software-properties to handle repositories. + * debian/patches: + - Removed 00_allow_root_own_dbus.patch (too many issues) + - Removed 01_apt_license.patch (broken and implemented upstream) + - Removed 02_fix_apt_doresolve.patch (applied upstream) + - Removed 03_improve_installprogress.patch (applied upstream) + - Add 01_cleanup_cache_lock.patch: + Cherry pick of f27042cbdd54e8cefd33f64dba1e35a6fcad1eba + Make sure that the system apt cache is unlocked after a method which + locks it was called + * debian/packagekit.install: + - Ship documentation from the apt backend + - Add debfile.py + - Sorted + * debian/packagekit-backend-(apt|yum|smart).install: + - Added + * debian/packagekit-dev.install: + - Do not ship useless development files for the backends + * debian/packagekit.postinst: + - Suggest the daemon to quit after installing + * debian/trigger + - Suggest the daemon to quit if the backends changed + + -- Sebastian Heinlein Fri, 19 Sep 2008 05:17:00 +0200 + +packagekit (0.2.4-0ubuntu1) intrepid; urgency=low + + [ Sebastian Heinlein ] + * debian/copyright: Fix copyright statement + * debian/control: Set required minimum version of libdbus-glib-1-dev to 0.76 + * debian/packagekit.post(inst|rm): + - reload dbus configuration + - add/remove the packagkitd system user + * debian/patches/00_allow_root_own_dbus.patch: + - allow the root user to own org.freedesktop.PackageKit + * debian/rules: only run the apt backend as root and use the packagekit + user for the packagekit daemon + * New upstream bugfix release: + - Bump the soname as we changed ABI some time ago (Richard Hughes) + - Don't optimise for the common case in pk-import-desktop as we + really want to regenerate the cache even if it's slow (Richard Hughes) + - Fix doing pk_transaction_list_remove() on a transaction waiting to + timeout, to avoid walking on freed memory (Richard Hughes) + - Don't print the '%' chars on the console from python exceptions, + else we can crash the daemon when running in verbose mode (Richard Hughes) + - Backport a small memory leak in the daemon from master (Richard Hughes) + - AllowCancel(FALSE) is allowed when we are finished, but not TRUE (Richard + Hughes) + + [ Michael Vogt ] + * debian/patches/03_improve_installprogress.patch: + - kill maintainer scripts that hang + - send backend.Message() after the install if conffile prompts are + detected during the install (default to keep old conffile) + - implement doUpdatePackages() + (patch sent to upstream git repo) + + -- Sebastian Heinlein Wed, 06 Aug 2008 05:32:05 +0200 + +packagekit (0.2.3-0ubuntu1) intrepid; urgency=low + + * New upstream release: + - Remove 01_build_format_string.patch, applied upstream. + * debian/control: Fix obsolete ${Source-Version}. + * debian/control: Bump Standards-Version. + * debian/packagekit-dev.install: Adapt to new structure of documentation. + * debian/copyright: Update FSF address and small lintian fixes. + * debian/control: Make packagekit-dev Arch: any, since it ships architecture + dependent static library. + * Add 01_apt_license.patch: GetDetails(): Set license field to "free" for + main/universe/contrib sections. This gives a slightly better heuristics + than always leaving it to "unknown". + + -- Martin Pitt Wed, 09 Jul 2008 12:17:41 +0200 + +packagekit (0.2.2-0ubuntu2) intrepid; urgency=low + + * debian/control: Replaced 'cash' with 'cache' in description (LP: #238438) + (thanks to Nathan Handler) + + -- Michael Vogt Fri, 20 Jun 2008 10:07:31 +0200 + +packagekit (0.2.2-0ubuntu1) intrepid; urgency=low + + * New upstream release, with much improved apt support. + * debian/control: Bump PolicyKit build dependencies to >= 0.8. + * debian/control: Drop superfluous python-all-dev build dependency, we do not + build compiled Python extensions. + * debian/rules: Configure with --enable-apt --with-default-backend=apt. + * debian/rules: Use simple-patchsys. + * Add debian/patches/01_build_format_string.patch: Fix building with + -Wformat-security. + * Add debian/patches/02_fix_apt_doresolve.patch: Fix doResolve() in apt + backend. (apt backend was completely broken before) + * debian/packagekit.install: Do not install the sysconfig, cron.daily, and + udev bits, they do not apply to Debian/Ubuntu. + * debian/control: Point out that -dev contains documentation as well. + + -- Martin Pitt Thu, 19 Jun 2008 12:50:59 -0400 + +packagekit (0.1.6-0ubuntu2) hardy; urgency=low + + * debian/packagekit.install: + + Don't install .la files (they break the packagekit-gnome build). + + -- Michael Bienia Sun, 09 Mar 2008 14:40:00 +0100 + +packagekit (0.1.6-0ubuntu1) hardy; urgency=low + + * New upstream release + * Don't ship the test and dummy backend + * Explicitly build the plain search backend + * Add build dependency on xmlto, docbook-utils and gtk-doc-tools + + -- Sebastian Heinlein Mon, 11 Feb 2008 16:13:04 +0100 + +packagekit (0.1.3-ubuntu1) gutsy; urgency=low + + * Initial release + + -- Sebastian Heinlein Wed, 21 Nov 2007 01:12:42 +0100 --- packagekit-0.3.6.orig/debian/libpackagekit8.install +++ packagekit-0.3.6/debian/libpackagekit8.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/libpackagekit.so.8 +debian/tmp/usr/lib/libpackagekit.so.8.0.1 --- packagekit-0.3.6.orig/debian/gstreamer0.10-packagekit.prerm +++ packagekit-0.3.6/debian/gstreamer0.10-packagekit.prerm @@ -0,0 +1,15 @@ +#!/bin/sh +# prerm script for gstreamer0.10-packagekit + +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then + update-alternatives --remove gstreamer-codec-install \ + /usr/lib/packagekit/pk-gstreamer-install || true + +fi + +#DEBHELPER# + +exit 0 + --- packagekit-0.3.6.orig/debian/docs +++ packagekit-0.3.6/debian/docs @@ -0,0 +1,3 @@ +NEWS +README +TODO --- packagekit-0.3.6.orig/debian/packagekit.postinst +++ packagekit-0.3.6/debian/packagekit.postinst @@ -0,0 +1,20 @@ +#!/bin/sh +# postinst script for packagekit + +set -e + +if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true +fi + +if [ -x /usr/bin/dbus-send ]; then + /usr/bin/dbus-send --system --dest=org.freedesktop.PackageKit \ + --type=method_call \ + /org/freedesktop/PackageKit \ + org.freedesktop.PackageKit.SuggestDaemonQuit +fi + +#DEBHELPER# + +exit 0 + --- packagekit-0.3.6.orig/debian/packagekit-backend-smart.install +++ packagekit-0.3.6/debian/packagekit-backend-smart.install @@ -0,0 +1,2 @@ +debian/tmp/usr/share/PackageKit/helpers/smart/smartBackend.py +debian/tmp/usr/lib/packagekit-backend/libpk_backend_smart.so --- packagekit-0.3.6.orig/debian/packagekit-backend-apt.postrm +++ packagekit-0.3.6/debian/packagekit-backend-apt.postrm @@ -0,0 +1,15 @@ +#!/bin/sh +# postrm script for packagekit-backend-apt + +set -e + +#DEBHELPER# + +if [ "$1" = "purge" ]; then + + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi + +fi + --- packagekit-0.3.6.orig/debian/update-packagekit-app-data +++ packagekit-0.3.6/debian/update-packagekit-app-data @@ -0,0 +1,86 @@ +#!/usr/bin/env python +# update-packagekit-app-data - Generate a cache of mime type and codec handlers +# Authors: Michael Vogt +# Sebastian Heinlein + +import sys +import glob +import os +import os.path +import re +import sys + +from optparse import OptionParser + +import gdbm + +try: + import xdg.DesktopEntry +except ImportError, e: + print "WARNING: can not import xdg.DesktopEntry, aborting" + sys.exit(0) + +def generate_mime_map(desktop_dir, cache_dir): + dicts = { 'mime':{}, 'codec':{} } + + def record_provider(de, cp, defield,dictname): + try: + keys = de.get(defield, list=True) + except keyError: + return + if not keys: return + dict = dicts[dictname] + for key in keys: + # gst-caps support + if dictname == 'codec' and ',' in key: + key = key.split(",")[0] + try: + l = dict[key] + except KeyError: + l = []; dict[key] = l + l.append(cp) + + for fn in glob.glob(os.path.join(desktop_dir, 'desktop/*.desktop')): + try: + de = xdg.DesktopEntry.DesktopEntry(fn) + except Exception, e: + print >>sys.stderr, "bad .desktop file: %s: %s" % (fn, e) + try: + component = de.get('X-AppInstall-Section') + package = de.get('X-AppInstall-Package') + except KeyError: + continue + cp = component+"/"+package + record_provider(de, cp, 'MimeType','mime') + record_provider(de, cp, 'X-AppInstall-Codecs','codec') + + for (dictname, dict) in dicts.iteritems(): + g = gdbm.open(os.path.join(cache_dir, + dictname+"-map.gdbm"), + 'nfu') + for (key,l) in dict.iteritems(): + g[key] = ' '.join(l) + g.sync() + g.close() + +def main(): + parser = OptionParser() + parser.add_option ("-d", "--desktop-dir", action="store", + dest="desktop_dir", + default="/usr/share/app-install", + help="Directory that contains the desktop files " + "of the applications") + parser.add_option ("-c", "--cache-dir", action="store", + dest="cache_dir", + default="/var/lib/PackageKit", + help="Directory where the data should be cached in") + (options, args) = parser.parse_args() + for path in (options.desktop_dir, options.cache_dir): + if not os.path.isdir(path): + print "%s is not a valid directory" % path + sys.exit(1) + print "Generating mime/codec maps..." + generate_mime_map(options.desktop_dir, options.cache_dir) + +if __name__ == "__main__": + main() --- packagekit-0.3.6.orig/debian/packagekit-backend-apt.postinst +++ packagekit-0.3.6/debian/packagekit-backend-apt.postinst @@ -0,0 +1,11 @@ +#!/bin/sh +# postinst script for packagekit-backend-apt + +set -e + +/usr/sbin/update-packagekit-app-data || true + +#DEBHELPER# + +exit 0 + --- packagekit-0.3.6.orig/debian/compat +++ packagekit-0.3.6/debian/compat @@ -0,0 +1 @@ +5 --- packagekit-0.3.6.orig/debian/libpackagekit-dev.install +++ packagekit-0.3.6/debian/libpackagekit-dev.install @@ -0,0 +1,7 @@ +debian/tmp/usr/include/* +debian/tmp/usr/lib/lib*.a +debian/tmp/usr/lib/libpackagekit.so +debian/tmp/usr/lib/pkgconfig/* +docs/html/*.html usr/share/doc/packagekit-dev/html/ +docs/html/*.css usr/share/doc/packagekit-dev/html/ +docs/html/img/*.png usr/share/doc/packagekit-dev/html/img/ --- packagekit-0.3.6.orig/debian/packagekit-backend-yum.install +++ packagekit-0.3.6/debian/packagekit-backend-yum.install @@ -0,0 +1,5 @@ +debian/tmp/etc/yum/pluginconf.d/refresh-packagekit.conf +debian/tmp/usr/share/PackageKit/helpers/yum/yumBackend.py +debian/tmp/usr/share/PackageKit/helpers/yum/yumFilter.py +debian/tmp/usr/share/PackageKit/helpers/yum/yumComps.py +debian/tmp/usr/lib/packagekit-backend/libpk_backend_yum.so --- packagekit-0.3.6.orig/debian/packagekit.triggers +++ packagekit-0.3.6/debian/packagekit.triggers @@ -0,0 +1 @@ +interest /usr/lib/packagekit-backend --- packagekit-0.3.6.orig/debian/README.Debian +++ packagekit-0.3.6/debian/README.Debian @@ -0,0 +1,4 @@ +Only the apt backend is shipped with this package. + +The udev firmware download integration and the service packs are not supported +Therefor the corresponding files have been skipped. --- packagekit-0.3.6.orig/debian/watch +++ packagekit-0.3.6/debian/watch @@ -0,0 +1,4 @@ +version=3 + +http://www.packagekit.org/releases/PackageKit-(.*)\.tar\.gz + --- packagekit-0.3.6.orig/debian/mozilla-packagekit.install +++ packagekit-0.3.6/debian/mozilla-packagekit.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/mozilla/plugins/packagekit-plugin.so /usr/lib/xulrunner-addons/plugins/ +contrib/packagekit-plugin/README /usr/share/doc/mozilla-packagekit/ +contrib/packagekit-plugin/tests/test.html /usr/share/doc/mozilla-packagekit/examples/ --- packagekit-0.3.6.orig/debian/packagekit-backend-apt.triggers +++ packagekit-0.3.6/debian/packagekit-backend-apt.triggers @@ -0,0 +1 @@ +interest /usr/share/app-install/desktop --- packagekit-0.3.6.orig/debian/packagekit.postrm +++ packagekit-0.3.6/debian/packagekit.postrm @@ -0,0 +1,15 @@ +#!/bin/sh +# postrm script for packagekit + +set -e + +#DEBHELPER# + +if [ "$1" = "purge" ]; then + + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi + +fi + --- packagekit-0.3.6.orig/debian/packagekit.install +++ packagekit-0.3.6/debian/packagekit.install @@ -0,0 +1,14 @@ +debian/tmp/usr/bin/* +debian/tmp/usr/sbin/* +debian/tmp/usr/lib/packagekit/pk-import-specspo +debian/tmp/usr/lib/pm-utils/ +debian/tmp/usr/lib/python2.*/ +debian/tmp/var/lib/ +debian/tmp/usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service +debian/tmp/usr/share/man/ +debian/tmp/usr/share/locale +debian/tmp/usr/share/PolicyKit/ +debian/tmp/etc/bash_completion.d +debian/tmp/etc/dbus-1/system.d/org.freedesktop.PackageKit.conf +debian/tmp/etc/PackageKit +debian/tmp/var/lib/PackageKit/ --- packagekit-0.3.6.orig/debian/copyright +++ packagekit-0.3.6/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Sebastian Heinlein on +Mon, 20 Aug 2007 19:56:43 +0200. + +It was downloaded from git://people.freedesktop.org/~hughsient/PackageKit + +Upstream Author: + + Richard Hughes + +Copyright: + + Copyright (C) 2007 Richard Hughes + +License: + + Licensed under the GNU General Public License Version 2 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +The Debian packaging is (C) 2007, Sebastian Heinlein and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- packagekit-0.3.6.orig/debian/control +++ packagekit-0.3.6/debian/control @@ -0,0 +1,161 @@ +Source: packagekit +Section: admin +Priority: extra +Maintainer: Sebastian Heinlein +Build-Depends: debhelper (>= 5), + cdbs, + libpam0g-dev, + libglib2.0-dev, + libdbus-glib-1-dev (>=0.76), + libnm-glib-dev, + network-manager-dev, + libpolkit-dev (>=0.8), + libpolkit-grant-dev (>=0.8), + libpolkit-dbus-dev (>=0.8), + policykit (>=0.8), + libapt-pkg-dev, + autotools-dev, + libtool, + libsqlite3-dev, + python, + python-dev, + python-central (>= 0.5), + python-apt, + docbook-utils, + gtk-doc-tools, + xmlto, + xulrunner-1.9-dev, + libgtk2.0-dev, + libdbus-glib-1-dev, + update-manager-core, + python-software-properties, + libgstreamer-plugins-base0.10-dev, + libarchive-dev +Standards-Version: 3.8.0 +XS-Python-Version: current +Homepage: http://www.packagekit.org +XS-Vcs-Bzr: https://code.edge.launchpad.net/~packagekit/packagekit/ubuntu-packagekit +XS-Vcs-Browser: http://bazaar.launchpad.net/~packagekit/packagekit/ubuntu-packagekit/files + +Package: packagekit +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + ${python:Depends}, + libpackagekit8 (= ${binary:Version}), + dbus, + packagekit-backend-apt | packagekit-backend-smart +XB-Python-Version: ${python:Versions} +Description: provides a software installation daemon + PackageKit allows to perform simple software management tasks over a DBus + interface e.g. refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + The work is done by backends which make use of the package manager shipped by + the corresponding distribution. PackageKit is not meant to replace + advanced tools like Synaptic. + . + The main benefits are: + - unified interface on several distributions + - fine grained privilleges by using PolicyKit + - independecy from a running desktop session during the processing + +Package: gstreamer0.10-packagekit +Architecture: any +Section: libs +Conflicts: gnome-app-install (< 0.5.12) +Depends: ${shlibs:Depends}, + ${misc:Depends}, + packagekit (= ${binary:Version}) +Description: GStreamer plugin to install codecs using PackageKit + PackageKit allows to perform simple software management tasks over a DBus + interface e.g refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package provides a plugin for the GStreamer multimedia framework + to search and to install audio and video codecs. + +Package: mozilla-packagekit +Architecture: any +Section: web +Depends: ${shlibs:Depends}, + ${misc:Depends}, + packagekit (= ${binary:Version}), + firefox-3.0 | www-browser +Description: software installation plugin + PackageKit allows to perform simple software management tasks over a DBus + interface e.g refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package provides a browser plugin. + +Package: libpackagekit8 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, + ${misc:Depends}, +Conflicts: packagekit (<= 0.3.3-0ubuntu1) +Description: Library for accessing PackageKit + PackageKit allows to perform simple software management tasks over a DBus + interface e.g. refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package provides a library to access PackageKit. + +Package: libpackagekit-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, +Conflicts: packagekit-dev (<= 0.3.3-0ubuntu1) +Replaces: packagekit-dev +Description: Library for accessing PackageKit (development files) + PackageKit allows to perform simple software management tasks over a DBus + interface e.g. refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package provides the header files and documentation. + +Package: packagekit-backend-apt +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + app-install-data, + python-apt, + python-gdbm, + update-manager-core, + python-software-properties +Conflicts: packagekit (<0.3) +Recommends: apt-xapian-index +Description: APT backend for packagekit + PackageKit allows to perform simple software management tasks over a DBus + interface e.g. refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package allows to use APT which is the default package management tool + of Debian and and Ubuntu. + +Package: packagekit-backend-smart +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + smartpm-core +Description: Smart backend for packagekit + PackageKit allows to perform simple software management tasks over a DBus + interface e.g. refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package allows to use the smart package manager. + +Package: packagekit-backend-yum +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + yum +Description: Yum backend for packagekit + PackageKit allows to perform simple software management tasks over a DBus + interface e.g. refreshing the cache, updating, installing and removing + software packages or searching for multimedia codecs and file handlers. + . + This package allows to use yum, an advanced front-end for rpm. + --- packagekit-0.3.6.orig/debian/packagekit-backend-apt.install +++ packagekit-0.3.6/debian/packagekit-backend-apt.install @@ -0,0 +1,9 @@ +backends/apt/README usr/share/doc/packagekit-backend-apt/README.apt +backends/apt/TODO usr/share/doc/packagekit-backend-apt/TODO.apt +debian/tmp/usr/lib/packagekit/aptDBUSBackend.py +debian/tmp/usr/lib/packagekit/debfile.py +debian/tmp/usr/lib/packagekit-backend/libpk_backend_apt*.so +debian/tmp/usr/share/dbus-1/system-services/org.freedesktop.PackageKitAptBackend.service +debian/tmp/etc/dbus-1/system.d/org.freedesktop.PackageKitAptBackend.conf +debian/tmp/etc/apt/apt.conf.d/20packagekit +debian/update-packagekit-app-data /usr/sbin --- packagekit-0.3.6.orig/debian/gstreamer0.10-packagekit.install +++ packagekit-0.3.6/debian/gstreamer0.10-packagekit.install @@ -0,0 +1 @@ +debian/tmp/usr/lib/packagekit/pk-gstreamer-install --- packagekit-0.3.6.orig/debian/rules +++ packagekit-0.3.6/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM := pycentral + +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/class/makefile.mk + +DEB_CONFIGURE_EXTRA_FLAGS := --enable-docbook-docs --enable-apt --with-default-backend=apt --with-packagekit-user=root --with-networking-stack=NetworkManager --enable-yum --enable-smart + +$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%: + dh_pycentral -p$(cdbs_curpkg) --- packagekit-0.3.6.orig/debian/patches/04_fix_idle_timeout.patch +++ packagekit-0.3.6/debian/patches/04_fix_idle_timeout.patch @@ -0,0 +1,38 @@ +diff --git a/python/packagekit/daemonBackend.py b/python/packagekit/daemonBackend.py +index 2b51277..ab0143d 100644 +--- a/python/packagekit/daemonBackend.py ++++ b/python/packagekit/daemonBackend.py +@@ -53,8 +53,8 @@ pklog.addHandler(syslog) + PACKAGEKIT_DBUS_INTERFACE = 'org.freedesktop.PackageKitBackend' + PACKAGEKIT_DBUS_PATH = '/org/freedesktop/PackageKitBackend' + +-INACTIVE_CHECK_INTERVAL = 1000 * 60 * 5 # Check every 5 minutes. +-INACTIVE_TIMEOUT = 60 * 10 # timeout after 10 minutes of inactivity. ++INACTIVE_CHECK_INTERVAL = 60 # Check every minute ++INACTIVE_TIMEOUT = 5 * 60 # timeout after 5 minutes of inactivity. + + def forked(func): + ''' +@@ -171,15 +171,19 @@ class PackageKitBaseBackend(dbus.service.Object): + + self.loop = gobject.MainLoop() + +- gobject.timeout_add(INACTIVE_CHECK_INTERVAL, self.check_for_inactivity) ++ gobject.timeout_add_seconds(INACTIVE_CHECK_INTERVAL, ++ self.check_for_inactivity) + self.last_action_time = time.time() + + self.loop.run() + + def check_for_inactivity(self): +- if time.time() - self.last_action_time > INACTIVE_TIMEOUT: +- pklog.critical("Exiting due to timeout.") ++ if time.time() - self.last_action_time > INACTIVE_TIMEOUT and \ ++ threading.activeCount() == 1 and \ ++ not self.loop.get_context().pending(): ++ pklog.info("Exiting due to timeout.") + self.Exit() ++ return False + return True + + def on_child_exit(self, pid, condition, data): --- packagekit-0.3.6.orig/debian/patches/03_vendor.patch +++ packagekit-0.3.6/debian/patches/03_vendor.patch @@ -0,0 +1,35 @@ +diff --git a/etc/Vendor.conf b/etc/Vendor.conf +index ed1f5a9..281f944 100644 +--- a/etc/Vendor.conf ++++ b/etc/Vendor.conf +@@ -12,7 +12,7 @@ + # If the value is set to 'none' then no link is shown. + # + # default=http://www.packagekit.org/pk-package-not-found.html +-DefaultUrl=http://www.packagekit.org/pk-package-not-found.html ++DefaultUrl=https://help.ubuntu.com/community/Repositories/ + + # The URL which is shown to the user when a codec could not be found. + # It should explain why certain codecs cannot be used, and perhaps show +@@ -21,7 +21,7 @@ DefaultUrl=http://www.packagekit.org/pk-package-not-found.html + # If the value is set to 'none' then the value of DefaultUrl is used. + # + # default=none +-CodecUrl=none ++CodecUrl=https://shop.canonical.com/index.php?cPath=19&osCsid=f1e370ea7563ed5e654c10450364ff24 + + # The URL which is shown to the user when hardware drivers could not be found. + # It should explain why some hardware is not supported, and links to futher +@@ -54,10 +54,10 @@ MimeUrl=none + # The vendor name shown for the 'vendor' group + # + # default=My Vendor +-VendorName=My Vendor ++VendorName=Ubuntu + + # The vendor icon name shown for the 'vendor' group + # + # default=emblem-favorite +-VendorIcon=emblem-favorite ++VendorIcon=distributor-logo + --- packagekit-0.3.6.orig/debian/patches/05_fix_update_stamp.patch +++ packagekit-0.3.6/debian/patches/05_fix_update_stamp.patch @@ -0,0 +1,6 @@ +diff -Nur -x '*.orig' -x '*~' packagekit-0.3.6/data/20packagekit packagekit-0.3.6.new/data/20packagekit +--- packagekit-0.3.6/data/20packagekit 2008-10-01 17:43:21.000000000 +0200 ++++ packagekit-0.3.6.new/data/20packagekit 2008-10-27 13:25:18.000000000 +0100 +@@ -1 +1 @@ +-APT::Update::Post-Invoke-Success:: { "/usr/bin/dbus-send --system --dest=org.freedesktop.PackageKit --type=method_call /org/freedesktop/PackageKit org.freedesktop.PackageKit.StateHasChanged string:'cache-update'"; }; ++APT::Update::Post-Invoke-Success { "/usr/bin/dbus-send --system --dest=org.freedesktop.PackageKit --type=method_call /org/freedesktop/PackageKit org.freedesktop.PackageKit.StateHasChanged string:'cache-update'"; }; --- packagekit-0.3.6.orig/debian/patches/02_fix_codec_regex.patch +++ packagekit-0.3.6/debian/patches/02_fix_codec_regex.patch @@ -0,0 +1,13 @@ +diff --git a/backends/apt/aptDBUSBackend.py b/backends/apt/aptDBUSBackend.py +index 61a5137..8d1626f 100755 +--- a/backends/apt/aptDBUSBackend.py ++++ b/backends/apt/aptDBUSBackend.py +@@ -1540,7 +1540,7 @@ class PackageKitAptBackend(PackageKitBaseBackend): + self.AllowCancel(False) + if provides_type == PROVIDES_CODEC: + # The search term from the codec helper looks like this one: +- match = re.match(r"gstreamer(.+)\((.+)\)\((.+)\)", search) ++ match = re.match(r"gstreamer([0-9\.]+)\((.+?)\)", search) + if not match: + self.ErrorCode(ERROR_UNKNOWN, + "The search term is invalid") --- packagekit-0.3.6.orig/debian/patches/01_disable_refresh_actions.patch +++ packagekit-0.3.6/debian/patches/01_disable_refresh_actions.patch @@ -0,0 +1,19 @@ +diff --git a/etc/PackageKit.conf.in b/etc/PackageKit.conf.in +index d206d43..bda5256 100644 +--- a/etc/PackageKit.conf.in ++++ b/etc/PackageKit.conf.in +@@ -60,12 +60,12 @@ DefaultBackend=@defaultbackend@ + # NOTE: Don't enable this for backends that are slow doing SearchFile() + # + # default=true +-RefreshCacheScanDesktopFiles=true ++RefreshCacheScanDesktopFiles=false + + # Update the package list when we RefreshCache + # + # NOTE: Don't enable this for backends that are slow doing GetPackages() + # + # default=true +-RefreshCacheUpdatePackageList=true ++RefreshCacheUpdatePackageList=false + --- packagekit-0.3.6.orig/debian/patches/03_change_mime_codec_db_path.patch +++ packagekit-0.3.6/debian/patches/03_change_mime_codec_db_path.patch @@ -0,0 +1,22 @@ +diff --git a/backends/apt/aptDBUSBackend.py b/backends/apt/aptDBUSBackend.py +index 8d1626f..3da1aea 100755 +--- a/backends/apt/aptDBUSBackend.py ++++ b/backends/apt/aptDBUSBackend.py +@@ -1547,7 +1547,7 @@ class PackageKitAptBackend(PackageKitBaseBackend): + self.Finished(EXIT_FAILED) + return + codec = "%s:%s" % (match.group(1), match.group(2)) +- db = get_mapping_db("/var/cache/app-install/gai-codec-map.gdbm") ++ db = get_mapping_db("/var/lib/PackageKit/codec-map.gdbm") + if db == None: + self.ErrorCode(ERROR_INTERNAL_ERROR, + "Failed to open codec mapping database") +@@ -1567,7 +1567,7 @@ class PackageKitAptBackend(PackageKitBaseBackend): + # Emit packages that contain an application that can handle + # the given mime type + handlers = set() +- db = get_mapping_db("/var/cache/app-install/gai-mime-map.gdbm") ++ db = get_mapping_db("/var/lib/PackageKit/mime-map.gdbm") + if db == None: + self.Finished(EXIT_FAILED) + return