config-upload 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. #
  2. # example configuration file for debianqueued
  3. #
  4. # set to != 0 for debugging output (to log file)
  5. $debug = 0;
  6. # general options to ssh/scp
  7. $ssh_options = "-o'BatchMode yes' -o'FallBackToRsh no' ".
  8. "-o'ForwardAgent no' -o'ForwardX11 no' ".
  9. "-o'PasswordAuthentication no' -o'StrictHostKeyChecking yes'";
  10. # ssh key file to use for connects to master (empty: default ~/.ssh/identity)
  11. $ssh_key_file = "";
  12. # the incoming dir we live in
  13. $incoming = "/srv/upload.debian.org/UploadQueue";
  14. # the delayed incoming directories
  15. $incoming_delayed = "/srv/queued/UploadQueue/DELAYED/%d-day";
  16. # maximum delay directory, -1 for no delayed directory,
  17. # incoming_delayed and target_delayed need to exist.
  18. $max_delayed = 15;
  19. # files not to delete in $incoming (regexp)
  20. $keep_files = '(status|\.message|README)$';
  21. # file patterns that aren't deleted right away
  22. $valid_files = '(\.changes|\.tar\.(?:gz|bz2|xz)|\.dsc|\.u?deb|diff\.gz|\.sh|\.asc)(\.[A-Za-z0-9]{6})?$';
  23. # Change files to mode 644 locally (after md5 check) or only on master?
  24. $chmod_on_target = 0;
  25. # Do an md5sum check?
  26. $check_md5sum = 0;
  27. # name of the status file or named pipe in the incoming dir
  28. $statusfile = "$incoming/status";
  29. # if 0, status file implemented as FIFO; if > 0, status file is plain
  30. # file and updated with a delay of this many seconds
  31. $statusdelay = 30;
  32. # names of the keyring files
  33. @keyrings = ( "/srv/ftp-master.debian.org/dak/config/debian-common/keyrings/automatic-source-uploads.kbx",
  34. "/srv/keyring.debian.org/keyrings/debian-keyring.gpg",
  35. "/srv/keyring.debian.org/keyrings/debian-maintainers.gpg",
  36. "/srv/keyring.debian.org/keyrings/debian-nonupload.gpg",
  37. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-all-keyring.gpg",
  38. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-amd64-keyring.gpg",
  39. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-arm64-keyring.gpg",
  40. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-armel-keyring.gpg",
  41. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-armhf-keyring.gpg",
  42. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-i386-keyring.gpg",
  43. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-ia64-keyring.gpg",
  44. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-mips64el-keyring.gpg",
  45. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-mipsel-keyring.gpg",
  46. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-mips-keyring.gpg",
  47. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-powerpc-keyring.gpg",
  48. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-ppc64el-keyring.gpg",
  49. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-s390-keyring.gpg",
  50. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-s390x-keyring.gpg",
  51. "/srv/keyring.debian.org/keyrings/buildd-keyrings/buildd-sparc-keyring.gpg");
  52. # our log file
  53. $logfile = "$queued_dir/run/log";
  54. # our pid file
  55. $pidfile = "$queued_dir/run/pid";
  56. # upload method (ssh, copy, ftp)
  57. $upload_method = "ftp";
  58. # name of target host (ignored on copy method)
  59. $target = "master.upload.debian.org";
  60. # login name on target host (for ssh, always 'ftp' for ftp, ignored for copy)
  61. $targetlogin = "ftp";
  62. # incoming on target host
  63. $targetdir = "/pub/UploadQueue/";
  64. # incoming/delayed on target host
  65. $targetdir_delayed = "/srv/queued/DEFERRED/%d-day";
  66. # select FTP debugging
  67. $ftpdebug = 0;
  68. # FTP timeout
  69. $ftptimeout = 900;
  70. # max. number of tries to upload
  71. $max_upload_retries = 8;
  72. # delay after first failed upload
  73. $upload_delay_1 = 30*60; # 30 min.
  74. # delay between successive failed uploads
  75. $upload_delay_2 = 4*60*60; # 4 hours
  76. # packages that must go to nonus.debian.org and thus are rejected here
  77. #@nonus_packages = qw(gpg-rsaidea);
  78. # timings:
  79. # --------
  80. # time between two queue checks
  81. $queue_delay = 5*60; # 5 min.
  82. # when are stray files deleted?
  83. $stray_remove_timeout = 24*60*60; # 1 day
  84. # delay before reporting problems with a .changes file (not
  85. # immediately for to-be-continued uploads)
  86. $problem_report_timeout = 30*60; # 30 min.
  87. # delay before reporting that a .changes file is missing (not
  88. # immediately for to-be-continued uploads)
  89. $no_changes_timeout = 30*60; # 30 min.
  90. # when are .changes with persistent problems removed?
  91. $bad_changes_timeout = 2*24*60*60; # 2 days
  92. # how long may a remote operation (ssh/scp) take?
  93. $remote_timeout = 3*60*60; # 3 hours
  94. # mail address of maintainer
  95. $maintainer_mail = "ftpmaster\@debian.org";
  96. # to override the TO address of ALL outgoing mail, set this value.
  97. $overridemail = "";
  98. # logfile rotating:
  99. # -----------------
  100. # how often to rotate (in days)
  101. $log_age = 7;
  102. # how much old logs to keep
  103. $log_keep = 4;
  104. # send summary mail when rotating logs?
  105. $mail_summary = 1;
  106. # write summary to file when rotating logs? (no if name empty)
  107. $summary_file = "$queued_dir/summary";
  108. # don't remove this, Perl needs it!
  109. 1;