[debian-edu-commits] r83851 - trunk/src/cronjobs

ccscanf-guest at alioth.debian.org ccscanf-guest at alioth.debian.org
Sat Sep 20 17:14:08 UTC 2014


Author: ccscanf-guest
Date: 2014-09-20 17:14:08 +0000 (Sat, 20 Sep 2014)
New Revision: 83851

Added:
   trunk/src/cronjobs/README.migrated2git
Removed:
   trunk/src/cronjobs/aggregator.pl
   trunk/src/cronjobs/crontab.alioth
   trunk/src/cronjobs/crontab.builder at administrator
   trunk/src/cronjobs/crontab.builder at developer
   trunk/src/cronjobs/crontab.builder at maintainer
   trunk/src/cronjobs/debian-edu-aggregator
Log:
Migration to git.

Added: trunk/src/cronjobs/README.migrated2git
===================================================================
--- trunk/src/cronjobs/README.migrated2git	                        (rev 0)
+++ trunk/src/cronjobs/README.migrated2git	2014-09-20 17:14:08 UTC (rev 83851)
@@ -0,0 +1,2 @@
+The directory cronjobs has been migrated to Git on Alioth:
+http://anonscm.debian.org/gitweb/?p=debian-edu/directories/cronjobs.git

Deleted: trunk/src/cronjobs/aggregator.pl
===================================================================
--- trunk/src/cronjobs/aggregator.pl	2014-09-20 10:43:04 UTC (rev 83850)
+++ trunk/src/cronjobs/aggregator.pl	2014-09-20 17:14:08 UTC (rev 83851)
@@ -1,65 +0,0 @@
-#!/usr/bin/perl
-# Perl module used by the aggregator programs.
-
-use warnings;
-use strict;
-
-sub aggregate {
-	foreach my $log (@_) {
-		print "<li><a href=\"".$log->{url}."\">".$log->{description}."</a><br>\n";
-		my $logurl=$log->{logurl}."overview".$log->{logext}."\n";
-		if ($logurl=~m#.*://#) {
-			if (! open (LOG, "wget --tries=3 --timeout=5 --quiet -O - $logurl |")) {
-				print "<b>wget error</b>\n";
-			}
-		}
-		else {
-			open (LOG, $logurl) || print "<b>cannot open $logurl</b>\n";
-		}
-		my @lines=<LOG>;
-		if (! close LOG) {
-			print "<b>failed</b> to download <a href=\"$logurl\">summary log</a>";
-			next;
-		}
-		if (! @lines) {
-			print "<b>empty</b> <a href=\"$logurl\">log</a>";
-		}
-		else {
-			print "<ul>\n";
-		}
-		foreach my $line (@lines) {
-			chomp $line;
-			my ($arch, $date, $builder, $ident, $status, $notes) = 
-				$line =~ /^(.*?)\s+\((.*?)\)\s+(.*?)\s+(.*?)\s+(.*?)(?:\s+(.*))?$/;
-			if (! defined $status) {
-				print "<li><b>unparsable</b> entry:</i> $line\n";
-			}
-			else {
-				$date=~s/[^A-Za-z0-9: ]//g; # untrusted string
-				my $shortdate=`TZ=GMT LANG=C date -d '$date' '+%b %d %H:%M'`;
-				chomp $shortdate;
-				if (! length $shortdate) {
-					$shortdate=$date;
-				}
-				my $unixdate=`TZ=GMT LANG=C date -d '$date' '+%s'`;
-				if (length $unixdate && 
-				    (time - $unixdate) > ($log->{frequency}+1) * 60*60*24)  {
-					$shortdate="<b>$shortdate</b>";
-				}
-				if ($status eq 'failed') {
-					$status='<b>failed</b>';
-				}
-				if (defined $notes && length $notes) {
-					$notes="($notes)";
-				}
-				else {
-					$notes="";
-				}
-				print "<li>$arch $shortdate $builder <a href=\"".$log->{logurl}."$ident".$log->{logext}."\">$status</a> $ident $notes\n";
-			}
-		}
-		print "</ul>\n";
-	}
-}
-
-1

