]> git.pld-linux.org Git - projects/distfiles.git/blame - README.en
(Temporarily) support both scp and ftp
[projects/distfiles.git] / README.en
CommitLineData
69d37339
ER
1Scripts in this directory contains the files to the automatic choke
2distfiles repository.
3
4Requirements: wget >= 1.10
5
6How does it work?
7
8There are two parts:
9
10First parser:
11
12 Requesty mail gets to the source to tighten foo.spec
13 in branchu BAR. Converts the spec file and throws a unique
14 named to the spool /. The file contains:
15
16 <kto-wysłał>
17 <flags>
18 <md5> <space> <url>
19 ...
20 ERROR: <cokolwiek>
21 ...
22 <md5> <space> <url>
23 ERROR: <cokolwiek>
24 ...
25 <md5> <space> <url>
26
27 Format of the order, in the body of the following lines:
28
29 X-Spec: foo.spec
30 X-Branch: HEAD
31 X-Login: foobar
32 X-Flags: force-reply
33
34 In the header:
35
36 X-distfiles-request ...
37
38 components:
39 run-rh.sh
40 request-handler.pl
41 specparser.pl
42
43Second fetcher:
44
45 components:
46 run-ff.sh
47 file-fetcher.pl
48
49 Run from cron every minute. run-ff.sh cares that the time is not
50 it was more than 10 such animals.
51
52 Take the spool / one file reads and zapmiętuje, attempts to remove, if
53 did not work out (race). Are then pulls the source, if
54 have not yet been downloaded, md5 checks and transfers to ftp. finally
55 send an email to the customer with a report, unless everything was
56 recovered and there was no flag 'force-reply'.
57
58Directories:
59
60 ~/distfiles/spool/
61 exchange of information fetcher <-> parser
62
63 ~/distfiles/tmp/
64 temporary files
65
66 ~/distfiles/ftp/
67 This should be a symlink to the root ftp
This page took 0.115632 seconds and 4 git commands to generate.