r9551 - in /desktop/experimental/system-tools-backends/debian: ./
patches/
xaiki at users.alioth.debian.org
xaiki at users.alioth.debian.org
Sat Apr 7 07:35:35 UTC 2007
Author: xaiki
Date: Sat Apr 7 07:35:34 2007
New Revision: 9551
URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=9551
Log:
2.2
Added:
desktop/experimental/system-tools-backends/debian/
desktop/experimental/system-tools-backends/debian/changelog
desktop/experimental/system-tools-backends/debian/compat
desktop/experimental/system-tools-backends/debian/control
desktop/experimental/system-tools-backends/debian/control.in
desktop/experimental/system-tools-backends/debian/copyright
desktop/experimental/system-tools-backends/debian/patches/
desktop/experimental/system-tools-backends/debian/patches/01_debian_4.0.patch
desktop/experimental/system-tools-backends/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch
desktop/experimental/system-tools-backends/debian/rules (with props)
desktop/experimental/system-tools-backends/debian/system-tools-backends-dev.install
desktop/experimental/system-tools-backends/debian/system-tools-backends.init.dbus
desktop/experimental/system-tools-backends/debian/system-tools-backends.install
desktop/experimental/system-tools-backends/debian/system-tools-backends.postinst
desktop/experimental/system-tools-backends/debian/system-tools-backends.postrm
desktop/experimental/system-tools-backends/debian/system-tools-backends.preinst
desktop/experimental/system-tools-backends/debian/system-tools-backends.prerm
desktop/experimental/system-tools-backends/debian/watch
Added: desktop/experimental/system-tools-backends/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/changelog?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/changelog (added)
+++ desktop/experimental/system-tools-backends/debian/changelog Sat Apr 7 07:35:34 2007
@@ -1,0 +1,84 @@
+system-tools-backends (2.2.0-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)
+
+ [ Imported from Ubuntu]
+ * Imported patch 02ubuntu_chmod_network_interfaces_when_using_key.patch
+ * Imported *.{post,pre}{inst,rm} and dbus init script.
+
+ -- Niv Sardi <xaiki at debian.org> Sat, 7 Apr 2007 09:31:13 +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 <joss at debian.org> 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 <lool at dooz.org> Sun, 13 Aug 2006 15:28:40 +0200
+
+system-tools-backends (1.4.2-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Jordi Mallach <jordi at debian.org> 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ý <ondrej at sury.org> 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 <lool at dooz.org> 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) <Duck at DuckCorp.org> 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) <Duck at DuckCorp.org> 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) <Duck at DuckCorp.org> 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 <jsogo at debian.org> Wed, 20 Apr 2005 23:07:33 +0200
+
Added: desktop/experimental/system-tools-backends/debian/compat
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/compat?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/compat (added)
+++ desktop/experimental/system-tools-backends/debian/compat Sat Apr 7 07:35:34 2007
@@ -1,0 +1,1 @@
+5
Added: desktop/experimental/system-tools-backends/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/control?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/control (added)
+++ desktop/experimental/system-tools-backends/debian/control Sat Apr 7 07:35:34 2007
@@ -1,0 +1,33 @@
+Source: system-tools-backends
+Section: admin
+Priority: optional
+Maintainer: Jose Carlos Garcia Sogo <jsogo at debian.org>
+Uploaders: Debian GNOME Maintainers <pkg-gnome-maintainers at lists.alioth.debian.org>, Jordi Mallach <jordi at debian.org>, Josselin Mouette <joss at debian.org>, Loic Minier <lool at dooz.org>
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), cdbs, gnome-pkg-tools, libxml-parser-perl, intltool, libnet-dbus-perl, libdbus-1-dev (>= 0.35), libdbus-glib-1-dev, libglib2.0-dev
+
+Package: system-tools-backends
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: gnome-system-tools (<< 1.1)
+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 an standard
+ XML interface for modifying the configuration regarless of the
+ distribution that's being used.
+ .
+ These backends are used in GNOME System Tools.
+
+Package: system-tools-backends-dev
+Architecture: any
+Section: devel
+Depends: ${shlibs: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 an standard
+ XML interface for modifying the configuration regarless of the
+ distribution that's being used.
+ .
+ These backends are used in GNOME System Tools.
+
Added: desktop/experimental/system-tools-backends/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/control.in?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/control.in (added)
+++ desktop/experimental/system-tools-backends/debian/control.in Sat Apr 7 07:35:34 2007
@@ -1,0 +1,34 @@
+Source: system-tools-backends
+Section: admin
+Priority: optional
+Maintainer: Jose Carlos Garcia Sogo <jsogo at debian.org>
+Uploaders: @GNOME_TEAM@
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), cdbs, gnome-pkg-tools, libdbus-1-dev, libdbus-glib-1-dev, libglib2.0-dev
+Build-Depends: debhelper (>= 5), cdbs, gnome-pkg-tools, libxml-parser-perl, intltool, libnet-dbus-perl, libdbus-1-dev (>= 0.35), libdbus-glib-1-dev, libglib2.0-dev
+
+Package: system-tools-backends
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Replaces: gnome-system-tools (<< 1.1)
+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 an standard
+ XML interface for modifying the configuration regarless of the
+ distribution that's being used.
+ .
+ These backends are used in GNOME System Tools.
+
+Package: system-tools-backends-dev
+Architecture: any
+Section: devel
+Depends: ${shlibs: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 an standard
+ XML interface for modifying the configuration regarless of the
+ distribution that's being used.
+ .
+ These backends are used in GNOME System Tools.
+
Added: desktop/experimental/system-tools-backends/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/copyright?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/copyright (added)
+++ desktop/experimental/system-tools-backends/debian/copyright Sat Apr 7 07:35:34 2007
@@ -1,0 +1,26 @@
+This package was debianized by Marc Dequènes (Duck) <Duck at DuckCorp.org> on
+Fri, 15 Apr 2005 02:54:06 +0200.
+
+It was downloaded from ftp://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'.
+
Added: desktop/experimental/system-tools-backends/debian/patches/01_debian_4.0.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/patches/01_debian_4.0.patch?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/patches/01_debian_4.0.patch (added)
+++ desktop/experimental/system-tools-backends/debian/patches/01_debian_4.0.patch Sat Apr 7 07:35:34 2007
@@ -1,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\\.]+)" ],
Added: desktop/experimental/system-tools-backends/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch (added)
+++ desktop/experimental/system-tools-backends/debian/patches/02ubuntu_chmod_network_interfaces_when_using_key.patch Sat Apr 7 07:35:34 2007
@@ -1,0 +1,29 @@
+diff -Nur system-tools-backends-1.9.7/Network/Ifaces.pm system-tools-backends-1.9.7.new/Network/Ifaces.pm
+--- system-tools-backends-1.9.7/Network/Ifaces.pm 2006-10-06 00:16:51.000000000 +0200
++++ system-tools-backends-1.9.7.new/Network/Ifaces.pm 2006-10-11 23:29:38.000000000 +0200
+@@ -693,6 +693,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) = @_;
+@@ -3098,6 +3109,7 @@
+ [ "netmask", \&Utils::Replace::set_interfaces_option_str, [INTERFACES, IFACE], "netmask" ],
+ [ "gateway", \&Utils::Replace::set_interfaces_option_str, [INTERFACES, IFACE], "gateway" ],
+ [ "essid", \&Utils::Replace::set_interfaces_option_str, [INTERFACES, IFACE], "wireless-essid" ],
++ [ "key", \&set_network_config_permission, "%key%"],
+ [ "key", \&Utils::Replace::set_interfaces_option_str, [INTERFACES, IFACE], "wireless-key" ],
+ [ "key_type", \&set_wep_key_full, [ \&Utils::Replace::set_interfaces_option_str, INTERFACES, IFACE, "wireless-key", "%key%" ]],
+ # ugly hack for deleting undesired options (due to syntax duality)
Added: desktop/experimental/system-tools-backends/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/rules?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/rules (added)
+++ desktop/experimental/system-tools-backends/debian/rules Sat Apr 7 07:35:34 2007
@@ -1,0 +1,46 @@
+#!/usr/bin/make -f
+
+# Gnome Team
+include /usr/share/gnome-pkg-tools/1/rules/uploaders.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/perl
+5 --with-stb-group=root
+
+
+build/system-tools-backends::
+ # generate POT file for translators
+ cd po ; intltool-update --verbose -p
+
+binary-install/system-tols-backends::
+ mkdir -p debian/system-tools-backends/etc/dbus-1/event.d
+ install -m 755 debian/system-tools-backends.init.dbus \
+ debian/system-tools-backends/etc/dbus-1/event.d/70system-tools-backends
+
+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)
+
+
+
+
+
+
Propchange: desktop/experimental/system-tools-backends/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends-dev.install
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends-dev.install?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends-dev.install (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends-dev.install Sat Apr 7 07:35:34 2007
@@ -1,0 +1,1 @@
+debian/tmp/usr/lib usr/
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends.init.dbus
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends.init.dbus?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends.init.dbus (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends.init.dbus Sat Apr 7 07:35:34 2007
@@ -1,0 +1,77 @@
+#! /bin/sh
+#
+# system-tools-backends
+# dbus init script
+#
+# (Stolen from the hal package)
+# Written by Martin Waitz based on skeleton code
+# written by Miquel van Smoorenburg <miquels at cistron.nl>.
+# Modified for Debian
+# by Ian Murdock <imurdock at gnu.ai.mit.edu>.
+#
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/bin/system-tools-backends
+PIDFILE=/var/run/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
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends.install
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends.install?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends.install (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends.install Sat Apr 7 07:35:34 2007
@@ -1,0 +1,4 @@
+debian/tmp/usr/bin/system-tools-backends
+debian/tmp/usr/share/system-tools-backends-2.0
+debian/tmp/usr/share/dbus-1/services
+debian/tmp/etc/dbus-1/system.d
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends.postinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends.postinst?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends.postinst (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends.postinst Sat Apr 7 07:35:34 2007
@@ -1,0 +1,51 @@
+#! /bin/sh
+# postinst script for system-tools-backends
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# 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
+ if [ ! -e /var/run/system-tools-backends.pid ] || ! ps --no-headers -p $(< /var/run/system-tools-backends.pid) > /dev/null 2>&1; then
+ /etc/dbus-1/event.d/70system-tools-backends start || true
+ fi
+ 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#
+
+exit 0
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends.postrm
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends.postrm?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends.postrm (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends.postrm Sat Apr 7 07:35:34 2007
@@ -1,0 +1,14 @@
+#!/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#
+
+exit 0
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends.preinst
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends.preinst?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends.preinst (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends.preinst Sat Apr 7 07:35:34 2007
@@ -1,0 +1,9 @@
+#!/bin/sh -e
+
+# stop backend here when upgrading from a version that didn't handle
+# it correctly yet in the prerm
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl 2.1.0-0ubuntu2; then
+ /etc/dbus-1/event.d/70system-tools-backends stop || true
+fi
+
+#DEBHELPER#
Added: desktop/experimental/system-tools-backends/debian/system-tools-backends.prerm
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/system-tools-backends.prerm?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/system-tools-backends.prerm (added)
+++ desktop/experimental/system-tools-backends/debian/system-tools-backends.prerm Sat Apr 7 07:35:34 2007
@@ -1,0 +1,7 @@
+#!/bin/sh -e
+
+if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]; then
+ /etc/dbus-1/event.d/70system-tools-backends stop || true
+fi
+
+#DEBHELPER#
Added: desktop/experimental/system-tools-backends/debian/watch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/system-tools-backends/debian/watch?rev=9551&op=file
==============================================================================
--- desktop/experimental/system-tools-backends/debian/watch (added)
+++ desktop/experimental/system-tools-backends/debian/watch Sat Apr 7 07:35:34 2007
@@ -1,0 +1,4 @@
+version=2
+ftp://ftp.gnome.org/pub/GNOME/sources/system-tools-backends/1.4/ \
+ system-tools-backends-(.*)\.tar\.gz \
+ debian uupdate
More information about the pkg-gnome-commits
mailing list