]> git.donarmstrong.com Git - wannabuild.git/commitdiff
introduce a buildd mail domain [pkern]
authorwanna-build admin <wbadm@raff.debian.org>
Sun, 23 Nov 2008 15:44:46 +0000 (15:44 +0000)
committerwanna-build admin <wbadm@raff.debian.org>
Sun, 23 Nov 2008 15:44:46 +0000 (15:44 +0000)
bin/wanna-build
etc/wanna-build.conf.local

index 7b9c4ea77176f817e7f00cac75557efd9f3e879b..44f3743c2b37d8f348c6073dd52484f3808f139a 100755 (executable)
@@ -45,9 +45,9 @@ our ($verbose, $mail_logs, $list_order, $list_state,
     $curr_date, $op_mode, $user, $real_user, $distribution,
     $fail_reason, $opt_override, $import_from, $export_to, $opt_create_db,
     $transactlog, %db, %otherdb, %otherdb_lock, %prioval, %sectval,
-    $info_all_dists, $hostname, $arch,
+    $info_all_dists, $arch,
     $category, %catval, %short_category,
-    $short_date, $list_min_age, $dbbase, $host_set, @curr_time,
+    $short_date, $list_min_age, $dbbase, @curr_time,
     $build_priority, %new_vers, $binNMUver, %merge_srcvers, %merge_binsrc);
 
 # global vars
@@ -2177,14 +2177,11 @@ sub send_mail {
        my $text = shift;
 
        my $from = $conf::db_maint;
+       my $domain = $conf::buildd_domain;
 
-       if ($host_set != 1) {
-               chomp( $hostname = `/bin/hostname -f` );
-               $host_set = 1;
-       }
-       $from .= "\@$hostname" if $from !~ /\@/;
+       $from .= "\@$domain" if $from !~ /\@/;
 
-       $to .= '@' . $hostname if $to !~ /\@/;
+       $to .= '@' . $domain if $to !~ /\@/;
        $text =~ s/^\.$/../mg;
        local $SIG{'PIPE'} = 'IGNORE';
        open( PIPE,  "| $conf::mailprog -oem $to" )
index 95d4efbde9c35a1a73245bcbb7926264995b6692..febf5ecc51dc47c97b996674e4f90fdbf46473b9 100644 (file)
@@ -24,6 +24,9 @@ $notforus_maint = "rmurray-wanna-build";
 # where to send wanna-build statistics mails
 $stat_mail = "wb-team\@buildd.debian.org";
 
+# mail domain under which the buildds can be reached
+$buildd_domain = "buildd.debian.org";
+
 # file to publish statistics over WWW (optional)
 #$web_stats = "/var/www/buildd/stats.txt";