[Setup-tool-hackers] Patch: port time tool to SuSE 9.0



Attached, as per $SUBJECT
-- 
James Ogley, Webmaster, Rubber Turnip james@rubberturnip.org.uk
http://www.rubberturnip.org.uk Jabber: riggwelter@myjabber.net
Using Free Software since 1994, running GNU/Linux (SuSE 9.0)
GNOME updates for SuSE: http://www.usr-local-bin.org

diff -ruN gnome-system-tools-0.32.0.orig/backends/service.pl.in gnome-system-tools-0.32.0/backends/service.pl.in
--- gnome-system-tools-0.32.0.orig/backends/service.pl.in	2004-01-23 21:00:28.000000000 +0000
+++ gnome-system-tools-0.32.0/backends/service.pl.in	2004-02-05 09:31:53.000000000 +0000
@@ -71,6 +71,7 @@
        "debian-sarge" => ["$gst_prefix/etc", "$gst_prefix/etc/init.d", "../init.d"],
 
        "suse-7.0"     => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d", "../"],
+       "suse-9.0"     => ["$gst_prefix/etc/init.d", "$gst_prefix/etc/init.d", "../"],
 
        "turbolinux-7.0"   => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
 
@@ -116,6 +117,7 @@
        "debian-sarge"   => [2, 3],
 
        "suse-7.0"       => [3, 5],
+       "suse-9.0"       => [3, 5],
 
        "turbolinux-7.0" => [3, 5],
 
@@ -160,6 +162,7 @@
      "debian-sarge"   => "debian-2.2",
      
      "suse-7.0"       => "redhat-5.2",
+     "suse-9.0"       => "redhat-5.2",
      
      "turbolinux-7.0" => "redhat-5.2",
      "pld-1.0"        => "redhat-5.2",
diff -ruN gnome-system-tools-0.32.0.orig/backends/time-conf.in gnome-system-tools-0.32.0/backends/time-conf.in
--- gnome-system-tools-0.32.0.orig/backends/time-conf.in	2004-01-23 21:00:28.000000000 +0000
+++ gnome-system-tools-0.32.0/backends/time-conf.in	2004-02-05 09:39:03.000000000 +0000
@@ -7,6 +7,7 @@
 #
 # Authors: Hans Petter Jansson <hpj@ximian.com>
 #          Grzegorz Golawski <grzegol@pld-linux.org> (PLD Support)
+#          James Ogley <james@usr-local-bin.org> (SuSE 9.0 support)
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Library General Public License as published
@@ -65,7 +66,7 @@
               "openna-1.0",
               "mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1", "mandrake-9.2",
               "debian-2.2", "debian-3.0", "debian-sarge",
-              "suse-7.0", "turbolinux-7.0",
+              "suse-7.0", "suse-9.0", "turbolinux-7.0",
               "slackware-8.0.0", "slackware-8.1", "slackware-9.0.0", "slackware-9.1.0",
               "gentoo", "pld-1.0", "pld-1.1", "pld-1.99", "fedora-1");
 
@@ -436,6 +437,7 @@
    "debian-sarge"    => "debian-3.0",
 
    "suse-7.0"        => "suse-7.0",
+   "suse-9.0"        => "suse-9.0",
 
    "turbolinux-7.0"  => "redhat-7.0",
    
@@ -545,6 +547,24 @@
               ]
                 },
 
+       "suse-9.0" =>
+       {
+         fn =>
+         {
+           NTP_CONF     => "/etc/ntp.conf",
+           ZONEINFO     => "/usr/share/zoneinfo",
+           LOCAL_TIME    => "/etc/localtime"
+         },
+         table =>
+             [
+              [ "local_time",   \&time_get_local_time ],
+              [ "timezone",     \&time_get_rh62_zone, [LOCAL_TIME, ZONEINFO] ],
+              [ "sync",         \&gst_parse_split_all_hash_comment, NTP_CONF, "server", "[ \t]+" ],
+              [ "sync_active",  \&gst_service_sysv_get_status, "xntpd" ],
+              [ "ntpinstalled", \&gst_service_sysv_installed, "xntpd" ],
+              ]
+                },
+
        "pld-1.0" =>
        {
          fn =>
@@ -598,6 +618,7 @@
    "debian-sarge"    => "debian-3.0",
 
    "suse-7.0"        => "suse-7.0",
+   "suse-9.0"        => "suse-9.0",
 
    "turbolinux-7.0"  => "redhat-7.0",
    
@@ -701,6 +722,23 @@
               ]
                 },
 
+       "suse-9.0" =>
+       {
+         fn =>
+         {
+           NTP_CONF     => "/etc/ntp.conf",
+           ZONEINFO     => "/usr/share/zoneinfo",
+           LOCAL_TIME    => "/etc/localtime"
+         },
+         table =>
+             [
+              [ "timezone",     \&time_set_rh62_zone, [LOCAL_TIME, ZONEINFO] ],
+              [ "local_time",   \&time_set_local_time ],
+              [ "sync",         \&gst_replace_join_all, NTP_CONF, "server", "[ \t]+" ],
+              [ "sync_active",  \&gst_service_sysv_set_status, 90, "xntpd", "%sync_active%" ],
+              ]
+                },
+
        "pld-1.0" =>
        {
          fn =>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]