X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FConfig.pm;h=895b799f7c8e0c7c20a53f70360df4d52e51f455;hb=5e1d790ad9be538e2120eed0f13341969434fd19;hp=1997cbb9e7412423566fb5e8992dad5075695609;hpb=580822d029b7914604e00b23974bd1baa8410bed;p=debbugs.git diff --git a/Debbugs/Config.pm b/Debbugs/Config.pm index 1997cbb..895b799 100644 --- a/Debbugs/Config.pm +++ b/Debbugs/Config.pm @@ -55,13 +55,19 @@ BEGIN { qw($gBugs $gRemoveAge $gSaveOldBugs $gDefaultSeverity), qw($gShowSeverities $gBounceFroms $gConfigDir $gSpoolDir), qw($gIncomingDir $gWebDir $gDocDir $gMaintainerFile), - qw($gMaintainerFileOverride $gPseudoDescFile $gPackageSource), + qw($gMaintainerFileOverride $gPseudoMaintFile $gPseudoDescFile $gPackageSource), qw($gVersionPackagesDir $gVersionIndex $gBinarySourceMap $gSourceBinaryMap), qw($gVersionTimeIndex), qw($gSendmail $gLibPath $gSpamScan @gExcludeFromControl), qw(%gSeverityDisplay @gTags @gSeverityList @gStrongSeverities), qw(%gSearchEstraier), + qw(%gDistributionAliases), qw(@gPostProcessall @gRemovalDefaultDistributionTags @gRemovalDistributionTags @gRemovalArchitectures), + qw(@gRemovalStrongSeverityDefaultDistributionTags), + qw(@gDefaultArchitectures), + qw($gTemplateDir), + qw($gDefaultPackage), + qw($gSpamMaxThreads $gSpamSpamsPerThread $gSpamKeepRunning $gSpamScan $gSpamCrossassassinDb) ], text => [qw($gBadEmailPrefix $gHTMLTail $gHTMLExpireNote), ], @@ -138,7 +144,7 @@ concatenation of L and L =cut -set_default(\%config,'web_domain',$config{web_host}.'/'.$config{web_host_bug_dir}); +set_default(\%config,'web_domain',$config{web_host}.($config{web_host}=~m{/$}?'':'/').$config{web_host_bug_dir}); =item html_suffix $gHTMLSuffix @@ -177,6 +183,15 @@ package links will not be made. set_default(\%config,'package_pages',undef); +=item package_pages $gUsertagPackageDomain + +Domain where where usertags of packages belong; defaults to $gPackagePages + +=cut + +set_default(\%config,'usertag_package_domain',$config{package_pages}); + + =item subscription_domain $gSubscriptionDomain Domain where subscriptions to package lists happen @@ -235,7 +250,7 @@ Default: "$config{web_domain}/~owner" set_default(\%config,'maintainer_webpage',"$config{web_domain}/~owner"); -=item maintainer_email +=item maintainer_email $gMaintainerEmail Email address of the maintainer of this Debbugs install @@ -326,15 +341,64 @@ Default: 1 set_default(\%config,'save_old_bugs',1); +=item distribution_aliases + +Map of distribution aliases to the distribution name + +Default: + {experimental => 'experimental', + unstable => 'unstable', + testing => 'testing', + stable => 'stable', + oldstable => 'oldstable', + sid => 'unstable', + lenny => 'testing', + etch => 'stable', + sarge => 'oldstable', + } + +=cut + +set_default(\%config,'distribution_aliases', + {experimental => 'experimental', + unstable => 'unstable', + testing => 'testing', + stable => 'stable', + oldstable => 'oldstable', + sid => 'unstable', + lenny => 'testing', + etch => 'stable', + sarge => 'oldstable', + }, + ); + + + =item distributions List of valid distributions -Default: qw(experimental unstable testing stable oldstable); +Default: The values of the distribution aliases map. + +=cut + +my %_distributions_default; +@_distributions_default{values %{$config{distribution_aliases}}} = values %{$config{distribution_aliases}}; +set_default(\%config,'distributions',[keys %_distributions_default]); + + +=item default_architectures + +List of default architectures to use when architecture(s) are not +specified + +Default: i386 amd64 arm ppc sparc alpha =cut -set_default(\%config,'distributions',[qw(experimental unstable testing stable oldstable)]); +set_default(\%config,'default_architectures', + [qw(i386 amd64 arm powerpc sparc alpha)] + ); =item removal_distribution_tags @@ -360,6 +424,20 @@ set_default(\%config,'removal_default_distribution_tags', [qw(unstable testing)] ); +=item removal_strong_severity_default_distribution_tags + +For removal/archival purposes, all bugs with strong severity are +assumed to have these tags set. + +Default: qw(unstable testing stable); + +=cut + +set_default(\%config,'removal_strong_severity_default_distribution_tags', + [qw(unstable testing stable)] + ); + + =item removal_architectures For removal/archival purposes, these architectures are consulted if @@ -367,12 +445,12 @@ there is more than one architecture applicable. If the bug is in a package not in any of these architectures, the architecture actually checked is undefined. -Default: qw(i386 amd64 arm ppc sparc alpha); +Default: value of default_architectures =cut set_default(\%config,'removal_architectures', - [qw(i386 amd64 arm ppc sparc alpha)] + $config{default_architectures}, ); @@ -395,10 +473,26 @@ Default: '[A-Za-z0-9:+\.-]+' =cut + set_default(\%config,'package_version_re', '[A-Za-z0-9:+\.~-]+'); +=item default_package + +This is the name of the default package. If set, bugs assigned to +packages without a maintainer and bugs missing a Package: psuedoheader +will be assigned to this package instead. + +Defaults to unset, which is the traditional debbugs behavoir + +=cut + +set_default(\%config,'default_package', + undef + ); + + =item control_internal_requester This address is used by Debbugs::Control as the request address which @@ -462,8 +556,19 @@ set_default(\%config,'web_dir','/var/lib/debbugs/www'); set_default(\%config,'doc_dir','/var/lib/debbugs/www/txt'); set_default(\%config,'lib_path','/usr/lib/debbugs'); + +=item template_dir + +directory of templates; defaults to /usr/share/debbugs/templates. + +=cut + +set_default(\%config,'template_dir','/usr/share/debbugs/templates'); + + set_default(\%config,'maintainer_file',$config{config_dir}.'/Maintainers'); set_default(\%config,'maintainer_file_override',$config{config_dir}.'/Maintainers.override'); +set_default(\%config,'pseudo_maint_file',$config{config_dir}.'/pseudo-packages.maint'); set_default(\%config,'pseudo_desc_file',$config{config_dir}.'/pseudo-packages.description'); set_default(\%config,'package_source',$config{config_dir}.'/indices/sources'); @@ -538,6 +643,92 @@ Whether or not spamscan is being used; defaults to 0 (not being used set_default(\%config,'spam_scan',0); +=item spam_crossassassin_db + +Location of the crosassassin database, defaults to +spool_dir/../CrossAssassinDb + +=cut + +set_default(\%config,'spam_crossassassin_db',$config{spool_dir}.'/../CrossAssassinDb'); + +=item spam_max_cross + +Maximum number of cross-posted messages + +=cut + +set_default(\%config,'spam_max_cross',6); + + +=item spam_spams_per_thread + +Number of spams for each thread (on average). Defaults to 200 + +=cut + +set_default(\%config,'spam_spams_per_thread',200); + +=item spam_max_threads + +Maximum number of threads to start. Defaults to 20 + +=cut + +set_default(\%config,'spam_max_threads',20); + +=item spam_keep_running + +Maximum number of seconds to run without restarting. Defaults to 3600. + +=cut + +set_default(\%config,'spam_keep_running',3600); + +=item spam_mailbox + +Location to store spam messages; is run through strftime to allow for +%d,%m,%Y, et al. Defaults to 'spool_dir/../mail/spam/assassinated.%Y-%m-%d' + +=cut + +set_default(\%config,'spam_mailbox',$config{spool_dir}.'/../mail/spam/assassinated.%Y-%m-%d'); + +=item spam_crossassassin_mailbox + +Location to store crossassassinated messages; is run through strftime +to allow for %d,%m,%Y, et al. Defaults to +'spool_dir/../mail/spam/crossassassinated.%Y-%m-%d' + +=cut + +set_default(\%config,'spam_crossassassin_mailbox',$config{spool_dir}.'/../mail/spam/crossassassinated.%Y-%m-%d'); + +=item spam_local_tests_only + +Whether only local tests are run, defaults to 0 + +=cut + +set_default(\%config,'spam_local_tests_only',0); + +=item spam_user_prefs + +User preferences for spamassassin, defaults to $ENV{HOME}/.spamassassin/user_prefs + +=cut + +set_default(\%config,'spam_user_prefs',"$ENV{HOME}/.spamassassin/user_prefs"); + +=item spam_rules_dir + +Site rules directory for spamassassin, defaults to +'/usr/share/spamassassin' + +=cut + +set_default(\%config,'spam_rules_dir','/usr/share/spamassassin'); + =back @@ -577,6 +768,8 @@ set_default(\%config,'text_instructions',$config{bad_email_prefix}); This shows up at the end of (most) html pages +In many pages this has been replaced by the html/tail template. + =cut set_default(\%config,'html_tail',<