]> git.pld-linux.org Git - packages/MigrationTools.git/blob - MigrationTools-38-instdir.patch
- removed services patch, it's wrong, fix rather /etc/services
[packages/MigrationTools.git] / MigrationTools-38-instdir.patch
1 We know where these scripts are going to be installed, so add the necessary
2 magic to let them be called from anywhere.
3
4 --- MigrationTools-38/migrate_all_netinfo_offline.sh    Thu Jul 16 07:51:12 1998
5 +++ MigrationTools-38/migrate_all_netinfo_offline.sh    Wed Jun 20 18:19:17 2001
6 @@ -38,6 +38,7 @@
7  
8  PATH=$PATH:.
9  export PATH
10 +INSTDIR=/usr/share/MigrationTools/
11  
12  TMPDIR="/tmp"
13  ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
14 @@ -68,7 +69,7 @@
15  nidump networks $DOM > $ETC_NETWORKS
16  nidump aliases $DOM > $ETC_ALIASES
17  
18 -. migrate_all_offline.sh
19 +. ${INSTDIR}migrate_all_offline.sh
20  
21  rm -f $ETC_PASSWD
22  rm -f $ETC_GROUP
23 --- MigrationTools-38/migrate_all_netinfo_online.sh     Thu Jul 16 07:51:12 1998
24 +++ MigrationTools-38/migrate_all_netinfo_online.sh     Wed Jun 20 18:19:17 2001
25 @@ -38,6 +38,7 @@
26  
27  PATH=$PATH:.
28  export PATH
29 +INSTDIR=/usr/share/MigrationTools/
30  
31  TMPDIR="/tmp"
32  ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
33 @@ -68,7 +69,7 @@
34  nidump networks $DOM > $ETC_NETWORKS
35  nidump aliases $DOM > $ETC_ALIASES
36  
37 -. migrate_all_online.sh
38 +. ${INSTDIR}migrate_all_online.sh
39  
40  rm -f $ETC_PASSWD
41  rm -f $ETC_GROUP
42 --- MigrationTools-38/migrate_all_nis_offline.sh        Thu Jul 16 07:51:12 1998
43 +++ MigrationTools-38/migrate_all_nis_offline.sh        Wed Jun 20 18:19:17 2001
44 @@ -38,6 +38,7 @@
45  
46  PATH=$PATH:.
47  export PATH
48 +INSTDIR=/usr/share/MigrationTools/
49  
50  TMPDIR="/tmp"
51  ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
52 @@ -70,7 +71,7 @@
53  ypcat $DOMFLAG networks > $ETC_NETWORKS
54  #ypcat $DOMFLAG -k aliases > $ETC_ALIASES
55  
56 -. migrate_all_offline.sh
57 +. ${INSTDIR}migrate_all_offline.sh
58  
59  rm -f $ETC_PASSWD
60  rm -f $ETC_GROUP
61 --- MigrationTools-38/migrate_all_nis_online.sh Thu Jul 16 07:51:12 1998
62 +++ MigrationTools-38/migrate_all_nis_online.sh Wed Jun 20 18:19:17 2001
63 @@ -38,7 +38,7 @@
64  
65  PATH=$PATH:.
66  export PATH
67 -
68 +INSTDIR=/usr/share/MigrationTools/
69  
70  TMPDIR="/tmp"
71  ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
72 @@ -71,7 +71,7 @@
73  ypcat $DOMFLAG networks > $ETC_NETWORKS
74  #ypcat $DOMFLAG -k aliases > $ETC_ALIASES
75  
76 -. migrate_all_online.sh
77 +. ${INSTDIR}migrate_all_online.sh
78  
79  rm -f $ETC_PASSWD
80  rm -f $ETC_GROUP
81 --- MigrationTools-38/migrate_all_nisplus_offline.sh    Fri Feb  2 09:20:56 2001
82 +++ MigrationTools-38/migrate_all_nisplus_offline.sh    Wed Jun 20 18:19:17 2001
83 @@ -38,6 +38,7 @@
84  
85  PATH=$PATH:/usr/lib/nis:.
86  export PATH
87 +INSTDIR=/usr/share/MigrationTools/
88  
89  TMPDIR="/tmp"
90  ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
91 @@ -72,7 +73,7 @@
92  nisaddent -d netgroup $DOM > $ETC_NETGROUP
93  niscat mail_aliases.org_dir.$DOM > $ETC_ALIASES
94  
95 -. migrate_all_offline.sh
96 +. ${INSTDIR}migrate_all_offline.sh
97  
98  rm -f $ETC_PASSWD
99  rm -f $ETC_GROUP
100 --- MigrationTools-38/migrate_all_nisplus_online.sh     Fri Feb  2 09:20:56 2001
101 +++ MigrationTools-38/migrate_all_nisplus_online.sh     Wed Jun 20 18:19:17 2001
102 @@ -38,7 +38,7 @@
103  
104  PATH=$PATH:.
105  export PATH
106 -
107 +INSTDIR=/usr/share/MigrationTools/
108  
109  TMPDIR="/tmp"
110  ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
111 @@ -73,7 +73,7 @@
112  nisaddent -d netgroup $DOM > $ETC_NETGROUP
113  niscat mail_aliases.org_dir.$DOM > $ETC_ALIASES
114  
115 -. migrate_all_online.sh
116 +. ${INSTDIR}migrate_all_online.sh
117  
118  rm -f $ETC_PASSWD
119  rm -f $ETC_GROUP
120 --- MigrationTools-38/migrate_all_offline.sh    Tue Oct 17 02:33:33 2000
121 +++ MigrationTools-38/migrate_all_offline.sh    Wed Jun 20 18:19:17 2001
122 @@ -41,6 +41,7 @@
123  # Luke Howard <lukeh@padl.com> April 1997
124  #
125  
126 +INSTDIR=/usr/share/MigrationTools/
127  DB="/tmp/nis.$$.ldif"
128  
129  if [ "X$ETC_ALIASES" = "X" ]; then
130 @@ -108,32 +109,32 @@
131  fi
132  
133  echo "Creating naming context entries..."
134 -$PERL migrate_base.pl          > $DB
135 +$PERL -I${INSTDIR} ${INSTDIR}migrate_base.pl           > $DB
136  echo "Migrating aliases..."
137 -$PERL migrate_aliases.pl       $ETC_ALIASES >> $DB
138 +$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl        $ETC_ALIASES >> $DB
139  #echo "Migrating fstab..."
140 -#$PERL migrate_fstab.pl                $ETC_FSTAB >> $DB
141 +#$PERL -I${INSTDIR} ${INSTDIR}migrate_fstab.pl         $ETC_FSTAB >> $DB
142  echo "Migrating groups..."
143 -$PERL migrate_group.pl         $ETC_GROUP >> $DB
144 +$PERL -I${INSTDIR} ${INSTDIR}migrate_group.pl          $ETC_GROUP >> $DB
145  echo "Migrating hosts..."
146 -$PERL migrate_hosts.pl         $ETC_HOSTS >> $DB
147 +$PERL -I${INSTDIR} ${INSTDIR}migrate_hosts.pl          $ETC_HOSTS >> $DB
148  echo "Migrating networks..."
149 -$PERL migrate_networks.pl      $ETC_NETWORKS >> $DB
150 +$PERL -I${INSTDIR} ${INSTDIR}migrate_networks.pl       $ETC_NETWORKS >> $DB
151  echo "Migrating users..."
152 -$PERL migrate_passwd.pl                $ETC_PASSWD >> $DB
153 +$PERL -I${INSTDIR} ${INSTDIR}migrate_passwd.pl         $ETC_PASSWD >> $DB
154  echo "Migrating protocols..."
155 -$PERL migrate_protocols.pl     $ETC_PROTOCOLS >> $DB
156 +$PERL -I${INSTDIR} ${INSTDIR}migrate_protocols.pl      $ETC_PROTOCOLS >> $DB
157  echo "Migrating rpcs..."
158 -$PERL migrate_rpc.pl           $ETC_RPC >> $DB
159 +$PERL -I${INSTDIR} ${INSTDIR}migrate_rpc.pl            $ETC_RPC >> $DB
160  echo "Migrating services..."
161 -$PERL migrate_services.pl      $ETC_SERVICES >> $DB
162 +$PERL -I${INSTDIR} ${INSTDIR}migrate_services.pl       $ETC_SERVICES >> $DB
163  echo "Migrating netgroups..."
164 -$PERL migrate_netgroup.pl      $ETC_NETGROUP >> $DB
165 +$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup.pl       $ETC_NETGROUP >> $DB
166  echo "Importing into LDAP..."
167  echo "Migrating netgroups (by user)..."
168 -$PERL migrate_netgroup_byuser.pl       $ETC_NETGROUP >> $DB
169 +$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byuser.pl        $ETC_NETGROUP >> $DB
170  echo "Migrating netgroups (by host)..."
171 -$PERL migrate_netgroup_byhost.pl       $ETC_NETGROUP >> $DB
172 +$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl        $ETC_NETGROUP >> $DB
173  echo "Preparing LDAP database..."
174  if [ "X$SLAPADD" = "X" ]; then
175         $LDIF2LDBM -i $DB
176 --- MigrationTools-38/migrate_all_online.sh     Sat Jan  6 22:39:20 2001
177 +++ MigrationTools-38/migrate_all_online.sh     Wed Jun 20 18:19:17 2001
178 @@ -38,6 +38,8 @@
179  SHELL=/bin/sh
180  export SHELL
181  
182 +INSTDIR=/usr/share/MigrationTools/
183 +
184  DB=/tmp/nis.$$.ldif
185  
186  if [ "X$ETC_ALIASES" = "X" ]; then
187 @@ -104,7 +106,7 @@
188  fi
189  
190  if [ "X$LDAP_BASEDN" = "X" ]; then
191 -       defaultcontext=`$PERL -e 'require "migrate_common.ph"; print \$DEFAULT_BASE';`
192 +       defaultcontext=`$PERL -I${INSTDIR} -e 'require "'${INSTDIR}migrate_common.ph'"; print \$DEFAULT_BASE';`
193         question="Enter the X.500 naming context you wish to import into: [$defaultcontext]"
194         echo "$question " | tr -d '\012' > /dev/tty
195         read LDAP_BASEDN
196 @@ -160,35 +162,35 @@
197  echo "Importing into $LDAP_BASEDN..."
198  echo
199  echo "Creating naming context entries..."
200 -$PERL migrate_base.pl -n               > $DB
201 +$PERL -I${INSTDIR} ${INSTDIR}migrate_base.pl -n                > $DB
202  if [ "X$LDAP_PROFILE" = "Xyes" ]; then
203         echo "Creating DUAConfigProfile entry..."
204 -       $PERL migrate_profile.pl "$LDAPHOST" >> $DB
205 +       $PERL -I${INSTDIR} ${INSTDIR}migrate_profile.pl "$LDAPHOST" >> $DB
206  fi
207  echo "Migrating aliases..."
208 -$PERL migrate_aliases.pl       $ETC_ALIASES >> $DB
209 +$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl        $ETC_ALIASES >> $DB
210  #echo "Migrating fstab..."
211 -#$PERL migrate_fstab.pl                $ETC_FSTAB >> $DB
212 +#$PERL -I${INSTDIR} ${INSTDIR}migrate_fstab.pl         $ETC_FSTAB >> $DB
213  echo "Migrating groups..."
214 -$PERL migrate_group.pl         $ETC_GROUP >> $DB
215 +$PERL -I${INSTDIR} ${INSTDIR}migrate_group.pl          $ETC_GROUP >> $DB
216  echo "Migrating hosts..."
217 -$PERL migrate_hosts.pl         $ETC_HOSTS >> $DB
218 +$PERL -I${INSTDIR} ${INSTDIR}migrate_hosts.pl          $ETC_HOSTS >> $DB
219  echo "Migrating networks..."
220 -$PERL migrate_networks.pl      $ETC_NETWORKS >> $DB
221 +$PERL -I${INSTDIR} ${INSTDIR}migrate_networks.pl       $ETC_NETWORKS >> $DB
222  echo "Migrating users..."
223 -$PERL migrate_passwd.pl                $ETC_PASSWD >> $DB
224 +$PERL -I${INSTDIR} ${INSTDIR}migrate_passwd.pl         $ETC_PASSWD >> $DB
225  echo "Migrating protocols..."
226 -$PERL migrate_protocols.pl     $ETC_PROTOCOLS >> $DB
227 +$PERL -I${INSTDIR} ${INSTDIR}migrate_protocols.pl      $ETC_PROTOCOLS >> $DB
228  echo "Migrating rpcs..."
229 -$PERL migrate_rpc.pl           $ETC_RPC >> $DB
230 +$PERL -I${INSTDIR} ${INSTDIR}migrate_rpc.pl            $ETC_RPC >> $DB
231  echo "Migrating services..."
232 -$PERL migrate_services.pl      $ETC_SERVICES >> $DB
233 +$PERL -I${INSTDIR} ${INSTDIR}migrate_services.pl       $ETC_SERVICES >> $DB
234  echo "Migrating netgroups..."
235 -$PERL migrate_netgroup.pl      $ETC_NETGROUP >> $DB
236 +$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup.pl       $ETC_NETGROUP >> $DB
237  echo "Migrating netgroups (by user)..."
238 -$PERL migrate_netgroup_byuser.pl       $ETC_NETGROUP >> $DB
239 +$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byuser.pl        $ETC_NETGROUP >> $DB
240  echo "Migrating netgroups (by host)..."
241 -$PERL migrate_netgroup_byhost.pl       $ETC_NETGROUP >> $DB
242 +$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl        $ETC_NETGROUP >> $DB
243  
244  echo "Importing into LDAP..."
245  
246 --- MigrationTools-38/migrate_aliases.pl        Wed Jun 20 18:20:06 2001
247 +++ MigrationTools-38/migrate_aliases.pl        Wed Jun 20 18:20:28 2001
248 @@ -36,7 +36,7 @@
249  # thanks to Dave McPike
250  #
251  
252 -require 'migrate_common.ph';
253 +require '/usr/share/MigrationTools/migrate_common.ph';
254  
255  $PROGRAM = "migrate_aliases.pl";
256  $NAMINGCONTEXT = &getsuffix($PROGRAM);
257 --- MigrationTools-38/migrate_automount.pl      Wed Jun 20 18:20:06 2001
258 +++ MigrationTools-38/migrate_automount.pl      Wed Jun 20 18:20:35 2001
259 @@ -33,7 +33,7 @@
260  # services migration tool
261  #
262  
263 -require 'migrate_common.ph';
264 +require '/usr/share/MigrationTools/migrate_common.ph';
265   
266  $PROGRAM = "migrate_automount.pl"; 
267  $NAMINGCONTEXT = &getsuffix($PROGRAM);
268 --- MigrationTools-38/migrate_base.pl   Wed Jun 20 18:20:06 2001
269 +++ MigrationTools-38/migrate_base.pl   Wed Jun 20 18:20:51 2001
270 @@ -36,7 +36,7 @@
271  #
272  #
273  
274 -require 'migrate_common.ph';
275 +require '/usr/share/MigrationTools/migrate_common.ph';
276  
277  $PROGRAM = "migrate_base.pl";
278  $NAMINGCONTEXT = &getsuffix($PROGRAM);
279 --- MigrationTools-38/migrate_fstab.pl  Wed Jun 20 18:20:06 2001
280 +++ MigrationTools-38/migrate_fstab.pl  Wed Jun 20 18:20:57 2001
281 @@ -37,7 +37,7 @@
282  # They are used by MacOS X Server, however.
283  #
284  
285 -require 'migrate_common.ph';
286 +require '/usr/share/MigrationTools/migrate_common.ph';
287  
288  $PROGRAM = "migrate_fstab.pl";
289  $NAMINGCONTEXT = &getsuffix($PROGRAM);
290 --- MigrationTools-38/migrate_group.pl  Wed Jun 20 18:20:06 2001
291 +++ MigrationTools-38/migrate_group.pl  Wed Jun 20 18:21:01 2001
292 @@ -36,7 +36,7 @@
293  #
294  #
295  
296 -require 'migrate_common.ph';
297 +require '/usr/share/MigrationTools/migrate_common.ph';
298  
299  $PROGRAM = "migrate_group.pl";
300  $NAMINGCONTEXT = &getsuffix($PROGRAM);
301 --- MigrationTools-38/migrate_hosts.pl  Wed Jun 20 18:20:06 2001
302 +++ MigrationTools-38/migrate_hosts.pl  Wed Jun 20 18:21:03 2001
303 @@ -36,7 +36,7 @@
304  #
305  #
306  
307 -require 'migrate_common.ph';
308 +require '/usr/share/MigrationTools/migrate_common.ph';
309  
310  $PROGRAM = "migrate_hosts.pl";
311  $NAMINGCONTEXT = &getsuffix($PROGRAM);
312 --- MigrationTools-38/migrate_netgroup.pl       Wed Jun 20 18:20:06 2001
313 +++ MigrationTools-38/migrate_netgroup.pl       Wed Jun 20 18:21:06 2001
314 @@ -36,7 +36,7 @@
315  #
316  #
317  
318 -require 'migrate_common.ph';
319 +require '/usr/share/MigrationTools/migrate_common.ph';
320  
321  $PROGRAM = "migrate_netgroup.pl";
322  $NAMINGCONTEXT = &getsuffix($PROGRAM);
323 --- MigrationTools-38/migrate_netgroup_byhost.pl        Wed Jun 20 18:20:06 2001
324 +++ MigrationTools-38/migrate_netgroup_byhost.pl        Wed Jun 20 18:21:09 2001
325 @@ -36,7 +36,7 @@
326  #
327  #
328  
329 -require 'migrate_common.ph';
330 +require '/usr/share/MigrationTools/migrate_common.ph';
331  
332  $PROGRAM = "migrate_netgroup_byhost.pl";
333  $NAMINGCONTEXT = &getsuffix($PROGRAM);
334 --- MigrationTools-38/migrate_netgroup_byuser.pl        Wed Jun 20 18:20:06 2001
335 +++ MigrationTools-38/migrate_netgroup_byuser.pl        Wed Jun 20 18:21:12 2001
336 @@ -36,7 +36,7 @@
337  #
338  #
339  
340 -require 'migrate_common.ph';
341 +require '/usr/share/MigrationTools/migrate_common.ph';
342  
343  $PROGRAM = "migrate_netgroup_byuser.pl";
344  $NAMINGCONTEXT = &getsuffix($PROGRAM);
345 --- MigrationTools-38/migrate_networks.pl       Wed Jun 20 18:20:06 2001
346 +++ MigrationTools-38/migrate_networks.pl       Wed Jun 20 18:21:14 2001
347 @@ -36,7 +36,7 @@
348  #
349  #
350  
351 -require 'migrate_common.ph';
352 +require '/usr/share/MigrationTools/migrate_common.ph';
353  
354  $PROGRAM = "migrate_networks.pl";
355  $NAMINGCONTEXT = &getsuffix($PROGRAM);
356 --- MigrationTools-38/migrate_passwd.pl Wed Jun 20 18:20:06 2001
357 +++ MigrationTools-38/migrate_passwd.pl Wed Jun 20 18:21:16 2001
358 @@ -37,7 +37,7 @@
359  # Thanks to Peter Jacob Slot <peter@vision.auk.dk>.
360  #
361  
362 -require 'migrate_common.ph';
363 +require '/usr/share/MigrationTools/migrate_common.ph';
364  
365  $PROGRAM = "migrate_passwd.pl";
366  $NAMINGCONTEXT = &getsuffix($PROGRAM);
367 --- MigrationTools-38/migrate_profile.pl        Wed Jun 20 18:20:06 2001
368 +++ MigrationTools-38/migrate_profile.pl        Wed Jun 20 18:21:18 2001
369 @@ -36,7 +36,7 @@
370  #
371  #
372  
373 -require 'migrate_common.ph';
374 +require '/usr/share/MigrationTools/migrate_common.ph';
375  
376  $PROGRAM = "migrate_profile.pl";
377  
378 --- MigrationTools-38/migrate_protocols.pl      Wed Jun 20 18:20:06 2001
379 +++ MigrationTools-38/migrate_protocols.pl      Wed Jun 20 18:21:21 2001
380 @@ -36,7 +36,7 @@
381  #
382  #
383  
384 -require 'migrate_common.ph';
385 +require '/usr/share/MigrationTools/migrate_common.ph';
386  
387  $PROGRAM = "migrate_protocols.pl";
388  $NAMINGCONTEXT = &getsuffix($PROGRAM);
389 --- MigrationTools-38/migrate_rpc.pl    Wed Jun 20 18:20:06 2001
390 +++ MigrationTools-38/migrate_rpc.pl    Wed Jun 20 18:21:23 2001
391 @@ -36,7 +36,7 @@
392  #
393  #
394  
395 -require 'migrate_common.ph';
396 +require '/usr/share/MigrationTools/migrate_common.ph';
397  
398  $PROGRAM = "migrate_rpc.pl";
399  $NAMINGCONTEXT = &getsuffix($PROGRAM);
400 --- MigrationTools-38/migrate_services.pl       Wed Jun 20 18:20:06 2001
401 +++ MigrationTools-38/migrate_services.pl       Wed Jun 20 18:21:25 2001
402 @@ -35,7 +35,7 @@
403  #
404  #
405  
406 -require 'migrate_common.ph';
407 +require '/usr/share/MigrationTools/migrate_common.ph';
408  
409  $PROGRAM = "migrate_services.pl";
410  $NAMINGCONTEXT = &getsuffix($PROGRAM);
411 --- MigrationTools-38/migrate_slapd_conf.pl     Wed Jun 20 18:20:06 2001
412 +++ MigrationTools-38/migrate_slapd_conf.pl     Wed Jun 20 18:21:29 2001
413 @@ -36,7 +36,7 @@
414  #
415  #
416  
417 -require 'migrate_common.ph';
418 +require '/usr/share/MigrationTools/migrate_common.ph';
419  
420  $PROGRAM = "migrate_slapd_conf.pl";
421  
This page took 0.151451 seconds and 3 git commands to generate.