[Setup-tool-hackers] Platform & time.conf patch for slackware 8.0.0



I make the port of time tool to slackware, and I believe that it go
fine. Basically I do that slackware-8.0.0 is as debian-2.2. I attach the
patchs.

Saludos.

-- 

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

--- platform.pl.in	Mon Apr 22 07:53:09 2002
+++ platform.pl.in	Mon Apr 22 07:25:32 2002
@@ -51,7 +51,8 @@
   "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
@@ -166,6 +167,22 @@
   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
 {
@@ -252,7 +269,8 @@
   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 ]
--- time-conf.in	Mon Apr 22 07:53:09 2002
+++ time-conf.in	Mon Apr 22 07:26:40 2002
@@ -66,7 +66,9 @@
               
               "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.
@@ -424,7 +426,9 @@
 
    "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 =
@@ -530,7 +534,9 @@
 
    "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 =

This is a digitally signed message part



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