[system-tools] [PATCH] Support for Black Panther Linux



Hi,

Attached to this message is a patch to add support for Black Panther Linux [1] 
to GST network backend. Black Panther Linux is an Hungarian distribution 
based on Mandrake Linux. The patch is against 0.34.0 version, but if you want 
I can make one against current CVS. Also, Black Panther's logo is atthached.

[1] http://www.blackpanther.hu


Cheers,
-- 
Juan Luis Baptiste
http://www.merlinux.org
http://knetworkconf.sf.net




diff -u backends.0.34/network-conf.in backends/network-conf.in
--- backends.0.34/network-conf.in	2004-07-17 15:37:14.000000000 -0400
+++ backends/network-conf.in	2004-07-14 16:07:49.000000000 -0400
@@ -68,7 +68,8 @@
 $version = "@VERSION@";
 @platforms = ("redhat-5.2", "redhat-6.0", "redhat-6.1", "redhat-6.2", "redhat-7.0", "redhat-7.1",
               "redhat-7.2", "redhat-8.0", "redhat-9",
-              "openna-1.0",              
+              "openna-1.0",      
+              "blackpanther-4.0",        
               "mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1", "mandrake-9.2",
               "mandrake-10.0", "mandrake-10.1",
               "debian-2.2", "debian-3.0", "debian-sarge",              
diff -u backends.0.34/network.pl.in backends/network.pl.in
--- backends.0.34/network.pl.in	2004-07-17 15:37:14.000000000 -0400
+++ backends/network.pl.in	2004-07-18 15:57:59.000000000 -0400
@@ -261,6 +261,7 @@
        "debian-2.2"   => "debian-2.2",
        "debian-3.0"   => "debian-2.2",
        "debian-sarge" => "debian-2.2",
+       "blackpanther-4.0-4.0" => "debian-2.2",
        "mandrake-7.1" => "debian-2.2",
        "mandrake-7.2" => "debian-2.2",
        "mandrake-9.0" => "debian-2.2",
@@ -1415,6 +1416,7 @@
     "redhat-8.0"   => \&gst_network_rh72_get_file,
     "redhat-9"     => \&gst_network_rh72_get_file,
 	  "openna-1.0"   => \&gst_network_rh62_get_file,
+    "blackpanther-4.0-4.0" => \&gst_network_rh62_get_file,
 	  "mandrake-7.2" => \&gst_network_rh62_get_file,
 		"mandrake-7.1" => \&gst_network_rh62_get_file,
 		"mandrake-9.0" => \&gst_network_rh62_get_file,
@@ -1611,7 +1613,7 @@
   my ($dev, $enabled) = @_;
 
   &gst_report_enter ();
-  
+
   if ($enabled)
   {
     &gst_report ("network_iface_activate", $dev);
@@ -3360,6 +3362,7 @@
     "redhat-8.0"   => "lo",
     "redhat-9"     => "",
 	  "openna-1.0"   => "lo",
+    "blackpanther-4.0-4.0" => "lo",
 	  "mandrake-7.1" => "lo",
 	  "mandrake-7.2" => "lo",
 	  "mandrake-9.0" => "lo",
@@ -3484,6 +3487,7 @@
     "mandrake-9.2" => "redhat-7.0",
     "mandrake-10.0" => "redhat-7.0",
     "mandrake-10.1" => "redhat-7.0",
+    "blackpanther-4.0-4.0" => "redhat-7.0",
     "conectiva-9"  => "redhat-7.0", 
     "conectiva-10" => "redhat-7.0", 
     "debian-2.2"   => "debian-2.2",
@@ -3889,6 +3893,7 @@
     "mandrake-9.2" => "mandrake-9.0",
     "mandrake-10.0" => "mandrake-9.0",
     "mandrake-10.1" => "mandrake-9.0",
+    "blackpanther-4.0-4.0" => "mandrake-9.0",    
     "conectiva-9"  => "conectiva-9",
     "conectiva-10" => "conectiva-9",
     "debian-2.2"   => "debian-2.2",
@@ -4565,6 +4570,7 @@
 	  "mandrake-9.2" => "redhat-7.0",
     "mandrake-10.0" => "redhat-7.0",
     "mandrake-10.1" => "redhat-7.0",
+    "blackpanther-4.0-4.0" => "redhat-7.0",
  	  "conectiva-9"  => "redhat-7.0",
  	  "conectiva-10" => "redhat-7.0",
     "debian-2.2"   => "debian-2.2",
@@ -4957,6 +4963,7 @@
     "mandrake-9.2" => "mandrake-9.0",
     "mandrake-10.0" => "mandrake-9.0",
     "mandrake-10.1" => "mandrake-9.0",
+    "blackpanther-4.0-4.0" => "mandrake-9.0",
     "conectiva-9"  => "conectiva-9",
     "conectiva-10" => "conectiva-9",
     "debian-2.2"   => "debian-2.2",
diff -u backends.0.34/platform.pl.in backends/platform.pl.in
--- backends.0.34/platform.pl.in	2004-07-17 15:37:14.000000000 -0400
+++ backends/platform.pl.in	2004-07-17 18:00:00.000000000 -0400
@@ -60,6 +60,7 @@
   "mandrake-9.2"    => "Linux Mandrake 9.2 FiveStar",
   "mandrake-10.0"   => "Linux Mandrake 10.0",
   "mandrake-10.1"   => "Linux Mandrake 10.1",
+  "blackpanther-4.0"    => "Black Panther Linux",
   "conectiva-9"     => "Conectiva Linux 9",
   "conectiva-10"    => "Conectiva Linux 10",
   "suse-7.0"        => "SuSE Linux 7.0",
@@ -87,6 +88,7 @@
       ("Debian" => "debian"),
       ("Mandrake" => "mandrake"),
       ("Conectiva" => "conectiva");
+      ("Blackpanther" => "blackpanther"),
 
   # gst_prefix not required here: parse already does that for us.
   $dist = lc (&gst_parse_sh ("/etc/lsb-release", "DISTRIB_ID"));
@@ -202,6 +204,28 @@
   return -1;
 }
 
+sub check_blackpanther
+{
+  open BLACKPANTHER, "$gst_prefix/etc/blackPanther-release" or return -1;
+  while (<BLACKPANTHER>)
+  {
+    $ver = $_;
+    chomp ($ver);
+    if ($ver =~ /^Linux Black Panther release (\S+)/)
+    {
+      close BLACKPANTHER;
+      return "blackPanther-$1";    
+    }
+    elsif ($ver =~ /^Black Panther ( L|l)inux release ([\d\.]+)/i)
+    {
+      close BLACKPANTHER;
+      return "blackPanther-$2";     
+    }
+  }
+  close BLACKPANTHER;
+  return -1;
+}
+
 sub check_fedora
 {
     open FEDORA, "$gst_prefix/etc/fedora-release" or return -1;
@@ -368,7 +392,7 @@
   my %check = (
     # Red Hat check must run after Mandrake and Fedora
     "Linux" => [ \&check_lsb,      \&check_debian,   \&check_caldera, \&check_suse, 
-                 \&check_fedora, \&check_mandrake, \&check_conectiva, \&check_linuxppc, \&check_redhat,  \&check_openna,
+                 \&check_fedora, \&check_mandrake, \&check_conectiva, \&check_blackpanther, \&check_linuxppc, \&check_redhat,  \&check_openna,
                  \&check_turbolinux, \&check_slackware, \&check_gentoo,  \&check_pld ],
     "FreeBSD" => [ \&check_freebsd ],
     "SunOS"    => [ \&check_solaris ]
diff -u backends.0.34/service.pl.in backends/service.pl.in
--- backends.0.34/service.pl.in	2004-07-17 15:37:14.000000000 -0400
+++ backends/service.pl.in	2004-07-14 16:04:36.000000000 -0400
@@ -68,6 +68,8 @@
        "mandrake-10.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
        "mandrake-10.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
 
+       "blackpanther-4.0" => ["$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"],
        "conectiva-10" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
 
@@ -119,6 +121,8 @@
        "mandrake-10.0"  => [3, 5],
        "mandrake-10.1"  => [3, 5],
 
+       "blackpanther-4.0"  => [3, 5],
+       
        "conectiva-9"    => [3, 5],
        "conectiva-10"   => [3, 5],
 
@@ -170,6 +174,8 @@
      "mandrake-10.0"  => "redhat-5.2",
      "mandrake-10.1"  => "redhat-5.2",
      
+     "blackpanther-4.0"  => "redhat-5.2",
+     
      "conectiva-9"    => "redhat-5.2",
      "conectiva-10"   => "redhat-5.2",

Attachment: blackpanther.png
Description: PNG image



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