]> git.pld-linux.org Git - packages/gnome-system-tools.git/blob - gnome-system-tools-PLD.patch
- updated PLD patch - network-admin done, but please test it
[packages/gnome-system-tools.git] / gnome-system-tools-PLD.patch
1 diff -urN aaa/gnome-system-tools-0.24.0/backends/boot-conf.in gnome-system-tools-0.24.0/backends/boot-conf.in
2 --- aaa/gnome-system-tools-0.24.0/backends/boot-conf.in Sat Mar  8 02:02:01 2003
3 +++ gnome-system-tools-0.24.0/backends/boot-conf.in     Mon Apr 28 13:39:53 2003
4 @@ -68,7 +68,7 @@
5                
6                "suse-7.0", "turbolinux-7.0",
7  
8 -              "slackware-9.0");
9 +              "slackware-9.0", "pld");
10  
11  $description =<<"end_of_description;";
12         Configures Boot manager (LILO and GRUB at the moment).
13 diff -urN aaa/gnome-system-tools-0.24.0/backends/platform.pl.in gnome-system-tools-0.24.0/backends/platform.pl.in
14 --- aaa/gnome-system-tools-0.24.0/backends/platform.pl.in       Tue Jan 14 22:33:55 2003
15 +++ gnome-system-tools-0.24.0/backends/platform.pl.in   Sun Apr 27 20:32:07 2003
16 @@ -59,7 +59,8 @@
17    "slackware-9.0"   => "Slackware 9.0",
18    "freebsd-4"       => "FreeBSD 4",
19    "freebsd-5"       => "FreeBSD 5",
20 -  "gentoo"          => "Gentoo Linux"
21 +  "gentoo"          => "Gentoo Linux",
22 +  "pld"             => "PLD Linux Distribution"
23  };
24    
25  sub check_lsb
26 @@ -201,6 +202,7 @@
27  sub check_gentoo
28  {
29    return "gentoo" if stat ("$xst_prefix/usr/portage");
30 +  return -1;
31  }
32  
33  sub check_linuxppc
34 @@ -261,6 +263,13 @@
35    return -1;
36  }
37  
38 +sub check_pld
39 +{
40 +  return "pld" if stat ("$xst_prefix/etc/pld-release");
41 +  return -1;
42 +}
43 +
44 +
45  sub xst_platform_guess
46  {
47    my ($tool) = @_;
48 @@ -278,7 +287,7 @@
49      # Red Hat check must run after Mandrake
50      "Linux" => [ \&check_lsb,      \&check_debian,   \&check_caldera, \&check_suse, 
51                   \&check_mandrake, \&check_linuxppc, \&check_redhat,  \&check_turbolinux,
52 -                 \&check_slackware, \&check_gentoo],
53 +                 \&check_slackware, \&check_gentoo,  \&check_pld ],
54      "FreeBSD" => [ \&check_freebsd ],
55      "SunOS"    => [ \&check_solaris ]
56                 );
57 diff -urN aaa/gnome-system-tools-0.24.0/backends/runlevel-conf.in gnome-system-tools-0.24.0/backends/runlevel-conf.in
58 --- aaa/gnome-system-tools-0.24.0/backends/runlevel-conf.in     Tue Jan 14 22:26:20 2003
59 +++ gnome-system-tools-0.24.0/backends/runlevel-conf.in Sun Apr 27 22:05:54 2003
60 @@ -48,7 +48,7 @@
61  
62                "debian-2.2", "debian-woody", "debian-sarge",
63  
64 -              "suse-7.0", "turbolinux-7.0");
65 +              "suse-7.0", "turbolinux-7.0", "pld");
66  
67  $description =<<"end_of_description;";
68         Configures which services are to be started or stopped at which runlevels
69 diff -urN aaa/gnome-system-tools-0.24.0/backends/service.pl.in gnome-system-tools-0.24.0/backends/service.pl.in
70 --- aaa/gnome-system-tools-0.24.0/backends/service.pl.in        Tue Jan 14 22:26:20 2003
71 +++ gnome-system-tools-0.24.0/backends/service.pl.in    Sun Apr 27 22:11:51 2003
72 @@ -67,7 +67,9 @@
73  
74         "suse-7.0"     => ["/etc/rc.d", "/etc/rc.d", "../"],
75  
76 -       "turbolinux-7.0"   => ["/etc/rc.d", "/etc/rc.d/init.d", "../init.d"]
77 +       "turbolinux-7.0"   => ["/etc/rc.d", "/etc/rc.d/init.d", "../init.d"],
78 +
79 +       "pld"          => ["/etc/rc.d", "/etc/rc.d/init.d", "../init.d"]
80         );
81    my $res;
82  
83 @@ -101,7 +103,9 @@
84  
85         "suse-7.0"       => [3, 5],
86  
87 -       "turbolinux-7.0" => [3, 5]
88 +       "turbolinux-7.0" => [3, 5],
89 +
90 +       "pld"            => [3, 5]
91         );
92    my $res;
93  
94 diff -urN aaa/gnome-system-tools-0.24.0/backends/time-conf.in gnome-system-tools-0.24.0/backends/time-conf.in
95 --- aaa/gnome-system-tools-0.24.0/backends/time-conf.in Tue Jan 14 22:26:20 2003
96 +++ gnome-system-tools-0.24.0/backends/time-conf.in     Sun Apr 27 22:42:40 2003
97 @@ -70,7 +70,7 @@
98               
99                "slackware-8.0.0", "slackware-9.0",
100  
101 -              "gentoo");
102 +              "gentoo", "pld");
103  
104  $description =<<"end_of_description;";
105         Configures your system clock, timezone and time server list.
106 @@ -439,7 +439,9 @@
107     "slackware-8.0.0" => "debian-2.2",
108     "slackware-9.0"   => "debian-2.2",
109  
110 -   "gentoo"          => "redhat-7.0"
111 +   "gentoo"          => "redhat-7.0",
112 +
113 +   "pld"             => "pld"
114     );
115  
116    my %dist_tables =
117 @@ -515,6 +517,24 @@
118                [ "sync_active",  \&xst_service_sysv_get_status, "xntpd" ],
119                [ "ntpinstalled", \&xst_service_sysv_installed, "xntpd" ],
120                ]
121 +                },
122 +
123 +       "pld" =>
124 +       {
125 +         fn =>
126 +         {
127 +           NTP_CONF     => "/etc/ntp/ntp.conf",
128 +           ZONEINFO     => "/usr/share/zoneinfo",
129 +           LOCAL_TIME   => "/etc/localtime"
130 +         },
131 +         table =>
132 +             [
133 +              [ "local_time",   \&time_get_local_time ],
134 +              [ "timezone",     \&time_get_rh62_zone, [LOCAL_TIME, ZONEINFO] ],
135 +              [ "sync",         \&xst_parse_split_all_hash_comment, NTP_CONF, "server", "[ \t]+" ],
136 +              [ "sync_active",  \&xst_service_sysv_get_status, "ntpd" ],
137 +              [ "ntpinstalled", \&xst_service_sysv_installed, "ntpd" ],
138 +              ]
139                  }
140         );
141  
142 @@ -551,7 +571,9 @@
143     "turbolinux-7.0"  => "redhat-7.0",
144     
145     "slackware-8.0.0" => "debian-2.2",
146 -   "slackware-9.0"   => "debian-2.2"
147 +   "slackware-9.0"   => "debian-2.2",
148 +
149 +   "pld"             => "pld"
150     );
151  
152    my %dist_tables =
153 @@ -623,6 +645,22 @@
154                [ "sync",         \&xst_replace_join_all, NTP_CONF, "server", "[ \t]+" ],
155                [ "sync_active",  \&xst_service_sysv_set_status, 90, "xntpd" ],
156                ]
157 +                },
158 +
159 +       "pld" =>
160 +       {
161 +         fn =>
162 +         {
163 +           NTP_CONF     => "/etc/ntp/ntp.conf",
164 +           ZONEINFO     => "/usr/share/zoneinfo",
165 +           LOCAL_TIME   => "/etc/localtime"
166 +         },
167 +         table =>
168 +             [
169 +              [ "timezone",     \&time_set_rh62_zone, [LOCAL_TIME, ZONEINFO] ],
170 +              [ "local_time",   \&xst_replace_join_all, NTP_CONF, "server", "[ \t]+" ],
171 +              [ "sync_active",  \&xst_service_sysv_set_status, 90, "ntpd" ],
172 +              ]
173                  }
174         );
175  
176 diff -urN aaa/gnome-system-tools-0.24.0/backends/users-conf.in gnome-system-tools-0.24.0/backends/users-conf.in
177 --- aaa/gnome-system-tools-0.24.0/backends/users-conf.in        Tue Jan 14 22:26:20 2003
178 +++ gnome-system-tools-0.24.0/backends/users-conf.in    Sun Apr 27 19:41:45 2003
179 @@ -78,7 +78,8 @@
180  
181                "slackware-8.0.0", "slackware-9.0",
182  
183 -              "freebsd-4", "freebsd-5");
184 +              "freebsd-4", "freebsd-5",
185 +              "pld");
186  
187  $description =<<"end_of_description;";
188         Manages system users.
189 @@ -229,6 +230,7 @@
190    'redhat-8.0'      => $rh_logindefs_defaults,
191    'mandrake-7.1'    => $rh_logindefs_defaults,
192    'mandrake-7.2'    => $rh_logindefs_defaults,
193 +  'pld'             => $rh_logindefs_defaults,
194  
195    # FIXME: I don't know about those, so using RH values for now.
196    'debian-2.2'      => $rh_logindefs_defaults,
This page took 0.066761 seconds and 3 git commands to generate.