Deleted: trunk/src/cronjobs/crontab.alioth
===================================================================
--- trunk/src/cronjobs/crontab.alioth	2014-09-20 10:43:04 UTC (rev 83850)
+++ trunk/src/cronjobs/crontab.alioth	2014-09-20 17:14:08 UTC (rev 83851)
@@ -1,13 +0,0 @@
-# debian-edu crontab for alioth.
-# Currently this crontab is run by joeyh, so contact him if you change it.
-
-DEBIAN_EDU=/org/alioth.debian.org/chroot/home/groups/debian-edu
-
-# debian-edu CD status overview page
-*/30 * * * * cd $DEBIAN_EDU/cronjobs; ./debian-edu-aggregator > ../htdocs/status.html; chgrp debian-edu ../htdocs/status.html; chmod 664 ../htdocs/status.html 2>/dev/null
-
-# Update the website. Preserve status.html, which is not in svn, but is automatically generated above.
-15 * * * * cd $DEBIAN_EDU; rm -rf htdocs.new; svn export -q svn://svn.debian.org/svn/debian-edu/trunk/html htdocs.new; cp htdocs/status.html htdocs.new; mv htdocs htdocs.old; mv htdocs.new htdocs; rm -rf htdocs.old
-
-# Update the cronjobs directory.
-20 * * * * cd $DEBIAN_EDU; rm -rf cdonrjobs.new; svn export -q svn://svn.debian.org/svn/debian-edu/trunk/src/cronjobs cronjobs.new; rm -rf cronjobs; mv cronjobs.new cronjobs

Deleted: trunk/src/cronjobs/crontab.builder at administrator
===================================================================
--- trunk/src/cronjobs/crontab.builder at administrator	2014-09-20 10:43:04 UTC (rev 83850)
+++ trunk/src/cronjobs/crontab.builder at administrator	2014-09-20 17:14:08 UTC (rev 83851)
@@ -1,48 +0,0 @@
-# Add ~/bin to PATH
-PATH=/home/builder/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
-
-# For sending our result
-MAILTO="commits at skolelinux.no"
-
-#
-# Generate the list of bugs against our packages. [pere 2002-07-22]
-#
-50 7 * * * nice $HOME/src/skolelinuxsvn/skolelinux/src/cronjobs/buildbuglist.sh
-
-#
-# Generate debian packages [pere 2002-03-16]
-#
-*/15 * * * * nice $HOME/src/skolelinuxsvn/skolelinux/src/cronjobs/builddebs.sh
-
-#
-# Remove the build log from package building once per day. [pere 2003-01-20]
-1 1 * * * find $HOME -mtime +4 -name 'autobuild-debs-*' |xargs -r rm
-
-# Use new mirror sync setup [white 2008-12-26]
-# sync more frequently [holger 2010-01-30]
-#  (dinstall runs 1|7|13|19:52 and takes up to 4h, see http://ftp-master.debian.org/stat/totals.png)
-
-01 06,12,18,23 * * * nice $HOME/bin/ftpsync
-# copy the one above for debian-security [sep 2009-07-06]
-50 05,11,17,23 * * * nice $HOME/bin/ftpsync-security
-
-#
-# Check local packages for changes and rebuild CDs [pere 2006-09-01]
-# Run 2 minutes past every whole quarter, to build with the packages made available
-# in the local APT source every quarter.
-7,22,37,52 * * * * nice make -s -C $HOME/src/debian-edu/src/build/CD-administrator check-and-build
-
-#7,37 * * * * nice make -s -C $HOME/src/debian-edu/src/build/CD-administrator check-and-build
-# only run  twice a day, so that people have a chance to actually download DVDs
-#15 11,23* * * * nice make -s -C $HOME/src/debian-edu/src/build/CD-administrator check-and-build
-
-
-# Create list of packages being in local
-10,40 * * * * /home/builder/src/debian-edu/src/archive/gather.pl
-15,45 * * * * /home/builder/src/debian-edu/src/archive/ask.pl > /var/www/ftp.skolelinux.org/edu-packages
-
-# grab popcon data nightly, 
-1 1 * * * nice make -s -C $HOME/src/debian-edu/src/build/CD-administrator get_popcon  > /dev/null
-
-# Generate live CD
-#0 4,16 * * * nice /home/builder/src/debian-edu/src/build/live-CD/build.sh

