summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rwxr-xr-xnetwork-conf.in8
-rw-r--r--network.pl.in5
-rw-r--r--package-conf.in1
-rw-r--r--platform.pl.in20
-rw-r--r--print.pl.in2
-rw-r--r--service.pl.in3
-rwxr-xr-xservices-conf.in1
-rwxr-xr-xshares-conf.in6
-rwxr-xr-xtime-conf.in8
-rw-r--r--users-conf.in2
11 files changed, 46 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index f4f66ba..6c9e3af 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-09 Gerhard Mourani <gmourani@openna.com>
+
+ * network-conf.in, network.pl.in, package-conf.in, platform.pl.in,
+ print.pl.in, service.pl.in, services-conf.in, shares-conf.in,
+ time-conf.in, users-conf.in: added OpenNA support
+
2003-10-08 Carlos Garnacho Parro <garnacho@tuxerver.net>
* xml.pl.in: (gst_xml_read_stdin) improved xml reading
diff --git a/network-conf.in b/network-conf.in
index 2e706c6..a7438a5 100755
--- a/network-conf.in
+++ b/network-conf.in
@@ -69,11 +69,9 @@ $name = "network";
$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",
-
- "mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1",
-
- "debian-2.2", "debian-woody", "debian-sarge",
-
+ "openna-1.0",
+ "mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1",
+ "debian-2.2", "debian-woody", "debian-sarge",
"suse-7.0", "turbolinux-7.0", "pld-1.0");
$description =<<"end_of_description;";
diff --git a/network.pl.in b/network.pl.in
index abb0414..5c34248 100644
--- a/network.pl.in
+++ b/network.pl.in
@@ -159,6 +159,7 @@ sub gst_network_get_broadcast_ping_cmd
"redhat-7.2" => "redhat-6.2",
"redhat-8.0" => "redhat-6.2",
"redhat-9" => "redhat-6.2",
+ "openna-1.0" => "redhat-6.2",
"debian-2.2" => "debian-2.2",
"debian-woody" => "debian-2.2",
"debian-sarge" => "debian-2.2",
@@ -1067,6 +1068,7 @@ sub gst_network_get_file
"redhat-7.2" => \&gst_network_rh72_get_file,
"redhat-8.0" => \&gst_network_rh72_get_file,
"redhat-9" => \&gst_network_rh72_get_file,
+ "openna-1.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,
@@ -2122,6 +2124,7 @@ sub gst_network_ensure_loopback_interface
"redhat-7.2" => "lo",
"redhat-8.0" => "lo",
"redhat-9" => "",
+ "openna-1.0" => "lo",
"mandrake-7.1" => "lo",
"mandrake-7.2" => "lo",
"mandrake-9.0" => "lo",
@@ -2225,6 +2228,7 @@ sub gst_network_get_parse_table
"redhat-7.2" => "redhat-7.2",
"redhat-8.0" => "redhat-7.2",
"redhat-9" => "redhat-7.2",
+ "openna-1.0" => "redhat-6.2",
"mandrake-7.1" => "redhat-6.2",
"mandrake-7.2" => "redhat-6.2",
"mandrake-9.0" => "redhat-7.0",
@@ -2488,6 +2492,7 @@ sub gst_network_get_interface_parse_table
"redhat-7.2" => "redhat-7.2",
"redhat-8.0" => "redhat-7.2",
"redhat-9" => "redhat-7.2",
+ "openna-1.0" => "redhat-6.2",
"mandrake-7.1" => "redhat-6.2",
"mandrake-7.2" => "redhat-6.2",
"mandrake-9.0" => "redhat-6.2",
diff --git a/package-conf.in b/package-conf.in
index 78b08bf..541d573 100644
--- a/package-conf.in
+++ b/package-conf.in
@@ -138,6 +138,7 @@ sub get_package
my %dist_map =
(
"redhat" => "$cmd_map{rpm}",
+ "openna" => "$cmd_map{rpm}",
"mandrake" => "$cmd_map{rpm}",
"suse" => "$cmd_map{rpm}",
"debian" => "$cmd_map{deb}",
diff --git a/platform.pl.in b/platform.pl.in
index ce2e694..fbee3c8 100644
--- a/platform.pl.in
+++ b/platform.pl.in
@@ -51,6 +51,7 @@ $PLATFORM_INFO = {
"redhat-7.3" => "Red Hat Linux 7.3 Valhalla",
"redhat-8.0" => "Red Hat Linux 8.0 Psyche",
"redhat-9" => "Red Hat Linux 9.0 Shrike",
+ "openna-1.0" => "OpenNA Linux 1.0 VSLC",
"mandrake-7.1" => "Linux Mandrake 7.1",
"mandrake-7.2" => "Linux Mandrake 7.2 Odyssey",
"mandrake-8.0" => "Linux Mandrake 8.0 Traktopel",
@@ -121,6 +122,21 @@ sub check_redhat
return -1;
}
+sub check_openna
+{
+ open OPENNA, "$gst_prefix/etc/openna-release" or return -1;
+ while (<OPENNA>)
+ {
+ chomp;
+ if (/^OpenNA*/)
+ {
+ close OPENNA;
+ return "openna-$1";
+ }
+ }
+ close OPENNA;
+ return -1;
+}
sub check_caldera
{
@@ -305,8 +321,8 @@ sub gst_platform_guess
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_slackware, \&check_gentoo, \&check_pld ],
+ \&check_mandrake, \&check_linuxppc, \&check_redhat, \&check_openna,
+ \&check_turbolinux, \&check_slackware, \&check_gentoo, \&check_pld ],
"FreeBSD" => [ \&check_freebsd ],
"SunOS" => [ \&check_solaris ]
);
diff --git a/print.pl.in b/print.pl.in
index 004b077..2f4f0c8 100644
--- a/print.pl.in
+++ b/print.pl.in
@@ -144,6 +144,7 @@ sub gst_print_get_printer_parse_table
(
"redhat-7.0" => "redhat-7.0",
"redhat-7.1" => "redhat-7.1",
+ "openna-1.0" => "redhat-7.0",
"debian-2.2" => "redhat-7.0",
"debian-woody" => "redhat-7.0"
);
@@ -244,6 +245,7 @@ sub gst_print_get_printer_replace_table
(
"redhat-7.0" => "redhat-7.0",
"redhat-7.1" => "redhat-7.1",
+ "openna-1.0" => "redhat-7.0",
"debian-2.2" => "redhat-7.0",
"debian-woody" => "redhat-7.0"
);
diff --git a/service.pl.in b/service.pl.in
index b6d45ca..2de6f9c 100644
--- a/service.pl.in
+++ b/service.pl.in
@@ -58,6 +58,7 @@ sub gst_service_sysv_get_paths
"redhat-7.3" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
"redhat-8.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
"redhat-9" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
+ "openna-1.0" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
"mandrake-7.1" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
"mandrake-7.2" => ["$gst_prefix/etc/rc.d", "$gst_prefix/etc/rc.d/init.d", "../init.d"],
@@ -97,6 +98,7 @@ sub gst_service_sysv_get_runlevels
"redhat-7.3" => [3, 5],
"redhat-8.0" => [3, 5],
"redhat-9" => [3, 5],
+ "openna-1.0" => [3, 5],
"mandrake-7.1" => [3, 5],
"mandrake-7.2" => [3, 5],
@@ -135,6 +137,7 @@ sub gst_service_get_verbose_runlevels
"redhat-7.3" => "redhat-5.2",
"redhat-8.0" => "redhat-5.2",
"redhat-9" => "redhat-5.2",
+ "openna-1.0" => "redhat-5.2",
"mandrake-7.1" => "redhat-5.2",
"mandrake-7.2" => "redhat-5.2",
diff --git a/services-conf.in b/services-conf.in
index 9f4b288..7d87e30 100755
--- a/services-conf.in
+++ b/services-conf.in
@@ -44,6 +44,7 @@ $name = "services";
$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-7.3", "redhat-8.0", "redhat-9",
+ "openna-1.0",
"mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1",
diff --git a/shares-conf.in b/shares-conf.in
index e4e8dce..96ffa9e 100755
--- a/shares-conf.in
+++ b/shares-conf.in
@@ -64,13 +64,10 @@ $name = "shares";
$version = "@VERSION@";
@platforms = ("redhat-5.2", "redhat-6.0", "redhat-6.1", "redhat-6.2", "redhat-7.0", "redhat-7.1",
"redhat-7.2",
-
+ "openna-1.0",
"mandrake-7.2",
-
"debian-2.2", "debian-woody",
-
"suse-7.0", "turbolinux-7.0");
-
# "freebsd-4", "freebsd-5");
$description =<<"end_of_description;";
@@ -88,6 +85,7 @@ $platmap =
"redhat-7.0" => "redhat-7.0",
"redhat-7.1" => "redhat-7.0",
"redhat-7.2" => "redhat-7.0",
+ "openna-1.0" => "redhat-7.0",
"debian-2.2" => "redhat-7.0",
"debian-woody" => "redhat-7.0",
"mandrake-7.2" => "redhat-7.0",
diff --git a/time-conf.in b/time-conf.in
index df3bc0b..aba0ecc 100755
--- a/time-conf.in
+++ b/time-conf.in
@@ -62,15 +62,11 @@ $name = "time";
$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-7.3", "redhat-8.0", "redhat-9",
-
+ "openna-1.0",
"mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1",
-
"debian-2.2", "debian-woody", "debian-sarge",
-
"suse-7.0", "turbolinux-7.0",
-
"slackware-8.0.0", "slackware-8.1", "slackware-9.0.0",
-
"gentoo", "pld-1.0");
$description =<<"end_of_description;";
@@ -426,6 +422,7 @@ sub conf_get_parse_table
"redhat-7.3" => "redhat-7.0",
"redhat-8.0" => "redhat-7.0",
"redhat-9" => "redhat-7.0",
+ "openna-1.0" => "redhat-7.0",
"mandrake-7.1" => "redhat-7.0",
"mandrake-7.2" => "redhat-7.0",
@@ -563,6 +560,7 @@ sub conf_get_replace_table
"redhat-7.3" => "redhat-7.0",
"redhat-8.0" => "redhat-7.0",
"redhat-9" => "redhat-7.0",
+ "openna-1.0" => "redhat-7.0",
"mandrake-7.1" => "redhat-7.0",
"mandrake-7.2" => "redhat-7.0",
diff --git a/users-conf.in b/users-conf.in
index 8c671ea..586991d 100644
--- a/users-conf.in
+++ b/users-conf.in
@@ -70,6 +70,7 @@ $name = "users";
$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-7.3", "redhat-8.0", "redhat-9",
+ "openna-1.0",
"mandrake-7.1", "mandrake-7.2", "mandrake-9.0", "mandrake-9.1",
"debian-2.2", "debian-woody", "debian-sarge",
"suse-7.0", "turbolinux-7.0",
@@ -232,6 +233,7 @@ my $logindefs_dist_map = {
'redhat-7.3' => $rh_logindefs_defaults,
'redhat-8.0' => $rh_logindefs_defaults,
'redhat-9' => $rh_logindefs_defaults,
+ 'openna-1.0' => $rh_logindefs_defaults,
'mandrake-7.1' => $rh_logindefs_defaults,
'mandrake-7.2' => $rh_logindefs_defaults,
'mandrake-9.0' => $rh_logindefs_defaults,