[Setup-tool-hackers] Platform & time & users patch for slack



Hi,

	Now in 1 file.


-- 

. ::          Álvaro Peña González (apg)         :: .
. ::             <alvaropg@mac.com>              :: .
. :: http://users.servicios.retecal.es/icekooder :: .

? platform_time_users_slack.diff
Index: backend/ChangeLog
===================================================================
RCS file: /cvs/gnome/setup-tools-backends/ChangeLog,v
retrieving revision 1.486
diff -u -5 -r1.486 ChangeLog
--- backend/ChangeLog	2002/02/08 19:17:30	1.486
+++ backend/ChangeLog	2002/04/22 23:50:19
@@ -1,5 +1,17 @@
+2002-04-22 Álvaro Peña <alvaropg@mac.com>
+
+	* platform.pl.in: Added Slackware 8.0.0 to platforms list
+	and check_slackware for check it.
+
+	* time-conf.in: Added slackware-8.0.0 to platforms list
+	(conf_get_replace_table & conf_get_parse_table): in dist_map
+	slackware-8.0.0 is like	debian-2.2
+
+	* users-conf.in: Added slackware-8.0.0 to platforms list
+	in logindefs_dist_map slackware-8.0.0 using rh_logindefs_defaults
+
 2002-02-08  Chema Celorio  <chema@celorio.com>
 
 	* configure.in: 0.12.0 here we go
 2002-01-07  Tambet Ingo  <tambet@ximian.com>
 
Index: backend/platform.pl.in
===================================================================
RCS file: /cvs/gnome/setup-tools-backends/platform.pl.in,v
retrieving revision 1.31
diff -u -5 -r1.31 platform.pl.in
--- backend/platform.pl.in	2001/12/18 18:35:23	1.31
+++ backend/platform.pl.in	2002/04/22 23:50:19
@@ -49,11 +49,12 @@
   "redhat-7.2"     => "Red Hat Linux 7.2 Enigma",
   "mandrake-7.1"   => "Linux Mandrake 7.1",
   "mandrake-7.2"   => "Linux Mandrake 7.2 Odyssey",
   "mandrake-8.0"   => "Linux Mandrake 8.0 Traktopel",
   "suse-7.0"       => "SuSE Linux 7.0",
-  "turbolinux-7.0" => "Turbolinux 7.0"
+  "turbolinux-7.0" => "Turbolinux 7.0",
+  "slackware-8.0.0" => "Slackware 8.0.0"
     };
   
 sub check_lsb
 {
   my ($ver, $dist);
@@ -164,10 +165,26 @@
   }
   close RELEASE;
   return -1;
 }
 
+sub check_slackware
+{
+  open SLACKWARE, "$xst_prefix/etc/slackware-version" or return -1;
+  while (<SLACKWARE>)
+  {
+    chomp;
+    if (/([0-9.]+)\s.*/)
+    {
+        close SLACKWARE;
+        return "slackware-$1";
+    }
+  }
+  close SLACWARE;
+  return -1;
+
+}
 
 sub check_linuxppc
 {
   open RELEASE, "$xst_prefix/etc/redhat-release" or return -1;
   while (<RELEASE>)
@@ -250,11 +267,12 @@
   # set $xst_dist and $xst_dist_version
   
   my %check = (
     # Red Hat check must run after Mandrake
     "linux" => [ \&check_lsb,      \&check_debian,   \&check_caldera, \&check_suse, 
-                 \&check_mandrake, \&check_linuxppc, \&check_redhat,  \&check_turbolinux],
+                 \&check_mandrake, \&check_linuxppc, \&check_redhat,  \&check_turbolinux,
+                 \&check_slackware],
     # Isn't just "freebsd" enough?
     "freebsdelf" => [ \&check_freebsd ],
     "solaris"    => [ \&check_solaris ]
                );
   my $plat;
Index: backend/time-conf.in
===================================================================
RCS file: /cvs/gnome/setup-tools-backends/time-conf.in,v
retrieving revision 1.74
diff -u -5 -r1.74 time-conf.in
--- backend/time-conf.in	2001/11/28 00:11:11	1.74
+++ backend/time-conf.in	2002/04/22 23:50:19
@@ -64,12 +64,14 @@
               
               "mandrake-7.1", "mandrake-7.2",
               
               "debian-2.2", "debian-woody",
 
-              "suse-7.0", "turbolinux-7.0");
+              "suse-7.0", "turbolinux-7.0",
 
+              "slackware-8.0.0");
+
 $description =<<"end_of_description;";
        Configures your system clock, timezone and time server list.
 end_of_description;
 
 $progress_max = 365;
@@ -421,12 +423,14 @@
 
    "debian-2.2"   => "debian-2.2",
    "debian-woody" => "debian-2.2",
 
    "suse-7.0"     => "suse-7.0",
+
+   "turbolinux-7.0" => "redhat-7.0",
 
-   "turbolinux-7.0" => "redhat-7.0"
+   "slackware-8.0.0" => "debian-2.2"
    );
 
   my %dist_tables =
       (
        "redhat-6.2" =>
@@ -527,12 +531,14 @@
 
    "debian-2.2"   => "debian-2.2",
    "debian-woody" => "debian-2.2",
 
    "suse-7.0"     => "suse-7.0",
+
+   "turbolinux-7.0"   => "redhat-7.0",
 
-   "turbolinux-7.0"   => "redhat-7.0"
+   "slackware-8.0.0"  => "debian-2.2"
    );
 
   my %dist_tables =
       (
        "redhat-6.2" =>
Index: backend/users-conf.in
===================================================================
RCS file: /cvs/gnome/setup-tools-backends/users-conf.in,v
retrieving revision 1.88
diff -u -5 -r1.88 users-conf.in
--- backend/users-conf.in	2001/12/15 00:02:45	1.88
+++ backend/users-conf.in	2002/04/22 23:50:20
@@ -71,12 +71,14 @@
 
               "mandrake-7.1", "mandrake-7.2",
 
               "debian-2.2", "debian-woody",
 
-              "suse-7.0", "turbolinux-7.0");
+              "suse-7.0", "turbolinux-7.0",
 
+              "slackware-8.0.0");
+
 #, "freebsd-4", "freebsd-5");
 
 $description =<<"end_of_description;";
        Manages system users.
 end_of_description;
@@ -227,10 +229,12 @@
   # FIXME: I don't know about those, so using RH values for now.
   'debian-2.2'     => $rh_logindefs_defaults,
   'debian-woody'   => $rh_logindefs_defaults,
   'suse-7.0'       => $rh_logindefs_defaults,
   'turbolinux-7.0' => $rh_logindefs_defaults,
+
+  'slackware-8.0.0' => $rh_logindefs_defaults 
 };
 
 
 # Add reporting table.
 

This is a digitally signed message part



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