File: 06-translated-files.diff

package info (click to toggle)
ftpmirror 1.96%2Bdfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,080 kB
  • sloc: perl: 2,496; sh: 1,811; makefile: 51; ansic: 22
file content (1527 lines) | stat: -rwxr-xr-x 64,098 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
#! /bin/sh /usr/share/dpatch/dpatch-run
## 06-translated-files.dpatch by Dario Minnucci (midget) <debian@midworld.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Translation into English for README.jis and RELEASE.jis files.
## DP: Thanks to Fumihito YOSHIDA <hito@kugutsu.org>.

@DPATCH@
diff -urNad ftpmirror-1.96+dfsg~/README ftpmirror-1.96+dfsg/README
--- ftpmirror-1.96+dfsg~/README	1970-01-01 01:00:00.000000000 +0100
+++ ftpmirror-1.96+dfsg/README	2007-07-16 03:20:03.689778896 +0200
@@ -0,0 +1,616 @@
+                                   FTPMIRROR
+
+Introduction
+
+   Ftpmirror is an utility to copy directory hierarchy (this is called
+   ``mirror'') with FTP. A transfer is triggered only when modified, it can
+   be efficient transferring directory trees.
+
+   It is userful for ftp-servers maintenance, contentns sync with web server,
+   system backupping and so on.
+
+   A similar perl script exists, whose name is `mirror', this implementation
+   is fully comparing directory lists of sources and distination, it take a
+   heavy memmory load. If use on a large directory trees, so eat a lot of
+   memory(or swap) spaces. When I use ftp-server with 16MB memory, 'mirror'
+   software is not usable :-p, so I wrote software from scratch, that is
+   frpmirror. For example, full mirroring of FreeBSD distribution
+   (ftp://ftp.FreeBSD.ORG/pub/FreeBSD/*) needs 8~9 MB. *(Notice by
+   translator) Original document wrote at old(1998). May be this results has
+   obsolete.*
+
+   You need perl-5.003 or later to use ftpmirror. Please ensure that
+   perl-5.003 or later was installed in your environment, at first. But, perl
+   5.004 has a bug of memory leak. It eat a lot of memory spaces when
+   mirroring directory tree. I test with perl5.005, it has small memory leak
+   too, it is smaller than perl 5.004, it is not critical for real usage. I
+   suggest you using Perl 5.005.
+
+How to use ftpmirror
+
+    1. Install ftpmirror first. The newest version of ftpmirror is available
+       from ftp.intec.co.jp.
+
+       Please use these URLs.
+          * ftp://ftp.intec.co.jp/pub/utils/ftpmirror/ : release
+          * ftp://ftp.intec.co.jp/pub/utils/ftpmirror/beta/ : beta
+
+       Since ftpmirror is a archive of instal files, you must only extract
+       the archive. Do one of following:
+
+   % cd /usr/local/src
+ % gzip -cd < /tmp/ftpmirror-x.y.tar.gz | tar xf -
+
+       So create a directory named ftpmirror-x.y. Change directory and
+       execute configure:
+       Notice: If you need define specific perl verions, please set perls
+       path for enviroment variable "PERL".
+
+ % cd ftpmirror-x.y
+ % ./configure
+
+       Or, when you need specific perl version:
+
+ % cd ftpmirror-x.y
+ % env PERL=/usr/local/bin/perl5.005 ./configure
+
+       Execute make:
+
+ % make
+
+       When finished make with no errors. So install:
+
+ % su
+ # make install
+
+       In finished this procedure, so installed files are below paths:
+
+ /usr/local/bin/ftpmirror
+ /usr/local/bin/rotate
+ /usr/local/etc/ftpmirror.cf-sample
+ /usr/local/lib/perl5/site_perl/Fan.pm
+ /usr/local/lib/perl5/site_perl/Fan/...   (and some dirs)
+ /usr/local/lib/perl5/site_perl/auto/Fan/...  (and some dirs)
+
+ * Notice: libraries install directory can changes
+     with perl's installed settings.
+
+       And copying and editing a configuration files, please add difinition
+       what you needs.
+
+ # cd /usr/local/etc
+ # cp ftpmirror.cf-sample ftpmirror.cf
+ # vi ftpmirror.cf
+
+Configuration
+
+       You can define parameters for ftpmirror with the default configuration
+       file, package specific configuration file, and run-time options
+       (commands arguments). In addition, configuration files are set
+       /usr/local/etc/ftpmirror.cf by defauls, it can change by command
+       argument "--load-config=/hoge/local.cf" if you need. And argument
+       "--load-config=+/hogehoge/local.cf" is used, this is append reading
+       after adove defaults reading.
+
+       Configuration parameters have follwoing types.
+
+ Default parametes:
+ Configuration files settings. They are written before
+ Serverss and Packages parameters.
+
+ Server parameters:
+ Difinition of server specific(timeouts, gateways and
+ so on..). They are provided at configuration files,
+ with 'server' parameters.
+
+ Package parameters:
+ Difinition of packages specific(direcotry, transfer
+ modes and so on). They are provided at configuration files,
+ with 'package' parameters.
+
+ Option parameters:
+ It provide by command args.
+
+       Their parameters are settings by adove order(when exists). Option
+       parameters are most prefferd.
+
+       How to settings parameters at configuration files:
+       That has two syntaxr,
+
+ param-name = value
+ or
+ param-name += value
+
+ =  is set param-name by value.
+ += is adding value(strings) for param-name.
+
+       How to settings parameters at commands args:
+       When using by commands args,any parameters must be prepended by "--"
+       in command line options. That use --(two minus) before options. For
+       example, following syntax is same as adove configuration settings.
+
+ % ftpmirror --param-name=value ...
+ % ftpmirror --param-name+=value ...
+
+Parameters
+
+       There are many acceptable parameters as follows:
+          * Parameters for system and behavior
+               * todo:(string, default: full-mirror)
+                 Settings of command behavior. Currently ftpmirror supports
+                 these behavior.
+                    * scan-remote : listup remote sides files.
+                    * scan-local : listup local sides files.
+                    * update-master : update local sides master index.
+                    * synch-remote : synchronize index files.
+                    * step-mirror : mirroring as slave mode.
+                    * full-mirror : execute basic mirroring(default).
+                 In defaults, it set basic mirroring behavior "full-mirror".
+                 *-regexp filters are enabled at first, any behavior works
+                 with these filters.
+               * verbose: (boolean, default: no)
+                 When set yes, transfer logs ouput verbosey. If set yes, logs
+                 output about non-transfererd/non-modified files.
+               * log-mask: (comma separated list, default: none)
+                 Settings about output logs. These difinition separates by
+                 perl libraries. For example, log-mask = Fan=6,Fan::FTP=7 are
+                 set, a output log include filelist of non transfererd/ non
+                 modified, and ftp's verbosey log.
+               * test-mode (boolean, default: no)
+                 dry-run. When set yes, only show filelist of transfer
+                 targets without real transfer.
+          * Parameters for FTP session
+               * ftp-server: (string, default: none)
+                 The server name to connect FTP session. This must be
+                 specified for mirroring.
+               * ftp-gateway: (string, default: none)
+                 Specify this parameter if you use FTP proxy gateway such as
+                 TIS Internet FireWall ToolKit. For example, "ftp-user =
+                 anonymous", "ftp-server = ring.etl.go.jp", "ftp-gateway =
+                 proxy.intec.co.jp" are set, real-connection goes to
+                 proxy.intec.co.jp, and username is anynymou@ring.etl.go.jp
+                 (ftp-pass is through simple). You may define this with
+                 server parameter.
+               * ftp-port: (service, default: ftp) ftp port definition. If
+                 you need change a port number, please set. When nomarlly
+                 usage, it is not necessary.
+               * ftp-bindaddr: (ip address, default: none) ftp local sides IP
+                 address difinitition. This can set a specific difinition of
+                 local ip address. When using multi-homed hosts(The hosts
+                 have multiple ip addresses), this settings provides a clear
+                 log files. When nomarlly usage, it is not necessary.
+               * ftp-user: (string, default: anonymous)
+                 Login name for FTP session. If you want to use anonymous
+                 FTP, please specify "anonymous" as this parameter.
+               * ftp-pass: (string, default: `whoami`@`hostname`)
+                 Password for FTP session.
+               * ftp-group: (string, default: none)
+                 If you want change group id after logged to the server,
+                 specify the group name. This must be specified with
+                 ftp-gpass.
+               * ftp-gpass: (string, default: none)
+                 If you want change group id after logged to the server,
+                 specify a password to change group. This must be specified
+                 with ftp-group.
+               * ftp-passive: (boolean, default: no)
+                 Set this parameter to yes if passive connection(PASV command
+                 in FTP) is required. This helps you if you use ftpmirror
+                 over a SYN/ACK style firewall.
+               * ftp-idle: (numeric, default: 0)
+                 If this parameter is not zero, ftpmirror tries to set idle
+                 timer of FTP session to this value. FTP server must support
+                 SITE IDLE command.
+               * ftp-max-idle: (boolean, default: 0)
+                 If this parameter is not zero, ftpmirror tries to set idle
+                 timer of FTP session to maximum value. FTP server must
+                 support SITE IDLE command.
+               * ftp-list-method: (LIST or STAT or STAT-A or STAT-A or
+                 STAT-AT default: STAT)
+                 You can specify which of STAT or LIST command should be used
+                 to get server's directory entries. Since STAT command
+                 returns server's directory entries over control connection,
+                 it is little faster than LIST command. Some ftp server
+                 software does not returns directory entry which is required
+                 by ftpmirror, in that case you must speficy as
+                 ftp-list-method = list.
+               * ftp-timeout: (numeric, default: 300)
+                 Timeout of connection. Unit is second.
+               * ftp-login-retry: (numeric, default: none)
+                 *This function is not implemented yet.*
+               * ftp-login-delay: (numeric, default: 60)
+               * ftp-stats: (boolean, default: no)
+                 If it set yes, when mirroring is finished, total transaction
+                 staistics is shown. It appear "control connection in/out",
+                 and "data connection in/out" by octet units.
+               * http-Proxy: (string, default: none) http-proxy settings when
+                 you need accessing ftp server with http. But, http cannot
+                 get direcroty information, so use ls-LR file, or using slave
+                 mode.
+                 For example,
+                    * package = FreeBSD
+                    * ftp-server = ftp.tokyonet.ad.jp
+                    * http-proxy = proxy.my.company.com
+                    * remote-directory = /pub/FreeBSD
+                    * local-directory = ~ftp/pub/FreeBSD
+                    * lslR-file = /pub/FreeBSD/ls-lR.Z
+                 Notice: HTTP is usgin per file transfer TCP connection. So
+                 cause large session logs, and heavy latency.
+          * Parameters for a package
+               * server: (boolean, default none)
+                 This is used to define FTP server specific parameters. After
+                 this parameter, any parameter are treated as the server
+                 specific parameter, until package or (next)server parameter
+                 will be found. Especially, it's reasonable to specify
+          * Parameters for a mirroring
+               * unlink:(boolean, default: no)
+                 When set yes, local directory trees are copied to remote
+                 hosts. For example,
+                    * package = webcopy
+                    * ftp-server = www.intec.co.jp
+                    * ftp-user = webadmin
+                    * ftp-pass = nan-jara-hoi
+                    * ftp-passive = yes
+                    * put-mode = yes
+                    * remote-directory = /usr/local/etc/httpd/htdocs
+                    * local-directory = ~ikuo/web/htdocs
+                         * unlink: (boolean or 'rename' default: yes)
+                           Set this parameter "yes" or 1 if you want to
+                           unlink a file which is removed from servers
+                           directory. You may set this parameter as "rename",
+                           in this case, ftpmirror renames a file with a
+                           trailing Tilda('~').
+                         * unlink-limit: (size value, default: 0)
+                           ** !!! This is not support current version. This
+                           is obsolete.**
+                           If this parameter is defined, ftpmirror will not
+                           remove large files or large directories. This may
+                           help you when server side directory hierachy is
+                           dramatically changed. For example, if unlink-limit
+                           is defined as 30M, any file or directory who is
+                           larger than 30Mbytes will not be removed. You may
+                           also specify 500K or 3G as the maximum size. When
+                           unlink-limit is defined as 100 (e.g. no size
+                           suffix), ftpmirror will not remote the directory
+                           who has more than 100 entries.
+                         * ftp-force-mtime:(boolean, default: no)
+                           When it set yes, time comparing is using MDTM
+                           commands.It set no, MDTM commands does not call
+                           using only file transfering.
+                         * ignore-mtime: (boolean, default: no)
+                         * check-mtime: (default: 1)
+                           By default, ftpmirror try to check modified times
+                           of local and remote files. If this parameter is
+                           zero, ftpmirror does NOT check modified time. In
+                           this case, if local and remote files have same
+                           size ftpmirror will only change local file
+                           timestamp to match remote one.
+                         * temp-directory: (pathname, default: /tmp)
+                           Ftpmirror stores temporary files to the directory
+                           specified by this parameter. Currently, ls-lR or
+                           dirinfo files may be stored in this directory.
+                         * lock-directory: (pathname, default: /tmp)
+                           Ftpmirror use lock mechanism to avoid invoking
+                           multiple ftpmirrors for a package. lock-directory
+                           parameter means the directory to create lock file.
+                           local-db
+                         * create-directory : (boolean, default: yes) When
+                           local-directory, temp-directory, lock-directory is
+                           set, but target directories dont exists, case of
+                           set yes to mkdir, set no to not and error
+                           aborting.
+                         * remote-directory: (boolean, default: none)
+                           You must specify the directory on the FTP server
+                           where you want to mirror as this parameter. Any
+                           mirror is recursively performed from this
+                           directory.
+                         * local-directory: (pathname, default: none)
+                           You must set this parameter to the directory in
+                           local-side host, e.g. the directory paired with
+                           remote-directory. Next example shows that
+                           ftpmirror will mirror "/pub/FreeBSD" in the FTP
+                           server to "/ftp/pub/FreeBSD" in local.
+
+ remote-directory = /pub/FreeBSD
+ local-directory = /ftp/pub/FreeBSD
+
+                           If home-directory is defined (or ftp user's home
+                           directory exists), you can specify as follows:
+
+ remote-directory = /pub/FreeBSD
+ local-directory = ~/pub/FreeBSD
+
+                         * master-db-directory: (pathname, default: none)
+                           ftpmirror can store localhosts filelist and last
+                           mirroring datas, if use this features, set
+                           master-db-directory and create storing directory.
+                           For example, following esettings will create
+                           filelist of ~ftp/pub/FreeBSD files. In this case,
+                           "n" is index files revision. And cycle a
+                           mirroring, ~ftp/db/FreeBSD/step.m is created too.
+                           "m" is step files revisions. step.m is diff of
+                           index.m => index.m+1.
+
+         package = FreeBSD
+          ftp-server = ftp.FreeBSD.ORG
+          remote-directory = /pub/%s
+          local-directory = ~ftp/pub/%s
+          master-db-directory = ~ftp/db/%s
+
+                           Addition, when dont use mirroring,
+                           master-db-direcoty can manage directory tree.
+                           Example is below.
+
+         package = original-tools
+          local-directory = ~ftp/pub/%s
+          master-db-directory = ~ftp/db/%s
+
+                           For update database only please execute:
+
+         % ftpmirror --todo=update-master original-tools
+
+                           If remote server has a master-db-directory, it can
+                           use "slave mode" mirroring. Please set
+                           remote-db-directory and local-db-cirectory
+                           parameters.
+                         * remote-db-directory: (pathname, default: none)
+                         * local-db-directory: (pathname, default: none)
+                           When remote server has a remote-db-directory, it
+                           can efficiency mirroring. This called "slave
+                           mode". "slave mode" can be use setting
+                           remote-db-directory and local-db-directory. If you
+                           use it, please create directory that
+                           local-db-directory specified. A parameters of
+                           master-db-directory is must set remote sides
+                           master-db-direcotry.
+                           These parameters can %s conversion(same
+                           local-directry parameters) And, local-db-directory
+                           supports tilda(~) directory conversion. When
+                           remote-db-directory and local-db-directory set,
+                           ftpmirror's behavior is below. At first, starts
+                           sync master-db-directory, second, start mirroring
+                           with db information. In this case, all file
+                           informations are provide by db, so without LIST,
+                           STAT commands. And, database syncronization is not
+                           fully copy, this synthethis a old index file and
+                           step files. Full copy is only apper at two case
+                           one is first copy, one of db files are broken. For
+                           example, using "slave mode" with
+                           adove(master-db-directory's example) server,
+                           sample configuration is below.
+
+         package = FreeBSD
+          ftp-server = ftp.master.server.host
+          remote-directory = /pub/%s
+          local-directory = ~ftp/pub/%s
+          remote-db-directory = /db/%s
+          local-db-directory = ~ftp/db/%s
+
+                           For advence, you can cumulative mirroring with
+                           step files. Configuration is same adove, use:
+
+          % ftpmirror --todo=step-mirror FreeBSD
+
+                         * lslR-file: (pathname, default: none)
+                           You can use ls-lR(or similar) on the FTP server
+                           rather than directory scan with STAT/LIST. Specify
+                           server side filename of ls-lR(or similar) as this
+                           parameter. If lslR-file has an extension of .gz or
+                           .Z, gunzip or uncompress will be automatically
+                           invoked. For example, if you mirror
+                           ftp.freebsd.org:/pub/FreeBSD with ls-lR.gz, you
+                           may specify as next:
+
+ ftp-server = ftp.freebsd.org
+ remote-directory = /pub/FreeBSD
+ local-directory = ~/pub/FreeBSD
+ lslR-file = /pub/FreeBSD/ls-lR.gz
+
+                         * lslR-copy: (pathname, default: none)
+                           When you need archive copying lslR-file on
+                           localhost, set this parameter. If you set a
+                           relative path, a path leading from
+                           local-directory. And, relative path set
+                           override-file parameters automatically. So
+                           lslR-copy is prevent from overwrite with
+                           mirroring. This setting is set, when lslR-file is
+                           transfered, and chacheing to lslR-copy file, then
+                           prevent needless transfer. The check of size/last
+                           modified are non-transferring with lslR-file.
+                           Addition, when you set this parameters, you can
+                           use efficient mirroring with ls-lR file without
+                           lslR-file parameters.
+                         * transfer-file-regexp: (regexp, default: matches
+                           all)
+                           Regular expressions(perl's regular expression) to
+                           match filenames to transfer. Ftpmirror tries to
+                           transfer only files on the server which matches to
+                           this expression. Any filename on the FTP server is
+                           represented as relative path (from
+                           remote-directory) beginning with "./". That is, if
+                           remote-directory is configured as "/pub/FreeBSD",
+                           the file "/pub/FreeBSD/2.1.5-RELEASE/README.TXT"
+                           on the server is represented as
+                           "./2.1.5-RELEASE/README.TXT".
+
+                           Some examples follow:
+
+   transfer-file-regexp += !/~$/
+   transfer-file-regexp += !/\/\.in/
+   transfer-file-regexp += !/\/\.nfs/
+
+                           With this configuration, ftpmirror does NOT
+                           transfer files end with "~" and begin with ".in"
+                           or ".nfs".
+
+                           (Notes: "=" means replacing a parameter value, and
+                           "+=" means appending a parameter string)
+
+   transfer-file-regexp += /\/bash-/
+   transfer-file-regexp += /\/gcc-/
+   transfer-file-regexp += !
+
+                           With adobe configuration, ftpmirror tries to
+                           transfer bash-* and gcc-* files, but not others.
+                           The last line in this example means ftpmirror does
+                           NOT transfer by default.
+                         * transfer-directory-regexp: (default: matches all)
+                           Regular expressions(perl's regular expression) to
+                           match directory names to scan in a FTP server.
+                           Note that any directory in a FTP server is
+                           represented with trailing slash ('/'). For
+                           example, next shows configuration to avoid
+                           ftpmirror NOT to scan(off course, this means NOT
+                           to transfer) directories whose names are
+                           "lost+found", or directories ended with '~'.
+
+   transfer-directory-regexp += !/\/lost+found\/$/
+   transfer-directory-regexp += !/~\/$/
+
+                         * override-file-regexp: (default: matches all)
+                           Regular expressions(perl's regular expression) to
+                           match files you can override in local directories.
+                           In actual mirror session, ftpmirror tries to
+                           transfer files which match transfer-file-regexp,
+                           and also match override-file-regexp. Any file
+                           which does not match override-file-regexp will not
+                           be modified by ftpmirror. In the next example,
+                           ftpmirror tries to transfer bash-* files, but not
+                           modified any other files. This is useful when you
+                           want to get files from multiple FTP servers to a
+                           single local-side directory.
+
+   transfer-file-regexp += /\/bash-/
+   transfer-file-regexp += !
+   override-file-regexp += /\/bash-/
+   override-file-regexp += !
+
+                         * override-directory-regexp: (default: matches all)
+                           Regular expressions(perl's regular expression) to
+                           match directories ftpmirror will modify. You can
+                           transfer directories from multiple FTP servers to
+                           a single local-side directory with this parameter.
+                           Following example shows that you can transfer the
+                           FreeBSD-nonUS into the FreeBSD directory.
+
+   package = FreeBSD
+    ftp-server = ftp.tokyonet.ad.jp
+    remote-directory = /pub/FreeBSD
+    local-directory = ~/pub/FreeBSD
+    override-directory-regexp += !/\.\/FreeBSD-nonUS\//
+
+   package = FreeBSD-nonUS
+    ftp-server = ftp.waseda.ac.jp
+    remote-directory = /pub/FreeBSD-nonUS
+    local-directory = ~/pub/FreeBSD/FreeBSD-nonUS
+
+                         * load-local-dirinfo: (default: 0)
+                           Set this parameter to 1 if you want to load local
+                           ".dirinfo" files. A ".dirinfo" file contains
+                           directory information described below.
+                         * store-local-dirinfo: (default: 0)
+                           Set this parameter to 1 if you want to generate
+                           ".dirinfo" files in local-side directories after
+                           each mirror session. A ".dirinfo" file contains
+                           directory information described below.
+                         * load-remote-dirinfo: (default: 0) Set this
+                           parameter to 1 if you want to load and use
+                           directory information stored in the FTP server.
+                           Using directory information, you can mirror files
+                           without STAT/LIST/SIZE/MDTM, and ftpmirror can
+                           check MD5 checksum of files.
+                         * override-file-uid: (default: 0)
+                           You can specify owner of files/directories in
+                           local. Any files and directories which match
+                           override-*-regexp, will be owned by this user id.
+                           If ftpmirror is invoked by non privileged user,
+                           this parameter is ignored.
+                         * override-file-gid: (default: 0)
+                           Same as override-file-uid, but this parameter is
+                           for group id. Note that if one of
+                           override-file-uid and override-file-gid is
+                           defined, any file which matches override-*-regexp
+                           (even if it is not transfered) will be modified
+                           with chown.
+                         * override-file-mode: (default: root -> 0444, other
+                           -> 0644)
+                           You can specify local-side file mode. Ftpmirror
+                           applies chmod to any file which matches
+                           override-*-regexp if this parameter is specified.
+                         * override-directory-mode: (default: 0755)
+                           Same as override-file-mode, but this parameter is
+                           for directories.
+                         * default-file-uid: (default: 0)
+                           Undef override-file-uid, and set this parameter to
+                           specify default owner of local-side files.
+                           Ftpmirror decides file owner in order:
+                           override-file-uid, owner in FTP server,
+                           default-file-uid.
+                         * default-file-gid: (default: 0)
+                           Same as default-file-uid, but this parameter is
+                           for group id.
+                         * default-file-mode: (default: root -> 0444, other
+                           -> 0644)
+                           Undef override-file-mode and you can specify
+                           default file mode. Ftpmirror tries to change file
+                           mode in order: override-file-mode, file mode in
+                           FTP server, default-file-mode. Note that since
+                           file mode is masked with 0777, you can not set
+                           setuid/setgid file modes.
+                         * default-directory-mode: (default: 0755)
+                           Same as default-file-mode, but this parameter is
+                           for a directory mode.
+                      Ftpmirror tries to compare files in local and remote
+                      with these entries. For example, ftpmirror compares as:
+                        1. file file-type
+                           Are sizes same? and are md5checksums same?
+                        2. symlink file-type
+                           Do they point same file?
+                        3. directory file-type
+                           Is the begin-time of last update of local
+                           directory is before the end-time of last update of
+                           remote directory?
+                      Especially, comparing directory update times are
+                      effective, if no file is changed in the remote
+                      directory, because ftpmirror do nothing about the
+                      directory (even directory scan is skipped).
+
+                      Ftpmirror generate ".dirinfo" file if
+                      store-local-dirinfo parameter is 1. You can also
+                      generate this file with mkdirinfo:
+
+  # mkdirinfo /ftp/pub/utils
+
+Mailing list for ftpmirror
+
+                      Technical questions, suggestions, bug reports are
+                      welcome. If you are interesting to ftpmirror, there is
+                      a mailing-list to discuss about ftpmirror. To
+                      subscribe, send a message
+
+  subscribe ftpmirror
+
+                      to majordomo@ftp.intec.co.jp.
+
+Credits
+
+                      I would like to thank to anyone who helped me by
+                      testing, bug-reports, suggestions, sending patches.
+                      Especially, members in RingProject helped me by heavy
+                      testing :-) and many suggestions.
+
+Miscellaneous...
+
+                      Please read COPYRIGHT for copyright notice. Any
+                      comments, bug fixes, suggestions are welcome. Please
+                      contact to Ikuo Nakagawa <ikuo@intec.co.jp>.
+
+--------------------------------------------------------------------------------
+
+      Last updated: 1997/01/27 by Ikuo Nakagawa
+      This is community translated file. This is not original document.
+
+--------------------------------------------------------------------------------
+
+ Translated into English on 2007-07-07 by Fumihito YOSHIDA <hito@kugutsu.org>.
+
+--------------------------------------------------------------------------------
diff -urNad ftpmirror-1.96+dfsg~/README.html ftpmirror-1.96+dfsg/README.html
--- ftpmirror-1.96+dfsg~/README.html	1970-01-01 01:00:00.000000000 +0100
+++ ftpmirror-1.96+dfsg/README.html	2007-07-16 03:16:41.750271019 +0200
@@ -0,0 +1,732 @@
+<html><head>
+<title>ftpmirror - mirroring directory hierarchy with FTP</title>
+</head><body>
+<h1>FTPMIRROR</h1>
+
+<h2>Introduction</h2>
+
+<p>
+<i>Ftpmirror</i> is an utility to copy directory hierarchy
+(this is called ``mirror'') with FTP.
+
+A transfer is triggered only when modified, it can be efficient 
+transferring directory trees.
+<p>
+It is userful for ftp-servers maintenance, contentns sync with 
+web server, system backupping and so on.  
+<p>
+
+A similar perl script exists, whose name is `mirror', this 
+implementation is fully comparing directory lists of sources
+and distination, it take a heavy memmory load. If use on a 
+large directory trees, so eat a lot of memory(or swap) spaces.
+
+When I use ftp-server with 16MB memory, 'mirror' software is 
+not usable :-p, so I wrote software from scratch, that is 
+frpmirror.
+
+For example, full mirroring of FreeBSD distribution 
+(ftp://ftp.FreeBSD.ORG/pub/FreeBSD/*) needs 8~9 MB.
+*(Notice by translator) Original document wrote at 
+ old(1998). May be this results has obsolete.*
+<p>
+You need perl-5.003 or later to use ftpmirror.
+Please ensure that perl-5.003 or later was installed
+in your environment, at first.
+
+But, perl 5.004 has a bug of memory leak. It eat a 
+lot of memory spaces when mirroring directory tree.
+I test with perl5.005, it has small memory leak too,
+it is smaller than perl 5.004, it is not critical for
+real usage. I suggest you using Perl 5.005.
+
+<h2>How to use <i>ftpmirror</i></h2>
+
+<ol>
+<p>
+<li>Install <i>ftpmirror</i> first.
+ The newest version of <i>ftpmirror</i> is available from
+ <a href=ftp://ftp.intec.co.jp/pub/utils/><b>ftp.intec.co.jp</b></a>.
+
+<p>
+ Please use these URLs.
+ <ul>
+  <li>ftp://ftp.intec.co.jp/pub/utils/ftpmirror/       : release
+  <li>ftp://ftp.intec.co.jp/pub/utils/ftpmirror/beta/  : beta 
+ </ul>
+<p>
+ Since <i>ftpmirror</i> is a archive of instal files,
+ you must only extract the archive.
+ Do one of following:
+ <pre>
+  % cd /usr/local/src
+% gzip -cd < /tmp/ftpmirror-x.y.tar.gz | tar xf -
+
+</pre>
+
+So create a directory named ftpmirror-x.y. Change directory
+and execute configure:<br>
+<i>Notice: If you need define specific perl verions, please set
+perls path for enviroment variable "PERL".</i>
+<pre>
+% cd ftpmirror-x.y
+% ./configure 
+</pre>
+
+<i>Or, when you need specific perl version:</i>
+<pre>
+% cd ftpmirror-x.y
+% env PERL=/usr/local/bin/perl5.005 ./configure 
+</pre>
+
+Execute make:
+
+<pre>
+% make
+</pre>
+
+When finished make with no errors. So install:
+<pre>
+% su
+# make install
+</pre>
+
+In finished this procedure, so installed files are below paths:
+<pre>
+/usr/local/bin/ftpmirror
+/usr/local/bin/rotate
+/usr/local/etc/ftpmirror.cf-sample
+/usr/local/lib/perl5/site_perl/Fan.pm
+/usr/local/lib/perl5/site_perl/Fan/...   (and some dirs)
+/usr/local/lib/perl5/site_perl/auto/Fan/...  (and some dirs) 
+
+* Notice: libraries install directory can changes 
+    with perl's installed settings.
+</pre>
+
+And copying and editing a configuration files, please add
+difinition what you needs.
+<pre>
+# cd /usr/local/etc
+# cp ftpmirror.cf-sample ftpmirror.cf
+# vi ftpmirror.cf
+
+</pre>
+
+<h2><a name=configuration>Configuration</h2>
+
+You can define parameters for <i>ftpmirror</i> with
+the default configuration file,
+package specific configuration file,
+and run-time options (commands arguments).
+
+In addition, configuration files are set /usr/local/etc/ftpmirror.cf
+by defauls, it can change by command argument 
+"--load-config=/hoge/local.cf" if you need.
+And argument "--load-config=+/hogehoge/local.cf" is used, 
+this is append reading after adove defaults reading.
+
+<p>
+Configuration parameters have follwoing types.
+
+<pre>
+Default parametes:
+Configuration files settings. They are written before
+Serverss and Packages parameters. 
+
+Server parameters:
+Difinition of server specific(timeouts, gateways and
+so on..). They are provided at configuration files, 
+with 'server' parameters.
+
+Package parameters:
+Difinition of packages specific(direcotry, transfer 
+modes and so on). They are provided at configuration files, 
+with 'package' parameters.
+
+Option parameters:
+It provide by command args.
+</pre>
+
+Their parameters are settings by adove order(when exists).
+Option parameters are most prefferd.
+<p>
+
+How to settings parameters at configuration files:<br>
+
+That has two syntaxr, 
+
+<pre>
+param-name = value
+or 
+param-name += value 
+
+=  is set param-name by value.
++= is adding value(strings) for param-name.
+</pre>
+<p>
+How to settings parameters at commands args:<br>
+
+When using by commands args,any parameters must be 
+prepended by "--" in command line options.
+That use --(two minus) before options.
+
+For example, following syntax is same as adove 
+configuration settings.
+
+<pre>
+% ftpmirror --param-name=value ...
+% ftpmirror --param-name+=value ...
+</pre>
+
+<h2><a name=parameters>Parameters</h2>
+
+<p>
+There are many acceptable parameters as follows:
+<ul>
+<li><b>Parameters for system and behavior</b>
+<ul>
+
+<li><a name=todo>todo</a>:(string, default: full-mirror) <br>
+Settings of command behavior. Currently <i>ftpmirror</i>
+supports these behavior.
+<ul>
+<li>scan-remote	: listup remote sides files.
+
+<li>scan-local	: listup local sides files.
+<li>update-master	: update local sides master index.
+<li>synch-remote	: synchronize index files.
+<li>step-mirror	: mirroring as slave mode.
+<li>full-mirror	: execute basic mirroring(default).
+</ul>
+In defaults, it set basic mirroring behavior "full-mirror".
+*-regexp filters are enabled at first, any behavior 
+works with these filters.
+
+<li><a name=veboze>verbose</a>: (boolean, default: no)<br>
+When set yes, transfer logs ouput verbosey. If set yes,
+logs output about non-transfererd/non-modified files.
+
+<li><a name=log-mask>log-mask</a>: (comma separated list,
+default: none)<br>
+Settings about output logs. These difinition separates by 
+perl libraries. For example, 
+	log-mask = Fan=6,Fan::FTP=7
+are set, a output log include filelist of non transfererd/
+non modified, and ftp's verbosey log.
+
+<li><a name=test-mode>test-mode</a> (boolean, default: no)<br>
+
+dry-run. When set yes, only show filelist of transfer targets
+without real transfer.
+</ul>
+
+<li><b>Parameters for FTP session</b>
+<ul>
+
+<li><a name=ftp-server>ftp-server</a>: (string, default: none)<br>
+The server name to connect FTP session. This must be specified
+for mirroring.
+
+<li><a name=ftp-gateway>ftp-gateway</a>: (string, default: none)<br>
+Specify this parameter if you use FTP proxy gateway such as
+<a href=http://www.tis.com/docs/products/fwtk/>
+TIS Internet FireWall ToolKit</a>.
+For example, "ftp-user = anonymous", "ftp-server = ring.etl.go.jp",
+"ftp-gateway = proxy.intec.co.jp" are set, real-connection
+goes to proxy.intec.co.jp, and username is anynymou@ring.etl.go.jp
+(ftp-pass is through simple).
+You may define this with <a name=server>server</a> parameter. 
+
+
+<li><a name=ftp-port>ftp-port</a>: (service, default: ftp)
+ftp port definition. If you need change a port number, please set.
+When nomarlly usage, it is not necessary.
+
+<li><a name=ftp-bindaddr>ftp-bindaddr</a>: (ip address, default: none)
+ftp local sides IP address difinitition. This can set a 
+specific difinition of local ip address. When using multi-homed
+hosts(The hosts have multiple ip addresses), this settings provides
+a clear log files.
+When nomarlly usage, it is not necessary.
+
+<li><a name=ftp-user>ftp-user</a>: (string, default: anonymous)<br>
+Login name for FTP session. If you want to use anonymous FTP,
+please specify "anonymous" as this parameter.
+
+<li><a name=ftp-pass>ftp-pass</a>: (string, default: `whoami`@`hostname`)<br>
+Password for FTP session. 
+
+<li><a name=ftp-group>ftp-group</a>: (string, default: none)<br>
+If you want change group id after logged to the server,
+specify the group name.
+This must be specified with <a href=#ftp-gpass><tt>ftp-gpass</tt></a>.
+
+
+<li><a name=ftp-gpass>ftp-gpass</a>: (string, default: none)<br>
+If you want change group id after logged to the server,
+specify a password to change group.
+This must be specified with <a href=#ftp-group><tt>ftp-group</tt></a>.
+
+<li><a name=ftp-passive>ftp-passive</a>: (boolean, default: no)<br>
+Set this parameter to yes if passive connection(PASV command in FTP)
+is required. This helps you if you use <i>ftpmirror</i> over
+a SYN/ACK style firewall.
+
+<li><a name=ftp-idle>ftp-idle</a>: (numeric, default: 0)<br>
+If this parameter is not zero, <i>ftpmirror</i> tries to set idle timer
+of FTP session to this value.
+FTP server must support SITE IDLE command.
+
+
+<li><a name=ftp-max-idle>ftp-max-idle</a>: (boolean, default: 0)<br>
+If this parameter is not zero, <i>ftpmirror</i> tries to set idle timer
+of FTP session to maximum value.
+FTP server must support SITE IDLE command.
+
+<li><a name=ftp-list-method>ftp-list-method</a>: (LIST or STAT or STAT-A or STAT-A or STAT-AT default: STAT)<br>
+You can specify which of STAT or LIST command should be used to get
+server's directory entries. Since STAT command returns server's
+directory entries over control connection, it is little faster than
+LIST command. Some ftp server software does not returns directory
+entry which is required by <i>ftpmirror</i>, in that case you must
+speficy as <b>ftp-list-method = list</B>.
+
+<li><a name=ftp-timeout>ftp-timeout</a>: (numeric, default: 300)<br>
+
+Timeout of connection. Unit is second. 
+
+<li><a name=ftp-login-retry>ftp-login-retry</a>: (numeric, default: none)<br>
+*This function is not implemented yet.*
+
+<li><a name=ftp-login-delay>ftp-login-delay</a>: (numeric, default: 60)<br>
+
+<li><a namer=ftp-stats>ftp-stats</a>: (boolean, default: no)<br>
+If it set yes, when mirroring is finished, total transaction 
+staistics is shown. It appear "control connection in/out", and
+"data connection in/out" by octet units.
+
+<li><a name=http-proxy>http-Proxy</a>: (string, default: none)
+http-proxy settings when you need accessing ftp server with
+http. But, http cannot get direcroty information, so use 
+ls-LR file, or using slave mode.<br>
+For example, 
+
+<ul>
+ <li> package = FreeBSD
+    <li> ftp-server = ftp.tokyonet.ad.jp
+    <li> http-proxy = proxy.my.company.com
+    <li> remote-directory = /pub/FreeBSD
+    <li> local-directory = ~ftp/pub/FreeBSD
+    <li> lslR-file = /pub/FreeBSD/ls-lR.Z
+</ul>
+Notice: HTTP is usgin per file transfer TCP connection.
+So cause large session logs, and heavy latency. 
+</ul>
+
+<li><b>Parameters for a package</b>
+<ul>
+<li><a name=server>server</a>: (boolean, default none)<br>
+This is used to define FTP server specific parameters.
+After this parameter, any parameter are treated as the server
+specific parameter,
+until package or (next)server parameter will be found.
+Especially, it's reasonable to specify
+</ul>
+
+<li><b>Parameters for a mirroring</b>
+<ul>
+<li><a name=unlink>unlink</a>:(boolean, default: no)<br>
+When set yes, local directory trees are copied to remote hosts.
+For example,
+
+<ul>
+ <li>package = webcopy
+ <li> ftp-server = www.intec.co.jp
+ <li> ftp-user = webadmin
+ <li> ftp-pass = nan-jara-hoi
+ <li> ftp-passive = yes
+ <li> put-mode = yes
+ <li> remote-directory = /usr/local/etc/httpd/htdocs
+ <li> local-directory = ~ikuo/web/htdocs
+
+<ul>
+
+<li><a name=unlink>unlink</a>: (boolean or 'rename' default: yes)<br>
+Set this parameter "yes" or 1 if you want to unlink a file
+which is removed from servers directory.
+You may set this parameter as "rename",
+in this case, <i>ftpmirror</i> renames a file with a trailing Tilda('~').
+
+<li><a name=unlink-limit>unlink-limit</a>: (size value, default: 0)<br>
+** !!! This is not support current version. This is obsolete.**<br>
+If this parameter is defined, <i>ftpmirror</i> will not remove
+large files or large directories.
+This may help you when server side directory hierachy is
+dramatically changed.
+For example, if <tt>unlink-limit</tt> is defined as 30M,
+any file or directory who is larger than 30Mbytes will not
+be removed. You may also specify 500K or 3G as the maximum size.
+When <tt>unlink-limit</tt> is defined as 100 (e.g. no size suffix),
+
+<i>ftpmirror</i> will not remote the directory who has more than
+100 entries.
+
+<li><a name=ftp-force-mtime>ftp-force-mtime</a>:(boolean, default: no)<br>
+ When it set yes, time comparing is using MDTM commands.It set no,
+ MDTM commands does not call using only file transfering.  
+
+<li><a name=ignore-mtime>ignore-mtime</a>: (boolean, default: no)<br>
+<li><a name=check-mtime>check-mtime</a>: (default: 1)<br>
+By default, <i>ftpmirror</i> try to check modified times of local and
+remote files. If this parameter is zero, <i>ftpmirror</i> does NOT
+check modified time.
+In this case, if local and remote files have same size <i>ftpmirror</i>
+
+will only change local file timestamp to match remote one.
+
+<li><a name=temp-directory>temp-directory</a>: (pathname, default: /tmp)<br>
+<i>Ftpmirror</i> stores temporary files to the directory specified by
+this parameter. Currently, ls-lR or dirinfo files may be stored
+in this directory.
+
+<li><a name=lock-directory>lock-directory</a>: (pathname, default: /tmp)<br>
+<i>Ftpmirror</i> use lock mechanism
+to avoid invoking multiple <i>ftpmirror</i>s for a package.
+lock-directory parameter means the directory to create lock file.
+local-db
+<li><a name=create-firectory>create-directory</a> : (boolean, default: yes)
+When local-directory, temp-directory, lock-directory is set, but 
+target directories dont exists, case of set yes to mkdir, set no
+to not and error aborting.
+
+
+<li><a name=remote-directory>remote-directory</a>: (boolean, default: none)<br>
+You must specify the directory on the FTP server where you want to mirror
+as this parameter.
+Any mirror is recursively performed from this directory.
+
+<li><a name=local-directory>local-directory</a>: (pathname, default: none)<br>
+You must set this parameter to the directory in local-side host,
+e.g. the directory paired with
+<a name=remote-directory>remote-directory</a>.
+Next example shows that <i>ftpmirror</i> will mirror
+"/pub/FreeBSD" in the FTP server
+to "/ftp/pub/FreeBSD" in local.
+<pre>
+remote-directory = /pub/FreeBSD
+local-directory = /ftp/pub/FreeBSD</pre>
+If home-directory is defined (or ftp user's home directory exists),
+you can specify as follows:
+
+<pre>
+remote-directory = /pub/FreeBSD
+local-directory = ~/pub/FreeBSD</pre>
+
+<li><a name=master-db-directory>master-db-directory</a>: (pathname, default: none)<br>
+ftpmirror can store localhosts filelist and last mirroring datas,
+if use this features, set master-db-directory and create storing 
+directory.
+
+For example, following esettings will create filelist of ~ftp/pub/FreeBSD
+files. In this case, "n" is index files revision. And cycle a mirroring,
+~ftp/db/FreeBSD/step.m is created too. "m" is step files revisions.
+step.m is diff of index.m => index.m+1.
+<pre>
+	package = FreeBSD
+	 ftp-server = ftp.FreeBSD.ORG
+	 remote-directory = /pub/%s
+	 local-directory = ~ftp/pub/%s
+	 master-db-directory = ~ftp/db/%s
+</pre>
+Addition, when dont use mirroring, master-db-direcoty can manage
+directory tree. Example is below.
+
+<pre>
+	package = original-tools
+	 local-directory = ~ftp/pub/%s
+	 master-db-directory = ~ftp/db/%s
+</pre>
+
+For update database only please execute:
+<pre>
+	% ftpmirror --todo=update-master original-tools
+</pre>
+
+If remote server has a master-db-directory, it can use 
+"slave mode" mirroring. Please set remote-db-directory
+and local-db-cirectory parameters.
+
+<li><a name=remote-db-directory>remote-db-directory</a>: (pathname, default: none)
+<li><a name=local-db-directory>local-db-directory</a>: (pathname, default: none)<br>
+When remote server has a remote-db-directory, it can efficiency mirroring.
+This called "slave mode". "slave mode" can be use setting 
+remote-db-directory and local-db-directory. If you use it, 
+please create directory that local-db-directory specified. 
+A parameters of master-db-directory is must set remote sides
+master-db-direcotry.<br>
+
+These parameters can %s conversion(same local-directry parameters)
+And, local-db-directory supports tilda(~) directory conversion.
+
+When remote-db-directory and local-db-directory set, ftpmirror's
+behavior is below. At first, starts sync master-db-directory, 
+second, start mirroring with db information. In this case, 
+all file informations are provide by db, so without LIST, STAT
+commands.
+
+And, database syncronization is not fully copy, this synthethis
+a old index file and step files. Full copy is only apper at
+two case one is first copy, one of db files are broken. 
+
+For example, using "slave mode" with adove(master-db-directory's
+example) server, sample configuration is below.
+
+<pre>
+
+	package = FreeBSD
+ 	 ftp-server = ftp.master.server.host
+	 remote-directory = /pub/%s
+	 local-directory = ~ftp/pub/%s
+	 remote-db-directory = /db/%s
+	 local-db-directory = ~ftp/db/%s
+</pre>
+
+For advence, you can cumulative mirroring with step files.
+Configuration is same adove, use: 
+<pre>
+	 % ftpmirror --todo=step-mirror FreeBSD
+</pre>
+
+<li><a name=lslR-file>lslR-file</a>: (pathname, default: none)<br>
+You can use ls-lR(or similar) on the FTP server rather than
+directory scan with STAT/LIST. Specify server side filename
+of ls-lR(or similar) as this parameter.
+If <tt>lslR-file</tt> has an extension of .gz or .Z,
+gunzip or uncompress will be automatically invoked.
+For example, if you mirror ftp.freebsd.org:/pub/FreeBSD with ls-lR.gz,
+you may specify as next:
+
+<pre>
+ftp-server = ftp.freebsd.org
+remote-directory = /pub/FreeBSD
+local-directory = ~/pub/FreeBSD
+lslR-file = /pub/FreeBSD/ls-lR.gz</pre>
+
+<li><a name="lslR-copy">lslR-copy</a>: (pathname, default: none)<br>
+When you need archive copying lslR-file on localhost, set this 
+parameter. If you set a relative path, a path leading from 
+local-directory. And, relative path set override-file parameters 
+automatically. So lslR-copy is prevent from overwrite with mirroring.
+This setting is set, when lslR-file is transfered, and chacheing to 
+lslR-copy file, then prevent needless transfer.
+The check of size/last modified are non-transferring with lslR-file.
+<br>
+Addition, when you set this parameters, you can use efficient mirroring
+with ls-lR file without lslR-file parameters.
+
+<li>transfer-file-regexp: (regexp, default: matches all)<br>
+  Regular expressions(perl's regular expression) to match filenames
+  to transfer.
+  <i>Ftpmirror</i> tries to transfer only files on the server
+  which matches to this expression.
+  Any filename on the FTP server is represented as relative path
+  (from remote-directory) beginning with "./".
+  That is, if remote-directory is configured as "/pub/FreeBSD",
+  the file "/pub/FreeBSD/2.1.5-RELEASE/README.TXT" on the server
+  is represented as "./2.1.5-RELEASE/README.TXT".<br>
+
+  <p>
+  Some examples follow:
+  </p><pre>  transfer-file-regexp += !/~$/
+  transfer-file-regexp += !/\/\.in/
+  transfer-file-regexp += !/\/\.nfs/</pre>
+  With this configuration, <i>ftpmirror</i> does NOT transfer files
+  end with "~" and begin with ".in" or ".nfs".
+  <p>
+
+  (Notes: "=" means replacing a parameter value,
+   and "+=" means appending a parameter string)
+  </p><pre>  transfer-file-regexp += /\/bash-/
+  transfer-file-regexp += /\/gcc-/
+  transfer-file-regexp += !</pre>
+
+  With adobe configuration, <i>ftpmirror</i> tries to transfer bash-* and
+  gcc-* files, but not others.
+  The last line in this example means
+  <i>ftpmirror</i> does NOT transfer by default.
+<li>transfer-directory-regexp: (default: matches all)<br>
+  Regular expressions(perl's regular expression) to match directory
+  names to scan in a FTP server.
+  Note that any directory in a FTP server is represented with trailing
+  slash ('/').
+  For example, next shows configuration to avoid <i>ftpmirror</i>
+  NOT to scan(off course, this means NOT to transfer) directories
+  whose names are "lost+found", or directories ended with '~'.
+  <pre>  transfer-directory-regexp += !/\/lost+found\/$/
+  transfer-directory-regexp += !/~\/$/</pre>
+
+<li>override-file-regexp: (default: matches all)<br>
+  Regular expressions(perl's regular expression) to match files
+  you can override in local directories.
+  In actual mirror session,
+  <i>ftpmirror</i> tries to transfer files which match
+  <tt>transfer-file-regexp</tt>,
+  and also match <tt>override-file-regexp</tt>.
+  Any file which does not match <tt>override-file-regexp</tt>
+  will not be modified by <i>ftpmirror</i>.
+  In the next example, <i>ftpmirror</i> tries to transfer bash-* files,
+  but not modified any other files. This is useful when you want
+  to get files from multiple FTP servers
+  to a single local-side directory.
+  <pre>  transfer-file-regexp += /\/bash-/
+  transfer-file-regexp += !
+  override-file-regexp += /\/bash-/
+  override-file-regexp += !</pre>
+
+<li>override-directory-regexp: (default: matches all)<br>
+  Regular expressions(perl's regular expression) to match directories
+  <i>ftpmirror</i> will modify.
+  You can transfer directories from multiple FTP
+  servers to a single local-side directory with this parameter.
+  Following example shows that you can transfer the FreeBSD-nonUS
+  into the FreeBSD directory.
+  <pre>  package = FreeBSD
+   ftp-server = ftp.tokyonet.ad.jp
+   remote-directory = /pub/FreeBSD
+   local-directory = ~/pub/FreeBSD
+   override-directory-regexp += !/\.\/FreeBSD-nonUS\//
+
+  package = FreeBSD-nonUS
+   ftp-server = ftp.waseda.ac.jp
+   remote-directory = /pub/FreeBSD-nonUS
+   local-directory = ~/pub/FreeBSD/FreeBSD-nonUS</pre>
+
+<li>load-local-dirinfo: (default: 0)<br>
+  Set this parameter to 1 if you want to load local ".dirinfo" files.
+  A ".dirinfo" file contains
+  <a href="#dirinfo">directory information</a> described below.
+
+
+<li>store-local-dirinfo: (default: 0)<br>
+  Set this parameter to 1 if you want to generate ".dirinfo" files
+  in local-side directories after each mirror session.
+  A ".dirinfo" file contains
+  <a href="#dirinfo">directory information</a> described below.
+
+<li>load-remote-dirinfo: (default: 0)
+Set this parameter to 1 if you want to load and use directory information stored in the FTP server. Using directory information, you can mirror files without STAT/LIST/SIZE/MDTM, and ftpmirror can check MD5 checksum of files.
+
+<li>override-file-uid: (default: 0)<br>
+  You can specify owner of files/directories in local. Any files
+  and directories which match <tt>override-*-regexp</tt>,
+  will be owned by this user id.
+  If <i>ftpmirror</i> is invoked by non privileged user,
+  this parameter is ignored.
+
+ </li><li>override-file-gid: (default: 0)<br>
+
+  Same as <a href="#override-file-uid"><tt>override-file-uid</tt></a>,
+  but this parameter is for group id.
+  Note that if one of <tt>override-file-uid</tt>
+  and <tt>override-file-gid</tt> is defined,
+  any file which matches <tt>override-*-regexp</tt> (even if it is
+  not transfered) will be modified with chown.
+
+ </li><li>override-file-mode: (default: root -&gt; 0444, other -&gt; 0644)<br>
+
+  You can specify local-side file mode.
+  <i>Ftpmirror</i> applies chmod to any file which matches
+  <tt>override-*-regexp</tt> if this parameter is specified.
+
+ </li><li>override-directory-mode: (default: 0755)<br>
+  Same as <a href="#override-file-mode"><tt>override-file-mode</tt></a>,
+  but this parameter is for directories.
+
+ </li><li>default-file-uid: (default: 0)<br>
+
+  Undef <a href="#override-file-uid"><tt>override-file-uid</tt></a>,
+  and set this parameter to specify default owner of local-side files.
+  <i>Ftpmirror</i> decides file owner in order:
+  <tt>override-file-uid</tt>, owner in FTP server,
+  <tt>default-file-uid</tt>.
+
+ </li><li>default-file-gid: (default: 0)<br>
+
+  Same as <tt>default-file-uid</tt>, but this parameter is for group id.
+
+ </li><li>default-file-mode: (default: root -&gt; 0444, other -&gt; 0644)<br>
+
+  Undef <a href="#override-file-mode"><tt>override-file-mode</tt></a>
+  and you can specify default file mode.
+  <i>Ftpmirror</i> tries to change file mode
+  in order: <tt>override-file-mode</tt>,
+  file mode in FTP server, <tt>default-file-mode</tt>.
+  Note that since file mode is masked with 0777, you can not set
+  setuid/setgid file modes.
+
+ </li><li>default-directory-mode: (default: 0755)<br>
+
+ Same as <a href="#default-file-mode"><tt>default-file-mode</tt></a>,
+ but this parameter is for a directory mode.
+ </li></ul>
+
+ <i>Ftpmirror</i> tries to compare files in local
+ and remote with these entries.
+ For example, <i>ftpmirror</i> compares as:
+ <ol>
+ <li><b>file</b> file-type<br>
+  Are sizes same? and are md5checksums same?
+ <li><b>symlink</b> file-type<br>
+
+  Do they point same file?
+ <li><b>directory</b> file-type<br>
+  Is the begin-time of last update of local directory is before
+  the end-time of last update of remote directory?
+ </ol>
+ Especially, comparing directory update times are effective,
+ if no file is changed in the remote directory, because <i>ftpmirror</i>
+ do nothing about the directory (even directory scan is skipped).
+ <p>
+ <i>Ftpmirror</i> generate ".dirinfo" file
+ if <a href=#store-local-dirinfo><tt>store-local-dirinfo</tt></a> parameter
+ is 1. You can also generate this file with mkdirinfo:
+ <pre>
+
+ # mkdirinfo /ftp/pub/utils</pre>
+
+<h2>Mailing list for <i>ftpmirror</i></h2>
+
+ Technical questions, suggestions, bug reports are welcome.
+ If you are interesting to <i>ftpmirror</i>, there is a mailing-list
+ to discuss about <i>ftpmirror</i>.
+ To subscribe, send a message
+ <pre>
+ subscribe ftpmirror</pre>
+
+ to <a href=mailto:majordomo@ftp.intec.co.jp>
+ majordomo@ftp.intec.co.jp</a>.
+
+<h2>Credits</h2>
+
+ I would like to thank to anyone who helped me by testing,
+ bug-reports, suggestions, sending patches.
+ Especially, members in
+ <a href=http://ring.etl.go.jp/>RingProject</a> helped me by
+ <b>heavy</b> testing <tt>:-)</tt> and many suggestions.
+
+
+<h2>Miscellaneous...</h2>
+
+ Please read COPYRIGHT for copyright notice.
+ Any comments, bug fixes, suggestions are welcome.
+ Please contact to
+ <a href=mailto:ikuo@intec.co.jp><i>Ikuo Nakagawa
+  &lt;ikuo@intec.co.jp&gt;</i></a>.
+
+<hr>
+<i>Last updated: 1997/01/27 by Ikuo Nakagawa</i><br>
+<i>This is community translated file. This is not original document.</i>
+<i>Translated on 2007-07-07 by Fumihito YOSHIDA (hito@kugutsu.org). Thank you.</i>
+</body></html>
+
diff -urNad ftpmirror-1.96+dfsg~/RELEASE ftpmirror-1.96+dfsg/RELEASE
--- ftpmirror-1.96+dfsg~/RELEASE	1970-01-01 01:00:00.000000000 +0100
+++ ftpmirror-1.96+dfsg/RELEASE	2007-07-16 03:20:27.995163981 +0200
@@ -0,0 +1,159 @@
+---- This is translated document for your convinience. ---
+
+Guidance of ftpmirror-1.96
+
+* Introduction
+
+One year or more has passed for the first time the 
+development of ftpmirror-2.0 branch. 
+It is reworking of ftpmirror-1.2 branch from scrach.
+
+Im busy, and doesn't make progress. However, I want 
+to fix the bug, new version of 1.96 is release now.
+
+Some bugs still remains, I will fix them.
+
+* About Changes
+
+Changelog from 1.2k is below (But it is not included always,
+because new version have a lot of changes).
+
+o Mirroring function supports PUT mode.
+  (When it is allowed, execute chmod at remote side)
+
+o Most parts were coding as module. 
+
+o MD5 support is currently wrote by XS, and direct 
+ execution is support now.
+
+o Mirroring function supports http proxy.
+(restriction: this func need dirinfo or ls-lR, and so on..)
+
+o Using AutoSplit. It can efficiency loading.
+
+o New feature (work in progress) : "INDEX mode".
+  It will could usefull mirroring including diff management.
+
+o Directory name conversion support for easy configuration.
+  For example,  ~ftp/pub  and  ~ftp/pub/%s and so on.
+
+o resource checking with getrusage command.
+
+o In FTP mode, login retry  and  reconnect when timed out 
+  is supports now. 
+
+Restriction:
+1.2k's functions of "unlink-limit" and "follow-symlink-regexp" 
+and some functions are not implemented yet. 
+These will come back at future release.
+
+* Bug fix information
+
+Newly version(1.96)'s fixlist is below. I will have corrected them.
+
+o Fix: problem of STAT commands, it with wu-ftpd and so on.
+
+o Fix: mirroring fail when include '_' in owner and group strings.
+
+* About version strings
+
+Currently version is 1.96. I will release incremetal versions
+(1.97, 1.98, 1.99...) in beta-phase, product release is using 2.0.
+But, if heavy bug remains, and/or in features enhancement,
+they have a possibility of branch 1.99 --> 1.991 ;)
+
+* How to install
+
+There is configurable from this version.
+
+Please type:
+
+% ./configure
+
+% make
+
+% su
+
+# make install
+
+so installing /usr/local/bin/ftpmirror and perl library.
+
+perl library is installed for site-addon, for example 
+"/usr/local/lib/perl5/site_perl".
+
+appendix modules are:
+
+Fan.pm
+
+Fan/Attrib.pm
+
+Fan/Cool.pm
+
+Fan/DIR.pm
+
+Fan/FTP.pm
+
+Fan/Farm.pm
+
+Fan/HTTP.pm
+
+Fan/Loader.pm
+
+Fan/MD5.pm
+
+Fan/Param.pm
+
+Fan/Scan.pm
+
+Fan/TCP.pm
+
+Fan/Usage.pm
+
+and their derivation objects.
+
+
+In default, samples configuration file
+
+/usr/local/etc/ftpmirror.cf-sample
+
+is dropped at installation. Please copy this file, 
+and edit for your configuration.
+
+# cd /usr/local/etc
+
+# cp ftpmirror.cf-sample ftpmirror.cf
+
+# vi ftpmirror.cf
+
+This sample is include basic settings, please wrote your 
+archive places and so on. Configuration syntax is wrote
+at README files.
+
+* Copyrights
+
+Omitted in translation, please see "COPYRIGHT" files.
+
+* Special thanks
+
+Thanks for RingProject members, and ftpmirror mailing 
+list members. You are provide very important informations 
+and helpful adivices. Thank you sincerely. 
+
+# Notice: Development will start the most severe part :-p
+# please cooperate further.  > ALL
+
+* epilogue
+
+If you have comments, ideas, bug reports,
+ please send message to ikuo@jp.freebsd.org . 
+
+Dec 27, 1999, Ikuo Nakagawa
+
+---- This is translated document for your convinience. ---
+
+--------------------------------------------------------------------------------
+
+ Translated into English on 2007-07-07 by Fumihito YOSHIDA <hito@kugutsu.org>.
+
+--------------------------------------------------------------------------------
+