--- libgksu-2.0.12.orig/debian/libgksu2-dev.install +++ libgksu-2.0.12/debian/libgksu2-dev.install @@ -0,0 +1,5 @@ +debian/tmp/usr/lib/libgksu2.so usr/lib/ +debian/tmp/usr/lib/libgksu2.a usr/lib/ +docs/html/* usr/share/doc/libgksu2-dev/html/ +debian/tmp/usr/include/libgksu/* usr/include/libgksu/ +debian/tmp/usr/lib/pkgconfig/* usr/lib/pkgconfig/ --- libgksu-2.0.12.orig/debian/libgksu2-dev.links +++ libgksu-2.0.12/debian/libgksu2-dev.links @@ -0,0 +1 @@ +usr/share/doc/libgksu2-dev/html usr/share/gtk-doc/html/libgksu --- libgksu-2.0.12.orig/debian/libgksu2-0.shlibs +++ libgksu-2.0.12/debian/libgksu2-0.shlibs @@ -0,0 +1 @@ +libgksu2 0 libgksu2-0 (>= 2.0.4) --- libgksu-2.0.12.orig/debian/watch +++ libgksu-2.0.12/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://people.debian.org/~kov/gksu/libgksu-(.*)\.tar\.gz \ + debian uupdate --- libgksu-2.0.12.orig/debian/libgksu2-0.symbols +++ libgksu-2.0.12/debian/libgksu2-0.symbols @@ -0,0 +1,65 @@ +libgksu2.so.0 libgksu2-0 #MINVER# + HIDDEN@HIDDEN 1.9.6 + LIBGKSU_2@LIBGKSU_2 1.9.6 + fade_data@LIBGKSU_2 1.9.6 + get_configuration_options@LIBGKSU_2 1.9.6 + gksu_ask_password@LIBGKSU_2 1.9.6 + gksu_ask_password_full@LIBGKSU_2 1.9.6 + gksu_context_free@LIBGKSU_2 1.9.6 + gksu_context_get_alert@LIBGKSU_2 1.9.6 + gksu_context_get_always_ask_password@LIBGKSU_2 2.0.6 + gksu_context_get_command@LIBGKSU_2 1.9.6 + gksu_context_get_debug@LIBGKSU_2 1.9.6 + gksu_context_get_description@LIBGKSU_2 1.9.6 + gksu_context_get_grab@LIBGKSU_2 1.9.6 + gksu_context_get_keep_env@LIBGKSU_2 1.9.6 + gksu_context_get_launcher_context@LIBGKSU_2 1.9.6 + gksu_context_get_login_shell@LIBGKSU_2 1.9.6 + gksu_context_get_message@LIBGKSU_2 1.9.6 + gksu_context_get_type@LIBGKSU_2 2.0.4 + gksu_context_get_user@LIBGKSU_2 1.9.6 + gksu_context_new@LIBGKSU_2 1.9.6 + gksu_context_ref@LIBGKSU_2 2.0.4 + gksu_context_set_alert@LIBGKSU_2 1.9.6 + gksu_context_set_always_ask_password@LIBGKSU_2 2.0.6 + gksu_context_set_command@LIBGKSU_2 1.9.6 + gksu_context_set_debug@LIBGKSU_2 1.9.6 + gksu_context_set_description@LIBGKSU_2 1.9.6 + gksu_context_set_grab@LIBGKSU_2 1.9.6 + gksu_context_set_keep_env@LIBGKSU_2 1.9.6 + gksu_context_set_launcher_context@LIBGKSU_2 1.9.6 + gksu_context_set_launcher_id@LIBGKSU_2 1.9.6 + gksu_context_set_login_shell@LIBGKSU_2 1.9.6 + gksu_context_set_message@LIBGKSU_2 1.9.6 + gksu_context_set_user@LIBGKSU_2 1.9.6 + gksu_context_unref@LIBGKSU_2 2.0.4 + gksu_error_get_type@LIBGKSU_2 1.9.6 + gksu_run@LIBGKSU_2 1.9.6 + gksu_run_full@LIBGKSU_2 1.9.6 + gksu_run_fuller@LIBGKSU_2 2.0.8 + gksu_su@LIBGKSU_2 1.9.6 + gksu_su_full@LIBGKSU_2 1.9.6 + gksu_su_fuller@LIBGKSU_2 2.0.8 + gksu_sudo@LIBGKSU_2 1.9.6 + gksu_sudo_full@LIBGKSU_2 1.9.6 + gksu_sudo_fuller@LIBGKSU_2 2.0.8 + gksuui_dialog_get_alert@LIBGKSU_2 1.9.6 + gksuui_dialog_get_icon@LIBGKSU_2 1.9.6 + gksuui_dialog_get_message@LIBGKSU_2 1.9.6 + gksuui_dialog_get_password@LIBGKSU_2 1.9.6 + gksuui_dialog_get_prompt@LIBGKSU_2 1.9.6 + gksuui_dialog_get_type@LIBGKSU_2 1.9.6 + gksuui_dialog_new@LIBGKSU_2 1.9.6 + gksuui_dialog_set_alert@LIBGKSU_2 1.9.6 + gksuui_dialog_set_icon@LIBGKSU_2 1.9.6 + gksuui_dialog_set_message@LIBGKSU_2 1.9.6 + gksuui_dialog_set_prompt@LIBGKSU_2 1.9.6 + grab_keyboard_and_mouse@LIBGKSU_2 1.9.6 + gsm_screen_get_height@LIBGKSU_2 1.9.6 + gsm_screen_get_width@LIBGKSU_2 1.9.6 + gsm_screen_get_x@LIBGKSU_2 1.9.6 + gsm_screen_get_y@LIBGKSU_2 1.9.6 + no_pass@LIBGKSU_2 1.9.6 + report_failed_grab@LIBGKSU_2 1.9.6 + set_sensitivity_cb@LIBGKSU_2 1.9.6 + ungrab_keyboard_and_mouse@LIBGKSU_2 1.9.6 --- libgksu-2.0.12.orig/debian/libgksu2-0.postinst +++ libgksu-2.0.12/debian/libgksu2-0.postinst @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +update-alternatives --install /usr/share/gconf/defaults/10_libgksu \ + libgksu-gconf-defaults /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo \ + 30 + +update-alternatives --install /usr/share/gconf/defaults/10_libgksu \ + libgksu-gconf-defaults /usr/share/libgksu/debian/gconf-defaults.libgksu-su \ + 20 + +# hack to work-around a problem with update-gconf-defaults not being +# able to handle dangling symlinks correctly (see prerm) +if ! test -e /usr/share/gconf/defaults/10_libgksu; then + ln -fs /etc/alternatives/libgksu-gconf-defaults /usr/share/gconf/defaults/10_libgksu +fi + +if which update-gconf-defaults >/dev/null 2>&1; then + update-gconf-defaults +fi --- libgksu-2.0.12.orig/debian/gconf-defaults.libgksu-su +++ libgksu-2.0.12/debian/gconf-defaults.libgksu-su @@ -0,0 +1 @@ +/apps/gksu/sudo-mode false --- libgksu-2.0.12.orig/debian/control +++ libgksu-2.0.12/debian/control @@ -0,0 +1,48 @@ +Source: libgksu +Section: admin +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Gustavo Noronha Silva +Uploaders: Debian GNOME Maintainers , Gustavo Noronha Silva +Build-Depends: cdbs, + debhelper (>= 4.1.0), + libgtk2.0-dev (>= 2.12), + libgconf2-dev, + libstartup-notification0-dev, + libgnome-keyring-dev, + gettext, + autotools-dev, + gtk-doc-tools, + gnome-pkg-tools (>= 0.10), + libgtop2-dev, + dpkg-dev (>= 1.13.19), + libglib2.0-doc +Standards-Version: 3.7.3 +Homepage: http://www.nongnu.org/gksu +Vcs-Browser: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/libgksu/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/libgksu/ + +Package: libgksu2-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, xauth | xbase-clients +Replaces: gksu (<< 1.9.0), libgksu0 +Conflicts: libgksu0 +Recommends: sudo +Description: library providing su and sudo functionality + This library comes from the gksu program. It provides a simple + API to use su and sudo in programs that need to execute tasks + as other user. It provides X authentication facilities for running + programs in an X session. + +Package: libgksu2-dev +Section: libdevel +Architecture: any +Depends: libglib2.0-dev, libgksu2-0 (= ${binary:Version}), libgnome-keyring-dev, libgconf2-dev, libstartup-notification0-dev +Description: library providing su and sudo functionality (development files) + This library comes from the gksu program. It provides a simple + API to use su and sudo in programs that need to execute tasks + as other user. It provides X authentication facilities for running + programs in an X session. + . + This package contains the development files. --- libgksu-2.0.12.orig/debian/rules +++ libgksu-2.0.12/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +GNOME_DOWNLOAD_URL = http://people.debian.org/~kov/gksu/$(GNOME_TARBALL) + +ALLOWED_DISTS += unstable + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/gnome.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk +include /usr/share/gnome-pkg-tools/1/rules/check-dist.mk +include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk + +DEB_CONFIGURE_EXTRA_FLAGS := --disable-gtk-doc --enable-gnome-keyring + +clean:: + -test -d po.old && (rm -rf po; mv po.old po) + +post-patches:: + if ! test -d po.old; then \ + cp -a po po.old; \ + cp -a debian/pos/* po/; \ + rm po/*gmo po/stamp-po || true; \ + fi + +binary-post-install/libgksu-dev:: + install -m 755 -d \ + debian/libgksu-dev/usr/share/gtk-doc/html/libgksu + install -m 644 docs/html/* \ + debian/libgksu-dev/usr/share/gtk-doc/html/libgksu/ --- libgksu-2.0.12.orig/debian/README.Debian +++ libgksu-2.0.12/debian/README.Debian @@ -0,0 +1,49 @@ +================== +libgksu for Debian +================== + +The gksu library enables the user to run programs with root powers +using one of `su' or `sudo' as backend. If the application that uses +the library doesn't specify the backend it wants to use, the backend +will be selected through the `/apps/gksu/sudo-mode' boolean gconf +option. + +The Debian package provides two gconf default files, one of them +setting sudo-mode to true, the other setting sudo-mode to false. Which +one of them is used to set the default is decided through an +alternative. + +Debian tools, Systems Administrators and custom distributions builders +might want to make use of this functionality to decide whhich backend +to use. This is done by configuring the libgksu-gconf-default +alternative: + + # update-alternatives --config libgksu-gconf-defaults + + There are 2 alternatives which provide `libgksu-gconf-defaults'. + + Selection Alternative + ----------------------------------------------- + * 1 /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo + + 2 /usr/share/libgksu/debian/gconf-defaults.libgksu-su + + Press enter to keep the default[*], or type selection number: 2 + Using `/usr/share/libgksu/debian/gconf-defaults.libgksu-su' to provide `libgksu-gconf-defaults'. + +After setting the alternative you must run the `update-gconf-defaults' +script to actually apply the setting to the gconf defaults XML file. + +While this possibility exists, it would be best if it is only used by +the internal Debian infra-structure, since there are already better +and documented ways of providing "default" settings for gconf-using +applications both in the upstream software[0] and in the gconf +packaging[1] itself, good for administrators and custom distributions +builders, respectively. + +[0]: Read the GNOME Desktop System Administration Guide at + http://www.gnome.org/learn/admin-guide/latest/ +[1]: See the dh_gconf(1) script provided in the debhelper package and + also see the /usr/sbin/update-gconf-defaults python script + provided in the gconf package + + -- Gustavo Noronha Silva , Sun, 3 Sep 2006 19:06:47 -0300 --- libgksu-2.0.12.orig/debian/compat +++ libgksu-2.0.12/debian/compat @@ -0,0 +1 @@ +4 --- libgksu-2.0.12.orig/debian/libgksu2-0.prerm +++ libgksu-2.0.12/debian/libgksu2-0.prerm @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ "$1" = "remove" ]; then + update-alternatives --remove libgksu-gconf-defaults \ + /usr/share/libgksu/debian/gconf-defaults.libgksu-su + + update-alternatives --remove libgksu-gconf-defaults \ + /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo +fi --- libgksu-2.0.12.orig/debian/copyright +++ libgksu-2.0.12/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Gustavo Noronha Silva on +Sun, 2 Dec 2001 23:04:34 -0200 + +It was downloaded from http://www.nongnu.org/gksu + +Upstream Authors: Gustavo Noronha Silva + Allan Douglas + +Copyright (C) 2004-2008 Gustavo Noronha Silva + +License: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + On Debian systems, the LGPL version 2 license can be found at + /usr/share/common-licenses/LGPL-2. --- libgksu-2.0.12.orig/debian/gconf-defaults.libgksu-sudo +++ libgksu-2.0.12/debian/gconf-defaults.libgksu-sudo @@ -0,0 +1 @@ +/apps/gksu/sudo-mode true --- libgksu-2.0.12.orig/debian/libgksu2-0.postrm +++ libgksu-2.0.12/debian/libgksu2-0.postrm @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +if [ "$1" = "remove" ]; then + # hack to avoid breaking update-gconf-defaults when leaving + # a dangling symlink; + if ! test -e $(readlink /etc/alternatives/libgksu-gconf-defaults); then + rm -f /usr/share/gconf/defaults/10_libgksu > /dev/null 2>&1 || true + fi + + if which update-gconf-defaults >/dev/null 2>&1; then + update-gconf-defaults + fi +fi --- libgksu-2.0.12.orig/debian/changelog +++ libgksu-2.0.12/debian/changelog @@ -0,0 +1,1558 @@ +libgksu (2.0.12-1ubuntu4) karmic; urgency=low + + * debian/patches/02_woraround_gtk_editable_bug.patch: + - removed again, gtk+ is fixed now (and the patch causes harm), + Thanks to Byeong-ryeol Kim + + -- Michael Vogt Thu, 30 Jul 2009 18:53:02 +0200 + +libgksu (2.0.12-1ubuntu3) karmic; urgency=low + + * debian/patches/02_woraround_gtk_editable_bug.patch: + - workaround problem in gtk 2.17.4 with gtkeditable + (LP: #398849) + + -- Michael Vogt Mon, 13 Jul 2009 18:39:44 +0200 + +libgksu (2.0.12-1ubuntu2) karmic; urgency=low + + * debian/patches/01_revert_forkpty.patch: + - revert the upstream change to run sudo in a forkpty() + environment, this is incompatible with our default + sudo tty_tickets configuration + + -- Michael Vogt Wed, 01 Jul 2009 13:02:51 +0200 + +libgksu (2.0.12-1ubuntu1) karmic; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/libgksu2-0.postinst: + + make sudo the default + - 09_multihead.patch: + + dim all heads + - 11_no_save_to_keyring.patch + + don't save to gnome-keyring by default (Ubuntu-specific) + - 12_no_password_dialog.patch + + don't display dialog if no password was needed (Ubuntu-specific) + - 13_startup_notification.diff + + make startup-notification work more reliable + - 14_polish_startup.diff: + + improve startup notification message (sent upstream) + - 15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + (Ubuntu-specific) + - 17_composited_fade.patch: + + nice fadeout on composited display (sent upstream) + - 18_g_markup_escape_text_for_command.patch: + + fix missing g_markup_escape when commands are displayed (sent + upstream) + - 20_add_usleep.patch: + + add small usleep() to avoid race condition when the hostname can not + be resolved (sent upstream) + - 21_composited_rgba_addition.patch: + + bling (sent upstream) + - 22_increase_gksu_helper_buf.patch: + + make the gksu-run-helper buffer grow dynamically + - 22_sudo_keep_env.patch: + + if gksudo -k is used, pass the -E option to sudo to preserve the + environment if we're allowed to do so (sent upstream) + + -- Michael Vogt Tue, 30 Jun 2009 14:10:53 +0200 + +libgksu (2.0.12-1) unstable; urgency=low + + * New upstream release + - includes fix for double free (Closes: #534844) + * debian/control.in: + - patch by seb128 to replace dependency on libglade with gtk+ > 2.12 + (which has GtkBuilder) + + -- Gustavo Noronha Silva Mon, 29 Jun 2009 15:16:14 -0300 + +libgksu (2.0.11-1) unstable; urgency=low + + * New upstream release + - should work with sudo when requiretty is on (Closes: #531477) + * debian/libgksu2-0.instal: + - make sure to install the gksu-properties manpage (Closes: #497591) + + -- Gustavo Noronha Silva Wed, 24 Jun 2009 16:04:06 -0300 + +libgksu (2.0.10-1ubuntu1) karmic; urgency=low + + * Resynchronise with Debian. Remaining changes: + - debian/libgksu2-0.postinst: + + make sudo the default + - 09_multihead.patch: + + dim all heads + - 11_no_save_to_keyring.patch + + don't save to gnome-keyring by default (Ubuntu-specific) + - 12_no_password_dialog.patch + + don't display dialog if no password was needed (Ubuntu-specific) + - 13_startup_notification.diff + + make startup-notification work more reliable + - 14_polish_startup.diff: + + improve startup notification message (sent upstream) + - 15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + (Ubuntu-specific) + - 17_composited_fade.patch: + + nice fadeout on composited display (sent upstream) + - 18_g_markup_escape_text_for_command.patch: + + fix missing g_markup_escape when commands are displayed (sent + upstream) + - 20_add_usleep.patch: + + add small usleep() to avoid race condition when the hostname can not + be resolved (sent upstream) + - 21_composited_rgba_addition.patch: + + bling (sent upstream) + - 22_increase_gksu_helper_buf.patch: + + make the gksu-run-helper buffer grow dynamically + - 22_sudo_keep_env.patch: + + if gksudo -k is used, pass the -E option to sudo to preserve the + environment if we're allowed to do so (sent upstream) + + -- Colin Watson Wed, 24 Jun 2009 14:17:58 +0100 + +libgksu (2.0.10-1) unstable; urgency=low + + [ Josselin Mouette ] + * Wrap build-depends. + * Build-depend on libglib2.0-doc to ensure proper xrefs. + + [ Gustavo Noronha Silva ] + * New upstream release. + - adds manpage for gksu-properties (Closes: #497591) + - fixes the off-by-one error and use of uninitialized memory + (Closes: #525876) + + -- Gustavo Noronha Silva Sat, 09 May 2009 23:11:43 -0300 + +libgksu (2.0.9-1ubuntu3) jaunty; urgency=low + + * 22_sudo_keep_env.patch: If gksudo -k is used, pass the -E option to sudo + to preserve the environment if we're allowed to do so (LP: #357101). + + -- Colin Watson Wed, 08 Apr 2009 14:33:00 +0100 + +libgksu (2.0.9-1ubuntu2) jaunty; urgency=low + + * No-change rebuild to fix lpia shared library dependencies. + + -- Colin Watson Thu, 19 Mar 2009 13:51:25 +0000 + +libgksu (2.0.9-1ubuntu1) jaunty; urgency=low + + * New upstream bugfix release + * 09_multihead.patch: updated + * 13_polish_startup.diff: updated + * 20_better_usleep.patch: updated + * 22_increase_gksu_helper_buf.patch: dropped, taken upstream + + -- Michael Vogt Mon, 09 Mar 2009 09:24:17 +0100 + +libgksu (2.0.9-1) unstable; urgency=low + + * New upstream release + + -- Gustavo Noronha Silva Wed, 04 Mar 2009 16:12:35 -0300 + +libgksu (2.0.8-1) unstable; urgency=low + + * New upstream release + * debian/control.in: + - added Homepage and Vcs-* headers + + -- Gustavo Noronha Silva Sun, 22 Feb 2009 18:38:51 -0300 + +libgksu (2.0.7-1ubuntu3) intrepid; urgency=low + + * fix out of bounds writing (LP: #275172) + + -- Mirco Müller (MacSlow) Fri, 17 Oct 2008 14:16:11 +0200 + +libgksu (2.0.7-1ubuntu2) intrepid; urgency=low + + * debian/patches/20_add_usleep.patch: + - dropped + * debian/patches/20_better_usleep.patch: + - improve the patch to have a bigger timeout but also break early + once the process_name changes. this should hep in situations when + starting sudo is very slow (e.g. because the machine is under heavy + io load) + + -- Michael Vogt Thu, 17 Jul 2008 13:25:00 +0100 + +libgksu (2.0.7-1ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining debian/patches: + - 09_multihead.patch: + + dim all heads + - 13_polish_startup.diff: + + improve startup notification message (sent upstream) + - 15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + (ubuntu specific) + - 11_no_save_to_keyring.patch + + don't save to gnome-keyring by default (ubuntu specific) + - 12_no_password_dialog.patch + + don't display dialog if no password was needed (ubuntu specific) + - 17_composited_fade.patch: + + nice fadeout on composited display (sent upstream) + - 18_g_markup_escape_text_for_command.patch: + + fix missing g_markup_escape when commands are displayed + (sent upstream) + - 20_add_usleep.patch: + + add small usleep() to avoid race condition when + the hostname can not be resolved (sent upstream) + - 21_composited_rgba_addition.patch: + + bling (sent upstream) + - 22_increase_gksu_helper_buf.patch: + + make the gksu-run-helper buffer grow dynamically + * dropped (accepted upstream): + - debian/patches/01_capslock_warn_fix.diff + - debian/patches/05_always_ask_password.patch + - debian/patches/16_fix_waitpid.patch + * updated: + - debian/patches/18_g_markup_escape_text_for_command.patch + * dropped debian/patches/19_keep_http_proxy.patch, not needed + with current sudo + + -- Michael Vogt Thu, 12 Jun 2008 17:35:03 +0200 + +libgksu (2.0.7-1) unstable; urgency=low + + * New upstream release + - includes fix for early return of gksu_sudo_full; patch by Ben + Hutchings , thanks! (Closes: #463709) + * debian/patches/01_force_using_version_script.diff: + - detection for the -version-script option was fixed upstream, so + this patch is being removed + * debian/libgksu2-dev.links: + - fixed name of the symbolic link that is created at + /usr/share/gtk-doc/html, so that devhelp will actually find its + control file + * debian/pos/{it,ko}.po: + - removed; they were actually already updated on version 2.0.6, so no + need to replace them here + * debian/copyright: + - enhanced copyright notice to make lintian happy + + -- Gustavo Noronha Silva Tue, 27 May 2008 21:36:01 -0300 + +libgksu (2.0.6-1) unstable; urgency=low + + * New upstream release + - fixes user and command order on the message that is displayed when a + user other than root is targeted (Closes: #449180) + - adds a way to always ask for password (Closes: #453423) + - fixes capslock notification (Closes: #453426) + * debian/control: + - updated standards version to 3.7.3 + * debian/patches/01_force_using_version_script.diff: + - this releases' build system is broken, and won't use the version script + if we do not force it + * debian/libgksu2-0.symbols: + - updated with the new symbols + * debian/copyright: + - add copyright information correctly + + -- Gustavo Noronha Silva Fri, 16 May 2008 12:55:06 -0300 + +libgksu (2.0.5-2) unstable; urgency=low + + [ Josselin Mouette ] + * debian/pos/it.po: add missing tag in a translation. + Closes: #431490. + + [ Kilian Krause ] + * Use binary:version and source:Version for binnNMU-safe uploads as + added in dpkg-dev 1.13.19. Add to Build-Depends accordingly + + [ Gustavo Noronha Silva ] + * debian/control.in: + - make libgksu2-0 depend on xauth, using xbase-clients only as an + alternative to allow for backports and other such uses + (Closes: #455533) + * debian/libgksu2-0.symbols: + - added, contains information about the symbols and the version each + of them require + + -- Gustavo Noronha Silva Mon, 31 Dec 2007 16:38:56 -0200 + +libgksu (2.0.5-1ubuntu11) intrepid; urgency=low + + * debian/patches/22_increase_gksu_helper_buf.patch: + - make the buffer in gksu-run-helper grow dynamically (LP: #173757) + + -- Michael Vogt Wed, 11 Jun 2008 14:56:13 +0200 + +libgksu (2.0.5-1ubuntu10) intrepid; urgency=low + + * added composite-aware RGBA-drawing for the main dialog window + according to the spit-and-polish blueprint + + -- Mirco Müller (MacSlow) Tue, 10 Jun 2008 18:33:48 +0200 + +libgksu (2.0.5-1ubuntu9) intrepid; urgency=low + + * debian/patches/21_increase_gksu_helper_buf.patch: + - fix typo in patch + + -- Michael Vogt Tue, 10 Jun 2008 16:10:47 +0200 + +libgksu (2.0.5-1ubuntu8) intrepid; urgency=low + + * debian/patches/21_increase_gksu_helper_buf.patch: + - increase the buffer in gksu-run-helper to fix breakage for + very long sn_ids (LP: #173757) + + -- Michael Vogt Mon, 09 Jun 2008 16:56:40 +0200 + +libgksu (2.0.5-1ubuntu7) intrepid; urgency=low + + * adding composite-aware RGBA-drawing for the main dialog window + according to the spit-and-polish blueprint + + -- Mirco Müller (MacSlow) Wed, 04 Jun 2008 16:35:22 +0200 + +libgksu (2.0.5-1ubuntu6) intrepid; urgency=low + + * debian/patches/20_add_usleep.patch: + - add small usleep() to the code that looks for the + sudo password prompt to avoid race condition when + the hostname can not be resolved (LP: #237325) + + -- Michael Vogt Wed, 04 Jun 2008 14:11:26 +0200 + +libgksu (2.0.5-1ubuntu5) hardy; urgency=low + + * pass http_proxy environment explicitly (LP: #181999) + + -- Michael Vogt Tue, 05 Feb 2008 12:31:40 +0100 + +libgksu (2.0.5-1ubuntu4) gutsy; urgency=low + + * debian/patches/18_g_markup_escape_text_for_command.patch: + Escape markup in dialog's command substitutions (LP: #133639) + Fix order of user and command in a message (LP: #103406) + + -- dAniel hAhler Wed, 12 Sep 2007 23:48:50 +0200 + +libgksu (2.0.5-1ubuntu3) gutsy; urgency=low + + * debian/patches/17_composited_fade.patch: + - Draw a black window and change opacity to fade + when we have a compositor. (LP: #126529) + + -- Travis Watkins Tue, 17 Jul 2007 04:38:05 -0500 + +libgksu (2.0.5-1ubuntu2) gutsy; urgency=low + + * debian/patches/16_fix_waitpid.patch: + - do not return from gksu until the process started by it + has finished (restore old behaviour) + + -- Michael Vogt Fri, 22 Jun 2007 12:19:42 +0200 + +libgksu (2.0.5-1ubuntu1) gutsy; urgency=low + + * Dropped: + - debian/patches/10_fix_quote.patch (applied upstream) + * Merge from debian unstable, remaining changes: + - debian/libgksu2-0.postinst: + + make sudo the default + - debian/control.in: + + set maintainer to ubuntu + - debian/patches/05_always_ask_password.patch: + + add support to always ask for a password even when + sudo still has a valid ticket + - debian/patches/09_multihead.patch + + dim all heads + - debian/patches/14_polish_startup.diff: + + improve startup notification message + - debian/patches/15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + - debian/patches/01_capslock_warn_fix.diff + + improve capslock warning + - debian/patches/11_no_save_to_keyring.patch + + don't save to gnome-keyring by default + - debian/patches/12_no_password_dialog.patch + + don't display dialog if no password was needed + - debian/patches/13_startup_notification.diff + + make startup-notification work more reliable + + -- Michael Vogt Thu, 14 Jun 2007 10:25:55 +0200 + +libgksu (2.0.5-1) unstable; urgency=low + + * New upstream version + - now uses a less dumb way of relaying child's stdout/stderr, + thus not requiring so many wakeups (Closes: #425679) + - also completes startup notification when cancel is pressed + (Closes: #426495) + * debian/patches/04_create_keyring.diff, + debian/patches/00_gettext_all_linguas.diff: + - removed; applied upstream + + -- Gustavo Noronha Silva Sun, 10 Jun 2007 16:05:06 -0300 + +libgksu (2.0.4-1) experimental; urgency=low + + * debian/patches/01_fix_keyring_password.diff, + debian/patches/02_desktop_startup_id_fix.diff, + debian/patches/03_use-gtk_entry_invisible_char_as_default.diff: + - removed; applied upstream + * debian/pos/ca.po, debian/pos/cs.po, + debian/pos/hu.po, debian/pos/nl.po: + - also removed; applied upstream + * debian/rules: + - added check for upload target (must be experimental) + - added code to automatically download the original source tarball + - thanks go to lool for making the two changes above possible + * debian/control.in: + - the changes above require gnome-pkg-tools >= 0.10 + + -- Gustavo Noronha Silva Sun, 4 Feb 2007 15:00:29 -0200 + +libgksu (2.0.3-9ubuntu1) gutsy; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/libgksu2-0.postinst: + + make sudo the default + - debian/control.in: + + set maintainer to ubuntu + - debian/patches/05_always_ask_password.patch: + + add support to always ask for a password even when + sudo still has a valid ticket + - debian/patches/10_fix_quote.patch: + + allow quoting of "\" + - debian/patches/09_multihead.patch + + dim all heads + - debian/patches/14_polish_startup.diff: + + improve startup notification message + - debian/patches/15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + - debian/patches/01_capslock_warn_fix.diff + + improve capslock warning + - debian/patches/11_no_save_to_keyring.patch + + don't save to gnome-keyring by default + - debian/patches/12_no_password_dialog.patch + + don't display dialog if no password was needed + - debian/patches/13_startup_notification.diff + + make startup-notification work more reliable + + -- Michael Vogt Tue, 22 May 2007 11:36:56 +0200 + +libgksu (2.0.3-9) unstable; urgency=low + + * debian/patches/00_gettext_all_linguas.diff: + - actually add ko to ALL_LINGUAS, so that it will be included + in the package; sorry for not remembering that, Changwoo =) + (Closes: #416186)) + + -- Gustavo Noronha Silva Wed, 28 Mar 2007 19:48:59 -0300 + +libgksu (2.0.3-8) unstable; urgency=low + + * debian/pos/ko.po: + - added; updating Korean translation, thanks to + Changwoo Ryu (Closes: #416186) + * debian/watch: + - fix watch file, according to the suggestion given by + Chris Lamb (Closes: #415923) + + -- Gustavo Noronha Silva Sun, 25 Mar 2007 15:53:33 -0300 + +libgksu (2.0.3-7) unstable; urgency=medium + + * debian/patches/04_create_keyring.diff: + - added; patches libgksu to always try creating the keyring + when saving the password; if the keyring already exists the + creation is a no-op, so this is safe (Closes: #412681) + * debian/pos/it.po: + - update Italian translation; done by Andrea Zagli + + -- Gustavo Noronha Silva Tue, 6 Mar 2007 07:24:08 -0300 + +libgksu (2.0.3-6) unstable; urgency=low + + * debian/pos/nl.po: + - update Dutch translation; done by Ronald van Engelen + + + -- Gustavo Noronha Silva Sat, 3 Feb 2007 12:33:41 -0200 + +libgksu (2.0.3-5) unstable; urgency=high + + * debian/patches/03_use-gtk_entry_invisible_char_as_default.diff: + - accepted patch by Виталий Ищенко + which makes libgksu only replace the 'password typing' character + when '*' is the default one + + -- Gustavo Noronha Silva Fri, 5 Jan 2007 15:39:27 -0200 + +libgksu (2.0.3-4) unstable; urgency=high + + * debian/pos/ + ca.po + cs.po + hu.po: + - updated translations grabbed from upstream SVN + + -- Gustavo Noronha Silva Tue, 2 Jan 2007 13:20:00 -0200 + +libgksu (2.0.3-3ubuntu5) feisty; urgency=low + + * debian/patches/16_smoother_fading.patch: + - removed, causes crashes for some people (LP#93704, #90312) + + -- Michael Vogt Wed, 21 Mar 2007 12:41:32 +0100 + +libgksu (2.0.3-3ubuntu4) feisty; urgency=low + + * debian/patches/14_polish_startup.diff: + - fix i18n (LP#74138) + + -- Michael Vogt Thu, 8 Mar 2007 10:15:12 +0100 + +libgksu (2.0.3-3ubuntu3) feisty; urgency=low + + * debian/patches/05_always_ask_pw.patch: + - support "always prompt for a password" mode in gksudo + * debian/patches/16_smoother_fading.patch: + - smoother fading (thanks to Christof Krüger) + * debian/patches/09_multihead.patch: + - fix multi-monitor support (thanks to Christof Krüger) + + -- Michael Vogt Mon, 5 Mar 2007 08:57:16 +0100 + +libgksu (2.0.3-3ubuntu2) feisty; urgency=low + + * debian/patches/10_fix_quote.patch: + - fix quote detection for \ + * debian/control: + - set Maintainer to ubuntu + + -- Michael Vogt Tue, 27 Feb 2007 16:48:39 +0100 + +libgksu (2.0.3-3ubuntu1) feisty; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/patches/14_polish_startup.diff: + + improve startup notification message + - debian/patches/15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + - debian/patches/01_capslock_warn_fix.diff + + improve capslock warning + - debian/patches/09_multihead.patch + + dim all heads + - debian/patches/10_sudo_mode.patch + + switch to sudo-mode on by default for gksu + - debian/patches/11_no_save_to_keyring.patch + + don't save to gnome-keyring by default + - debian/patches/12_no_password_dialog.patch + + don't display dialog if no password was needed + - debian/patches/13_startup_notification.diff + + make startup-notification work more reliable + + -- Michael Vogt Mon, 18 Dec 2006 12:32:13 +0100 + +libgksu (2.0.3-3) unstable; urgency=medium + + * debian/patches/02_desktop_startup_id_fix.diff: + - fixes the desktop startup notification variable not being set; sudo + seems to unset the variable anyway, will talk to sudo's maintainer + (Closes: #401268) + * urgency set to medium because this is a problem that is bothering + quite a bit, it seems, and the fix is reasonable simple + + -- Gustavo Noronha Silva Thu, 7 Dec 2006 09:33:33 -0200 + +libgksu (2.0.3-2ubuntu2) feisty; urgency=low + + * dropped debian/patches/10_sudo_mode + * libgksu2-0.postinst: + - make gconf-defaults.libgksu-sudo a higher priority than libgksu-su + + -- Michael Vogt Thu, 23 Nov 2006 16:44:05 +0100 + +libgksu (2.0.3-2ubuntu1) feisty; urgency=low + + * Merge from debian unstable. + * dropped 02_sudo_wrong_pw_detect (upstream now) + * Remaining changes: + - debian/patches/14_polish_startup.diff: + + improve startup notification message + - debian/patches/15_extra_paranoia_for_gconf.diff.patch + + if no value for sudo-mode is found in gconf, default to sudo-mode + - debian/patches/01_capslock_warn_fix.diff + + improve capslock warning + - debian/patches/09_multihead.patch + + dim all heads + - debian/patches/10_sudo_mode.patch + + switch to sudo-mode on by default for gksu + - debian/patches/11_no_save_to_keyring.patch + + don't save to gnome-keyring by default + - debian/patches/12_no_password_dialog.patch + + don't display dialog if no password was needed + - debian/patches/13_startup_notification.diff + + make startup-notification work more reliable + + -- Michael Vogt Wed, 22 Nov 2006 16:20:03 +0100 + +libgksu (2.0.3-2) unstable; urgency=medium + + * The "Apaziguooo" release + * debian/patches/01_fix_keyring_password.diff: + - make sure we remove the \n from the password we got from + the keyring, if it exists (Closes: #395462) + + -- Gustavo Noronha Silva Wed, 1 Nov 2006 23:12:02 -0300 + +libgksu (2.0.3-1) unstable; urgency=medium + + * New upstream release + - do not store \n in the keyring (Closes: #394895) + * medium urgency because this is actually an enhancement of + the previous fix + + -- Gustavo Noronha Silva Mon, 23 Oct 2006 23:32:18 -0300 + +libgksu (2.0.2-1) unstable; urgency=medium + + * New upstream release + - does not allow losing focus because of the context menu + (Closes: #391804) + - make detecting the need for a password when running su hopefully + more robust, lowering the possibility of a deadlock + * urgency medium because the changes, while not completely unobstrusive, + are small and should not impact usability of the program + + -- Gustavo Noronha Silva Sun, 22 Oct 2006 16:56:57 -0300 + +libgksu (2.0.1-1) unstable; urgency=medium + + * New upstream release + - now handles sudo lecture; (Closes: #391803) + - handles X11 forwarding ssh (Closes: #389254) + * Urgency medium because these are reasonably simple fixes + which will most probably not impact any core functions, + but will help increase usability in certain specific + use cases + + -- Gustavo Noronha Silva Sun, 8 Oct 2006 13:32:55 -0300 + +libgksu (2.0.0-1) unstable; urgency=low + + * New upstream release + - finally the "official" 2.0 libgksu release + - includes fix to be more robust when handling pam modules which + like to display random stuff (Closes: #386213) + + -- Gustavo Noronha Silva Sat, 23 Sep 2006 16:51:40 -0300 + +libgksu (1.9.8-2) unstable; urgency=low + + Loic Minier : + * debian/rules: + - Fix bashism. + + Gustavo Noronha Silva : + * debian/libgksu2-0.install: + - actually install the glade file for the gksu-properties program + * debian/gconf-defaults.libgksu-{su,sudo}, + debian/libgksu2-0.install: + - install different possibilities for gconf defaults + * debian/libgksu2-0.{postinst,prerm,postrm}: + - take care of creating the libgksu-gconf-defaults alternative + as /usr/share/gconf/defaults/10_libgksu; added a hack to avoid + leaving a dangling symlink which could break update-gconf-defaults + * debian/README.Debian: + - documented the new package feature + + -- Gustavo Noronha Silva Sun, 3 Sep 2006 19:04:46 -0300 + +libgksu (1.9.8-1ubuntu4) edgy; urgency=low + + * 15_extra_paranoia_for_gconf.diff.patch: + - be extra paranoid about the sudo-mode gconf key to work around + the problem that for some people the schema registering fails + during the upgrade (lp: #59079) + + -- Michael Vogt Mon, 9 Oct 2006 19:23:26 +0200 + +libgksu (1.9.8-1ubuntu3) edgy; urgency=low + + * debian/patches/14_polish_startup.diff: + - improve statup icon/text (lp: #63084) + + -- Michael Vogt Wed, 4 Oct 2006 20:42:36 +0200 + +libgksu (1.9.8-1ubuntu2) edgy; urgency=low + + * debian/patches/02_sudo_wrong_pw_detect.patch: + - fix the detection of incorect password + + -- Michael Vogt Tue, 8 Aug 2006 17:59:19 +0200 + +libgksu (1.9.8-1ubuntu1) edgy; urgency=low + + * merged with debian + * debian/patches/13_startup_notification.diff: + - ported from gksu, all startup notification code moved from there + + -- Michael Vogt Mon, 7 Aug 2006 12:16:37 +0200 + +libgksu (1.9.8-1) unstable; urgency=low + + * New upstream release + + -- Gustavo Noronha Silva Sun, 6 Aug 2006 16:24:57 -0300 + +libgksu (1.9.7-2) UNRELEASED; urgency=low + + * Add watch file + + -- Oystein Gisnas Fri, 28 Jul 2006 10:47:35 +0200 + +libgksu (1.9.7-1) unstable; urgency=medium + + * New upstream release + - fixes regression introduced in last version, in which the + gnome-keyring checkboxes would never appear, even for su + mode + + -- Gustavo Noronha Silva Wed, 19 Jul 2006 20:54:57 -0300 + +libgksu (1.9.6-1) unstable; urgency=low + + * New upstream release + - fixes gksudo some times failing because the prompt was + delayed a bit (Closes: #377746) + - hopefully fixes gksu failing when DISPLAY has a hostname + (Closes: #349652) + * debian/control.in: + - replace and conflict with libgksu0 (Closes: #378199) + * debian/libgksu2-0.shlibs: + - update to require 1.9.6; new APIs + + -- Gustavo Noronha Silva Mon, 17 Jul 2006 21:12:40 -0300 + +libgksu (1.9.5-1) unstable; urgency=low + + * New upstream release + * debian/control.in: + - added libglade2-dev to build-depends, for the newly added gksu-properties + uses it to load its glade file + * debian/libgksu2-0.install: + - add gksu.png and the gksu-properties binary to the gksu library package + * debian/libgksu2-0.shlibs: + - new APIs, increase required Depends + + -- Gustavo Noronha Silva Wed, 12 Jul 2006 21:36:23 -0300 + +libgksu (1.9.4-3) unstable; urgency=high + + * debian/control.in: + - add a versioned Replaces to gksu << 1.9.0 + (Closes: #377045, #377121) + + -- Gustavo Noronha Silva Thu, 6 Jul 2006 20:51:27 -0300 + +libgksu (1.9.4-2ubuntu3) edgy; urgency=low + + * debian/patches/01_capslock_warn_fix.diff: + - make sure the screen is not messed up when capslock is pressed + and the dialog expands over a "frozen" xserver + * debian/patches/11_no_save_to_keyring.patch: + - default to "false" for the save-to-keyring checkbox + + -- Michael Vogt Tue, 1 Aug 2006 10:52:38 +0200 + +libgksu (1.9.4-2ubuntu2) edgy; urgency=low + + * debian/control.in: + - added missing Replaces + + -- Michael Vogt Tue, 25 Jul 2006 19:09:50 +0200 + +libgksu (1.9.4-2ubuntu1) edgy; urgency=low + + * ported the gksu patches: + - 09_multihead.patch,10_sudo_mode.patch,12_no_password_dialog.patch + + -- Michael Vogt Tue, 4 Jul 2006 15:24:30 +0200 + +libgksu (1.9.4-2) unstable; urgency=medium + + * debian/libgksu2-0.install: + - also install the gconf schema file + * debian/control.in: + - adeed ${misc:Depends} to the library dependencies, mainly for dh_gconf + * debian/rules: + - include gnome.mk, so that dh_gconf will be run + + -- Gustavo Noronha Silva Thu, 29 Jun 2006 00:47:49 -0300 + +libgksu (1.9.4-1) unstable; urgency=low + + * Brown paper bag release + - fixes pointer derreferencing which was making libgksu + not work at all + + -- Gustavo Noronha Silva Mon, 26 Jun 2006 21:16:49 -0300 + +libgksu (1.9.3-1) unstable; urgency=low + + * New upstream version + * debian/control.in: + - Added libgtop2-dev to Build-Depends, because it is now being used + to get the name of the process on gksu_sudo_full + - Standards-Version updated to 3.7.2 with no changes + + -- Gustavo Noronha Silva Fri, 23 Jun 2006 17:56:09 -0300 + +libgksu (1.9.2-3) unstable; urgency=low + + * debian/control.in: + - add dependency on libstartup-notification-1.0 and libgconf2-dev + to libgksu2-dev (Closes: #374885) + + -- Gustavo Noronha Silva Fri, 23 Jun 2006 16:08:21 -0300 + +libgksu (1.9.2-2) unstable; urgency=low + + * debian/libgksu2-dev.install, debian/libgksu2-dev.links: + - install the documentation and link it to the gtk-doc + directory + + -- Gustavo Noronha Silva Sun, 4 Jun 2006 22:53:56 -0300 + +libgksu (1.9.2-1) experimental; urgency=low + + * New upstream release with new APIs + * debian/libgksu2-0.shlibs: + - increased version to >= 1.9.2 + * debian/control.in: + - updated Standards-Version to 3.7 with no changes + * debian/libgksu2-dev.install: + - no longer installs the .la file + + -- Gustavo Noronha Silva Mon, 1 May 2006 10:57:42 -0300 + +libgksu (1.9.1-1) experimental; urgency=low + + * Upstream brown paperbag release + - fixes the pkg-config dependency information + + -- Gustavo Noronha Silva Fri, 28 Apr 2006 22:00:27 -0300 + +libgksu (1.9.0-1) experimental; urgency=low + + * New upstream version + * debian/*: + - renaming packages libgksu1.2->libgksu2 + * debian/patches/xauth-move.diff: + - removed; this version contains the fix + * debian/control.in: + - added gtk+, gconf, startup notification and gnome-keyring as Build-Depends + + -- Gustavo Noronha Silva Sun, 23 Apr 2006 13:36:20 -0300 + +libgksu1.2 (1.3.7-2) unstable; urgency=low + + * debian/patches/xauth-move.diff: + - patch to allow gksu to find the new location of the + xauth binary while still being able to work with the + old one (Closes: #362118, #362125, #362224) + + -- Gustavo Noronha Silva Sat, 15 Apr 2006 12:07:12 -0300 + +libgksu1.2 (1.3.7-1) unstable; urgency=low + + * New upstream version + - fixes some bugs with long-standing processes using + the library; thanks to Benoît Dejean + for testing and help + + -- Gustavo Noronha Silva Wed, 23 Nov 2005 22:56:00 -0200 + +libgksu1.2 (1.3.6-1) unstable; urgency=low + + * New upstream release + - fixes logic problem which broke use of pam_wheel again + (Closes: #331124) + + -- Gustavo Noronha Silva Tue, 25 Oct 2005 17:10:40 -0200 + +libgksu1.2 (1.3.5-1) unstable; urgency=low + + * New upstream release + - brown paper bag release which fixes mem leaks + + -- Gustavo Noronha Silva Thu, 29 Sep 2005 22:05:06 -0300 + +libgksu1.2 (1.3.4-2) UNRELEASED; urgency=low + + * debian/copyright: + - updated FSF's address + + -- Gustavo Noronha Silva Wed, 28 Sep 2005 20:22:02 -0300 + +libgksu1.2 (1.3.4-1) unstable; urgency=low + + * New upstream release + - includes French translation (Closes: #323589) + - fixes error reporting checking (Closes: #295298) + + -- Gustavo Noronha Silva Wed, 28 Sep 2005 20:08:04 -0300 + +libgksu1.2 (1.3.3-1) unstable; urgency=low + + * New upstream release + - API aditions + - No longer uses gnome-keyring + * debian/libgksu1.2-0.shlibs: + - increased Depends requirement to >= 1.3.3 + * debian/control: + - removed gnome-keyring from the Depends + + -- Gustavo Noronha Silva Wed, 3 Aug 2005 00:06:48 -0300 + +libgksu1.2 (1.3.2-1) unstable; urgency=low + + * The "Helsinki" Release + * New Upstream Release + - fixes wording of the xauth warning message (Closes: #309563) + - no longer crashes on AMD64 because of gnome-keyring + (Closes: #318031, #307975, #314369) + * debian/libgksu1.2-0.shlibs: + - make packages built with this version Depend on >= 1.3.2, + as new public API were added + * debian/control.in: + - increased Standards-Version with no modifications + + -- Gustavo Noronha Silva Thu, 14 Jul 2005 13:48:05 +0300 + +libgksu1.2 (1.3.1-1) unstable; urgency=low + + * New Upstream Release + - has some more tests to check if a password is needed and works + better if not (Closes: #235804) + - includes the Romanian translation (Closes: #309532) + * debian/libgksu1.2-0.shlibs: + - increased Depends requirement because of API aditions + + -- Gustavo Noronha Silva Sat, 18 Jun 2005 12:15:21 -0300 + +libgksu1.2 (1.3.0-3) unstable; urgency=low + + * debian/control.in: + - libgksu1.2-dev should depend on libgnome-keyring-dev, + of course (Closes: #314256) + + -- Gustavo Noronha Silva Wed, 15 Jun 2005 10:34:43 -0300 + +libgksu1.2 (1.3.0-2) unstable; urgency=low + + * debian/libgksu1.2-0.shlibs: + - added to force Depends on >= 1.3.0 because of the new + API functions + + -- Gustavo Noronha Silva Mon, 13 Jun 2005 12:44:23 -0300 + +libgksu1.2 (1.3.0-1) unstable; urgency=low + + * New upstream release. + * debian/patches/01_new_translations.diff, debian/pos: + - removed, not needed anymore + * debian/rules: + - enable gnome-keyring support + * debian/control.in: + - added libgnome-keyring-dev to Build-Depends + + -- Gustavo Noronha Silva Mon, 13 Jun 2005 11:25:49 -0300 + +libgksu1.2 (1.2.6-3) unstable; urgency=low + + * debian/pos/eu.po: + - added Basque translation + * debian/patches/01_new_translations.diff: + - updated to include the eu on ALL_LINGUAS + + -- Gustavo Noronha Silva Wed, 1 Jun 2005 17:57:52 -0300 + +libgksu1.2 (1.2.6-2) unstable; urgency=medium + + * debian/patches/01_new_translations.diff, pos/*: + - added to provide new and updated translations to gksu + * debian/rules: + - provide that the .gmo files are rebuilt at build time with + the new pofiles + + -- Gustavo Noronha Silva Sun, 15 May 2005 18:08:41 -0300 + +libgksu1.2 (1.2.6-1) unstable; urgency=medium + + * GNOME Team Upload + * New upstream release + - fixes problem dealing with different xauth cookie protocols + which makes it work with xdm and remote connections, it is hoped + (Closes: #245092, #280914) + * debian/control.in: + - Build-Dep on gnome-pkg-tools + - Fixed descriptions to have correct defined articles (a -> an) + (Closes: #299999, #300013) + - Raise standards-version to 3.6.1 with no changes + * debian/rules: + - include the uploaders helper for the GNOME Team + * urgency set to medium because this release changes little and + fixes some long-standing problems + + -- Gustavo Noronha Silva Tue, 5 Apr 2005 11:07:16 -0300 + +libgksu1.2 (1.2.5a-1) unstable; urgency=medium + + * New upstream release + - fixes sudo functionality which was b0rked by last release, + mainly, still needs to go into testing soon + + -- Gustavo Noronha Silva Sun, 17 Oct 2004 22:51:24 -0300 + +libgksu1.2 (1.2.5-1) unstable; urgency=medium + + * New upstream release + - includes fixes for correct reading the output of + gksu-run-helper, reporting wrong password typing + (Closes: #272133) + - no longer ignores context->keep_env when doing sudo + stuff (Closes: #276720) + - better handling of remote usage, no longer segfaults + when running remotely (Closes: #273819) + * urgency set to medium because not many things were changed + and these fixes should go into sarge + + -- Gustavo Noronha Silva Sat, 16 Oct 2004 18:00:44 -0300 + +libgksu1.2 (1.2.4-1) unstable; urgency=high + + * New upstream release + - includes patch by Martin Pitt + to fix buffer overflows (Closes: #270485) + - seting priority to high to make this change go into sarge + asap + + -- Gustavo Noronha Silva Tue, 7 Sep 2004 23:04:07 -0300 + +libgksu1.2 (1.2.3-1) unstable; urgency=low + + * New upstream release + - includes Catalan translation done by Jordi Mallach + (Closes: #263288) + + -- Gustavo Noronha Silva Sun, 15 Aug 2004 21:25:14 -0300 + +libgksu1.2 (1.2.2-1) unstable; urgency=low + + * New upstream release + - fixes C++ preprocessing (Closes: #255607) + + -- Gustavo Noronha Silva Thu, 24 Jun 2004 20:37:05 -0300 + +libgksu1.2 (1.2.1-1) unstable; urgency=low + + * New upstream release + + -- Gustavo Noronha Silva Sun, 30 May 2004 00:14:41 -0300 + +libgksu1.2 (1.2.0-1) unstable; urgency=low + + * New stable upstream release + + -- Gustavo Noronha Silva Tue, 18 May 2004 15:38:15 -0300 + +libgksu1.2 (1.1.5-1) experimental; urgency=low + + * New upstream release + - handles user-defined XAUTHORITY (Closes: #246516) + + -- Gustavo Noronha Silva Wed, 5 May 2004 17:53:31 -0300 + +libgksu1.2 (1.1.3-1) experimental; urgency=low + + * New upstream release + + -- Gustavo Noronha Silva Wed, 24 Mar 2004 21:56:54 -0300 + +libgksu1.2 (1.1.2-1) unstable; urgency=low + + * New upstream release + + -- Gustavo Noronha Silva Tue, 16 Mar 2004 20:36:27 -0300 + +libgksu1.2 (1.1.1-1) unstable; urgency=low + + * New release + + -- Gustavo Noronha Silva Sat, 6 Mar 2004 14:35:59 -0300 + +gksu (1.1.0-1) unstable; urgency=low + + * New release + - removes all patches, applied upstream + * debian/gksu.install, debian/libgksu1.install: + - moved the gksu-the-app-specific images to the gksu + package + * debian/control: + - gksu Replaces libgksu0, because of the new files it received + from libgksu1 (gksu.png and gksu-terminal.png) + + -- Gustavo Noronha Silva Mon, 2 Feb 2004 17:05:10 -0200 + +gksu (1.0.3-3) unstable; urgency=low + + * debian/control, debian/rules, debian/gnome-sudo: + - add a gnome-sudo script to call gksudo + - add a package gnome-sudo to provide smooth + upgrade for users of this package + - make gksu provide, replace and conflict gnome-sudo + + -- Gustavo Noronha Silva Mon, 2 Feb 2004 17:09:39 -0200 + +gksu (1.0.3-2) unstable; urgency=low + + * debian/patches/00gksu_disappear.diff: + - new patch to have the dialog disapear on window closing + or when the cancel button is clicked (Closes: #230456) + * debian/patches/01cpp_capable_headers.diff: + - new patch to apply G_BEGIN_DECLS and G_END_DECLS to the + headers so that they are usable in C++ (Closes: #230314) + + -- Gustavo Noronha Silva Sat, 31 Jan 2004 00:28:04 -0200 + +gksu (1.0.3-1) unstable; urgency=low + + * New release + - fixes a segfault when xauth returns nothing, thanks to + Doug Holland (Closes: #228292) + + -- Gustavo Noronha Silva Sun, 18 Jan 2004 01:55:34 -0200 + +gksu (1.0.2-1) unstable; urgency=low + + * debian/control: + - libgksu0 Replaces and Conflicts with gksu << 1.0.0, thanks + to Adrian Bunk (Closes: #227888) + * libgksu/Makefile.am: + - build the library with -fPIC, to allow prelinking + (Closes: #227924) + + -- Gustavo Noronha Silva Fri, 16 Jan 2004 01:46:49 -0200 + +gksu (1.0.1-3) unstable; urgency=low + + * debian/libgksu-dev.install: + - actually install the .pc file to /usr/lib/pkgconfig + * debian/rules: + - add post-install rule to install the html/devhelp + docs for the libgksu-dev package + + -- Gustavo Noronha Silva Thu, 15 Jan 2004 04:17:24 -0200 + +gksu (1.0.1-2) unstable; urgency=low + + * debian/rules: + - removed the clean addition, no longer removing the + po/stamp-po file + - disabled gtk-doc on configure + + -- Gustavo Noronha Silva Wed, 14 Jan 2004 21:20:49 -0200 + +gksu (1.0.1-1) unstable; urgency=low + + * debian/rules: + - ask debhelper to look for dependency libraries on + libgksu0 places (Closes: #227478, 227438) + - will make gksu a no longer Debian native package + + -- Gustavo Noronha Silva Tue, 13 Jan 2004 19:12:06 -0200 + +gksu (1.0.0) unstable; urgency=low + + * New release: "Obviously you're not a kover", or + something. + + -- Gustavo Noronha Silva Fri, 19 Dec 2003 04:37:43 -0200 + +gksu (0.9.18.lib.3) UNRELEASED; urgency=low + + * New test release + * gksu/Makefile.am, gksu/gksuexec.c: + - readding gksuexec + * debian/gksu.install: + - install gksuexec, the .desktop files, etc + + -- Gustavo Noronha Silva Fri, 19 Dec 2003 04:12:58 -0200 + +gksu (0.9.18.lib.2) UNRELEASED; urgency=low + + * New test release + * libgksu/Makefile.am, debian/libgksu-dev.install: + - install the gksu.h header file for using the library + + -- Gustavo Noronha Silva Sun, 7 Dec 2003 09:22:16 -0200 + +gksu (0.9.18.lib.1) UNRELEASED; urgency=low + + * New test release + * debian/control: + - libgksu0 depends on xbase-clients (xauth) + + -- Gustavo Noronha Silva Sat, 22 Nov 2003 10:47:20 -0200 + +gksu (0.9.18.lib) UNRELEASED; urgency=low + + * Turning gksu into a library + * debian/control: + - new packages libgksu0 and libgksu-dev + - improved gksu's short description + + -- Gustavo Noronha Silva Sat, 22 Nov 2003 10:47:20 -0200 + +gksu (0.9.18) unstable; urgency=low + + * New release + * src/gksu-run-helper.c: + - remove a bashism when calling the program (Closes: #221179). + * po/de.po: + - small fix, thanks to Michael Vogt + (Closes: #221030) + + -- Gustavo Noronha Silva Tue, 18 Nov 2003 21:22:54 -0200 + +gksu (0.9.17) unstable; urgency=medium + + * New release + - fixes problem with xauth token being visible through ps auxwww + - urgency medium because this is a potential security problem, + so it's better it is fixed in testing soon + * man/gksu.1: + - do not mention gksudo (Closes: #207843) + + -- Gustavo Noronha Silva Fri, 14 Nov 2003 00:42:48 -0200 + +gksu (0.9.16) unstable; urgency=high + + * New release + - fixes problem with XDM-AUTH being passed together with + MIT-MAGIC-COOKIE-1's auth token + - urgency high because no features were modified/added, just + a quick fix + + -- Gustavo Noronha Silva Thu, 28 Aug 2003 13:46:55 -0300 + +gksu (0.9.15) unstable; urgency=low + + * New release + - new German translation + - developer documentation on source package created + with gtk-doc + -- Gustavo Noronha Silva Fri, 8 Aug 2003 05:12:01 -0300 + +gksu (0.9.14) unstable; urgency=low + + * New release + - fixes problems with non-bash shells (Closes: #203386) + - the -u for root problem seemed to be related to the + non-bash shells stuff, I cannot reproduce it anymore + (Closes: #203387) + + -- Gustavo Noronha Silva Tue, 29 Jul 2003 19:24:49 -0300 + +gksu (0.9.13) unstable; urgency=low + + * New release + - minor cosmetic enhancements on the dialog + - new option (--ssh-fwd) was added to work-around problem + with ssh X11 forwarding (Closes: #202532) + + -- Gustavo Noronha Silva Thu, 24 Jul 2003 00:53:00 -0300 + +gksu (0.9.12) unstable; urgency=low + + * New release + - lots of small fixes/modifications to the authentication + stuff + - added debug code, to help fix bugs + * the --icon position on the man page has been fixed + (Closes: #195122) + * debian/gksu{,exec}-debian.xpm: + - recreated from the images available to not conform anymore + with the braindead policy that mandated 24 colors + * debian/compat: + - new file + * debian/rules: + - using cdbs + * debian/control: + - build-depends on cdbs, debhelper >= 4.1.0 + - Standards-Version to 3.6.0 + + -- Gustavo Noronha Silva Wed, 23 Jul 2003 00:46:47 -0300 + +gksu (0.9.11) unstable; urgency=low + + * New release + - see entry below, thanks to Álvaro + + -- Gustavo Noronha Silva Sat, 14 Jun 2003 22:29:22 -0300 + +gksu (0.9.10-1) unstable; urgency=low + + * Apply HIG to the authoritation dialog + + -- Álvaro Peña Wed, 11 Jun 2003 10:44:25 +0200 + +gksu (0.9.10) unstable; urgency=low + + * New release + - no more auto-background + + -- Gustavo Noronha Silva Sat, 24 May 2003 15:00:06 -0300 + +gksu (0.9.9) unstable; urgency=low + + * New release + - fixes some problems some users had running programs with + arguments + - includes translations for spanish (es) and russian (ru), + thanks to Enrique Rodriguez and + Aleksander respectively. + + -- Gustavo Noronha Silva Sat, 10 May 2003 03:23:17 -0300 + +gksu (0.9.8) unstable; urgency=low + + * New release + - initializes xauth string before fread'ing into it, thanks + to: Alex Stewart (Closes: #187299) + - waits a bit longer for the grab (Closes: #181342) + + -- Gustavo Noronha Silva Sat, 5 Apr 2003 00:24:12 -0300 + +gksu (0.9.7) unstable; urgency=low + + * New release + - changed the way Xauth is done (Closes: #182018) + - no more sudo support + * debian/control: + - remove mention of sudo, remove sudo from Suggests + * debian/rules: + - doesn't link gksu to gksudo anymore + + -- Gustavo Noronha Silva Sat, 29 Mar 2003 01:47:58 -0300 + +gksu (0.9.1) unstable; urgency=low + + * New release + - supports the new --icon command line option (Closes: #178910) + * debian/rules: + - no need to install manpages anymore + * debian/copyright: + - added Alan Douglaz as developer + + -- Gustavo Noronha Silva Fri, 31 Jan 2003 02:14:56 -0200 + +gksu (0.9.0) unstable; urgency=low + + * New release + * debian/menu: + - added menu entry for gksuexec, the new program used + as a wrapper to gksu's command line options + * debian/gksuexec-debian.xpm: + - Debian icon for gksuexec's menu entry, based on gksu.png + + -- Gustavo Noronha Silva Wed, 29 Jan 2003 15:34:46 -0200 + +gksu (0.8.5) unstable; urgency=low + + * New release + - doesn't ask for password when ran as root user + (Closes: #178675) + + -- Gustavo Noronha Silva Tue, 28 Jan 2003 17:28:36 -0200 + +gksu (0.8.4) unstable; urgency=low + + * New release + * debian/control: + - build-depends on libgtk2.0-dev >= 2.2.0, as gksu is using + API calls specific to Gtk+2.2 + + -- Gustavo Noronha Silva Tue, 14 Jan 2003 21:13:28 -0200 + +gksu (0.8.3) unstable; urgency=low + + * New release + - mostly fixes to the build system + * debian/rules: + - installs ChangeLog as /usr/share/doc/gksu/changelog.src + * debian/copyright: + - fixed downloaded from URL + - fixed 'Author(s)' stuff + * debian/gksu-debian.xpm: + - icon for gksu + * debian/menu: + - changed icon + + -- Gustavo Noronha Silva Tue, 14 Jan 2003 13:41:12 -0200 + +gksu (0.8.2-1) unstable; urgency=low + + * New release + - basicaly fixes some bugs about environment that were causing + problems for synaptic, for example + * debian/docs: + - added ChageLog, I'm now using the upstream changelog too + * debian/control: + - Standards-Version to 3.5.8 + - depends on autotools-dev + * debian/rules: + - supports nostrip for DEB_BUILD_OPTIONS + - uses config.sub and config.guess from autotools-dev + + -- Gustavo Noronha Silva Tue, 14 Jan 2003 02:45:37 -0200 + +gksu (0.8.0-2) unstable; urgency=low + + * Using new gettext version (0.11.5) (Closes: #156993) + * libpng (Gtk2.0) transition already done (Closes: #156822) + + -- Gustavo Noronha Silva Tue, 20 Aug 2002 11:16:03 -0300 + +gksu (0.8.0-1) unstable; urgency=low + + * build against libgtk2.0-0png3 + + -- Gustavo Noronha Silva Tue, 13 Aug 2002 09:45:43 -0300 + +gksu (0.8.0) unstable; urgency=low + + * src/gksu.{c,h}, src/gui.{c,h}, src/su.{c,h}, src/sudo.{c,h}: + - added the --title (-t) option to set the window title + - changed the way arguments are passed to su_do and sudo_do... + now they receive a GkConf, which is a struct containing all + config variables + * src/gksu.c: + - --print-pass no longer requires an argument (why should it?) + - documented the changes on --help output + * src/gksu.c, src/util.c: + - new function to convert to utf8 + - converts message and title given by the user to UTF8 + * src/gui.c: + - some little tweaks on the GUI + + -- Gustavo Noronha Silva Thu, 11 Jul 2002 11:31:56 -0300 + +gksu (0.7.2) unstable; urgency=low + + * man/gksu.1: + - remove mention to -k (deprecated option) (Closes: #148864) + + -- Gustavo Noronha Silva Tue, 18 Jun 2002 22:00:14 -0300 + +gksu (0.7.1) unstable; urgency=low + + * src/gui.c: + - ungrab server in case pointer grabing fails + + -- Gustavo Noronha Silva Sun, 9 Jun 2002 23:44:08 -0300 + +gksu (0.7) unstable; urgency=low + + * Ported to Gtk2 + + -- Gustavo Noronha Silva Mon, 11 Mar 2002 17:26:08 -0300 + +gksu (0.6) unstable; urgency=low + + * src/xauth.c, src/gksu.c: better error and temporary + directory handling + * src/sudo.c,src/su.c: + - improved the wording of the password dialog + * Added support for --print-pass and --message. + * Removed -k, -keep-env, keep_env is now TRUE by + default and added --reset-env... the env must + be kept for the Xauthority trick to work + + -- Gustavo Noronha Silva Fri, 8 Mar 2002 22:49:55 -0300 + +gksu (0.5) unstable; urgency=low + + * debian/control: + - made some fixes + * src/xauth.c: + - small typo fixed + * po/pt_BR.po: + - updated translation + * configure.in: + - removed check for Gnome + * removed links for automake stuff copied real files from + /usr/share/automake (Closes: #135395) + + -- Gustavo Noronha Silva Sat, 23 Feb 2002 19:25:10 -0300 + +gksu (0.4) unstable; urgency=low + + * First Debian release (Closes: #135088) + * debian/rules: + - really fixes dh_link call + - added manpage installation + * man/gksu.1: + - wrote manpage + * debian/menu: + - fixed gkdebconf->gksu issue + * debian/control: + - better (not so good, but better =)) description + + -- Gustavo Noronha Silva Thu, 21 Feb 2002 17:55:26 -0300 + +gksu (0.3) unstable; urgency=low + + * su.c, sudo.c: + - a lot more error checking (for fork() and execv, for example) + * debian/rules: + - fixed the call to dh_link to create the right link + + -- Gustavo Noronha Silva Wed, 20 Feb 2002 17:36:47 -0300 + +gksu (0.2) unstable; urgency=low + + * gksu.c: + - new free_pass function to clean the variables used + to store the password + * gksu.c, su.c, gui.c: + - always call free_pass on password variables before + we exit! + * sudo.c: + - added, now sudo is an option for gksu =) + - double-fork to quit + - added a while loop to keep printf'inf program's + stderr and stdout some programs have problems with this. + * gksu.c: + - added -S to call gksudo, added -H to support + setting the target user's home + * su.c: + - added a while loop to keep printf'inf program's + stderr and stdout some programs have problems with this. + * debian/rules: + - creates the /usr/bin/gksudo link + + -- Gustavo Noronha Silva Wed, 20 Feb 2002 05:53:47 -0300 + +gksu (0.1) unstable; urgency=low + + * First version. + + -- Gustavo Noronha Silva Mon, 18 Feb 2002 20:16:41 -0300 + --- libgksu-2.0.12.orig/debian/control.in +++ libgksu-2.0.12/debian/control.in @@ -0,0 +1,48 @@ +Source: libgksu +Section: admin +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Gustavo Noronha Silva +Uploaders: @GNOME_TEAM@ +Build-Depends: cdbs, + debhelper (>= 4.1.0), + libgtk2.0-dev (>= 2.12), + libgconf2-dev, + libstartup-notification0-dev, + libgnome-keyring-dev, + gettext, + autotools-dev, + gtk-doc-tools, + gnome-pkg-tools (>= 0.10), + libgtop2-dev, + dpkg-dev (>= 1.13.19), + libglib2.0-doc +Standards-Version: 3.7.3 +Homepage: http://www.nongnu.org/gksu +Vcs-Browser: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/libgksu/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/libgksu/ + +Package: libgksu2-0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, xauth | xbase-clients +Replaces: gksu (<< 1.9.0), libgksu0 +Conflicts: libgksu0 +Recommends: sudo +Description: library providing su and sudo functionality + This library comes from the gksu program. It provides a simple + API to use su and sudo in programs that need to execute tasks + as other user. It provides X authentication facilities for running + programs in an X session. + +Package: libgksu2-dev +Section: libdevel +Architecture: any +Depends: libglib2.0-dev, libgksu2-0 (= ${binary:Version}), libgnome-keyring-dev, libgconf2-dev, libstartup-notification0-dev +Description: library providing su and sudo functionality (development files) + This library comes from the gksu program. It provides a simple + API to use su and sudo in programs that need to execute tasks + as other user. It provides X authentication facilities for running + programs in an X session. + . + This package contains the development files. --- libgksu-2.0.12.orig/debian/docs +++ libgksu-2.0.12/debian/docs @@ -0,0 +1 @@ +AUTHORS --- libgksu-2.0.12.orig/debian/libgksu2-0.install +++ libgksu-2.0.12/debian/libgksu2-0.install @@ -0,0 +1,9 @@ +debian/tmp/usr/lib/libgksu2.so.* usr/lib/ +debian/tmp/usr/lib/libgksu/* usr/lib/libgksu/ +debian/tmp/usr/share/locale/* usr/share/locale/ +debian/tmp/usr/share/pixmaps/* usr/share/pixmaps/ +debian/tmp/usr/bin/* usr/bin/ +debian/tmp/etc/gconf/schemas/gksu.schemas usr/share/gconf/schemas/ +debian/tmp/usr/share/libgksu/* usr/share/libgksu/ +debian/gconf-defaults.* usr/share/libgksu/debian/ +debian/tmp/usr/share/man --- libgksu-2.0.12.orig/debian/patches/18_g_markup_escape_text_for_command.patch +++ libgksu-2.0.12/debian/patches/18_g_markup_escape_text_for_command.patch @@ -0,0 +1,19 @@ +=== modified file 'libgksu/libgksu.c' +--- libgksu/libgksu.c 2008-06-12 15:41:31 +0000 ++++ libgksu/libgksu.c 2008-06-12 15:47:14 +0000 +@@ -869,12 +869,12 @@ + "The application '%s' lets you " + "modify essential parts of your " + "system."), +- command); ++ g_markup_escape_text(command, -1)); + else + msg = g_strdup_printf (_("Enter your password to run " + "the application '%s' as user %s" + ""), +- command, context->user); ++ g_markup_escape_text(command, -1), context->user); + } + else + { + --- libgksu-2.0.12.orig/debian/patches/11_no_save_to_keyring.patch +++ libgksu-2.0.12/debian/patches/11_no_save_to_keyring.patch @@ -0,0 +1,12 @@ +diff -Nur libgksu-1.9.4/gksu.schemas.in libgksu-1.9.4.new/gksu.schemas.in +--- libgksu-1.9.4/gksu.schemas.in 2006-08-01 10:51:39.000000000 +0200 ++++ libgksu-1.9.4.new/gksu.schemas.in 2006-08-01 10:52:01.000000000 +0200 +@@ -86,7 +86,7 @@ + /apps/gksu/save-to-keyring + gksu + bool +- true ++ false + + Save password to gnome-keyring + --- libgksu-2.0.12.orig/debian/patches/17_composited_fade.patch +++ libgksu-2.0.12/debian/patches/17_composited_fade.patch @@ -0,0 +1,217 @@ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.7/libgksu/libgksu.c libgksu-2.0.7.new/libgksu/libgksu.c +--- libgksu-2.0.7/libgksu/libgksu.c 2008-06-12 18:33:47.000000000 +0200 ++++ libgksu-2.0.7.new/libgksu/libgksu.c 2008-06-12 18:34:26.000000000 +0200 +@@ -171,13 +171,14 @@ + guchar *start_p, *end_p, *frame_p; + GTimeVal start_time; + GdkGC *gc; ++ gboolean composited; + } FadeoutData; + + FadeoutData *fade_data = NULL; + static GList *fade_data_l = NULL; + static GList *fadeout_windows = NULL; + +-#define FADE_DURATION 500.0 ++#define FADE_DURATION 300.0 + + int + gsm_screen_get_width (GdkScreen *screen, +@@ -314,33 +315,47 @@ + elapsed = G_MAXDOUBLE; + } + +- if (elapsed > FADE_DURATION) ++ if (elapsed > FADE_DURATION ) + { +- gdk_draw_pixbuf (fadeout->draw_window, +- fadeout->gc, +- fadeout->end_pb, +- 0, 0, +- 0, 0, +- fadeout->area.width, +- fadeout->area.height, +- GDK_RGB_DITHER_NONE, +- 0, 0); ++ if (fadeout->composited) ++ { ++ gdk_window_set_opacity (fadeout->draw_window, 0.5); ++ } ++ else ++ { ++ gdk_draw_pixbuf (fadeout->draw_window, ++ fadeout->gc, ++ fadeout->end_pb, ++ 0, 0, ++ 0, 0, ++ fadeout->area.width, ++ fadeout->area.height, ++ GDK_RGB_DITHER_NONE, ++ 0, 0); ++ } + + return FALSE; + } + + percent = elapsed / FADE_DURATION; + +- get_current_frame (fadeout, 1.0 - percent); +- gdk_draw_pixbuf (fadeout->draw_window, +- fadeout->gc, +- fadeout->frame, +- 0, 0, +- 0, 0, +- fadeout->area.width, +- fadeout->area.height, +- GDK_RGB_DITHER_NONE, +- 0, 0); ++ if (fadeout->composited) ++ { ++ gdk_window_set_opacity (fadeout->draw_window, percent/2); ++ } ++ else ++ { ++ get_current_frame (fadeout, 1.0 - percent); ++ gdk_draw_pixbuf (fadeout->draw_window, ++ fadeout->gc, ++ fadeout->frame, ++ 0, 0, ++ 0, 0, ++ fadeout->area.width, ++ fadeout->area.height, ++ GDK_RGB_DITHER_NONE, ++ 0, 0); ++ } + + gdk_flush (); + +@@ -380,15 +395,23 @@ + + if (elapsed > FADE_DURATION) + { +- gdk_draw_pixbuf (fadeout->draw_window, +- fadeout->gc, +- fadeout->end_pb, +- 0, 0, +- 0, 0, +- fadeout->area.width, +- fadeout->area.height, +- GDK_RGB_DITHER_NONE, +- 0, 0); ++ if (fadeout->composited) ++ { ++ gdk_window_set_opacity (fadeout->draw_window, 0.0); ++ gdk_window_resize (fadeout->draw_window, 4, 4); ++ } ++ else ++ { ++ gdk_draw_pixbuf (fadeout->draw_window, ++ fadeout->gc, ++ fadeout->end_pb, ++ 0, 0, ++ 0, 0, ++ fadeout->area.width, ++ fadeout->area.height, ++ GDK_RGB_DITHER_NONE, ++ 0, 0); ++ } + + g_object_unref (fadeout->gc); + g_object_unref (fadeout->start_pb); +@@ -404,16 +427,23 @@ + + percent = elapsed / FADE_DURATION; + +- get_current_frame (fadeout, percent); +- gdk_draw_pixbuf (fadeout->draw_window, +- fadeout->gc, +- fadeout->frame, +- 0, 0, +- 0, 0, +- fadeout->area.width, +- fadeout->area.height, +- GDK_RGB_DITHER_NONE, +- 0, 0); ++ if (fadeout->composited) ++ { ++ gdk_window_set_opacity (fadeout->draw_window, 0.5 - percent/2); ++ } ++ else ++ { ++ get_current_frame (fadeout, percent); ++ gdk_draw_pixbuf (fadeout->draw_window, ++ fadeout->gc, ++ fadeout->frame, ++ 0, 0, ++ 0, 0, ++ fadeout->area.width, ++ fadeout->area.height, ++ GDK_RGB_DITHER_NONE, ++ 0, 0); ++ } + + gdk_flush (); + +@@ -433,6 +463,7 @@ + + fadeout->screen = screen; + fadeout->monitor = monitor; ++ fadeout->composited = gdk_screen_is_composited (screen); + + fadeout->area.x = gsm_screen_get_x (screen, monitor); + fadeout->area.y = gsm_screen_get_y (screen, monitor); +@@ -440,11 +471,11 @@ + fadeout->area.height = gsm_screen_get_height (screen, monitor); + + fadeout->root_window = gdk_screen_get_root_window (screen); +- attr.window_type = GDK_WINDOW_CHILD; ++ attr.window_type = GDK_WINDOW_TOPLEVEL; + attr.x = fadeout->area.x; + attr.y = fadeout->area.y; +- attr.width = fadeout->area.width; +- attr.height = fadeout->area.height; ++ attr.width = 4; ++ attr.height = 4; + attr.wclass = GDK_INPUT_OUTPUT; + attr.visual = gdk_screen_get_system_visual (fadeout->screen); + attr.colormap = gdk_screen_get_default_colormap (fadeout->screen); +@@ -477,17 +508,29 @@ + + fadeout->gc = gdk_gc_new_with_values (fadeout->root_window, &values, GDK_GC_SUBWINDOW); + +- gdk_window_set_back_pixmap (fadeout->draw_window, NULL, FALSE); ++ if (fadeout->composited) ++ { ++ gdk_window_set_opacity (fadeout->draw_window, 0.0); ++ } ++ else ++ { ++ gdk_window_set_back_pixmap (fadeout->draw_window, NULL, FALSE); ++ gdk_draw_pixbuf (fadeout->draw_window, ++ fadeout->gc, ++ fadeout->frame, ++ 0, 0, ++ 0, 0, ++ fadeout->area.width, ++ fadeout->area.height, ++ GDK_RGB_DITHER_NONE, ++ 0, 0); ++ } ++ + gdk_window_show (fadeout->draw_window); +- gdk_draw_pixbuf (fadeout->draw_window, +- fadeout->gc, +- fadeout->frame, +- 0, 0, +- 0, 0, +- fadeout->area.width, +- fadeout->area.height, +- GDK_RGB_DITHER_NONE, +- 0, 0); ++ gdk_window_clear (fadeout->draw_window); ++ gdk_window_resize (fadeout->draw_window, ++ fadeout->area.width, ++ fadeout->area.height); + + g_get_current_time (&fadeout->start_time); + g_idle_add ((GSourceFunc) fadeout_callback, fadeout); --- libgksu-2.0.12.orig/debian/patches/13_startup_notification.diff +++ libgksu-2.0.12/debian/patches/13_startup_notification.diff @@ -0,0 +1,56 @@ +Binary files libgksu-2.0.9/.ChangeLog.swp and libgksu-2.0.9.new/.ChangeLog.swp differ +Binary files libgksu-2.0.9/debian/.changelog.swp and libgksu-2.0.9.new/debian/.changelog.swp differ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.9/libgksu/libgksu.c libgksu-2.0.9.new/libgksu/libgksu.c +--- libgksu-2.0.9/libgksu/libgksu.c 2009-03-09 09:13:34.000000000 +0100 ++++ libgksu-2.0.9.new/libgksu/libgksu.c 2009-03-09 09:18:08.000000000 +0100 +@@ -1786,7 +1786,17 @@ + gksu_context_launch_initiate (GksuContext *context) + { + gchar *sid = NULL; +- guint32 launch_time = gdk_x11_display_get_user_time (gdk_display_get_default ()); ++ // guint32 launch_time = gdk_x11_display_get_user_time(GDK_DISPLAY()); ++ // ^---- does not work reliable and reports absurdly large launch times ++ // for me ++ // *cry* we create a fake-window, realize it to get the ++ // current server time. there must be a simpler way, ++ // but I don't know it! ++ GtkWidget *win = gtk_window_new(GTK_WINDOW_TOPLEVEL); ++ gtk_widget_realize(win); ++ gtk_widget_add_events (GTK_WIDGET (win), GDK_PROPERTY_CHANGE_MASK); ++ guint32 launch_time = gdk_x11_get_server_time(win->window); ++ + static gboolean initiated = FALSE; + + if (!initiated) +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.9/libgksu/libgksu.c.rej libgksu-2.0.9.new/libgksu/libgksu.c.rej +--- libgksu-2.0.9/libgksu/libgksu.c.rej 1970-01-01 01:00:00.000000000 +0100 ++++ libgksu-2.0.9.new/libgksu/libgksu.c.rej 2009-03-09 09:13:37.000000000 +0100 +@@ -0,0 +1,28 @@ ++*************** ++*** 1690,1696 **** ++ gksu_context_launch_initiate (GksuContext *context) ++ { ++ gchar *sid = NULL; ++- guint32 launch_time = gdk_x11_display_get_user_time ((GdkDisplay*)GDK_DISPLAY()); ++ static gboolean initiated = FALSE; ++ ++ if (!initiated) ++--- 1690,1707 ---- ++ gksu_context_launch_initiate (GksuContext *context) ++ { ++ gchar *sid = NULL; +++ +++ // guint32 launch_time = gdk_x11_display_get_user_time(GDK_DISPLAY()); +++ // ^---- does not work reliable and reports absurdly large launch times +++ // for me +++ // *cry* we create a fake-window, realize it to get the +++ // current server time. there must be a simpler way, +++ // but I don't know it! +++ GtkWidget *win = gtk_window_new(GTK_WINDOW_TOPLEVEL); +++ gtk_widget_realize(win); +++ gtk_widget_add_events (GTK_WIDGET (win), GDK_PROPERTY_CHANGE_MASK); +++ guint32 launch_time = gdk_x11_get_server_time(win->window); +++ ++ static gboolean initiated = FALSE; ++ ++ if (!initiated) --- libgksu-2.0.12.orig/debian/patches/14_polish_startup.diff +++ libgksu-2.0.12/debian/patches/14_polish_startup.diff @@ -0,0 +1,18 @@ +=== modified file 'libgksu/libgksu.c' +diff -Nur libgksu-2.0.3/libgksu/libgksu.c libgksu-2.0.3.new/libgksu/libgksu.c +--- libgksu-2.0.3/libgksu/libgksu.c 2007-03-08 10:14:31.000000000 +0100 ++++ libgksu-2.0.3.new/libgksu/libgksu.c 2007-03-08 10:14:32.000000000 +0100 +@@ -1360,6 +1360,13 @@ + NULL, NULL); + context->sn_context = sn_launcher_context_new (sn_display, gdk_screen_get_number (gdk_display_get_default_screen (gdk_display_get_default ()))); + sn_launcher_context_set_description (context->sn_context, _("Granting Rights")); ++ if (context->sudo_mode) ++ { ++ sn_launcher_context_set_description (context->sn_context, ++ _("Starting Administrative Application")); ++ sn_launcher_context_set_icon_name (context->sn_context, ++ "applications-system"); ++ } + sn_launcher_context_set_name (context->sn_context, g_get_prgname ()); + } + --- libgksu-2.0.12.orig/debian/patches/12_no_password_dialog.patch +++ libgksu-2.0.12/debian/patches/12_no_password_dialog.patch @@ -0,0 +1,12 @@ +diff -Nur libgksu-1.9.4/gksu.schemas.in libgksu-1.9.4.new/gksu.schemas.in +--- libgksu-1.9.4/gksu.schemas.in 2006-07-04 15:56:59.000000000 +0200 ++++ libgksu-1.9.4.new/gksu.schemas.in 2006-07-04 15:57:46.000000000 +0200 +@@ -70,7 +70,7 @@ + /apps/gksu/display-no-pass-info + gksu + bool +- true ++ false + + Display information message when no password is needed + --- libgksu-2.0.12.orig/debian/patches/22_sudo_keep_env.patch +++ libgksu-2.0.12/debian/patches/22_sudo_keep_env.patch @@ -0,0 +1,16 @@ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.9/libgksu/libgksu.c libgksu-2.0.9.new/libgksu/libgksu.c +--- libgksu-2.0.9/libgksu/libgksu.c 2009-04-08 01:23:29.000000000 +0100 ++++ libgksu-2.0.9.new/libgksu/libgksu.c 2009-04-08 01:25:04.000000000 +0100 +@@ -2674,6 +2674,12 @@ + cmd[argcount] = g_strdup("-H"); + argcount++; + } ++ else ++ { ++ /* Preserve the environment, if sudo will let us */ ++ cmd[argcount] = g_strdup("-E"); ++ argcount++; ++ } + + /* Make sudo read from stdin */ + cmd[argcount] = g_strdup("-S"); --- libgksu-2.0.12.orig/debian/patches/21_composited_rgba_addition.patch +++ libgksu-2.0.12/debian/patches/21_composited_rgba_addition.patch @@ -0,0 +1,489 @@ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.7/libgksuui/gksuui-dialog.c libgksu-2.0.7.new/libgksuui/gksuui-dialog.c +--- libgksu-2.0.7/libgksuui/gksuui-dialog.c 2008-05-09 19:39:54.000000000 +0200 ++++ libgksu-2.0.7.new/libgksuui/gksuui-dialog.c 2008-10-17 14:15:36.000000000 +0200 +@@ -19,6 +19,7 @@ + */ + + #include ++#include + + #include + #include +@@ -259,11 +260,416 @@ + return TRUE; + } + ++void ++_round_rect (cairo_t* cr, ++ gdouble aspect, ++ gdouble x, ++ gdouble y, ++ gdouble corner, ++ gdouble width, ++ gdouble height) ++{ ++ gdouble radius = corner / aspect; ++ ++ /* top-left, right of the corner */ ++ cairo_move_to (cr, x + radius, y); ++ ++ /* top-right, left of the corner */ ++ cairo_line_to (cr, ++ x + width - radius, ++ y); ++ ++ /* top-right, below the corner */ ++ cairo_arc (cr, ++ x + width - radius, ++ y + radius, ++ radius, ++ -90.0f * G_PI / 180.0f, ++ 0.0f * G_PI / 180.0f); ++ ++ /* bottom-right, above the corner */ ++ cairo_line_to (cr, ++ x + width, ++ y + height - radius); ++ ++ /* bottom-right, left of the corner */ ++ cairo_arc (cr, ++ x + width - radius, ++ y + height - radius, ++ radius, ++ 0.0f * G_PI / 180.0f, ++ 90.0f * G_PI / 180.0f); ++ ++ /* bottom-left, right of the corner */ ++ cairo_line_to (cr, ++ x + radius, ++ y + height); ++ ++ /* bottom-left, above the corner */ ++ cairo_arc (cr, ++ x + radius, ++ y + height - radius, ++ radius, ++ 90.0f * G_PI / 180.0f, ++ 180.0f * G_PI / 180.0f); ++ ++ /* top-left, below the corner */ ++ cairo_line_to (cr, ++ x, ++ y + radius); ++ ++ /* top-left, right of the corner */ ++ cairo_arc (cr, ++ x + radius, ++ y + radius, ++ radius, ++ 180.0f * G_PI / 180.0f, ++ 270.0f * G_PI / 180.0f); ++} ++ ++gdouble* ++_kernel_1d_new (gint radius, ++ gdouble deviation /* pass 0.0f to calculate automatically */) ++{ ++ gdouble* kernel = NULL; ++ gdouble sum = 0.0f; ++ gdouble value = 0.0f; ++ gint i; ++ gint size = 2 * radius + 1; ++ gdouble radiusf; ++ ++ /* sanity check */ ++ if (radius <= 0) ++ return NULL; ++ ++ /* get memory-chunk to hold blur-kernel */ ++ kernel = (gdouble*) g_malloc0 ((size + 1) * sizeof (gdouble)); ++ if (!kernel) ++ return NULL; ++ ++ /* determine deviation */ ++ radiusf = fabs (radius) + 1.0f; ++ if (deviation == 0.0f) ++ deviation = sqrt (-(radiusf * radiusf) / (2.0f * log (1.0f / 255.0f))); ++ ++ /* fill blur-kernel */ ++ kernel[0] = size; ++ value = (gdouble) -radius; ++ for (i = 0; i < size; i++) ++ { ++ kernel[1 + i] = 1.0f / (2.506628275f * deviation) * ++ expf (-((value * value) / ++ (2.0f * deviation * deviation))); ++ sum += kernel[1 + i]; ++ value += 1.0f; ++ } ++ ++ /* normalize values */ ++ for (i = 0; i < size; i++) ++ kernel[1 + i] /= sum; ++ ++ return kernel; ++} ++ ++void ++_kernel_1d_delete (gdouble* kernel) ++{ ++ g_assert (kernel != NULL); ++ g_free ((gpointer) kernel); ++} ++ ++static void ++_image_surface_blur (cairo_surface_t* surface, ++ gint horz_radius, ++ gint vert_radius) ++{ ++ gint iX; ++ gint iY; ++ gint i; ++ gint x; ++ gint y; ++ gint stride; ++ gint offset; ++ gint base_offset; ++ gdouble* horz_blur; ++ gdouble* vert_blur; ++ gdouble* horz_kernel; ++ gdouble* vert_kernel; ++ guchar* src; ++ gint width; ++ gint height; ++ gint channels; ++ ++ /* sanity checks */ ++ if (!surface || horz_radius == 0 || vert_radius == 0) ++ return; ++ ++ if (cairo_surface_get_type (surface) != CAIRO_SURFACE_TYPE_IMAGE) ++ return; ++ ++ cairo_surface_flush (surface); ++ ++ src = cairo_image_surface_get_data (surface); ++ width = cairo_image_surface_get_width (surface); ++ height = cairo_image_surface_get_height (surface); ++ ++ /* only handle RGB- or RGBA-surfaces */ ++ if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_ARGB32 && ++ cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) ++ return; ++ ++ channels = 4; ++ stride = width * channels; ++ ++ /* create buffers to hold the blur-passes */ ++ horz_blur = (gdouble*) g_malloc0 (height * stride * sizeof (gdouble)); ++ vert_blur = (gdouble*) g_malloc0 (height * stride * sizeof (gdouble)); ++ if (!horz_blur || !vert_blur) ++ { ++ if (horz_blur) ++ g_free ((gpointer) horz_blur); ++ ++ if (vert_blur) ++ g_free ((gpointer) vert_blur); ++ ++ return; ++ } ++ ++ horz_kernel = _kernel_1d_new (horz_radius, 0.0f); ++ vert_kernel = _kernel_1d_new (vert_radius, 0.0f); ++ ++ if (!horz_kernel || !vert_kernel) ++ { ++ ++ g_free ((gpointer) horz_blur); ++ g_free ((gpointer) vert_blur); ++ ++ if (horz_kernel) ++ _kernel_1d_delete (horz_kernel); ++ ++ if (vert_kernel) ++ _kernel_1d_delete (vert_kernel); ++ ++ return; ++ } ++ ++ /* horizontal pass */ ++ for (iY = 0; iY < height; iY++) ++ { ++ for (iX = 0; iX < width; iX++) ++ { ++ gdouble red = 0.0f; ++ gdouble green = 0.0f; ++ gdouble blue = 0.0f; ++ gdouble alpha = 0.0f; ++ ++ offset = ((gint) horz_kernel[0]) / -2; ++ for (i = 0; i < (gint) horz_kernel[0]; i++) ++ { ++ x = iX + offset; ++ if (x >= 0 && x < width) ++ { ++ base_offset = iY * stride + x * channels; ++ ++ if (channels == 4) ++ alpha += (horz_kernel[1+i] * (gdouble) src[base_offset + 3]); ++ ++ red += (horz_kernel[1+i] * (gdouble) src[base_offset + 2]); ++ green += (horz_kernel[1+i] * (gdouble) src[base_offset + 1]); ++ blue += (horz_kernel[1+i] * (gdouble) src[base_offset + 0]); ++ } ++ ++ offset++; ++ } ++ ++ base_offset = iY * stride + iX * channels; ++ ++ if (channels == 4) ++ horz_blur[base_offset + 3] = alpha; ++ ++ horz_blur[base_offset + 2] = red; ++ horz_blur[base_offset + 1] = green; ++ horz_blur[base_offset + 0] = blue; ++ } ++ } ++ ++ /* vertical pass */ ++ for (iY = 0; iY < height; iY++) ++ { ++ for (iX = 0; iX < width; iX++) ++ { ++ gdouble red = 0.0f; ++ gdouble green = 0.0f; ++ gdouble blue = 0.0f; ++ gdouble alpha = 0.0f; ++ ++ offset = ((gint) vert_kernel[0]) / -2; ++ for (i = 0; i < (gint) vert_kernel[0]; i++) ++ { ++ y = iY + offset; ++ if (y >= 0 && y < height) ++ { ++ base_offset = y * stride + iX * channels; ++ ++ if (channels == 4) ++ alpha += (vert_kernel[1+i] * horz_blur[base_offset + 3]); ++ ++ red += (vert_kernel[1+i] * horz_blur[base_offset + 2]); ++ green += (vert_kernel[1+i] * horz_blur[base_offset + 1]); ++ blue += (vert_kernel[1+i] * horz_blur[base_offset + 0]); ++ } ++ ++ offset++; ++ } ++ ++ base_offset = iY * stride + iX * channels; ++ ++ if (channels == 4) ++ vert_blur[base_offset + 3] = alpha; ++ ++ vert_blur[base_offset + 2] = red; ++ vert_blur[base_offset + 1] = green; ++ vert_blur[base_offset + 0] = blue; ++ } ++ } ++ ++ _kernel_1d_delete (horz_kernel); ++ _kernel_1d_delete (vert_kernel); ++ ++ for (iY = 0; iY < height; iY++) ++ { ++ for (iX = 0; iX < width; iX++) ++ { ++ offset = iY * stride + iX * channels; ++ ++ if (channels == 4) ++ src[offset + 3] = (guchar) vert_blur[offset + 3]; ++ ++ src[offset + 2] = (guchar) vert_blur[offset + 2]; ++ src[offset + 1] = (guchar) vert_blur[offset + 1]; ++ src[offset + 0] = (guchar) vert_blur[offset + 0]; ++ } ++ } ++ ++ cairo_surface_mark_dirty (surface); ++ ++ g_free ((gpointer) horz_blur); ++ g_free ((gpointer) vert_blur); ++} ++ ++static cairo_surface_t* ++_create_shadow_surface (gint width, ++ gint height, ++ gdouble corner_radius, ++ gint blur_radius) ++{ ++ cairo_surface_t* surface; ++ cairo_t* cr; ++ ++ /* create image-surface and context */ ++ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height); ++ cr = cairo_create (surface); ++ ++ /* clear context */ ++ cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR); ++ cairo_paint (cr); ++ ++ /* draw semi-transparent black rectangle with rounded corners */ ++ cairo_set_source_rgba (cr, 0.0f, 0.0f, 0.0f, 0.65f); ++ cairo_set_operator (cr, CAIRO_OPERATOR_OVER); ++ _round_rect (cr, ++ 1.0f, ++ (gdouble) blur_radius, ++ (gdouble) blur_radius, ++ corner_radius, ++ (gdouble) width - 2 * blur_radius, ++ (gdouble) height - 2 * blur_radius); ++ cairo_fill (cr); ++ ++ /* blur twice with half the blur-radius, looks nicer */ ++ _image_surface_blur (surface, blur_radius / 2, blur_radius / 2); ++ _image_surface_blur (surface, blur_radius / 2, blur_radius / 2); ++ ++ /* clean up */ ++ cairo_destroy (cr); ++ ++ return surface; ++} ++ ++static gboolean ++_transparent_clear_cb (GtkWidget *widget, ++ GdkEventExpose *event, ++ GksuuiDialog *gksuui_dialog) ++{ ++ cairo_t *cr; ++ GtkStyle *style; ++ gdouble opacity = 0.85f; ++ gdouble corner_radius = 3.75f; ++ ++ /* create context */ ++ cr = gdk_cairo_create (widget->window); ++ ++ /* clear the background */ ++ cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR); ++ cairo_paint (cr); ++ ++ /* draw shadow */ ++ if (cairo_surface_status (gksuui_dialog->shadow) == CAIRO_STATUS_SUCCESS) ++ { ++ cairo_set_operator (cr, CAIRO_OPERATOR_OVER); ++ cairo_set_source_surface (cr, gksuui_dialog->shadow, 0, 0); ++ cairo_paint (cr); ++ } ++ ++ /* create linear gradient from themes normal background-color */ ++ style = gtk_widget_get_style (widget); ++ cairo_set_source_rgba ( ++ cr, ++ (gdouble) style->bg[GTK_STATE_NORMAL].red / (gdouble) 0xFFFF, ++ (gdouble) style->bg[GTK_STATE_NORMAL].green / (gdouble) 0xFFFF, ++ (gdouble) style->bg[GTK_STATE_NORMAL].blue / (gdouble) 0xFFFF, ++ opacity); ++ ++ /* draw a filled rounded rectangle */ ++ cairo_set_operator (cr, CAIRO_OPERATOR_OVER); ++ _round_rect (cr, ++ 1.0f, ++ (gdouble) widget->allocation.x + 13.0f, ++ (gdouble) widget->allocation.y + 13.0f, ++ corner_radius, ++ (gdouble) widget->allocation.width - 30.0f, ++ (gdouble) widget->allocation.height - 30.0f); ++ cairo_fill (cr); ++ ++ /* clean up afterwards */ ++ cairo_destroy (cr); ++ ++ return FALSE; ++} ++ ++static void ++_unrealize_cb (GtkWidget *widget, ++ GksuuiDialog *gksuui_dialog) ++{ ++ cairo_surface_destroy (gksuui_dialog->shadow); ++} ++ ++static void ++_realize_cb (GtkWidget *widget, ++ GksuuiDialog *gksuui_dialog) ++{ ++ gksuui_dialog->shadow = _create_shadow_surface (widget->allocation.width, ++ widget->allocation.height, ++ 3.75f, ++ 15); ++} ++ + static void + gksuui_dialog_init (GksuuiDialog *gksuui_dialog) + { + GtkDialog *dialog; + GtkWidget *hbox; /* aditional hbox for 'password: entry' label */ ++ gint border_width = 6; + + /* + make sure we're using UTF-8 and getting our locale files +@@ -272,6 +678,37 @@ + bindtextdomain(PACKAGE_NAME, LOCALEDIR); + bind_textdomain_codeset (PACKAGE_NAME, "UTF-8"); + ++ gksuui_dialog->composited = gdk_screen_is_composited ( ++ gtk_widget_get_screen ( ++ GTK_WIDGET (gksuui_dialog))); ++ ++ if (gksuui_dialog->composited) ++ { ++ GdkColormap *colormap; ++ GtkWidget *main_dialog = GTK_WIDGET (gksuui_dialog); ++ ++ colormap = gdk_screen_get_rgba_colormap ( ++ gtk_widget_get_screen (main_dialog)); ++ if (colormap) ++ { ++ gtk_widget_set_colormap (main_dialog, colormap); ++ gtk_widget_set_app_paintable (main_dialog, TRUE); ++ g_signal_connect (G_OBJECT (main_dialog), ++ "expose-event", ++ G_CALLBACK (_transparent_clear_cb), ++ (gpointer) gksuui_dialog); ++ g_signal_connect (G_OBJECT (main_dialog), ++ "realize", ++ G_CALLBACK (_realize_cb), ++ (gpointer) gksuui_dialog); ++ g_signal_connect (G_OBJECT (main_dialog), ++ "unrealize", ++ G_CALLBACK (_unrealize_cb), ++ (gpointer) gksuui_dialog); ++ border_width = 20; ++ } ++ } ++ + gtk_widget_push_composite_child (); + + /* dialog window */ +@@ -285,7 +722,7 @@ + + gtk_window_set_title (GTK_WINDOW(gksuui_dialog), ""); + gtk_dialog_set_has_separator (GTK_DIALOG(gksuui_dialog), FALSE); +- gtk_container_set_border_width (GTK_CONTAINER(gksuui_dialog), 6); ++ gtk_container_set_border_width (GTK_CONTAINER(gksuui_dialog), border_width); + gtk_box_set_spacing (GTK_BOX(gksuui_dialog->main_vbox), 12); + gtk_window_set_resizable (GTK_WINDOW(gksuui_dialog), FALSE); + +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.7/libgksuui/gksuui-dialog.h libgksu-2.0.7.new/libgksuui/gksuui-dialog.h +--- libgksu-2.0.7/libgksuui/gksuui-dialog.h 2008-05-09 19:39:54.000000000 +0200 ++++ libgksu-2.0.7.new/libgksuui/gksuui-dialog.h 2008-10-17 14:07:57.000000000 +0200 +@@ -72,7 +72,9 @@ + GtkWidget *prompt_label; + + /* private */ +- gboolean sudo_mode; ++ gboolean sudo_mode; ++ gboolean composited; ++ cairo_surface_t *shadow; + }; + + GType --- libgksu-2.0.12.orig/debian/patches/09_multihead.patch +++ libgksu-2.0.12/debian/patches/09_multihead.patch @@ -0,0 +1,134 @@ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.9/libgksu/libgksu.c libgksu-2.0.9.new/libgksu/libgksu.c +--- libgksu-2.0.9/libgksu/libgksu.c 2009-03-04 19:53:02.000000000 +0100 ++++ libgksu-2.0.9.new/libgksu/libgksu.c 2009-03-09 09:55:32.000000000 +0100 +@@ -174,6 +174,7 @@ + } FadeoutData; + + FadeoutData *fade_data = NULL; ++static GList *fade_data_l = NULL; + static GList *fadeout_windows = NULL; + + #define FADE_DURATION 500.0 +@@ -222,6 +223,30 @@ + return geometry.y; + } + ++typedef void (*GsmScreenForeachFunc) (GdkScreen *screen, ++ int monitor); ++ ++void ++gsm_foreach_screen (GsmScreenForeachFunc callback) ++{ ++ GdkDisplay *display; ++ int n_screens, i; ++ ++ display = gdk_display_get_default (); ++ ++ n_screens = gdk_display_get_n_screens (display); ++ for (i = 0; i < n_screens; i++) { ++ GdkScreen *screen; ++ int n_monitors, j; ++ ++ screen = gdk_display_get_screen (display, i); ++ ++ n_monitors = gdk_screen_get_n_monitors (screen); ++ for (j = 0; j < n_monitors; j++) ++ callback (screen, j); ++ } ++} ++ + static void + get_current_frame (FadeoutData *fadeout, + double sat) +@@ -467,9 +492,51 @@ + g_get_current_time (&fadeout->start_time); + g_idle_add ((GSourceFunc) fadeout_callback, fadeout); + +- fade_data = fadeout; ++ fade_data_l = g_list_prepend (fade_data, fadeout); + } + ++static void ++fadein (void) ++{ ++ GList *l; ++ GList *next; ++ ++ /* set start_time for all screens */ ++ for (l = fade_data_l; l; l = l->next) ++ { ++ FadeoutData *fd; ++ fd = (FadeoutData*)l->data; ++ g_get_current_time (&fd->start_time); ++ } ++ ++ /* iterate through all screens and call the fadein_callback ++ * until all of them return FALSE */ ++ next = fade_data_l; ++ while (next != NULL) ++ { ++ l = next; ++ next = l->next; ++ ++ /* remove from list when finished fading */ ++ if (fadein_callback ((FadeoutData*)l->data) == FALSE) ++ { ++ fade_data_l = g_list_remove(fade_data, l->data); ++ } ++ ++ /* this wrapping around needs to be delayed because fade_data_l could ++ * have changed above */ ++ if (next == NULL) ++ { ++ next = fade_data_l; ++ } ++ } ++ ++ /* free the list. The FadeoutData structs are being free'd from ++ * within the fadein_callback's */ ++ g_list_free (fade_data_l); ++ fade_data_l = NULL; ++} ++ + /* End of 'stolen' code */ + + #define GRAB_TRIES 16 +@@ -553,7 +620,7 @@ + g_free (fname); + + gdk_threads_enter (); +- fadeout_screen (gdk_screen_get_default (), 0); ++ gsm_foreach_screen (fadeout_screen); + gtk_widget_show_all (dialog); + + /* reset cursor */ +@@ -569,8 +636,7 @@ + if (++grab_tries > GRAB_TRIES) + { + gtk_widget_hide (dialog); +- g_get_current_time (&fade_data->start_time); +- while (fadein_callback (fade_data) != FALSE); ++ fadein(); + report_failed_grab (FAILED_GRAB_MOUSE); + exit (1); + break; +@@ -589,8 +655,7 @@ + if (++grab_tries > GRAB_TRIES) + { + gtk_widget_hide (dialog); +- g_get_current_time (&fade_data->start_time); +- while (fadein_callback (fade_data) != FALSE); ++ fadein(); + report_failed_grab (FAILED_GRAB_KEYBOARD); + exit (1); + break; +@@ -617,8 +682,7 @@ + gdk_keyboard_ungrab(GDK_CURRENT_TIME); + gdk_flush(); + +- g_get_current_time (&fade_data->start_time); +- while (fadein_callback (fade_data) != FALSE); ++ fadein(); + gdk_threads_leave(); + + close(lock); --- libgksu-2.0.12.orig/debian/patches/15_extra_paranoia_for_gconf.diff.patch +++ libgksu-2.0.12/debian/patches/15_extra_paranoia_for_gconf.diff.patch @@ -0,0 +1,20 @@ +diff -Nur libgksu-1.9.8/libgksu/libgksu.c libgksu-1.9.8.new/libgksu/libgksu.c +--- libgksu-1.9.8/libgksu/libgksu.c 2006-10-09 19:16:41.000000000 +0200 ++++ libgksu-1.9.8.new/libgksu/libgksu.c 2006-10-09 19:17:16.000000000 +0200 +@@ -819,7 +795,15 @@ + context->grab = TRUE; + + context->sudo_mode = gconf_client_get_bool (gconf_client, BASE_PATH "sudo-mode", +- NULL); ++ NULL); ++ // UBUNTU specific - if the sudo mode is not set, check if we actualy have ++ // a registered schema for it, upgrades sometimes blew it away (lp: #59079) ++ if(context->sudo_mode == FALSE) { ++ GConfValue* v = gconf_client_get_default_from_schema(gconf_client, BASE_PATH "sudo-mode", NULL); ++ if(!v) ++ context->sudo_mode = TRUE; ++ gconf_value_free(v); ++ } + } + + /** --- libgksu-2.0.12.orig/debian/patches/20_better_usleep.patch +++ libgksu-2.0.12/debian/patches/20_better_usleep.patch @@ -0,0 +1,31 @@ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.9/libgksu/libgksu.c libgksu-2.0.9.new/libgksu/libgksu.c +--- libgksu-2.0.9/libgksu/libgksu.c 2009-03-09 09:21:56.000000000 +0100 ++++ libgksu-2.0.9.new/libgksu/libgksu.c 2009-03-09 09:23:14.000000000 +0100 +@@ -2853,9 +2853,13 @@ + /* Try hard to find the prompt; it may happen that we're + * seeing sudo's lecture, or that some pam module is spitting + * debugging stuff at the screen ++ * ++ * we wait up to 5sec for the prompt to appear, but we also ++ * break once the process_name changed + */ +- for (counter = 0; counter < 50; counter++) ++ for (counter = 0; counter < 1000; counter++) + { ++ char *procname; + if (strncmp (buffer, "GNOME_SUDO_PASS", 15) == 0) + break; + +@@ -2864,7 +2868,11 @@ + if (context->debug) + fprintf (stderr, "buffer: -%s-\n", buffer); + +- usleep(1000); ++ // we wait here bit but break when the process name changes ++ usleep(5000); ++ procname = get_process_name (pid); ++ if(!g_str_has_suffix(procname,"sudo")) ++ break; + } + + if (context->debug) --- libgksu-2.0.12.orig/debian/patches/01_revert_forkpty.patch +++ libgksu-2.0.12/debian/patches/01_revert_forkpty.patch @@ -0,0 +1,359 @@ +diff -Nur -x '*.orig' -x '*~' libgksu-2.0.12/libgksu/libgksu.c libgksu-2.0.12.new/libgksu/libgksu.c +--- libgksu-2.0.12/libgksu/libgksu.c 2009-06-29 19:48:24.000000000 +0200 ++++ libgksu-2.0.12.new/libgksu/libgksu.c 2009-07-01 13:02:10.417377769 +0200 +@@ -1,7 +1,6 @@ + /* + * Gksu -- a library providing access to su functionality + * Copyright (C) 2004-2009 Gustavo Noronha Silva +- * Portions Copyright (C) 2009 VMware, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public +@@ -56,9 +55,6 @@ + static void + gksu_context_launch_complete (GksuContext *context); + +-static void +-read_line (int fd, gchar *buffer, int n); +- + GType + gksu_error_get_type (void) + { +@@ -2009,8 +2005,6 @@ + for (i = 0 ; cmd[i] != NULL ; i++) + g_free (cmd[i]); + g_free(cmd); +- +- _exit(1); + } + else if (pid == -1) + { +@@ -2125,10 +2119,10 @@ + /* drop the \n echoed on password entry if su did request + a password */ + if (password_needed) +- read_line (fdpty, buf, 255); ++ read (fdpty, buf, 255); + if (context->debug) + fprintf (stderr, "DEBUG (run:post-after-pass) buf: -%s-\n", buf); +- read_line (fdpty, buf, 255); ++ read (fdpty, buf, 255); + if (context->debug) + fprintf (stderr, "DEBUG (run:post-after-pass) buf: -%s-\n", buf); + } +@@ -2142,9 +2136,7 @@ + { + int retval = 0; + +- /* Red Hat's su shows the full path to su in its error messages. */ +- if (!strncmp (buf, "su:", 3) || +- !strncmp (buf, "/bin/su:", 7)) ++ if (!strncmp (buf, "su", 2)) + { + gchar **strings; + +@@ -2155,11 +2147,7 @@ + } + + strings = g_strsplit (buf, ":", 2); +- +- /* Red Hat and Fedora use 'incorrect password'. */ +- if (strings[1] && +- (g_str_has_prefix(strings[1], " Authentication failure") || +- g_str_has_prefix(strings[1], " incorrect password"))) ++ if (strings[1] && !strncmp (strings[1], " Authentication failure", 23)) + { + if (used_gnome_keyring) + g_set_error (error, gksu_quark, +@@ -2473,12 +2461,6 @@ + { + char **cmd; + char buffer[256] = {0}; +- char *child_stderr = NULL; +- /* This command is used to gain a token */ +- char *const verifycmd[] = +- { +- "/usr/bin/sudo", "-p", "GNOME_SUDO_PASS", "-v", NULL +- }; + int argcount = 8; + int i, j; + +@@ -2489,8 +2471,9 @@ + + pid_t pid; + int status; +- FILE *fdfile = NULL; +- int fdpty = -1; ++ FILE *infile, *outfile; ++ int parent_pipe[2]; /* For talking to the parent */ ++ int child_pipe[2]; /* For talking to the child */ + + context->sudo_mode = TRUE; + +@@ -2565,10 +2548,6 @@ + cmd[argcount] = g_strdup("-S"); + argcount++; + +- /* Make sudo noninteractive (we should already have a token) */ +- cmd[argcount] = g_strdup("-n"); +- argcount++; +- + /* Make sudo use next arg as prompt */ + cmd[argcount] = g_strdup("-p"); + argcount++; +@@ -2647,21 +2626,26 @@ + fprintf (stderr, "cmd[%d]: %s\n", i, cmd[i]); + } + +- pid = forkpty(&fdpty, NULL, NULL, NULL); +- if (pid == 0) ++ if ((pipe(parent_pipe)) == -1) + { +- // Child +- setsid(); // make us session leader +- +- execv(verifycmd[0], verifycmd); ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error creating pipe: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } + +- g_set_error (error, gksu_quark, GKSU_ERROR_EXEC, +- _("Failed to exec new process: %s"), ++ if ((pipe(child_pipe)) == -1) ++ { ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error creating pipe: %s"), + strerror(errno)); + sudo_reset_xauth (context, xauth, xauth_env); + return FALSE; + } +- else if (pid == -1) ++ ++ pid = fork(); ++ if (pid == -1) + { + g_set_error (error, gksu_quark, GKSU_ERROR_FORK, + _("Failed to fork new process: %s"), +@@ -2669,26 +2653,56 @@ + sudo_reset_xauth (context, xauth, xauth_env); + return FALSE; + } ++ else if (pid == 0) ++ { ++ // Child ++ setsid(); // make us session leader ++ close(child_pipe[1]); ++ dup2(child_pipe[0], STDIN_FILENO); ++ dup2(parent_pipe[1], STDERR_FILENO); + ++ execv(cmd[0], cmd); ++ ++ g_set_error (error, gksu_quark, GKSU_ERROR_EXEC, ++ _("Failed to exec new process: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } + else + { + gint counter = 0; + gchar *cmdline = NULL; +- struct termios tio; + + // Parent +- fdfile = fdopen(fdpty, "w+"); ++ close(parent_pipe[1]); + +- /* make sure we notice that ECHO is turned off, if it gets +- turned off */ +- tcgetattr (fdpty, &tio); +- for (counter = 0; (tio.c_lflag & ECHO) && counter < 15; counter++) +- { +- usleep (1000); +- tcgetattr (fdpty, &tio); +- } ++ infile = fdopen(parent_pipe[0], "r"); ++ if (!infile) ++ { ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error opening pipe: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } + +- fcntl (fdpty, F_SETFL, O_NONBLOCK); ++ outfile = fdopen(child_pipe[1], "w"); ++ if (!outfile) ++ { ++ g_set_error (error, gksu_quark, GKSU_ERROR_PIPE, ++ _("Error opening pipe: %s"), ++ strerror(errno)); ++ sudo_reset_xauth (context, xauth, xauth_env); ++ return FALSE; ++ } ++ ++ /* ++ we are expecting to receive a GNOME_SUDO_PASS ++ if we don't there are two possibilities: an error ++ or a password is not needed ++ */ ++ fcntl (parent_pipe[0], F_SETFL, O_NONBLOCK); + + { /* no matter if we can read, since we're using + O_NONBLOCK; this is just to avoid the prompt +@@ -2697,11 +2711,11 @@ + struct timeval tv; + + FD_ZERO(&rfds); +- FD_SET(fdpty, &rfds); ++ FD_SET(parent_pipe[0], &rfds); + tv.tv_sec = 1; + tv.tv_usec = 0; + +- select (fdpty + 1, &rfds, NULL, NULL, &tv); ++ select (parent_pipe[0] + 1, &rfds, NULL, NULL, &tv); + } + + /* Try hard to find the prompt; it may happen that we're +@@ -2713,7 +2727,7 @@ + if (strncmp (buffer, "GNOME_SUDO_PASS", 15) == 0) + break; + +- read_line (fdpty, buffer, 256); ++ read_line (parent_pipe[0], buffer, 256); + + if (context->debug) + fprintf (stderr, "buffer: -%s-\n", buffer); +@@ -2747,17 +2761,18 @@ + + usleep (1000); + +- write (fdpty, password, strlen(password) + 1); +- write (fdpty, "\n", 1); ++ fprintf (outfile, "%s\n", password); ++ fclose (outfile); + + nullify_password (password); + +- fcntl(fdpty, F_SETFL, fcntl(fdpty, F_GETFL) & ~O_NONBLOCK); ++ /* turn NONBLOCK off */ ++ fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK); + /* ignore the first newline that comes right after sudo receives + the password */ +- fgets (buffer, 255, fdfile); +- /* this is the status we are interested in */ +- fgets (buffer, 255, fdfile); ++ fgets (buffer, 255, infile); ++ /* this is the status we are interessted in */ ++ fgets (buffer, 255, infile); + } + else + { +@@ -2766,7 +2781,7 @@ + fprintf (stderr, "No password prompt found; we'll assume we don't need a password.\n"); + + /* turn NONBLOCK off, also if have no prompt */ +- fcntl(fdpty, F_SETFL, fcntl(fdpty, F_GETFL) & ~O_NONBLOCK); ++ fcntl(parent_pipe[0], F_SETFL, fcntl(parent_pipe[0], F_GETFL) & ~O_NONBLOCK); + + should_display = gconf_client_get_bool (context->gconf_client, + BASE_PATH "display-no-pass-info", NULL); +@@ -2785,9 +2800,14 @@ + fprintf (stderr, "%s", buffer); + } + +- if (g_str_has_prefix (buffer, "Sorry, try again.")) ++ if (!strcmp (buffer, "Sorry, try again.\n")) + g_set_error (error, gksu_quark, GKSU_ERROR_WRONGPASS, + _("Wrong password.")); ++ else if (!strncmp (buffer, "Sorry, user ", 12)) ++ g_set_error (error, gksu_quark, GKSU_ERROR_NOT_ALLOWED, ++ _("The underlying authorization mechanism (sudo) " ++ "does not allow you to run this program. Contact " ++ "the system administrator.")); + else + { + gchar *haystack = buffer; +@@ -2805,10 +2825,6 @@ + } + } + +- /* If we have an error, let's just stop sudo right there. */ +- if (error) +- close(fdpty); +- + cmdline = g_strdup("sudo"); + /* wait for the child process to end or become something other + than sudo */ +@@ -2825,23 +2841,17 @@ + if (context->sn_context) + gksu_context_launch_complete (context); + ++ while (read (parent_pipe[0], buffer, 255) > 0) ++ { ++ fprintf (stderr, "%s", buffer); ++ bzero(buffer, 256); ++ } ++ + /* if the process is still active waitpid() on it */ + if (pid_exited != pid) + waitpid(pid, &status, 0); + sudo_reset_xauth (context, xauth, xauth_env); + +- /* +- * Did token acquisition succeed? If so, spawn sudo in +- * non-interactive mode. It should either succeed or die +- * immediately if you're not allowed to run the command. +- */ +- if (WEXITSTATUS(status) == 0) +- { +- g_spawn_sync(NULL, cmd, NULL, 0, NULL, NULL, +- NULL, &child_stderr, &status, +- error); +- } +- + if (exit_status) + { + if (WIFEXITED(status)) { +@@ -2853,13 +2863,6 @@ + + if (WEXITSTATUS(status)) + { +- if (g_str_has_prefix(child_stderr, "Sorry, user ")) +- { +- g_set_error (error, gksu_quark, GKSU_ERROR_NOT_ALLOWED, +- _("The underlying authorization mechanism (sudo) " +- "does not allow you to run this program. Contact " +- "the system administrator.")); +- } + if(cmdline) + { + /* sudo already exec()ed something else, don't report +@@ -2868,7 +2871,6 @@ + if (!g_str_has_suffix (cmdline, "sudo")) + { + g_free (cmdline); +- g_free (child_stderr); + return FALSE; + } + g_free (cmdline); +@@ -2881,11 +2883,11 @@ + } + } + +- fprintf(stderr, child_stderr); +- g_free(child_stderr); +- + /* if error is set we have found an error condition */ +- return (error == NULL); ++ if (error) ++ return FALSE; ++ ++ return TRUE; + } + + /**