Deleted: trunk/src/cronjobs/crontab.builder at developer
===================================================================
--- trunk/src/cronjobs/crontab.builder at developer	2014-09-20 10:43:04 UTC (rev 83850)
+++ trunk/src/cronjobs/crontab.builder at developer	2014-09-20 17:14:08 UTC (rev 83851)
@@ -1,33 +0,0 @@
-# Add ~/bin to PATH
-PATH=/home/builder/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
-
-# For sending av resultat
-MAILTO="commits at skolelinux.no"
-
-#
-# Update the web pages from CVS every 5 minutes. [pere 2001-07-27]
-#
-*/5 * * * * ( cd /home/www; LC_CTYPE=no_NO nice svn -q up > /dev/null )
-
-#
-# Run checkbot every day [pere 2001-09-22]
-#
-32 02 * * * nice /var/www/developer.skolelinux.no/checkbot/run.sh
-
-#
-# Mirror Debian packages [pere 2002-06-26]
-#
-# Disabled as the CD isn't built any more [pere 2006-10-23]
-#40 10 * * * nice $HOME/src/skolelinuxsvn/skolelinux/src/cronjobs/rsync-debian
-
-#
-# Update APT summary [pere 2002-10-07]
-# Disabled as the CD isn't built any more [pere 2006-10-23]
-#*/10 * * * * nice $HOME/src/skolelinuxsvn/skolelinux/src/cronjobs/update-apt-lists.sh > /dev/null
-
-#
-# Generate CD images. [pere 2001-10-25]
-#
-# Official ones based on woody
-# Disabled as they are not building properly any more [pere 2006-10-23]
-#1 */6 * * * nice $HOME/src/skolelinuxsvn/skolelinux/src/cronjobs/buildcd.sh

Deleted: trunk/src/cronjobs/crontab.builder at maintainer
===================================================================
--- trunk/src/cronjobs/crontab.builder at maintainer	2014-09-20 10:43:04 UTC (rev 83850)
+++ trunk/src/cronjobs/crontab.builder at maintainer	2014-09-20 17:14:08 UTC (rev 83851)
@@ -1,10 +0,0 @@
-# Add ~/bin to PATH
-PATH=/home/builder/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
-
-# For sending av resultat
-MAILTO="commits at skolelinux.org"
-
-#
-# Update the web pages from SVN every 5 minutes.
-#
-*/5 * * * * update-websites-maintainer

Deleted: trunk/src/cronjobs/debian-edu-aggregator
===================================================================
--- trunk/src/cronjobs/debian-edu-aggregator	2014-09-20 10:43:04 UTC (rev 83850)
+++ trunk/src/cronjobs/debian-edu-aggregator	2014-09-20 17:14:08 UTC (rev 83851)
@@ -1,58 +0,0 @@
-#!/usr/bin/perl
-# This program downloads summary log files for the daily image builds and
-# tests and constructs a web page overview of debian-edu status.
-
-my @list = (
-	{
-		url => 'http://debian-edu.alioth.debian.org/logs/',
-		logurl => 'http://debian-edu.alioth.debian.org/logs/',
-		email => 'joeyh at debian.org',
-		description => 'debian-edu CD build',
-		logext => ".log",
-		frequency => 0.5,
-	},
-	
-	{
-		url => 'http://dilab.debian.net:800/~joey/d-i/logs/i386/debian-edu/',
-		logurl => 'http://dilab.debian.net:800/~joey/d-i/logs/i386/debian-edu/',
-		email => 'joeyh at debian.org',
-		description => "Joey's install tests",
-		logext => ".log",
-		frequency => 1,
-	},
-
-#	{
-#		url => 'http://somehost/',
-#		logurl => 'http://somehost/',
-#		email => 'you at debian.org',
-#		description => 'put something informative here',
-#		logext => ".log",
-#		frequency => 1,
-#	},
-);
-
-use warnings;
-use strict;
-require "aggregator.pl";
-
-print <<EOS;
-<html>
-<head>
-<title>debian-edu status overview</title>
-</head>
-<body>
-<ul>
-EOS
-
-aggregate(@list);
-
-my $date=`LANG=C TZ=GMT date`;
-chomp $date;
-print <<"EOS"
-</ul>
-
-<hr>
-$date
-</body>
-</html>
-EOS




More information about the debian-edu-commits mailing list