[mirrorbrain-commits] [opensuse-svn] r6683 - in trunk/tools/download-redirector-v2: mirrordoctor mirrorprobe mod_mirrorbrain scanner tools

From: Novell Forge SVN <noreply_at_novell.com>
Date: Tue, 3 Mar 2009 17:00:26 -0700 (MST)
Author: poeml
Date: 2009-03-03 17:00:18 -0700 (Tue, 03 Mar 2009)
New Revision: 6683

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/setup.py
   trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py
   trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c
   trunk/tools/download-redirector-v2/scanner/scanner.pl
   trunk/tools/download-redirector-v2/tools/create_timestamp
   trunk/tools/download-redirector-v2/tools/geoip-lite-update
   trunk/tools/download-redirector-v2/tools/geoiplookup_city.c
   trunk/tools/download-redirector-v2/tools/geoiplookup_continent.c
   trunk/tools/download-redirector-v2/tools/metalink-hasher.py
   trunk/tools/download-redirector-v2/tools/rsyncinfo.py
   trunk/tools/download-redirector-v2/tools/rsyncusers
   trunk/tools/download-redirector-v2/tools/rsyncusers.sh
Log:
Update and unify license headers at the top of files.


Modified: trunk/tools/download-redirector-v2/mirrordoctor/setup.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/setup.py	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/mirrordoctor/setup.py	2009-03-04 00:00:18 UTC (rev 6683)
@@ -5,9 +5,9 @@
 setup(name='mirrordoctor',
       version='1.0',
       description='MirrorDoctor, a tool to maintain the MirrorBrain database',
-      author='Peter Poeml',
-      author_email='poeml_at_suse.de',
-      license='GPL',
+      author='MirrorBrain project',
+      author_email='info_at_mirrorbrain.org',
+      license='GPLv2',
       url='http://mirrorbrain.org/',
 
       packages=['mb'],

Modified: trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/mirrorprobe/mirrorprobe.py	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,9 +1,26 @@
 #!/usr/bin/python
 
-__author__ = "Peter Poeml <poeml_at_suse.de>"
-__copyright__ = "Novell Inc."
-__license__ = "GPL"
+################################################################################
+# mirrorprobe -- fetch mirrors from a database, try to access them and mark them 
+#                as "up" or "down".
+#
+# Copyright (C) 2007,2008,2009 Peter Poeml <poeml_at_cmdline.net>, Novell Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 2
+# as published by the Free Software Foundation;
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+################################################################################
 
+
 import sys, os, os.path, time, threading, socket, urllib2, httplib
 import logging, logging.handlers
 from optparse import OptionParser

Modified: trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c
===================================================================
--- trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/mod_mirrorbrain/mod_mirrorbrain.c	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007,2008 Peter Poeml <poeml_at_suse.de> / Novell Inc.
+ * Copyright 2007,2008,2009 Peter Poeml / Novell Inc.
  * All rights reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,10 +15,10 @@
  * limitations under the License.
  *
  *
- * mod_mirrorbrain, the heart of the MirrorBrain, does
- *  - redirect clients to mirror servers, based on sql database
- *  - generate real-time metalinks
- *  - generate text or HTML mirror lists
+ * mod_mirrorbrain is the heart of MirrorBrain, which
+ *  - redirects clients to mirror servers, based on an SQL database
+ *  - generates metalinks in real-time
+ *  - generates text or HTML mirror lists
  * See http://mirrorbrain.org/ 
  *
  * Credits:

Modified: trunk/tools/download-redirector-v2/scanner/scanner.pl
===================================================================
--- trunk/tools/download-redirector-v2/scanner/scanner.pl	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/scanner/scanner.pl	2009-03-04 00:00:18 UTC (rev 6683)
@@ -3,8 +3,8 @@
 ################################################################################
 # scanner.pl -- daemon for working through opensuse directories.
 #
-# Copyright (C) 2006-2009 Martin Polster, Juergen Weigert, 
-#                         Peter Poeml, Novell Inc.
+# Copyright 2006,2007,2008,2009 Martin Polster, Juergen Weigert, 
+#                               Peter Poeml, Novell Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License version 2

Modified: trunk/tools/download-redirector-v2/tools/create_timestamp
===================================================================
--- trunk/tools/download-redirector-v2/tools/create_timestamp	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/create_timestamp	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,22 +1,33 @@
 #!/usr/bin/env python
 
-"""
-Securely write timestamped marker files
+# Securely write timestamped marker files
+# 
+# 
+# This script is not really usable without prior modification, due to hardcoded
+# path names and user/group IDs. Thus, you have to edit it for your needs.
+# 
+# One thing that is special is that the files ending in "invisible" will be made
+# mode 0640, others 0644.
+#
+#
+# 
+# Copyright 2008,2009 Peter Poeml <poeml_at_suse.de>, Novell Inc.
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 2
+# as published by the Free Software Foundation;
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 
-The files ending in "invisible" will be made mode 0640, others 0644.
 
-This script is not usable without prior modification, due to hardcoded path
-names and user/group IDs.
 
-Peter Poeml <poeml_at_suse.de>
-
-
-Copyright (C) 2006 Peter Poeml / Novell Inc.  All rights reserved.
-This program is free software; it may be used, copied, modified
-and distributed under the terms of the GNU General Public Licence,
-either version 2, or (at your option) any later version.
-"""
-
 import os
 import time
 import tempfile

Modified: trunk/tools/download-redirector-v2/tools/geoip-lite-update
===================================================================
--- trunk/tools/download-redirector-v2/tools/geoip-lite-update	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/geoip-lite-update	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+# geoip-lite-update -- update geoip lite database(s).
+# (c) 2008,2009 poeml_at_cmdline.net
+# Distribute under GPLv2 if it proves worthy.
+
+
 set -e
 
 cd /usr/share/GeoIP/

Modified: trunk/tools/download-redirector-v2/tools/geoiplookup_city.c
===================================================================
--- trunk/tools/download-redirector-v2/tools/geoiplookup_city.c	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/geoiplookup_city.c	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,4 +1,27 @@
-/* tool to look up details about IP address or DNS name */
+/*
+ * Copyright 2007,2008,2009 Peter Poeml
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ *
+ *
+ * Fragments of the code are copied from the GeoIP library, which is published
+ * under the LGPL and Copyright 2005 MaxMind LLC. 
+ *
+ *
+ * tool to look up city data of an IP address or DNS name
+ * using the free city GeoIP database
+ *
 /* gcc -g -Wall -lGeoIP -o geoiplookup_city geoiplookup_city.c */
 #include <stdio.h>
 #include <GeoIP.h>

Modified: trunk/tools/download-redirector-v2/tools/geoiplookup_continent.c
===================================================================
--- trunk/tools/download-redirector-v2/tools/geoiplookup_continent.c	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/geoiplookup_continent.c	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,5 +1,26 @@
-/* tool to look up the continent of an IP address or DNS name */
-/* gcc -g -Wall -lGeoIP -o geoiplookup_continent geoiplookup_continent.c */
+/*
+ * Copyright 2007,2008,2009 Peter Poeml
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ *
+ *
+ *
+ * handy tool to look up the continent of an IP address or DNS name
+ *
+ * It should be possible to compile this as such:
+ * gcc -g -Wall -lGeoIP -o geoiplookup_continent geoiplookup_continent.c */
+
 #include <stdio.h>
 #include <GeoIP.h>
 #include <GeoIPCity.h>

Modified: trunk/tools/download-redirector-v2/tools/metalink-hasher.py
===================================================================
--- trunk/tools/download-redirector-v2/tools/metalink-hasher.py	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/metalink-hasher.py	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,17 +1,33 @@
 #!/usr/bin/python
 
-"""
-Script to create metalink hashes
+# metalink-hasher -- create metalink hashes
+# 
+# This script requires the cmdln module, which you can obtain here:
+# http://trentm.com/projects/cmdln/
+# and the metalink commandline tool, which you can find here:
+# http://metamirrors.nl/metalinks_project
+# 
+# 
+# Copyright 2008,2009 Peter Poeml
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 2
+# as published by the Free Software Foundation;
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 
-Requirements:
-cmdln from http://trentm.com/projects/cmdln/
-metalink commandline tool from http://metamirrors.nl/metalinks_project
-"""
 
-__version__ = '1.0'
+__version__ = '1.1'
 __author__ = 'Peter Poeml <poeml_at_suse.de>'
 __copyright__ = 'Peter poeml <poeml_at_suse.de>'
-__license__ = 'GPL'
+__license__ = 'GPLv2'
 __url__ = 'http://mirrorbrain.org'
 
 

Modified: trunk/tools/download-redirector-v2/tools/rsyncinfo.py
===================================================================
--- trunk/tools/download-redirector-v2/tools/rsyncinfo.py	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/rsyncinfo.py	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,17 +1,27 @@
 #!/usr/bin/python
 
-"""
-Script to get info on modules on rsync servers
+# rsyncinfo - script to get info on modules on rsync servers
+# 
+# This script requires the cmdln module, which you can obtain here:
+# http://trentm.com/projects/cmdln/
+#
+#
+# Copyright 2007,2008,2009 Peter Poeml
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 2
+# as published by the Free Software Foundation;
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 
-Requirements:
-cmdln from http://trentm.com/projects/cmdln/
-"""
 
-__version__ = '1.0'
-__author__ = 'Peter Poeml <poeml_at_suse.de>'
-__copyright__ = 'Peter poeml <poeml_at_suse.de>'
-__license__ = 'GPL'
-__url__ = 'http://mirrorbrain.org'
 
 import sys, commands
 import cmdln

Modified: trunk/tools/download-redirector-v2/tools/rsyncusers
===================================================================
--- trunk/tools/download-redirector-v2/tools/rsyncusers	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/rsyncusers	2009-03-04 00:00:18 UTC (rev 6683)
@@ -1,25 +1,40 @@
 #!/usr/bin/python
 
+# Analyze rsync logfile to list rsync users per rsync module
+# 
+# This script uses Python generators, which means that it doesn't allocate memory
+# It rather works like a Unix pipe.
+# 
+# It transparently opens uncompressed, gzip or bzip2 compressed files.
+# 
+# The implementation is based on David Beazley's PyCon UK 08 great talk about
+# generator tricks for systems programmers.
+#
+#
+#
+# Copyright 2008,2009 Peter Poeml
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 2
+# as published by the Free Software Foundation;
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
+
 __version__='2.0'
 __author__='Peter Poeml <poeml_at_suse.de>'
 __copyright__='Peter poeml <poeml_at_suse.de>'
-__license__='GPL'
+__license__='GPLv2'
 __url__='http://mirrorbrain.org'
 
-"""
-Analyze rsync logfile to list rsync users per rsync module
 
-This script uses Python generators, which means that it doesn't allocate memory
-It rather works like a Unix pipe.
-
-It transparently opens uncompressed, gzip or bzip2 compressed files.
-
-
-The implementation is based on David Beazley's PyCon UK 08 great talk about
-generator tricks for systems programmers.
-
-"""
-
 # 2008/09/19 15:26:53 [16972] rsync on opensuse-full from ftp1.yz.yamagata-u.ac.jp (133.24.255.159)
 
 try:

Modified: trunk/tools/download-redirector-v2/tools/rsyncusers.sh
===================================================================
--- trunk/tools/download-redirector-v2/tools/rsyncusers.sh	2009-03-03 23:20:57 UTC (rev 6682)
+++ trunk/tools/download-redirector-v2/tools/rsyncusers.sh	2009-03-04 00:00:18 UTC (rev 6683)
@@ -2,10 +2,25 @@
 
 # analyze rsync logfile to list rsync users per rsync module
 
+# Copyright 2008,2009 Peter Poeml <poeml_at_suse.de>
+# 
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 2
+# as published by the Free Software Foundation;
+# 
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+
 __version__='1.0'
 __author__='Peter Poeml <poeml_at_suse.de>'
 __copyright__='Peter poeml <poeml_at_suse.de>'
-__license__='GPL'
+__license__='GPLv2'
 __url__='http://mirrorbrain.org'
 
 

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on 2009-03-04Z00:00:53

This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:12 GMT