--- policykit-1-0.92.orig/debian/libpolkit-gobject-1-dev.install +++ policykit-1-0.92/debian/libpolkit-gobject-1-dev.install @@ -0,0 +1,3 @@ +usr/lib/libpolkit-gobject*.so +usr/lib/pkgconfig/polkit-gobject*.pc +usr/include/polkit-1/polkit/ --- policykit-1-0.92.orig/debian/libpolkit-agent-1-dev.install +++ policykit-1-0.92/debian/libpolkit-agent-1-dev.install @@ -0,0 +1,3 @@ +usr/lib/libpolkit-agent*.so +usr/lib/pkgconfig/polkit-agent*.pc +usr/include/polkit-1/polkitagent/ --- policykit-1-0.92.orig/debian/rules +++ policykit-1-0.92/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/utils.mk + +DEB_DH_MAKESHLIBS_ARGS_policykit-1 := -Xusr/lib/polkit-1/ + +DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc \ + --enable-man-pages + +binary-install/policykit-1:: + # fix broken upstream install permissions + chmod u+x debian/policykit-1/var/lib/polkit-1/ + + # when building for Ubuntu, allow the admin group + if [ "`lsb_release -is 2>/dev/null`" = "Ubuntu" ]; then \ + /bin/echo -e "[Configuration]\nAdminIdentities=unix-group:admin" > debian/policykit-1/etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf; \ + fi --- policykit-1-0.92.orig/debian/policykit-1-doc.links +++ policykit-1-0.92/debian/policykit-1-doc.links @@ -0,0 +1 @@ +usr/share/doc/policykit-1-doc/html/ usr/share/gtk-doc/html/polkit-1 --- policykit-1-0.92.orig/debian/libpolkit-backend-1-dev.install +++ policykit-1-0.92/debian/libpolkit-backend-1-dev.install @@ -0,0 +1,3 @@ +usr/lib/libpolkit-backend*.so +usr/lib/pkgconfig/polkit-backend*.pc +usr/include/polkit-1/polkitbackend/ --- policykit-1-0.92.orig/debian/changelog +++ policykit-1-0.92/debian/changelog @@ -0,0 +1,168 @@ +policykit-1 (0.92-0ubuntu1) karmic; urgency=low + + * Rename package to policykit-1. Upstream (at least temporarily) forked + the project to make it installable in parallel with policykit 0.9, until + all programs are ported to the new API. + * Drop all patches except 01_pam_polkit.patch. + * Update shared library structure: libpolkit-{,dbus,grant} → + libpolkit-{agent,backend,gobject}-1. + * debian/control: + - libdbus-1-dev, libdbus-glib-1-dev → libeggdbus-1-dev + * debian/copyright: Update copyright. + * debian/rules, debian/policykit.init: Drop init script, package doesn't use + /var/run any more. + * debian/rules: Fix permissions of /var/lib/polkit-1/ which upstream build + system installs without executable permissions. + * debian/rules: Don't create "polkituser" system user, it's not used any + more. + * debian/rules: When building for Ubuntu, install a localauthority.conf.d + configuration file which considers "admin" group users as administrators. + Add "lsb-release" build dependency. + + -- Martin Pitt Mon, 22 Jun 2009 09:24:18 +0200 + +policykit (0.9-4ubuntu1) karmic; urgency=low + + * Merge from debian unstable, remaining changes: + - ubuntu-admin-group.patch: Change PolicyKit.conf to use 'admin' as + administrator group, instead of the 'root' user. Also grant all + permissions to root, since root is not in the admin group and is already + almighty anyway. This unbreaks running tools like g-s-t as root. + - polkit-deadlock.patch: Fix deadlock when PAM_TEXT_INFO is used. + (LP #35437) + * Tag polkit-deadlock.patch. + + -- Martin Pitt Mon, 22 Jun 2009 09:00:36 +0200 + +policykit (0.9-4) unstable; urgency=low + + * Add support for /var/run being a tmpfs. (Closes: #532101) + - Create /var/run/PolicyKit dynamically on boot by using an init script. + Original patch by Martin Pitt, thanks. Updated patch to only run the + init script in runlevel S at priority 75. + - Do no longer ship /var/run/PolicyKit in the package itself. + * debian/control + - Bump Standards-Version to 3.8.1. + * debian/patches/04_entry_leak.patch + - Plug a memory leak. Patch pulled from Fedora. + * debian/patches/05_manpage_typo_fix.patch + - Fix a small typo in the polkit-auth man page. (Closes: #523565) + * debian/patches/06_no_inotify_or_path_max.patch + - Add support for systems which don't support inotify (like hurd) and + don't use PATH_MAX unconditionally, instead use dynamically growing + buffers. (Closes: #521756) + Patch by Samuel Thibault, thanks. + + -- Michael Biebl Thu, 18 Jun 2009 09:55:34 +0200 + +policykit (0.9-3) unstable; urgency=low + + * Switch patch management system to quilt. + * debian/control + - Wrap Build-Depends. + - Demote Recommends: policykit-gnome to Suggests. (Closes: #513758) + - Bump Build-Depends on debhelper to (>= 7). + * debian/compat + - Bump debhelper compat level to 7. + * debian/rules + - Include debhelper.mk before any other files as recommended by the cdbs + documentation. + * debian/patches/03_consolekit0.3-api.patch + - Try both the ConsoleKit 0.3 and the older 0.2 API, to work with either. + Patch pulled from Ubuntu. + + -- Michael Biebl Wed, 18 Feb 2009 17:25:52 +0100 + +policykit (0.9-2) unstable; urgency=high + + [ Simon McVittie ] + * Add patch committed in Fedora (although not upstream) by the upstream + maintainer, to allow PolicyKit to be used when CVE-2008-4311 has + been fixed in dbus-daemon. (Closes: #510646) + + [ Michael Biebl ] + * debian/control + - Add ${misc:Depends} to all binary packages. + + -- Michael Biebl Wed, 07 Jan 2009 18:18:56 +0100 + +policykit (0.9-1) unstable; urgency=low + + * New upstream release. + * debian/control + - Bump Standards-Version to 3.8.0. No further changes. + + -- Michael Biebl Sun, 03 Aug 2008 10:53:11 +0200 + +policykit (0.8-2) unstable; urgency=low + + * Add symbols files for libpolkit2, libpolkit-grant2 and libpolkit-dbus2. + * debian/policykit.postinst + - Set correct permissions for all files. (Closes: #482064) + - Define a small helper function to apply the permissions. This makes it + more concise and readable. + + -- Michael Biebl Fri, 23 May 2008 04:33:48 +0200 + +policykit (0.8-1) unstable; urgency=medium + + * New upstream release. + - SECURITY - CVE-2008-1658: + Fixes format string vulnerability in the grant helper. (Closes: #476615) + * debian/control + - Add Build-Depends on pkg-config. + + -- Michael Biebl Fri, 18 Apr 2008 01:39:08 +0200 + +policykit (0.7-2) unstable; urgency=low + + * Upload to unstable. + + -- Michael Biebl Fri, 11 Jan 2008 01:02:59 +0100 + +policykit (0.7-1) experimental; urgency=low + + * New upstream release. (Closes: #455874) + * debian/control + - Bump Standards-Version to 3.7.3. No further changes required. + - Add Build-Depends on libdbus-glib-1-dev (>= 0.73). + - Change Homepage URL to http://hal.freedesktop.org/docs/PolicyKit/. + (Closes: #446504) + - Improve package description. (Closes: #446554) + * debian/copyright + - All code is now licensed under the MIT/X11 license. Update the copyright + notice accordingly. + * debian/policykit.dirs + - Add the directory /var/lib/PolicyKit-public. + * debian/policykit.install + - Install the D-Bus config and service files for the PolicyKit system + service. + - Install /var/lib/misc/PolicyKit.reload. + * debian/rules + - Fix the permissions of /var/lib/misc/PolicyKit.reload. + * debian/policykit.postinst + - Use dpkg-statoverride to check for local modifications before setting + the SUID/SGID bits. + + -- Michael Biebl Thu, 20 Dec 2007 18:01:38 +0100 + +policykit (0.6-1) experimental; urgency=low + + * New upstream release. + * debian/control + - Use new "Homepage:" field to specify the upstream URL. + - The Vcs-* fields are now officially supported, so remove the XS- prefix. + - Add a Recommends: policykit-gnome to the policykit package. + - Enable SELinux support by adding a Build-Depends on libselinux1-dev for + all supported platforms. + * debian/policykit.postinst + - Install polkit-grant-helper-pam with the correct permissions. + + -- Michael Biebl Sat, 03 Nov 2007 00:02:33 +0100 + +policykit (0.5-1) experimental; urgency=low + + * Initial release. (Closes: #397087) + + -- Michael Biebl Tue, 02 Oct 2007 22:38:04 +0200 + --- policykit-1-0.92.orig/debian/libpolkit-gobject-1-0.install +++ policykit-1-0.92/debian/libpolkit-gobject-1-0.install @@ -0,0 +1 @@ +usr/lib/libpolkit-gobject-1.so.* --- policykit-1-0.92.orig/debian/watch +++ policykit-1-0.92/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://hal.freedesktop.org/releases/PolicyKit-(.*)\.tar\.gz --- policykit-1-0.92.orig/debian/copyright +++ policykit-1-0.92/debian/copyright @@ -0,0 +1,66 @@ +This package was debianized by Michael Biebl on +Sun, 02 Sep 2007 06:04:06 +0200. + +It was downloaded from http://hal.freedesktop.org/releases/ + +Upstream Author: + + David Zeuthen + +Copyright: + + Copyright (C) 2008, 2009 Red Hat, Inc. + +License: + +The PolicyKit source code is licensed under the MIT/X11 license. The +license is included below. + + -- BEGIN MIT/X11 License --- + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated + documentation files (the "Software"), to deal in the + Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall + be included in all copies or substantial portions of the + Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY + KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + -- END MIT/X11 License --- + +=============================================================================== + +The API documentation in the doc/ subdirectory is licensed under the GFDL. + + Permission is granted to copy, distribute and/or modify this document under + the terms of the GNU Free Documentation License, Version 1.1 or any later + version published by the Free Software Foundation with no Invariant Sections, + no Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy of the + GNU Free Documentation License from the Free Software Foundation by visiting + their Web site or by writing to: + + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU Free Documentation +License can be found in `/usr/share/common-licenses/GFDL'. + +=============================================================================== + +The Debian packaging is (C) 2007, Michael Biebl and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + --- policykit-1-0.92.orig/debian/libpolkit-backend-1-0.install +++ policykit-1-0.92/debian/libpolkit-backend-1-0.install @@ -0,0 +1 @@ +usr/lib/libpolkit-backend-1.so.* --- policykit-1-0.92.orig/debian/policykit-1.postinst +++ policykit-1-0.92/debian/policykit-1.postinst @@ -0,0 +1,54 @@ +#!/bin/sh +# postinst script for policykit +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +set_perms() { + USER=$1 + GROUP=$2 + MODE=$3 + FILE=$4 + if ! dpkg-statoverride --list $FILE > /dev/null 2>&1; then + chown $USER:$GROUP $FILE + chmod $MODE $FILE + fi +} + +case "$1" in + configure) + set_perms root root 700 /var/lib/polkit-1 + set_perms root root 4755 /usr/lib/policykit-1/polkit-agent-helper-1 + set_perms root root 4755 /usr/bin/pkexec + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- policykit-1-0.92.orig/debian/policykit-1.install +++ policykit-1-0.92/debian/policykit-1.install @@ -0,0 +1,11 @@ +etc/pam.d/ +etc/dbus-1/ +etc/polkit-1/ +usr/bin/* +usr/lib/polkit-1/extensions/*.so +usr/lib/policykit-1/* +usr/share/man/ +usr/share/polkit-1/ +usr/share/dbus-1/ +usr/share/locale/ +var/lib/polkit-1 --- policykit-1-0.92.orig/debian/compat +++ policykit-1-0.92/debian/compat @@ -0,0 +1 @@ +7 --- policykit-1-0.92.orig/debian/libpolkit-agent-1-0.install +++ policykit-1-0.92/debian/libpolkit-agent-1-0.install @@ -0,0 +1 @@ +usr/lib/libpolkit-agent-1.so.* --- policykit-1-0.92.orig/debian/control +++ policykit-1-0.92/debian/control @@ -0,0 +1,108 @@ +Source: policykit-1 +Section: admin +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Utopia Maintenance Team +Uploaders: Michael Biebl +Build-Depends: cdbs, + debhelper (>= 7), + autotools-dev, + pkg-config, + libglib2.0-dev (>= 2.6.0), + libeggdbus-1-dev (>= 0.4), + libexpat1-dev, + libpam0g-dev, + libselinux1-dev [!hurd-i386 !kfreebsd-i386 !kfreebsd-amd64], + gtk-doc-tools, + xsltproc, + quilt, + lsb-release +Standards-Version: 3.8.1 +Vcs-Svn: svn://svn.debian.org/svn/pkg-utopia/packages/unstable/policykit +Vcs-Browser: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/policykit +Homepage: http://hal.freedesktop.org/docs/PolicyKit/ + +Package: policykit-1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, consolekit, dbus +Description: framework for managing administrative policies and privileges + PolicyKit is an application-level toolkit for defining and handling the policy + that allows unprivileged processes to speak to privileged processes. + . + It is a framework for centralizing the decision making process with respect to + granting access to privileged operations (like calling the HAL Mount() method) + for unprivileged (desktop) applications. + +Package: policykit-1-doc +Architecture: all +Section: doc +Depends: ${misc:Depends} +Suggests: devhelp +Description: documentation for PolicyKit-1 + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains the API documentation of PolicyKit. + +Package: libpolkit-gobject-1-0 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: PolicyKit Authorization API + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains a library for accessing PolicyKit. + +Package: libpolkit-gobject-1-dev +Architecture: any +Section: libdevel +Depends: libpolkit-gobject-1-0 (= ${binary:Version}), ${misc:Depends}, libglib2.0-dev +Description: PolicyKit Authorization API - development files + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains the development files for the library found in + libpolkit-gobject-1-0. + +Package: libpolkit-agent-1-0 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: PolicyKit Authentication Agent API + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains a library for accessing the authentication agent. + +Package: libpolkit-agent-1-dev +Architecture: any +Section: libdevel +Depends: libpolkit-agent-1-0 (= ${binary:Version}), ${misc:Depends}, libpolkit-gobject-1-dev +Description: PolicyKit Authentication Agent API - development files + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains the development files for the library found in + libpolkit-agent-1-0. + +Package: libpolkit-backend-1-0 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: PolicyKit backend API + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains a library for implementing authentication backends. + +Package: libpolkit-backend-1-dev +Architecture: any +Section: libdevel +Depends: libpolkit-backend-1-0 (= ${binary:Version}), ${misc:Depends}, libpolkit-gobject-1-dev +Description: PolicyKit backend API - development files + PolicyKit is a toolkit for defining and handling the policy that + allows unprivileged processes to speak to privileged processes. + . + This package contains the development files for the library found in + libpolkit-backend-1-0. --- policykit-1-0.92.orig/debian/policykit-1-doc.install +++ policykit-1-0.92/debian/policykit-1-doc.install @@ -0,0 +1,2 @@ +usr/share/gtk-doc/html/polkit-1/* /usr/share/doc/policykit-1-doc/html/ + --- policykit-1-0.92.orig/debian/patches/series +++ policykit-1-0.92/debian/patches/series @@ -0,0 +1 @@ +01_pam_polkit.patch --- policykit-1-0.92.orig/debian/patches/01_pam_polkit.patch +++ policykit-1-0.92/debian/patches/01_pam_polkit.patch @@ -0,0 +1,13 @@ +--- a/data/polkit-1.in ++++ b/data/polkit-1.in +@@ -1,6 +1,6 @@ + #%PAM-1.0 + +-auth include @PAM_FILE_INCLUDE_AUTH@ +-account include @PAM_FILE_INCLUDE_ACCOUNT@ +-password include @PAM_FILE_INCLUDE_PASSWORD@ +-session include @PAM_FILE_INCLUDE_SESSION@ ++@include common-auth ++@include common-account ++@include common-password ++@include common-session