--- system-tools-backends-2.6.0.orig/Users/Users.pm +++ system-tools-backends-2.6.0/Users/Users.pm @@ -293,6 +293,7 @@ foreach $i (@line) { $use_md5 = 1 if ($i eq "md5"); + $use_md5 = 1 if ($i =~ /^sha\d+/); } } } --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.init +++ system-tools-backends-2.6.0/debian/system-tools-backends.init @@ -0,0 +1,92 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: system-tools-backends +# Required-Start: $local_fs dbus +# Required-Stop: $local_fs dbus +# Should-Start: $syslog +# Should-Stop: $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 1 +# Short-Description: Gnome System Tools Backends +# Description: The Gnome System Tools Backends daemon handles root-needed +# operations to configure your machine with the Gnome System +# Tools. +### END INIT INFO + +# +# system-tools-backends +# dbus init script +# +# (Stolen from the hal package, and updated to keep stealing from them) +# Written by Martin Waitz based on skeleton code +# written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/system-tools-backends +PIDDIR=/var/run +PIDFILE=$PIDDIR/system-tools-backends.pid +NAME=system-tools-backends +DESC="System Tools Backends" + +. /lib/lsb/init-functions + +test -x $DAEMON || exit 0 + +set -e + +do_start() { + if [ ! -d $PIDDIR ]; then + mkdir -p $PIDDIR + fi + log_daemon_msg "Starting $DESC" "$NAME" + start-stop-daemon --start --startas $DAEMON --quiet --pidfile $PIDFILE + log_end_msg $? +} + +do_stop() { + log_daemon_msg "Stopping $DESC" "$NAME" + start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE --startas $DAEMON + log_end_msg $? +} + +case "$1" in + start) + do_start + ;; + stop) + do_stop + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo "Reloading $DESC configuration files." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + do_stop + sleep 5 + do_start + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + log_success_msg "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.manpages +++ system-tools-backends-2.6.0/debian/system-tools-backends.manpages @@ -0,0 +1 @@ +debian/system-tools-backends.1 --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.install +++ system-tools-backends-2.6.0/debian/system-tools-backends.install @@ -0,0 +1,5 @@ +debian/tmp/usr/bin/system-tools-backends +debian/tmp/usr/share/system-tools-backends-2.0 +debian/tmp/usr/share/dbus-1/system-services +debian/tmp/etc/dbus-1/system.d +debian/tmp/usr/share/PolicyKit/policy/system-tools-backends.policy --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.1 +++ system-tools-backends-2.6.0/debian/system-tools-backends.1 @@ -0,0 +1,34 @@ +.\" Copyright (C) 2007 Sven Arvidsson +.\" +.\" This is free software; you may redistribute it and/or modify +.\" it under the terms of the GNU General Public License as +.\" published by the Free Software Foundation; either version 2, +.\" or (at your option) any later version. +.\" +.\" This is distributed in the hope that it will be useful, but +.\" WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\"You should have received a copy of the GNU General Public License along +.\"with this program; if not, write to the Free Software Foundation, Inc., +.\"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +.TH system-tools-backends 1 "2007\-09\-27" "GNOME" +.SH NAME +system-tools-backends \- message dispatcher for system-tools-backends +.SH SYNOPSIS +.B system-tools-backends +.SH DESCRIPTION +System Tools Backends are a set of cross-platform modules for Linux +and other Unix systems. The backends provide an common DBus interface +to all platforms to modify or read the system configuration in a +distro independent fashion. +.P +This program is a lightwight DBus message dispatcher. It does not take +any options. +.SH AUTHORS +.B system-tools-backends +is written by Carlos Garnacho Parro . +.P +This manual page was written by Sven Arvidsson , +for the Debian project (but may be used by others). --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.postinst +++ system-tools-backends-2.6.0/debian/system-tools-backends.postinst @@ -0,0 +1,49 @@ +#! /bin/sh +# postinst script for system-tools-backends +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + # only start system-tools-backends if it is not already running + if [ ! -e /var/run/system-tools-backends.pid ] || ! ps --no-headers -p $(cat /var/run/system-tools-backends.pid) > /dev/null 2>&1; then + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi + fi + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + + --- system-tools-backends-2.6.0.orig/debian/rules +++ system-tools-backends-2.6.0/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f + +# To Upload only to experimental +# include /usr/share/gnome-pkg-tools/1/rules/check-dist.mk + +# Gnome Team +include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk +-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk + +include /usr/share/cdbs/1/rules/debhelper.mk +# Including this file gets us a simple patch system. You can just +# drop patches in debian/patches, and they will be automatically +# applied and unapplied. +include /usr/share/cdbs/1/rules/simple-patchsys.mk +# Inclusing this file permits comparing of file installed in the DESTDIR +# installation directory and files in resulting Debian packages with +# "debian/rules list-missing". +include /usr/share/cdbs/1/rules/utils.mk +# Including this gives us a number of rules typical to a GNOME +# program, including setting GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1. +# Note that this class inherits from autotools.mk and docbookxml.mk, +# so you don't need to include those too. +include /usr/share/cdbs/1/class/gnome.mk + +DEB_BUILDDIR := $(CURDIR)/debian/build + +DEB_CONFIGURE_EXTRA_FLAGS += --datadir=/usr/share/ \ + --with-net-dbus=/usr/lib/perl5 \ + --with-stb-group=admin + +DEB_DH_INSTALLINIT_ARGS := -- start 30 2 3 4 5 . stop 70 1 . + +build/system-tools-backends:: + # generate POT file for translators + cd po ; intltool-update --verbose -p + +clean:: + # GNOME Team 'uploaders.mk' should not override this behavior, here is a workaround : + sed -i "s/@cdbs@/$(CDBS_BUILD_DEPENDS)/g" debian/control + rm -f po/setup-tools-backends.pot + rm -rf $(DEB_BUILDDIR) + + + --- system-tools-backends-2.6.0.orig/debian/control +++ system-tools-backends-2.6.0/debian/control @@ -0,0 +1,47 @@ +Source: system-tools-backends +Section: admin +Priority: optional +XSBC-Original-Maintainer: Jose Carlos Garcia Sogo +Maintainer: Ubuntu Desktop Team +Uploaders: Debian GNOME Maintainers , Josselin Mouette , Niv Sardi +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 5), + cdbs, + gnome-pkg-tools (>= 0.10), + libxml-parser-perl, + intltool, + libnet-dbus-perl, + libdbus-1-dev (>= 1.1.2), + libdbus-glib-1-dev (>= 0.74), + libglib2.0-dev (>= 2.15.2), + libpolkit-dbus-dev (>= 0.5) + +Package: system-tools-backends +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libnet-dbus-perl, + adduser +Replaces: gnome-system-tools (<< 1.1) +Conflicts: gnome-system-tools (<< 2.18), liboobs-1-3 +Description: System Tools to manage computer configuration -- scripts + The System Tools Backends are a set of cross-platform scripts + for Linux and other Unix systems. The backends provide a standard + XML interface for modifying the configuration regardless of the + distribution that's being used. + . + These backends are used in GNOME System Tools. + +Package: system-tools-backends-dev +Architecture: all +Section: devel +Depends: ${misc:Depends} +Replaces: gnome-system-tools (<< 1.1) +Description: System Tools to manage computer configuration -- development files + The System Tools Backends are a set of cross-platform scripts + for Linux and other Unix systems. The backends provide a standard + XML interface for modifying the configuration regardless of the + distribution that's being used. + . + These backends are used in GNOME System Tools. + --- system-tools-backends-2.6.0.orig/debian/changelog +++ system-tools-backends-2.6.0/debian/changelog @@ -0,0 +1,412 @@ +system-tools-backends (2.6.0-1ubuntu1.1) intrepid-security; urgency=low + + * Tell liboobs to use md5 if pam the pam config specifies sha* as well + as if it specifies md5. If we don't do this then the switch to sha512 + means that adding a users with system-tools-backends gives them a 3DES + password. (LP: #287134) + + -- James Westby Tue, 28 Oct 2008 21:06:26 +0000 + +system-tools-backends (2.6.0-1ubuntu1) intrepid; urgency=low + + [ James Westby ] + * Merge with Debian (LP: #244492), remaining changes: + - Change the maintainer to the ubuntu-desktop team. + - Use policykit. + - Alter Build-Depends to build with policykit support. + - Install the policy. + - Ubuntu-specific. + - debian/patches/07_dont_symlink_localtime.patch: + - /etc/localtime should always be a copy, not a symlink, to support + systems with /usr on a separate partition. + - http://bugzilla.gnome.org/show_bug.cgi?id=541058 + - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488792 + - debian/patches/03_correct_perl_command.patch: + - use the distribution perl rather than the environment one (lp: #199134) + - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488793 + - Use --with-stb-group=admin rather than stb-admin. + - Don't create the stb-admin group. + - in debian/patches/03_default_permissions.patch allow the admin + group to talk to the backends. + - Ubuntu-specific. + * Drop conflicts on liboobs-1-1 (<< 0.5) and breaks on gnome-system-tools + (<< 2.21.3) as they are no longer needed. + * Don't use the init script to stop in runlevels 0 and 6. + - Change DEB_DH_INSTALLINIT_ARGS to "-- start 30 2 3 4 5 . stop 70 1 ." + - Change "Default-Stop: 0 1 6" to "Default-Stop: 1" in + debian/system-tools-backends.init. + - https://wiki.ubuntu.com/Teardown + - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488796 + + [ Martin Pitt ] + * debian/system-tools-backends.preinst: Fix version comparison in dbus init + script deprecation code to apply to this Ubuntu version. + + -- Martin Pitt Mon, 21 Jul 2008 17:12:27 +0200 + +system-tools-backends (2.6.0-1) unstable; urgency=low + + [ Loic Minier ] + * New patch, 60_fix-permissions-of-pid-file, fixes permissions of .pid file; + thanks Mike Bird; GNOME #533624; closes: #447361. + + [ Josselin Mouette ] + * New upstream release. + * 60_fix-permissions-of-pid-file.patch: fixed to apply again. + * system-tools-backends.install: updated to match a directory change. + * 03_default_permissions.patch: fix the default permissions so that + not all users are allowed to talk to the backends. + * Conflict with liboobs-1-3. + + -- Josselin Mouette Wed, 28 May 2008 12:59:59 +0200 + +system-tools-backends (2.4.2-1) unstable; urgency=low + + [ Kilian Krause ] + * Add get-orig-source target. + * Fix preinst maintainer script. Add rm_conffile function from + http://wiki.debian.org/DpkgConffileHandling. Actually this should be done + through ucf, anyway. + + [ Sven Arvidsson ] + * Add a basic man page (Closes: #433111) + + [ Loic Minier ] + * Make system-tools-backends-dev arch: all as the /usr/lib/pkgconfig file is + actually arch independent (and should be moved to /usr/share). + + [ Josselin Mouette ] + * New upstream release. Closes: #453633. + * 02ubuntu_chmod_network_interfaces_when_using_key.patch: updated from + Ubuntu. + * Define PIDDIR in the init script. Closes: #455600. + * Entirely remove the old dbus script. + * Standards version is 3.7.3. + * Don’t stop the init script in the S runlevel. + * Handle gracefully the case where the daemon fails to stop in the + preinst. + * Really remove the conffile by passing all arguments to rm_conffile. + + -- Josselin Mouette Sat, 16 Feb 2008 00:36:20 +0100 + +system-tools-backends (2.6.0-0ubuntu8) intrepid; urgency=low + + * No change rebuild against policykit 0.8. + + -- James Westby Wed, 21 May 2008 09:17:03 +0200 + +system-tools-backends (2.6.0-0ubuntu7) hardy; urgency=low + + * debian/patches/06_dont_install_shares_admin_backend.patch, + debian/patches/90_autoreconf_update.patch: + - install the shares-admin backend again since it has been requested + by several users and some derivative distributions, it'll also make easier + to edit previous shares for users upgrading and having some configured + + -- Sebastien Bacher Mon, 14 Apr 2008 12:12:39 +0200 + +system-tools-backends (2.6.0-0ubuntu6) hardy; urgency=low + + * debian/patches/07_dont_symlink_localtime.patch: + - /etc/localtime should always be a copy, not a symlink, to support + systems with /usr on a separate partition. + + -- Steve Langasek Tue, 01 Apr 2008 21:47:10 -0700 + +system-tools-backends (2.6.0-0ubuntu5) hardy; urgency=low + + * debian/patches/06_dont_install_shares_admin_backend.patch, + debian/patches/90_autoreconf_update.patch: + - don't update autotools in the same patch to workaround build issues + + -- Sebastien Bacher Fri, 28 Mar 2008 09:55:37 +0100 + +system-tools-backends (2.6.0-0ubuntu4) hardy; urgency=low + + * debian/patches/06_dont_install_shares_admin_backend.patch: + - updated to fix build issue + + -- Sebastien Bacher Fri, 28 Mar 2008 01:39:42 +0100 + +system-tools-backends (2.6.0-0ubuntu3) hardy; urgency=low + + * debian/patches/06_dont_install_shares_admin_backend.patch: + - don't install the shares-admin backend since hardy had nautilus-share now + + -- Sebastien Bacher Thu, 27 Mar 2008 23:50:15 +0100 + +system-tools-backends (2.6.0-0ubuntu2) hardy; urgency=low + + * debian/patches/03_correct_perl_command.patch: + - use the distribution perl rather than the environment one (lp: #199134) + + -- Sebastien Bacher Thu, 13 Mar 2008 18:56:18 +0100 + +system-tools-backends (2.6.0-0ubuntu1) hardy; urgency=low + + * New upstream version + + -- Sebastien Bacher Wed, 12 Mar 2008 15:44:19 +0100 + +system-tools-backends (2.5.9-0ubuntu1) hardy; urgency=low + + * New upstream release: + - Add I/O functions to PolicyKit, so its internal caches are properly + updated. This fixes the "can't do anything after the first time I + authenticate" bug. (LP: #188349) + - Actually install GPRS chatscript. + + -- Martin Pitt Fri, 07 Mar 2008 16:24:30 +0100 + +system-tools-backends (2.5.7-0ubuntu1) hardy; urgency=low + + * New upstream release: + - Get correctly the contents of SelfConfig messages. + + -- Emilio Pozuelo Monfort Tue, 29 Jan 2008 16:11:28 +0100 + +system-tools-backends (2.5.6-0ubuntu1) hardy; urgency=low + + * New upstream releases. + - Use /etc/rc.d/rc.inet1 to start/stop network interfaces for slackware + - Make sure there are time servers when using ntpdate + - Do call reset_counter() when the configuration has been set + - Check correctly whether PPP interfaces are configured or not + - Add Ubuntu 8.04 + + * debian/control: + - Bump libglib2.0-dev build-dependency to 2.15.2. + + -- Emilio Pozuelo Monfort Tue, 15 Jan 2008 13:27:07 +0100 + +system-tools-backends (2.5.4-0ubuntu1) hardy; urgency=low + + * New upstream release. + * debian/control: + - Require dbus 1.1.2 and dbus-glib 0.74 in build-depends. + - Updated Breaks for gnome-system-tools << 2.21.3 + * debian/system-tools-backends.install: + - Fix installation of dbus' services. They have been moved upstream. + + -- Emilio Pozuelo Monfort Thu, 20 Dec 2007 23:37:20 +0100 + +system-tools-backends (2.5.3-0ubuntu2) hardy; urgency=low + + * debian/rules: + - Use the admin group instead of root so users can access the service + with PolicyKit. + + -- Emilio Pozuelo Monfort Wed, 05 Dec 2007 18:22:21 +0100 + +system-tools-backends (2.5.3-0ubuntu1) hardy; urgency=low + + * New upstream release. + * debian/control: + - Breaks gnome-system-tools << 2.21 + - Build-depend on libpolkit-dbus-dev >= 0.5 to get PolicyKit support. + * debian/system-tools-backends.install + - Install system-tools-backends policykit file. + + -- Emilio Pozuelo Monfort Wed, 05 Dec 2007 16:30:49 +0100 + +system-tools-backends (2.4.0-0ubuntu1) gutsy; urgency=low + + * New upstream version + + -- Sebastien Bacher Mon, 17 Sep 2007 14:01:24 +0200 + +system-tools-backends (2.3.2-0ubuntu1) gutsy; urgency=low + + * New upstream version + + -- Sebastien Bacher Tue, 04 Sep 2007 14:44:44 +0200 + +system-tools-backends (2.3.1-0ubuntu1) gutsy; urgency=low + + * New upstream version: + - Fixes in network and services modules for Slackware + - Update to Net::DBus 0.33.5 + - Support Slackware 11.0 and 12.0 + + -- Sebastien Bacher Tue, 28 Aug 2007 14:42:42 +0200 + +system-tools-backends (2.3.0-0ubuntu1) gutsy; urgency=low + + * New upstream version. + * [Daniel Holbach]: + - debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch: + updated. + + -- Rick Clark Tue, 10 Jul 2007 11:31:55 -0400 + +system-tools-backends (2.2.1-5) unstable; urgency=low + + the "Long Long due Release". + * Migrated to use regular init as hinted by slomo AGES ago + (closes: #421722). + * Add valid group. + + -- Niv Sardi Mon, 16 Jul 2007 10:37:49 +0200 + +system-tools-backends (2.2.1-4) unstable; urgency=low + + [ Niv Sardi ] + * Add dependency on adduser, used during preinst. + Thanks to Free Ekanayaka + (closes: #424002: system-tools-backends: Missing dependency: adduser) + + [ Loic Minier ] + * Fix typos in descriptions; thanks Paul Menzel; (closes: #425144). + + [ Sven Arvidsson ] + * Fix unguarded use of script in preinst (closes: #425473, #423575). + + [ Otavio Salvador ] + * Fix compilation options on rules. + + -- Otavio Salvador Fri, 29 Jun 2007 11:31:29 -0300 + +system-tools-backends (2.2.1-3ubuntu2) gutsy; urgency=low + + Patches from garnacho (thanks!): + * Change default dialling type to `tones' from `pulses' + (pursuant to wiki.ubuntu.com/OutoftheboxWinmodem). + * Change default speaker volume to `Silent' rather than `Loud'. + + Also: + * Record helpful specification URL in Network/Ifaces.pm, to make + future debugging easier. + + -- Ian Jackson Tue, 5 Jun 2007 17:03:38 +0100 + +system-tools-backends (2.2.1-3ubuntu1) gutsy; urgency=low + + * Merge from debian unstable, remaining changes: + - debian/control.in: + - Maintainer: Ubuntu Desktop Team + - s-t-b conflicts liboobs-1-1 (<< 0.5) + - system-tools-backends.postinst: don't create group stb-admin. + + -- Jordan Mantha Tue, 22 May 2007 20:09:26 -0700 + +system-tools-backends (2.2.1-3) unstable; urgency=low + + [ Niv Sardi] + * Mark bugs to close. + + [ Loic Minier] + * Re-add ubuntu version specific in preinst. :) (closes: #423575). + * Wrap build-deps and deps. + * Fix bashism in maintainer script. + * Cleanups. + * Add dep on libnet-dbus-perl; thanks Vincent Danjean; + (closes: #422702, #423596, #423620). + + -- Niv Sardi Mon, 14 May 2007 14:33:36 +0200 + +system-tools-backends (2.2.1-2ubuntu1) gutsy; urgency=low + + * Resynchronize with Debian, remaining Ubuntu changes: + - debian/control.in: + - Maintainer: Ubuntu Desktop Team + - system-tools-backends Depends on libnet-dbus-perl + - s-t-b conflicts liboobs-1-1 (<< 0.5), depends libnet-dbus-perl. + - system-tools-backends.postinst: don't create group stb-admin. + + -- Daniel Holbach Fri, 18 May 2007 10:07:18 +0200 + +system-tools-backends (2.2.1-2) unstable; urgency=low + + * Upload to Unstable, remove check-dist.mk. + * Remove ubuntu version specific in preinst. + * Create stb-admin group in postinst (thanks to giskard). + + -- Niv Sardi Sat, 5 May 2007 16:07:03 +0200 + +system-tools-backends (2.2.1-1) experimental; urgency=low + + * New upstream release + * Updated 01_debian_4.0.patch + * Updated install files + * Added build dep on libnet-dbus-perl + * Changed from arch: all to any, as we now ship elf here. (thanks to lool) + * Fixed Watch file. (thanks to lool) + * build dep on gnome-pkg-tools 0.10 to use check-dist.mk. (thanks to lool) + * New upstream release, purely bugfix release + + [ Imported from Ubuntu] + * Imported patch 02ubuntu_chmod_network_interfaces_when_using_key.patch + * Imported *.{post,pre}{inst,rm} and dbus init script. + + -- Niv Sardi Sat, 28 Apr 2007 12:54:25 +0200 + +system-tools-backends (1.4.2-3) unstable; urgency=medium + + * 01_debian_4.0.patch: support 4.0 as a Debian version, and drop + potato support (closes: #386778). + + -- Josselin Mouette Sun, 10 Sep 2006 11:21:32 +0200 + +system-tools-backends (1.4.2-2) unstable; urgency=low + + * Move debhelper, cdbs, and gnome-pkg-tools from Build-Depends-Indep to + Build-Depends. + * Bump up Standards-Version to 3.7.2. + * Bump up Debhelper compatibility level to 5. + + -- Loic Minier Sun, 13 Aug 2006 15:28:40 +0200 + +system-tools-backends (1.4.2-1) unstable; urgency=low + + * New upstream release. + + -- Jordi Mallach Wed, 11 Jan 2006 11:29:27 +0100 + +system-tools-backends (1.4.1-1) unstable; urgency=low + + * New upstream release. + * Updated debian/watch file. + + -- Ondřej Surý Fri, 30 Dec 2005 15:18:11 +0100 + +system-tools-backends (1.4.0-1) unstable; urgency=low + + * New upstream releases. + * Add CDBS' utils. [debian/rules] + * Update FSF address. [debian/copyright] + * Distinguish Copyright from License. [debian/copyright] + * Bump-up Standards-Version to 3.6.2. [debian/control, debian/control.in] + + -- Loic Minier Wed, 14 Sep 2005 21:48:13 +0200 + +system-tools-backends (1.2.0-4) unstable; urgency=low + + * Don't forget to remove build dir... + + -- Marc Dequènes (Duck) Sat, 18 Jun 2005 11:14:34 +0200 + +system-tools-backends (1.2.0-3) unstable; urgency=low + + * Fixed FTBFS because of missing builddep on 'gnome-pkg-tools' + (my bad) (Closes: #314278). + * Update POT file during build, needed for translators + (Closes: #313528). + * Now building in 'debian/build/' directory (cleaner). + * Removed unnecessary DEB_CONFIGURE_SCRIPT_ENV in 'debian/rules'. + + -- Marc Dequènes (Duck) Sat, 18 Jun 2005 11:07:09 +0200 + +system-tools-backends (1.2.0-2) unstable; urgency=low + + * Upload to unstable (GNOME Team upload). + * Corrected 'system-tools-backends-dev' Section to 'devel'. + + -- Marc Dequènes (Duck) Sat, 11 Jun 2005 00:53:59 +0200 + +system-tools-backends (1.2.0-1) experimental; urgency=low + + * Initial Release. + * Marc Dequènes (Duck) did all the work for this release. Thanks! + + -- Jose Carlos Garcia Sogo Wed, 20 Apr 2005 23:07:33 +0200 + --- system-tools-backends-2.6.0.orig/debian/copyright +++ system-tools-backends-2.6.0/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Marc Dequènes (Duck) on +Fri, 15 Apr 2005 02:54:06 +0200. + +It was downloaded from: + http://ftp.gnome.org/pub/GNOME/sources/system-tools-backends/ + +Copyright Holders: the full list is in: + /usr/share/doc/system-tools-backends/AUTHORS + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.postrm +++ system-tools-backends-2.6.0/debian/system-tools-backends.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +# Do not restart dbus on upgrades, only if we remove the package. +if [ "$1" = "remove" ] ; then + if [ -x /etc/init.d/dbus ]; then + invoke-rc.d dbus force-reload || true + fi +fi + +#DEBHELPER# --- system-tools-backends-2.6.0.orig/debian/system-tools-backends.preinst +++ system-tools-backends-2.6.0/debian/system-tools-backends.preinst @@ -0,0 +1,35 @@ +#!/bin/sh +set -e + +# stop backend here when upgrading from a version that didn't handle +# it correctly yet in the prerm + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" lt-nl 2.6.0-1; then + test -x /etc/dbus-1/event.d/70system-tools-backends && \ + /etc/dbus-1/event.d/70system-tools-backends stop || true + rm_conffile system-tools-backends "/etc/dbus-1/event.d/70system-tools-backends" + fi + ;; +esac + +#DEBHELPER# --- system-tools-backends-2.6.0.orig/debian/control.in +++ system-tools-backends-2.6.0/debian/control.in @@ -0,0 +1,47 @@ +Source: system-tools-backends +Section: admin +Priority: optional +XSBC-Original-Maintainer: Jose Carlos Garcia Sogo +Maintainer: Ubuntu Desktop Team +Uploaders: @GNOME_TEAM@, Niv Sardi +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 5), + cdbs, + gnome-pkg-tools (>= 0.10), + libxml-parser-perl, + intltool, + libnet-dbus-perl, + libdbus-1-dev (>= 1.1.2), + libdbus-glib-1-dev (>= 0.74), + libglib2.0-dev (>= 2.15.2), + libpolkit-dbus-dev (>= 0.5) + +Package: system-tools-backends +Architecture: any +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libnet-dbus-perl, + adduser +Replaces: gnome-system-tools (<< 1.1) +Conflicts: gnome-system-tools (<< 2.18), liboobs-1-3 +Description: System Tools to manage computer configuration -- scripts + The System Tools Backends are a set of cross-platform scripts + for Linux and other Unix systems. The backends provide a standard + XML interface for modifying the configuration regardless of the + distribution that's being used. + . + These backends are used in GNOME System Tools. + +Package: system-tools-backends-dev +Architecture: all +Section: devel +Depends: ${misc:Depends} +Replaces: gnome-system-tools (<< 1.1) +Description: System Tools to manage computer configuration -- development files + The System Tools Backends are a set of cross-platform scripts + for Linux and other Unix systems. The backends provide a standard + XML interface for modifying the configuration regardless of the + distribution that's being used. + . + These backends are used in GNOME System Tools. + --- system-tools-backends-2.6.0.orig/debian/compat +++ system-tools-backends-2.6.0/debian/compat @@ -0,0 +1 @@ +5 --- system-tools-backends-2.6.0.orig/debian/system-tools-backends-dev.install +++ system-tools-backends-2.6.0/debian/system-tools-backends-dev.install @@ -0,0 +1 @@ +debian/tmp/usr/lib usr/ --- system-tools-backends-2.6.0.orig/debian/watch +++ system-tools-backends-2.6.0/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://ftp.gnome.org/pub/gnome/sources/system-tools-backends/([\d\.]+)[02468]/system-tools-backends-([\d\.]+)\.tar\.gz --- system-tools-backends-2.6.0.orig/debian/patches/03_correct_perl_command.patch +++ system-tools-backends-2.6.0/debian/patches/03_correct_perl_command.patch @@ -0,0 +1,72 @@ +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/SystemToolsBackends.pl.in system-tools-backends-2.6.0.new/SystemToolsBackends.pl.in +--- system-tools-backends-2.6.0/SystemToolsBackends.pl.in 2008-03-09 14:21:45.000000000 +0100 ++++ system-tools-backends-2.6.0.new/SystemToolsBackends.pl.in 2008-03-13 18:55:25.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # Loader for the system tools backends. +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/Backend.pm system-tools-backends-2.6.0.new/Utils/Backend.pm +--- system-tools-backends-2.6.0/Utils/Backend.pm 2007-12-12 01:31:03.000000000 +0100 ++++ system-tools-backends-2.6.0.new/Utils/Backend.pm 2008-03-13 18:55:55.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # Common stuff for the ximian-setup-tools backends. +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/File.pm system-tools-backends-2.6.0.new/Utils/File.pm +--- system-tools-backends-2.6.0/Utils/File.pm 2008-03-09 14:21:45.000000000 +0100 ++++ system-tools-backends-2.6.0.new/Utils/File.pm 2008-03-13 18:55:51.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # Functions for file manipulation. Find, open, read, write, backup, etc. +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/Parse.pm system-tools-backends-2.6.0.new/Utils/Parse.pm +--- system-tools-backends-2.6.0/Utils/Parse.pm 2008-03-09 14:21:45.000000000 +0100 ++++ system-tools-backends-2.6.0.new/Utils/Parse.pm 2008-03-13 18:55:47.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # parse.pl: Common parsing stuff for the ximian-setup-tools backends. +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/Platform.pm system-tools-backends-2.6.0.new/Utils/Platform.pm +--- system-tools-backends-2.6.0/Utils/Platform.pm 2008-03-13 18:55:25.000000000 +0100 ++++ system-tools-backends-2.6.0.new/Utils/Platform.pm 2008-03-13 18:55:44.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # Determine the platform we're running on. +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/Report.pm system-tools-backends-2.6.0.new/Utils/Report.pm +--- system-tools-backends-2.6.0/Utils/Report.pm 2007-12-12 01:31:03.000000000 +0100 ++++ system-tools-backends-2.6.0.new/Utils/Report.pm 2008-03-13 18:55:40.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # /* Functions for on-the-fly commentary on a tool's work. */ +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/Util.pm system-tools-backends-2.6.0.new/Utils/Util.pm +--- system-tools-backends-2.6.0/Utils/Util.pm 2007-10-09 00:18:53.000000000 +0200 ++++ system-tools-backends-2.6.0.new/Utils/Util.pm 2008-03-13 18:55:37.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # Utility functions. +diff -Nur -x '*.orig' -x '*~' system-tools-backends-2.6.0/Utils/XML.pm system-tools-backends-2.6.0.new/Utils/XML.pm +--- system-tools-backends-2.6.0/Utils/XML.pm 2007-10-09 00:18:53.000000000 +0200 ++++ system-tools-backends-2.6.0.new/Utils/XML.pm 2008-03-13 18:55:34.000000000 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env perl ++#!/usr/bin/perl + #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + + # XML printing, scanning and parsing. --- system-tools-backends-2.6.0.orig/debian/patches/60_fix-permissions-of-pid-file.patch +++ system-tools-backends-2.6.0/debian/patches/60_fix-permissions-of-pid-file.patch @@ -0,0 +1,11 @@ +--- dispatcher/main.c.orig 2008-05-28 12:55:44.774846523 +0200 ++++ dispatcher/main.c 2008-05-28 12:56:18.211757081 +0200 +@@ -47,7 +47,7 @@ + + setsid (); + +- if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", O_CREAT | O_WRONLY)) != -1) ++ if ((pidfile_fd = open (LOCALSTATEDIR "/run/system-tools-backends.pid", O_CREAT | O_WRONLY, 00644)) != -1) + { + str = g_strdup_printf ("%d", getpid ()); + write (pidfile_fd, str, strlen (str)); --- system-tools-backends-2.6.0.orig/debian/patches/07_dont_symlink_localtime.patch +++ system-tools-backends-2.6.0/debian/patches/07_dont_symlink_localtime.patch @@ -0,0 +1,11 @@ +--- system-tools-backends-2.6.0.orig/Time/TimeDate.pm ++++ system-tools-backends-2.6.0/Time/TimeDate.pm +@@ -144,7 +144,7 @@ + unlink $localtime; # Important, since it might be a symlink. + + &Utils::Report::enter (); +- $res = symlink ($tz, $localtime); ++ $res = copy ($tz, $localtime); + &Utils::Report::leave (); + return -1 unless $res; + return 0; --- system-tools-backends-2.6.0.orig/debian/patches/01_debian_4.0.patch +++ system-tools-backends-2.6.0/debian/patches/01_debian_4.0.patch @@ -0,0 +1,125 @@ +diff --git a/system-tools-backends-2.2.0/Init/Services.pm b/system-tools-backends-2.2.0/Init/Services.pm +index a8649b2..a9f723e 100644 +diff -Nur system-tools-backends-2.2.0/Init/Services.pm system-tools-backends-2.2.0.new/Init/Services.pm +--- system-tools-backends-2.2.0/Init/Services.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Init/Services.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -45,6 +45,9 @@ + "mandrake-9.0" => "redhat-6.2", + "conectiva-9" => "redhat-6.2", + "debian-3.0" => "redhat-6.2", ++ "debian-3.1" => "redhat-6.2", ++ "debian-4.0" => "redhat-6.2", ++ "debian-testing" => "redhat-6.2", + "ubuntu-7.04" => "redhat-6.2", + "suse-9.0" => "redhat-6.2", + "pld-1.0" => "redhat-6.2", +@@ -101,6 +104,10 @@ + "yoper-2.2" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "conectiva-9" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], + "debian-3.0" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], ++ "debian-3.1" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], ++ "debian-4.0" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], ++ "debian-testing" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], ++ + "ubuntu-7.04" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"], + "suse-9.0" => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"], + "pld-1.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"], +diff -Nur system-tools-backends-2.2.0/Network/Hosts.pm system-tools-backends-2.2.0.new/Network/Hosts.pm +--- system-tools-backends-2.2.0/Network/Hosts.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Network/Hosts.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -46,6 +46,9 @@ + "yoper-2.2" => "redhat-6.2", + "conectiva-9" => "redhat-6.2", + "debian-3.0" => "debian-2.2", ++ "debian-3.1" => "debian-2.2", ++ "debian-4.0" => "debian-2.2", ++ "debian-testing" => "debian-2.2", + "ubuntu-7.04" => "debian-2.2", + "suse-9.0" => "suse-9.0", + "pld-1.0" => "redhat-6.2", +diff -Nur system-tools-backends-2.2.0/Network/Ifaces.pm system-tools-backends-2.2.0.new/Network/Ifaces.pm +--- system-tools-backends-2.2.0/Network/Ifaces.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Network/Ifaces.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -1992,6 +1992,9 @@ + "yoper-2.2" => "redhat-6.2", + "conectiva-9" => "conectiva-9", + "debian-3.0" => "debian-3.0", ++ "debian-3.1" => "debian-3.0", ++ "debian-4.0" => "debian-3.0", ++ "debian-testing" => "debian-3.0", + "ubuntu-7.04" => "debian-3.0", + "suse-9.0" => "suse-9.0", + "pld-1.0" => "pld-1.0", +diff -Nur system-tools-backends-2.2.0/Shares/SMB.pm system-tools-backends-2.2.0.new/Shares/SMB.pm +--- system-tools-backends-2.2.0/Shares/SMB.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Shares/SMB.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -137,6 +137,9 @@ + "redhat-8.0" => "debian-3.0", + "mandrake-9.0" => "debian-3.0", + "debian-3.0" => "debian-3.0", ++ "debian-3.1" => "debian-3.0", ++ "debian-4.0" => "debian-3.0", ++ "debian-testing" => "debian-3.0", + "ubuntu-7.04" => "debian-3.0", + "suse-9.0" => "debian-3.0", + "slackware-9.1.0" => "debian-3.0", +diff -Nur system-tools-backends-2.2.0/Time/NTP.pm system-tools-backends-2.2.0.new/Time/NTP.pm +--- system-tools-backends-2.2.0/Time/NTP.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Time/NTP.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -35,6 +35,9 @@ + "redhat-8.0" => "redhat-6.2", + "mandrake-9.0" => "redhat-6.2", + "debian-3.0" => "redhat-6.2", ++ "debian-3.1" => "redhat-6.2", ++ "debian-4.0" => "redhat-6.2", ++ "debian-testing" => "redhat-6.2", + "ubuntu-7.04" => "redhat-6.2", + "suse-9.0" => "redhat-6.2", + "slackware-9.1.0" => "redhat-6.2", +diff -Nur system-tools-backends-2.2.0/Time/TimeDate.pm system-tools-backends-2.2.0.new/Time/TimeDate.pm +--- system-tools-backends-2.2.0/Time/TimeDate.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Time/TimeDate.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -166,6 +166,9 @@ + "redhat-8.0" => "redhat-6.2", + "mandrake-9.0" => "redhat-6.2", + "debian-3.0" => "debian-3.0", ++ "debian-3.1" => "debian-3.0", ++ "debian-4.0" => "debian-3.0", ++ "debian-testing" => "debian-3.0", + "ubuntu-7.04" => "debian-3.0", + "suse-9.0" => "redhat-6.2", + "slackware-9.1.0" => "redhat-6.2", +diff -Nur system-tools-backends-2.2.0/Users/Users.pm system-tools-backends-2.2.0.new/Users/Users.pm +--- system-tools-backends-2.2.0/Users/Users.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Users/Users.pm 2007-04-07 09:29:44.000000000 +0200 +@@ -237,6 +237,9 @@ + 'pld-1.0' => $rh_logindefs_defaults, + 'fedora-1' => $rh_logindefs_defaults, + 'debian-3.0' => $rh_logindefs_defaults, ++ 'debian-3.1' => $rh_logindefs_defaults, ++ 'debian-4.0' => $rh_logindefs_defaults, ++ 'debian-testing' => $rh_logindefs_defaults, + 'vine-3.0' => $rh_logindefs_defaults, + 'gentoo' => $gentoo_logindefs_defaults, + 'archlinux' => $gentoo_logindefs_defaults, +diff -Nur system-tools-backends-2.2.0/Utils/Platform.pm system-tools-backends-2.2.0.new/Utils/Platform.pm +--- system-tools-backends-2.2.0/Utils/Platform.pm 2007-03-27 20:22:13.000000000 +0200 ++++ system-tools-backends-2.2.0.new/Utils/Platform.pm 2007-04-07 09:30:22.000000000 +0200 +@@ -34,6 +34,8 @@ + my $PLATFORM_INFO = { + "debian-3.0" => [ "Debian GNU/Linux", "3.0", "Woody" ], + "debian-3.1" => [ "Debian GNU/Linux", "3.1", "Sarge" ], ++ "debian-4.0" => [ "Debian GNU/Linux", "4.0", "Etch" ], ++ "debian-testing" => [ "Debian GNU/Linux", "testing/unstable", "Lenny/Sid" ], + "ubuntu-5.04" => [ "Ubuntu Linux", "5.04", "Hoary" ], + "ubuntu-5.10" => [ "Ubuntu Linux", "5.10", "Breezy" ], + "ubuntu-6.06" => [ "Ubuntu Linux", "6.06", "Dapper" ], +@@ -356,7 +358,7 @@ + + my %platform_checks = ( + "Linux" => [[ \&check_lsb ], +- [ \&check_distro_file, "/etc/debian_version", "debian", "(.*)", { "testing/unstable" => "sarge" } ], ++ [ \&check_distro_file, "/etc/debian_version", "debian", "(.*)", { "testing/unstable" => "sarge", "lenny/sid" => "testing" } ], + [ \&check_distro_file, "/etc/SuSE-release", "suse", "VERSION\\s*=\\s*(\\S+)" ], + [ \&check_distro_file, "/etc/blackPanther-release", "blackpanther", "^Linux Black Panther release (\\S+)" ], + [ \&check_distro_file, "/etc/blackPanther-release", "blackpanther", "^Black Panther ( L|l)inux release ([\\d\\.]+)" ], --- system-tools-backends-2.6.0.orig/debian/patches/03_default_permissions.patch +++ system-tools-backends-2.6.0/debian/patches/03_default_permissions.patch @@ -0,0 +1,24 @@ +--- system-tools-backends.conf.orig 2008-05-28 13:20:52.246850438 +0200 ++++ system-tools-backends.conf 2008-05-28 13:24:07.867969323 +0200 +@@ -25,9 +25,7 @@ + + + +- +- +- ++ + + + +@@ -51,5 +49,10 @@ + so any message to them has to go through the dispatcher --> + + ++ ++ ++ ++ ++ + + --- system-tools-backends-2.6.0.orig/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch +++ system-tools-backends-2.6.0/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch @@ -0,0 +1,29 @@ +diff -Nur system-tools-backends-2.3.0/Network/Ifaces.pm system-tools-backends-2.3.0.new/Network/Ifaces.pm +--- system-tools-backends-2.3.0/Network/Ifaces.pm 2007-07-10 17:54:00.000000000 +0100 ++++ system-tools-backends-2.3.0.new/Network/Ifaces.pm 2007-07-10 17:56:17.000000000 +0100 +@@ -793,6 +793,17 @@ + return (&get_debian_auto_by_stanza ($file, $iface) ne undef)? 1 : 0; + } + ++sub set_network_config_permission ++{ ++ my ($key) = @_; ++ ++ if ($key) ++ { ++ chmod 0640, "/etc/network/interfaces"; ++ &Utils::File::run ("chgrp admin /etc/network/interfaces"); ++ } ++} ++ + sub set_debian_auto + { + my ($file, $iface, $value) = @_; +@@ -3087,6 +3098,7 @@ + [ "network", \&Utils::Replace::set_sh, IFCFG, NETWORK ], + [ "gateway", \&Utils::Replace::set_sh, IFCFG, GATEWAY ], + [ "essid", \&Utils::Replace::set_sh, IFCFG, WIRELESS_ESSID ], ++ [ "key", \&set_network_config_permission, "%key%"], + [ "key", \&Utils::Replace::set_sh, IFCFG, WIRELESS_KEY ], + [ "key_type", \&set_wep_key_full, [ \&Utils::Replace::set_sh, IFCFG, WIRELESS_KEY, "%key%" ]], + [ "update_dns", \&Utils::Replace::set_sh_bool, IFCFG, PEERDNS ],