You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alois-commits@incubator.apache.org by fl...@apache.org on 2010/11/04 18:27:42 UTC

svn commit: r1031127 [2/22] - in /incubator/alois/trunk: ./ bin/ debian/ doc/ etc/ etc/alois/ etc/alois/apache2/ etc/alois/environments/ etc/alois/prisma/ etc/cron.d/ etc/default/ etc/logrotate.d/ prisma/ prisma/bin/ prisma/conf/ prisma/conf/prisma/ pr...

Added: incubator/alois/trunk/debian/alois-sink.postinst
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois-sink.postinst?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois-sink.postinst (added)
+++ incubator/alois/trunk/debian/alois-sink.postinst Thu Nov  4 18:27:22 2010
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+
+# (sh) there's a script that only starts the script if it's enabled in current
+# runlevel, probably wanna use it...
+
+# change to level 99
+if [ -e /etc/rc2.d/S20prisma-mysqlpiped ] ; then
+    update-rc.d -f prisma-mysqlpiped remove
+fi
+update-rc.d prisma-mysqlpiped defaults 99
+
+invoke-rc.d munin-node restart 
+
+exit 0
+
+

Added: incubator/alois/trunk/debian/alois-sink.prisma-mysqlpiped.init
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois-sink.prisma-mysqlpiped.init?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois-sink.prisma-mysqlpiped.init (added)
+++ incubator/alois/trunk/debian/alois-sink.prisma-mysqlpiped.init Thu Nov  4 18:27:22 2010
@@ -0,0 +1,58 @@
+#!/bin/bash
+#
+# start the alois mysqlpipe
+#
+# The variables below are NOT to be changed.  They are there to make the
+# script more readable.
+
+NAME=prisma-mysqlpipe
+WORKINGDIR=/usr/bin
+OPTIONS=-d
+DAEMON=$WORKINGDIR/$NAME
+PIDFILE=/var/run/$NAME
+# note: SSD is required only at startup of the daemon.
+SSD="`which start-stop-daemon`"
+ENV="/usr/bin/env -i LANG=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+
+trap "" 1
+
+should_start() {
+    if [ ! -x $DAEMON ]; then
+        echo "$DAEMON not executable, not starting"
+        exit 0
+    fi
+}
+
+case "$1" in
+  start)
+    should_start
+    echo -n "Starting: $NAME"
+    $ENV $SSD --start --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
+    ;;
+
+  stop)
+    echo -n "Stopping: $NAME"
+    $ENV $SSD --stop --oknodo --signal TERM --pidfile $PIDFILE --retry 10
+    ;;
+
+  restart | force-reload)
+    echo -n "Stopping: $NAME"
+    $ENV $SSD --stop --oknodo --signal TERM --pidfile $PIDFILE --retry 10
+    echo -n "Starting: $NAME"
+    $ENV $SSD --start --pidfile $PIDFILE --startas $DAEMON -- $OPTIONS
+    ;;
+
+
+  *)
+    echo "Usage: /etc/init.d/$NAME {start|stop|restart}"
+    exit 1
+    ;;
+esac
+
+if [ $? -eq 0 ]; then
+        echo .
+        exit 0
+else
+        echo " failed"
+        exit 1
+fi

Added: incubator/alois/trunk/debian/alois-test.install
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois-test.install?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois-test.install (added)
+++ incubator/alois/trunk/debian/alois-test.install Thu Nov  4 18:27:22 2010
@@ -0,0 +1,2 @@
+debian/tmp/usr/share/alois/www/test
+

Added: incubator/alois/trunk/debian/alois.conffiles
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois.conffiles?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois.conffiles (added)
+++ incubator/alois/trunk/debian/alois.conffiles Thu Nov  4 18:27:22 2010
@@ -0,0 +1,7 @@
+/etc/alois/boot.rb
+/etc/alois/database.yml
+/etc/alois/environment.rb
+/etc/alois/routes.rb
+/etc/alois/environments/production.rb
+/etc/default/alois-environment.rb
+/etc/default/alois-environment-config.rb

Added: incubator/alois/trunk/debian/alois.dirs
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois.dirs?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois.dirs (added)
+++ incubator/alois/trunk/debian/alois.dirs Thu Nov  4 18:27:22 2010
@@ -0,0 +1,3 @@
+/usr/share/alois/www/config/environments
+/var/lib/alois/archive
+/var/log/alois

Added: incubator/alois/trunk/debian/alois.install
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois.install?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois.install (added)
+++ incubator/alois/trunk/debian/alois.install Thu Nov  4 18:27:22 2010
@@ -0,0 +1,26 @@
+debian/tmp/etc/alois/boot.rb
+debian/tmp/etc/alois/database.yml
+debian/tmp/etc/alois/environment.rb
+debian/tmp/etc/alois/routes.rb
+debian/tmp/etc/alois/environments/production.rb
+debian/tmp/etc/default/alois-environment.rb
+debian/tmp/etc/default/alois-environment-config.rb
+
+debian/tmp/usr/share/alois/www/doc
+debian/tmp/usr/share/alois/www/db
+debian/tmp/usr/share/alois/www/app
+debian/tmp/usr/share/alois/www/java
+debian/tmp/usr/share/alois/www/public
+debian/tmp/usr/share/alois/www/script
+debian/tmp/usr/share/alois/www/config/default_working_items
+debian/tmp/usr/share/alois/www/config/initializers
+debian/tmp/usr/share/alois/www/config/locales
+debian/tmp/usr/share/alois/www/components
+debian/tmp/usr/share/alois/www/lib
+
+debian/tmp/usr/share/alois/www/vendor
+debian/tmp/usr/share/alois/www/Rakefile
+debian/tmp/usr/share/alois/www/README
+
+
+

Added: incubator/alois/trunk/debian/alois.links
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois.links?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois.links (added)
+++ incubator/alois/trunk/debian/alois.links Thu Nov  4 18:27:22 2010
@@ -0,0 +1,20 @@
+/var/log/alois				/usr/share/alois/www/log
+
+/etc/alois/boot.rb			/usr/share/alois/www/config/boot.rb
+/etc/alois/environment.rb		/usr/share/alois/www/config/environment.rb
+/etc/default/alois-environment.rb	/usr/share/alois/www/config/default_environment.rb
+/etc/default/alois-environment-config.rb	/usr/share/alois/www/config/default_config.rb
+/etc/alois/database.yml			/usr/share/alois/www/config/database.yml
+/etc/alois/routes.rb			/usr/share/alois/www/config/routes.rb
+/etc/alois/environments/production.rb	/usr/share/alois/www/config/environments/production.rb
+
+/usr/share/alois/www/script/check_tables	usr/sbin/alois-check-tables
+/usr/share/alois/www/script/check_connections	usr/sbin/alois-check-connections
+/usr/share/alois/www/script/console		usr/sbin/alois-console
+/usr/share/alois/www/script/server		usr/sbin/alois-server
+#/usr/share/alois/www/script/updatepasswords	usr/sbin/alois-updatepasswords
+#/usr/share/alois/www/script/import-file		usr/bin/alois-import-file
+/usr/share/alois/www/script/load_default_working_items	usr/sbin/alois-load-default-working-items
+/usr/share/alois/www/script/sentinel		usr/bin/alois-sentinel
+
+/tmp				/usr/share/alois/www/tmp

Added: incubator/alois/trunk/debian/alois.postinst
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois.postinst?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/alois.postinst (added)
+++ incubator/alois/trunk/debian/alois.postinst Thu Nov  4 18:27:22 2010
@@ -0,0 +1,49 @@
+#!/bin/sh
+set -e
+
+
+# (sh) there's a command to do this, probably wanna use it...
+# enable mod_rewrite in apache
+if [ ! -e /etc/apache2/mods-enabled/rewrite.load ]; then
+ ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
+fi
+
+chown www-data:www-data /etc/apache2/alois.passwd
+chmod 440 /etc/apache2/alois.passwd
+
+adduser www-data alois
+
+mkdir -p /var/log/alois
+touch /var/log/alois/production.log
+chmod 750 /var/log/alois
+chmod 660 /var/log/alois/*
+chown prisma.www-data /var/log/alois -R
+chown root.alois /etc/alois/alois.conf
+
+mkdir -p /var/lib/alois/archive 
+chown prisma.www-data /var/lib/alois/archive
+chmod 770 /var/lib/alois/archive
+
+# create archive directory
+mkdir -p /var/lib/alois/archive
+chown alois.www-data /var/lib/alois/archive
+chmod 770 /var/lib/alois/archive
+
+# force default group for prisma and alois
+usermod -g www-data prisma
+usermod -g www-data alois
+
+invoke-rc.d apache2 restart 
+invoke-rc.d munin-node restart 
+
+# set all scripts to executable
+chmod -R a+x /usr/share/alois/www/script/*
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+

Added: incubator/alois/trunk/debian/changelog
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/changelog?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/changelog (added)
+++ incubator/alois/trunk/debian/changelog Thu Nov  4 18:27:22 2010
@@ -0,0 +1,585 @@
+alois (1.2.51) all; urgency=low
+
+  * New release
+  * Reverted munin configs, recreated reporter package.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Wed, 03 Nov 2010 09:48:12 +0100
+
+alois (1.2.50) all; urgency=low
+
+  * New release
+  * Reverted munin configs, recreated reporter package.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Wed, 03 Nov 2010 09:31:48 +0100
+
+alois (1.2.49) all; urgency=low
+
+  * New release
+  * Last changes for productive alois version.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Tue, 02 Nov 2010 15:05:11 +0100
+
+alois (1.2.48) unstable; urgency=low
+
+  * New release
+  * included db files to alois
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Tue, 02 Nov 2010 11:11:29 +0100
+
+alois (1.2.47) unstable; urgency=low
+
+  * New release
+  * Changes for stabilize package.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Tue, 02 Nov 2010 10:36:06 +0100
+
+alois (1.2.46) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 01 Nov 2010 18:56:08 +0100
+
+alois (1.2.45) ubstable; urgency=low
+
+  * New release
+  * New package splitting
+  * Use local gems if GEM_HOME defined.
+  * Added prisma test script
+  * Big for prisma scripts and instlal.
+  * Prisma working with setup.rb
+  * More changes concerning prisma split.
+  * Added missing files for spearated prisma.
+  * Added connection and application logs table.
+  * Separated prisma functionality from alois.
+  * Moved a lot of files to prisma module.
+  * Created directories for prisma module
+  * Remove mysql some mysql specific stuff.
+  * Added INSTALL text
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 01 Nov 2010 17:26:33 +0100
+
+alois (1.2.44) ubstable; urgency=low
+
+  * New release
+  * New package splitting
+  * Use local gems if GEM_HOME defined.
+  * Added prisma test script
+  * Big for prisma scripts and instlal.
+  * Prisma working with setup.rb
+  * More changes concerning prisma split.
+  * Added missing files for spearated prisma.
+  * Added connection and application logs table.
+  * Separated prisma functionality from alois.
+  * Moved a lot of files to prisma module.
+  * Created directories for prisma module
+  * Remove mysql some mysql specific stuff.
+  * Added INSTALL text
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 01 Nov 2010 16:35:11 +0100
+
+alois (1.2.43) ubstable; urgency=low
+
+  * New release
+  * Use local gems if GEM_HOME defined.
+  * Added prisma test script
+  * Big for prisma scripts and instlal.
+  * Prisma working with setup.rb
+  * More changes concerning prisma split.
+  * Added missing files for spearated prisma.
+  * Added connection and application logs table.
+  * Separated prisma functionality from alois.
+  * Moved a lot of files to prisma module.
+  * Created directories for prisma module
+  * Remove mysql some mysql specific stuff.
+  * Added INSTALL text
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 01 Nov 2010 12:12:50 +0100
+
+alois (1.2.42) all; urgency=low
+
+  * New release
+  * Added option to only transform one clas in prisma.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 11 Oct 2010 11:38:52 +0200
+
+alois (1.2.41) all; urgency=low
+
+  * New release
+  * Fixed tests
+  * Changed save to save_without_validation for better prisma
+    performance
+  * Added a lot of comments and did some tidyup.
+  * removed memory profiler class.
+  * Removed old mail.rb model.
+  * Value should be value in sql condition. (Prevent brackets in
+    condition field)
+  * Fixes in tests, test working again, performance not.
+  * Added lot more comments.
+  * Added comments to alarm class.
+  * removed unnecessary newlines in config files.
+  * Added set alois db and java compile to Makefile init task.
+  * Changed preformance test.
+  * Do disconnect after daemonize (otherwise connection does not work
+    anymore)
+  * Use fifo instead of lasts by default in prisma.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 08 Oct 2010 11:16:55 +0200
+
+alois (1.2.40) all; urgency=low
+
+  * New release
+  * Moved theme initialization to envinronment-config.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 23 Sep 2010 10:06:38 +0200
+
+alois (1.2.39) all; urgency=low
+
+  * New release
+  * Removed dependency to logintas-libisi-ruby
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Wed, 22 Sep 2010 10:37:05 +0200
+
+alois (1.2.38) all; urgency=low
+
+  * New release
+  * Updated todo list
+  * Fixed smtp_server configuration setting.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 17 Sep 2010 09:34:40 +0200
+
+alois (1.2.37) unstable; urgency=low
+
+  * New release
+  * Fixed help template finding.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 16 Sep 2010 14:43:59 +0200
+
+alois (1.2.36) unstable; urgency=low
+
+  * New release
+  * Some more dependency fixes.
+  * Added TODO doc
+  * Added INSTALL doc
+  * Prisma testing, problems with mysql connection timeout solved once
+    more.
+  * Small bugfixes for test to work.
+  * Some cosmetic fixes (output)
+  * database script fixes (Rake call)
+  * Corrected bindir in alois-setup script.
+  * Require will_paginate in environement
+  * Added further dependencies
+  * Corrected apache configuration for phusion passenger
+  * Commented out config.gem dependencies.
+  * Removed gem freeze things for building with deb dependencies.
+  * Disabled gem install and rake freeze for build (dependencies now in
+    debian packages)
+  * Corrected dependencies to libisi-ruby
+  * ApacheMeta: Log remainder of message (after 'host' field) to table
+    'Message'
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 16 Sep 2010 14:22:34 +0200
+
+alois (1.2.35) unstable; urgency=low
+
+  * New release
+  * Fixed calling console and server via /usr/bin
+  * Removed htaccess fiel.
+  * Replaced reconnect with verify!.
+  * Added new gem dependencies to pdf-writer
+  * Fixed debian dependencies.
+  * Removed comment out of a postinst.
+  * Makefile
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Tue, 03 Nov 2009 14:25:50 +0100
+
+alois (1.2.34) unstable; urgency=low
+
+  * New release
+  * Added single system doc
+  * Added compatibility file for debian.
+  * Speed up delete old logs.
+  * Removed finally gemsonrails dependency
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Tue, 03 Nov 2009 10:36:13 +0100
+
+alois (1.2.33) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 18:02:21 +0100
+
+alois (1.2.32) unstable; urgency=low
+
+  * New release
+  * Makefile, fastthread.
+  * Delete old logs verbessert.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 17:17:25 +0100
+
+alois (1.2.31) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 16:21:59 +0100
+
+alois (1.2.30) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 16:14:39 +0100
+
+alois (1.2.29) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 16:03:15 +0100
+
+alois (1.2.28) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 16:01:25 +0100
+
+alois (1.2.27) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 15:50:33 +0100
+
+alois (1.2.26) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 15:49:08 +0100
+
+alois (1.2.25) unstable; urgency=low
+
+  * New release
+  * Table finding fixed in session loading/init.
+  * Removed DISPLAY environment settings, xvfb not used anymore for java
+    rendering.
+  * Apache.conf
+  * Makefile fix
+  * Made alois run with apache, included munin into virtual host.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 26 Oct 2009 15:12:06 +0100
+
+alois (1.2.24) unstable; urgency=low
+
+  * New release
+  * added fastthread
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 16:29:25 +0200
+
+alois (1.2.23) unstable; urgency=low
+
+  * New release
+  * Update for passenger.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 15:26:11 +0200
+
+alois (1.2.22) unstable; urgency=low
+
+  * New release
+  * Corrected passenger build command.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 14:45:20 +0200
+
+alois (1.2.21) unstable; urgency=low
+
+  * New release
+  * Added passenger for apache.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 14:16:08 +0200
+
+alois (1.2.20) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 11:51:18 +0200
+
+alois (1.2.19) unstable; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 11:42:57 +0200
+
+alois (1.2.18) unstable; urgency=low
+
+  * New release
+  * Neue gem und lib abh[_\c3_][_\a4_]ngigkeiten eingef[_\c3_][_\bc_]gt.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 23 Oct 2009 11:14:04 +0200
+
+alois (1.2.17) unstable; urgency=low
+
+  * New release
+  * Added missing dirs files.
+  * Catch LoadErrors when libraries missing, so that rake works also on
+    missing libraries (for rake gems:install).
+  * Single system setup script is working now.
+  * Added autoclean plugin
+  * Tidyed up dbian packaging.
+  * Added file mysqltest
+  * Update makefile.
+  * Removed boot testing.
+  * Moved default working items under rails/config by default.
+  * Worekd on makefile
+  * Added acl script
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 22 Oct 2009 18:08:26 +0200
+
+alois (1.2.16) unstable; urgency=low
+
+  * New release
+  * Added dependencies gem and update for installing.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 12 Oct 2009 18:44:01 +0200
+
+alois (1.2.15) etch; urgency=low
+
+  * New release
+  * Replaced /etc/init.d/... with invoke-rc.d in postinst scripts.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 12 Oct 2009 18:19:15 +0200
+
+alois (1.2.14) unstable; urgency=low
+
+  * New release
+  * Some updates in packaging.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 12 Oct 2009 18:02:02 +0200
+
+alois (1.2.13) unstable; urgency=low
+
+  * New release
+  * Added pumpy schmea migration.
+  * Added performance test.
+  * Changes for new rails env and single-system setup script.n
+  * Added documentation charts.
+  * Upgraded to Rails 2.3, Tests working except the primsa integration
+    tests.
+  * Added squid files.
+  * Added squid extended parsing.
+  * Fixed Tests (strange new behaviour in tmail).
+  * Libisi update.
+  * compact found list in archivator for finding original files.
+  * Integrated alois in libisi.
+  * Wokred on mysql_table_progress.
+  * Bugfix in apache message parsing.
+  * Timeout for munin are now 120seconds.
+  * TODO: Brown Bug 137 link auf originalmeldung in alarme einbauen
+  * Added mysql  progress script to alois-db-mysql
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 12 Oct 2009 15:25:23 +0200
+
+alois (1.2.12) etch; urgency=low
+
+  * New release
+  * Changed default processing of prisma records with fifo to keep order
+    of the incoming logs.
+  * Add original message into alarm and into survey.
+  * Added script to generate testdata.
+  * Added queue_id to syslogd_meta to find original fast.
+  * Added script to get progress of a altering query table
+  * Added queue id to syslogd_metas.
+  * TODO: Brown Bug 162 Load Serialized funktioniert nicht wenn es am
+    anfang leerzeichen hat.
+  * TODO: Brown Bug 138 seite mit prisma-informationen
+  * Added flipped option to charts.
+  * Grep out sentinels on testing if prisma is already running.
+  * Better benchmarking and skip counting if count last long in
+    source_db messages.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 14 Aug 2009 12:39:28 +0200
+
+alois (1.2.11) unstable; urgency=low
+
+  * New release
+  * Extended postfix mail_message_id to 15 characters.
+  * Removed space in posftix dsn field.
+  * added possible spaces at the end of psotfix messags.
+  * use tablename.id for search items in views wich are parsed.
+  * Added unstable to makefile
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 18 May 2009 16:55:33 +0200
+
+alois (1.2.10) unstable; urgency=low
+
+  * New release
+  * Fixed test for mailing. (alarm is now sent always).
+  * disabling transaction only for deleting sources.
+  * Combined migrations from dlutz and fpellanda.
+  * Add index 'log_metas_time_index' to log_metas table
+  * Sentinel: send two separate mails if alarm_and_report is chosen
+    (instead of alarm only)
+  * added ulogdnfc meta.
+  * Delete old logs may run only once now.
+  * Do not work with transitions in source metas. lasts too long.
+  * Postfix prisma extended.
+  * Sql with options for filter generation.
+  * Bugfix filterid not recognized.
+  * added default count to file_raw
+  * added dependency to logintas-libisi-ruby
+  * Changelogs
+  * Removed print statement in validate
+  * Check class of params[:chart] in load_params
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 14 May 2009 10:58:29 +0200
+
+alois (1.2.9) etch; urgency=low
+
+  * Added ulgd_nfct parsing
+  * Fixed ulogd_nftc processing.
+  * Removed "end" (too much)
+  * Cleanup of old code in UlogdNfctMeta
+  * Table for Ulogd Nfct Metas
+  * Class for Ulogd Nfct Metas
+  * updated changelog for version 1.2.7ubuntu3
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 04 Dec 2008 18:56:22 +0100
+
+alois (1.2.8) etch; urgency=low
+
+  * New release
+  * Better default layout (with table comments) to support XHTML.
+  * Added support for old an new inet log format.
+  * Fixed ip range condition. Now testing with a test.
+  * Default layout is "alois" and not variable alois.
+  * Fixed bug that a original message could not be found in archive if
+    it contained a "
+  * updated changelog for version 1.2.7ubuntu2
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 01 Dec 2008 17:09:20 +0100
+
+alois (1.2.7ubuntu2) public-etch; urgency=low
+
+  * New release
+  * Added column location for inet objects.
+  * Fix
+  * updated changelog for version 1.2.7ubuntu1
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Tue, 04 Nov 2008 14:02:12 +0100
+
+alois (1.2.7ubuntu1) public-etch; urgency=low
+
+  * New release
+  * Added frontend for editing tables.
+  * Include csv in email.
+  * Removed obsolet function safe_filename.
+  * Possibility to download data from report.
+  * Unification of datasource selection for report template rendreing.
+  * Fixed email preview and added options to sentinel how to deliver
+    email.
+  * Added FilterCondition file.
+  * Tests
+  * Added new condition type Filter for adding support for "or" clause.
+  * Solved some compatibility isseus due to new versions of gem.
+  * Solved gem native extension issue.
+  * updated changelog for version 1.2.7
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 10 Oct 2008 11:05:11 +0200
+
+alois (1.2.7) etch; urgency=low
+
+  * Included hpricot native extension.
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Mon, 06 Oct 2008 10:29:35 +0200
+
+alois (1.2.6) etch; urgency=low
+
+  * New release
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 03 Oct 2008 13:51:53 +0200
+
+alois (1.2.5) unstable; urgency=low
+
+  * New release
+  * Added tidy_html check and tidied up a bit.
+  * updated changelog for version 1.2.3.6ubuntu1
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Fri, 03 Oct 2008 11:47:56 +0200
+
+alois (1.2.4) etch; urgency=low
+
+  * New release
+  * Corrected flowchart link in 3-tier for overview.
+  * Fixed problem for terminating after saving between long sleeps.
+  * All tests are working again.
+  * Implemented testfunctions for new mailer class. mail.rb not needed
+    anymore.
+  * save_mail testhelper.
+  * Sending html default with multipart/related.
+  * Updated alarm mailing. View and deliverin with latest methods.
+  * Updated dependencies freezing.
+  * Makefile update to install awesome_email.
+  * Added function to deliver alarm notification to an email.
+  * Added awesome_email plugin
+  * Execute every 5 seconds an action if waiting on raws have to sleep.n
+  * added mailer layout directory.
+  * Huge effort in emailing. (Templates, Layouts, css...)
+  * Setup script.
+  * Corrected schema page, threw error if no record was given.
+  * Add information about table count and message availability in
+    schema.
+  * Commented out some unnecessary output.
+  * added ruby depencies to debian/control.
+  * changelog
+  * do only restart munin node if munin node is installed in postinst
+    script.
+  * added file default_working_items to debian packaging.
+  * Added function to models if they have can have messages in messages
+    table.
+  * Added link to schema page.
+  * updated changelog for version 1.2.3.3ubuntu2
+
+ -- Flavio Pellanda (Logintas 2008) <fl...@logintas.ch>  Thu, 02 Oct 2008 16:54:18 +0200
+
+alois (1.2.3.6) etch; urgency=low
+
+  * added depency libgcj8-1-awt
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Mon, 28 Jul 2008 17:04:00 +0200
+
+alois (1.2.3.5) etch; urgency=low
+
+  * Packaging
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Fri, 25 Jul 2008 14:40:01 +0200
+
+alois (1.2.3.4) etch; urgency=low
+
+  *  Setup script update
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Fri, 25 Jul 2008 14:12:33 +0200
+
+alois (1.2.3.4) etch; urgency=low
+
+  * Worked on setup script added missing files.
+  * Initialisation for public release without internal data.
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Fri, 25 Jul 2008 13:28:24 +0200
+
+alois (1.2.3.3) etch; urgency=low
+
+  * Single host setup automatic execution without user interaction (--auto)
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Fri, 25 Jul 2008 13:26:20 +0200
+
+alois (1.2.3.2) etch; urgency=low
+
+  * Some changes to setup script.
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Thu, 24 Jul 2008 17:22:31 +0200
+
+alois (1.2.3.1) etch; urgency=low
+
+  * First Public Release
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Thu, 24 Jul 2008 15:05:39 +0200
+
+alois (1.2.3) -etch; urgency=low
+
+  * Tidied up and removed old changelog-entries.
+
+ -- Flavio Pellanda <fl...@logintas.ch>  Tue, 22 Jul 2008 11:28:33 +0200

Added: incubator/alois/trunk/debian/compat
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/compat?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/compat (added)
+++ incubator/alois/trunk/debian/compat Thu Nov  4 18:27:22 2010
@@ -0,0 +1 @@
+5

Added: incubator/alois/trunk/debian/control
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/control?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/control (added)
+++ incubator/alois/trunk/debian/control Thu Nov  4 18:27:22 2010
@@ -0,0 +1,67 @@
+Source: alois
+Section: net
+Priority: optional
+Maintainer: Flavio Pellanda <fl...@logintas.ch>
+Uploaders:  Flavio Pellanda <fl...@logintas.ch>
+Build-Depends: debhelper (>= 5), libisi-ruby1.8, rake, gcj (>= 4.1), rubygems (>=1.3), libopenssl-ruby, libtermios-ruby, ruby1.8-dev, libcroco3, libmysqlclient15-dev, libjfreechart-java, libaprutil1-dev, libopenssl-ruby, libhpricot-ruby1.8, libruport-ruby1.8, libmysql-ruby1.8, libhoe-ruby1.8, libfastercsv-ruby1.8, libinline-attachment-ruby1.8, librubyforge-ruby1.8, libfastthread-ruby1.8, libwill-paginate-ruby1.8, libcolor-tools-ruby1.8, libpdf-writer-ruby1.8, libtransaction-simple-ruby1.8, libcsspool-ruby1.8 (= 0.2.6), libffi-ruby1.8, libcroco3-dev, libacts-as-reportable-ruby1.8
+Standards-Version: 3.7.2
+
+# ------------------ Single installation -------
+Package: alois-single-system
+Architecture: any
+Depends: alois-reporter (=${Source-Version}),alois-prisma (=${Source-Version}), alois-sink (=${Source-Version}), ruby
+Description: Package with configuration for installing ALOIS on one system.
+ If you want to install ALOIS on a single System, install this package and 
+ follow the instructions. 
+   Execute /usr/sbin/alois-setup after installation
+
+# ------------------ Sink/Reporter ----------------------
+
+Package: alois-sink
+Architecture: any
+Depends: alois-prisma (=${Source-Version}), syslog-ng, ruby1.8, mysql-client-5.0, rubygems (>=1.3), munin-node, libopenssl-ruby, libmysqlclient15off
+Description: Advanced Logging and Intrusion Detection System - sink package
+ The "sink" for all log messages. 
+ This package recives log messages from servers through
+ udp and writes them into the pumpy database.
+ This package contains munin configurations and
+ dependencies for sink part of a 2/3 tier installation
+
+Package: alois-reporter
+Architecture: any
+Depends: alois (=${Source-Version}), munin, munin-node, apache2, libapache2-mod-passenger, ruby1.8
+Description: Advanced Logging and Intrusion Detection System - reporter package
+ The "reporter"
+ This package contains apache2 dependencies and munin
+ configurations for reporter part of a 2/3 tier installation
+
+# ------------------ Alois ----------------------
+
+Package: alois
+Architecture: any
+Depends: alois-common (=${Source-Version}), alois-prisma (=${Source-Version}), gij, libjfreechart-java, sun-java5-jre, ruby1.8, libgcj7-awt | libgcj8-awt | libgcj8-1-awt, libhpricot-ruby1.8, libruport-ruby1.8, libmysql-ruby1.8, libhoe-ruby1.8, libfastercsv-ruby1.8, libinline-attachment-ruby1.8, librubyforge-ruby1.8, libfastthread-ruby1.8, libwill-paginate-ruby1.8, libcolor-tools-ruby1.8, libpdf-writer-ruby1.8, libtransaction-simple-ruby1.8, libcsspool-ruby1.8 (= 0.2.6), libffi-ruby1.8, libcroco3-dev, libacts-as-reportable-ruby1.8
+Description: Advanced Logging and Intrusion Detection System - reporter package
+ Main package with rails frontend
+
+Package: alois-test
+Architecture: any
+Depends: ruby1.8, libyaml-ruby, libzip-ruby, adduser, cron, libisi-ruby1.8, libmysql-ruby1.8
+Description: Advanced Logging and Intrusion Detection System - Test package
+ Test cases
+
+# ------------------ Prisma ----------------------
+
+Package: alois-prisma
+Architecture: any
+Depends: alois-common (=${Source-Version}), ruby1.8
+Description: Advanced Logging and Intrusion Detection System - Prisma package
+ Prisma takes different log sources and saves them into the prisma database
+ after parsing.
+
+# ------------------ Common ----------------------
+
+Package: alois-common
+Architecture: any
+Depends: ruby1.8, libyaml-ruby, libzip-ruby, adduser, cron, libisi-ruby1.8, libmysql-ruby1.8
+Description: Advanced Logging and Intrusion Detection System - Common package
+ The rdoc package is needed for installing activerecord trough gems.

Added: incubator/alois/trunk/debian/copyright
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/copyright?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/copyright (added)
+++ incubator/alois/trunk/debian/copyright Thu Nov  4 18:27:22 2010
@@ -0,0 +1,40 @@
+Debian Package Maintainer:
+
+  Flavio Pellanda <fl...@logintas.ch>
+
+Copyright Holders:
+
+  Copyright (C) 2006 Logintas AG <http://www.logintas.ch>
+  Copyright (C) 2006 IMSEC GmbH <http://www.imsec.ch>
+  Copyright (C) 2006 Flavio Pellanda <fl...@logintas.ch>
+  Copyright (C) 2006 Simon Huerlimann <si...@logintas.ch>
+  Copyright (C) 2006 Marcus Holthaus <ma...@logintas.ch>
+
+Sponsors:
+
+  Flavio Pellanda, Simon Huerlimann, and Marcus Holthaus are sponsored 
+  by IMSEC GmbH (http://www.imsec.ch) to work on Alois.
+
+Contact:
+
+  Feel free to mail the developers listed in the Copyright Holders section.
+  They're hanging around on the #alois IRC channel on irc.freenode.org.
+  You may find further information on our website: http://www.loginas.ch/alois
+
+License:
+
+  IsiSetup is free software; you can redistribute it and/or modify it under
+  the terms of the GNU General Public License as published by the Free
+  Software Foundation; either version 2, or (at your option) any later
+  version.
+
+  IsiSetup 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 with
+  your Debian GNU system, in /usr/share/common-licenses/GPL.  If not, write
+  to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+  MA 02110-1301, USA.
+

Added: incubator/alois/trunk/debian/rules
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/rules?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/debian/rules (added)
+++ incubator/alois/trunk/debian/rules Thu Nov  4 18:27:22 2010
@@ -0,0 +1,126 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+#Architecture 
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp 
+
+	# Add here commands to compile the arch part of the package.
+	$(MAKE)  -s
+	touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: configure-stamp 
+
+	# Add here commands to compile the indep part of the package.
+	#$(MAKE) doc
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-arch-stamp build-indep-stamp configure-stamp
+#	rm -rf $(CURDIR)/debian/tmp/
+#	rm -rf $(CURDIR)/debian/alois-*/
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean -s
+
+	dh_clean 
+
+install: install-indep install-arch
+install-indep:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -i 
+	dh_installdirs -i
+
+	# Add here commands to install the indep part of the package into
+	# debian/<package>-doc.
+	#INSTALLDOC#
+
+	dh_install -i
+
+install-arch:
+	dh_testdir
+	dh_testroot
+	dh_clean -k -s 
+	dh_installdirs -s
+
+	# Add here commands to install the arch part of the package into 
+	# debian/tmp.
+	$(MAKE) -s DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr TARGET_ETC=$(CURDIR)/debian/tmp/etc install
+	ruby $(CURDIR)/prisma/setup.rb config --installdirs=std --prefix=$(CURDIR)/debian/tmp/usr --sysconfdir=$(CURDIR)/debian/tmp/etc --librubyver=$(CURDIR)/debian/tmp/usr/lib/ruby/1.8 --localstatedir=$(CURDIR)/debian/tmp/var
+	ruby $(CURDIR)/prisma/setup.rb setup
+	ruby $(CURDIR)/prisma/setup.rb install
+
+	dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs 
+	dh_installdocs
+	dh_installexamples
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate	
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+	dh_installinit --name prisma-mysqlpiped -- defaults 99
+#	dh_installinit --name alois-ratelatestd
+	dh_installinit --name prisma
+	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress 
+	dh_fixperms
+#	dh_perl
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+	$(MAKE) -f debian/rules DH_bOPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure

Added: incubator/alois/trunk/doc/README-prisma-archive
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/doc/README-prisma-archive?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/doc/README-prisma-archive (added)
+++ incubator/alois/trunk/doc/README-prisma-archive Thu Nov  4 18:27:22 2010
@@ -0,0 +1,8 @@
+## how the logs are archived. The following
+## values will be replaced:
+##  %c: with the class name (Prisma::XyzRaw)
+##  %t: with the table name (xyz_raw)
+##  %i: with the incoming date (the current system date)
+##  %d: with the log date (the date contained by in the raw class)
+# Default structure is  "/var/lib/prisma/archive/%t/%i/%d.arch"
+# you can adapt this structure in /etc/alois/prisma/config.rb

Added: incubator/alois/trunk/doc/single-system.txt
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/doc/single-system.txt?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/doc/single-system.txt (added)
+++ incubator/alois/trunk/doc/single-system.txt Thu Nov  4 18:27:22 2010
@@ -0,0 +1,10 @@
+Install noniteractive
+---------------------
+apt-get install less joe
+
+echo "sun-java5-jdk shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections
+echo "sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true" | debconf-set-selections
+
+export DEBIAN_FRONTEND=noninteractive
+export DEBIAN_FRONTEND=text
+apt-get -q -y install alois-single-system

Added: incubator/alois/trunk/etc/alois/alois_testing.conf
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/alois_testing.conf?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/alois_testing.conf (added)
+++ incubator/alois/trunk/etc/alois/alois_testing.conf Thu Nov  4 18:27:22 2010
@@ -0,0 +1,78 @@
+# run after editing this file
+# on database server: alois-updatepasswords -d 
+# on other servers: alois-updatepasswords -e
+
+### The list of connections to configure. It's
+### always "connection: configuration"
+
+configs:
+  reporter: alois_standard
+  alois: alois_standard
+  pumpy: sink-host
+# test und development takes the
+# same properties as the default connection
+# (either pumpy or alois) and the database
+# name will be replaced by one of the following:
+#  pumpy_development
+#  pumpy_test
+#  alois_development
+#  alois_test
+  test: alois_standard
+  development: alois_standard
+  
+  alois_writelog: alois_writelog
+
+### A list of connections and their 
+### permissions
+
+sink-host:
+ host:     localhost
+ adapter: sqlite3
+ database: pumpy.sqlite3
+ pool: 5
+ timeout: 5000
+# adapter:  mysql
+# username: root
+# host:     localhost
+# database: pumpy
+# password: test
+# port:     3306  
+
+ tables: [*]
+ rights: ALL
+ hosts: [localhost]
+ 
+# the standard alois connection with 
+# all rights to the alois databse
+alois_standard:
+ host:     localhost
+ adapter: sqlite3
+ database: alois.sqlite3
+ pool: 5
+ timeout: 5000
+# adapter:  mysql
+# username: root
+# host:     localhost
+# database: alois
+# password: test
+# port:     3306  
+
+ tables: [*]
+ rights: ALL 
+ hosts: [localhost]
+
+
+# the connection from insink to
+# write log data direct into the 
+# database
+alois_writelog:
+ adapter:  mysql
+ username: alois
+ host:     localhost
+ database: pumpy
+ password: abcd
+ port:     3306  
+
+ tables: [syslogd_raws]
+ rights: INSERT
+ hosts: [localhost]

Added: incubator/alois/trunk/etc/alois/apache2/alois.passwd
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/apache2/alois.passwd?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/apache2/alois.passwd (added)
+++ incubator/alois/trunk/etc/alois/apache2/alois.passwd Thu Nov  4 18:27:22 2010
@@ -0,0 +1 @@
+alois:x8C69afB0QydU

Added: incubator/alois/trunk/etc/alois/apache2/apache.conf
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/apache2/apache.conf?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/apache2/apache.conf (added)
+++ incubator/alois/trunk/etc/alois/apache2/apache.conf Thu Nov  4 18:27:22 2010
@@ -0,0 +1,16 @@
+# To use this, create a link from 
+#  DOCUMENT_ROOT/alois to /usr/share/alois/www/public
+# Normally: 
+#  # ln -s /usr/share/alois/www/public /var/www/alois
+# And enable mod passenger with: 
+#  # a2enmod passenger
+
+RailsBaseURI /alois
+PassengerDefaultUser www-data
+
+<Location /alois>
+    AuthType Basic
+    AuthName "Alois"
+    AuthUserFile /etc/alois/apache2/alois.passwd
+    Require user alois
+</Location>

Added: incubator/alois/trunk/etc/alois/boot.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/boot.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/boot.rb (added)
+++ incubator/alois/trunk/etc/alois/boot.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,119 @@
+# Don't change this file!
+# Configure your app in config/environment.rb and config/environments/*.rb
+require "pathname"
+RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
+
+ENV["GEM_HOME"] = nil if ENV["GEM_HOME"] and !Pathname.new(ENV["GEM_HOME"]).exist?
+ENV["GEM_PATH"] = nil if ENV["GEM_PATH"] and !Pathname.new(ENV["GEM_PATH"]).exist?
+
+gem_home = Pathname.new(RAILS_ROOT) + "../gems"
+if gem_home.exist?
+  ENV["GEM_HOME"] = gem_home.to_s if ENV["GEM_HOME"].nil?
+  ENV["GEM_PATH"] = gem_home.to_s if ENV["GEM_PATH"].nil?
+end
+
+module Rails
+  class << self
+    def boot!
+      unless booted?
+        preinitialize
+        pick_boot.run
+      end
+    end
+
+    def booted?
+      defined? Rails::Initializer
+    end
+
+    def pick_boot
+      (vendor_rails? ? VendorBoot : GemBoot).new
+    end
+
+    def vendor_rails?
+      File.exist?("#{RAILS_ROOT}/vendor/rails")
+    end
+
+    def preinitialize
+      load(preinitializer_path) if File.exist?(preinitializer_path)
+    end
+
+    def preinitializer_path
+      "#{RAILS_ROOT}/config/preinitializer.rb"
+    end
+  end
+
+  class Boot
+    def run
+      load_initializer
+      Rails::Initializer.run(:set_load_path)
+    end
+  end
+
+  class VendorBoot < Boot
+    def load_initializer
+      require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
+      Rails::Initializer.run(:install_gem_spec_stubs)
+      Rails::GemDependency.add_frozen_gem_path
+    end
+  end
+
+  class GemBoot < Boot
+    def load_initializer
+      self.class.load_rubygems
+      load_rails_gem
+      require 'initializer'
+    end
+
+    def load_rails_gem
+      if version = self.class.gem_version
+        gem 'rails', version
+      else
+        gem 'rails'
+      end
+    rescue Gem::LoadError => load_error
+      $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
+      exit 1
+    end
+
+    class << self
+      def rubygems_version
+        Gem::RubyGemsVersion rescue nil
+      end
+
+      def gem_version
+        if defined? RAILS_GEM_VERSION
+          RAILS_GEM_VERSION
+        elsif ENV.include?('RAILS_GEM_VERSION')
+          ENV['RAILS_GEM_VERSION']
+        else
+          parse_gem_version(read_environment_rb)
+        end
+      end
+
+      def load_rubygems
+        require 'rubygems'
+        min_version = '1.3.1'
+        unless rubygems_version >= min_version
+          $stderr.puts %Q(Rails requires RubyGems >= #{min_version} (you have #{rubygems_version}). Please `gem update --system` and try again.)
+          exit 1
+        end
+
+      rescue LoadError
+        $stderr.puts %Q(Rails requires RubyGems >= #{min_version}. Please install RubyGems and try again: http://rubygems.rubyforge.org)
+        exit 1
+      end
+
+      def parse_gem_version(text)
+        $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
+      end
+
+      private
+        def read_environment_rb
+          File.read("#{RAILS_ROOT}/config/environment.rb")
+        end
+    end
+  end
+end
+
+# All that for this:
+Rails.boot!

Added: incubator/alois/trunk/etc/alois/database.yml
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/database.yml?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/database.yml (added)
+++ incubator/alois/trunk/etc/alois/database.yml Thu Nov  4 18:27:22 2010
@@ -0,0 +1,33 @@
+# MySQL (default setup).  Versions 4.1 and 5.0 are recommended.
+#
+# Install the MySQL driver:
+#   gem install mysql
+# On MacOS X:
+#   gem install mysql -- --include=/usr/local/lib
+# On Windows:
+#   There is no gem for Windows.  Install mysql.so from RubyForApache.
+#   http://rubyforge.org/projects/rubyforapache
+#
+# And be sure to use new-style password hashing:
+#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
+
+# Warning: The database defined as 'test' will be erased and
+# re-generated from your development database when you run 'rake'.
+# Do not set this db to the same as development or production.
+
+development:
+  adapter: sqlite3
+  database: alois_dev_database.sqlite3
+
+test:
+  adapter: sqlite3
+  database: alois_test_database.sqlite3
+
+production:
+  adapter: mysql
+  database: alois
+  username: root
+  password: test
+  host: localhost
+  reconnect: true
+

Added: incubator/alois/trunk/etc/alois/environment.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/environment.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/environment.rb (added)
+++ incubator/alois/trunk/etc/alois/environment.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,55 @@
+# Be sure to restart your web server when you modify this file.
+
+# Uncomment below to force Rails into production mode when 
+# you don't control web/app server and can't set it the proper way
+Object.send(:remove_const, :RAILS_ENV) if defined?(RAILS_ENV)
+RAILS_ENV = 'production'
+
+# init counters
+$expression_count = 0
+
+# Specifies gem version of Rails to use when vendor/rails is not present
+RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
+
+# Bootstrap the Rails environment, frameworks, and default configuration
+require File.join(File.dirname(__FILE__), 'boot')
+
+# define home for rubyforge gem (needs one)
+ENV["HOME"] ||= "/tmp/"
+
+require Pathname.new(RAILS_ROOT) + "config/default_config.rb"
+Rails::Initializer.run do |config|
+  load_config(config)
+end
+
+# TODO: maybe this is obsolete now
+#require "fix_activerecrod_base_inspect_bug"
+require Pathname.new(RAILS_ROOT) + "config/default_environment.rb"
+
+# do
+#  if filename
+# instead of
+#  if content_disposition == "attachment"
+require "action_mailer-patch.rb"
+ 
+## Mail konfiguration for sentinels
+
+## if not defined "localhost" is used
+## $email_smtp_server = "smtp.example.com"
+
+## sender address for sentinel mails
+$email_sender_address = "Alois <al...@logintas.com>"
+
+## alois installation name, for email subjects etc.
+$installation_name = "Alois DEFAULT NAME"
+
+# user admin has role admin
+# USER => ROLE
+$group_map = {
+  "admin" => "admin",
+}
+
+# 1tier or 3tier.
+# 1tier: all components installed on localhost
+# 3tier: partitioning of components on 3 hosts: (reporting,prisma) (alois-db) (sink-db,sink)
+$installation_schema = "1tier"

Added: incubator/alois/trunk/etc/alois/environment_local.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/environment_local.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/environment_local.rb (added)
+++ incubator/alois/trunk/etc/alois/environment_local.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,78 @@
+# Be sure to restart your server when you modify this file
+# init counters
+$expression_count = 0
+
+# Specifies gem version of Rails to use when vendor/rails is not present
+RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION
+
+# Bootstrap the Rails environment, frameworks, and default configuration
+require File.join(File.dirname(__FILE__), 'boot')
+
+# define home for rubyforge gem (needs one)
+ENV["HOME"] ||= "/tmp/"
+
+require Pathname.new(RAILS_ROOT) + "config/default_config.rb"
+Rails::Initializer.run do |config|
+  load_config(config)
+end
+
+# TODO: maybe this is obsolete now
+#require "fix_activerecrod_base_inspect_bug"
+require Pathname.new(RAILS_ROOT) + "config/default_environment.rb"
+
+# do
+#  if filename
+# instead of
+#  if content_disposition == "attachment"
+require "action_mailer-patch.rb"
+
+## Comment this out if prisma daemon sould
+## be runned
+$do_not_run_prisma = false
+ 
+## Mail konfiguration for sentinels
+
+## if not defined "localhost" is used
+## $email_smtp_server = "smtp.example.com"
+
+## sender address for sentinel mails
+$email_sender_address = "Alois Test <al...@logintas.com>"
+
+## sender address for sentinel mails
+$email_default_subject = "Alois-Test - Prisma ALERT"
+
+## how the logs are archived. The following
+## values will be replaced:
+##  %c: with the class name (Prisma::XyzRaw)
+##  %t: with the table name (xyz_raw)
+##  %i: with the incoming date (the current system date)
+##  %d: with the log date (the date contained by in the raw class)
+$archive_pattern =  "#{RAILS_ROOT}/tmp/archive/#{RAILS_ENV}/prisma/%t/%i/%d.arch"
+
+## how the reports are archived. The following
+## values will be replaced:
+##  %n: with the name of the report
+##  %d: with the date of creation (YYYY-MM-DD)
+##  %t: with the time of creation (HH:MM:SS)
+## The value must give a Directory
+$report_archive_pattern = "#{RAILS_ROOT}/tmp/archive/#{RAILS_ENV}/reports/%n/%d/%t"
+
+## how the alarms are archived. The following
+## values will be replaced:
+##  %i: with the id of the alarm
+##  %d: with the date of creation (YYYY-MM-DD)
+##  %t: with the time of creation (HH:MM:SS)
+## The value must give a Directory
+$alarm_archive_pattern = "#{RAILS_ROOT}/tmp/archive/#{RAILS_ENV}/alarms/%d/%i"
+
+## alois installation name, for email subjects etc.
+$installation_name = "Alois TESTING on #{Socket.gethostname}"
+
+$group_map = {
+  "admin" => "admin"
+}
+
+# 1tier or 3tier.
+# 1tier: all components installed on localhost
+# 3tier: partitioning of components on 3 hosts: (reporting,prisma) (alois-db) (sink-db,sink)
+$installation_schema = "1tier"

Added: incubator/alois/trunk/etc/alois/environments/development.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/environments/development.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/environments/development.rb (added)
+++ incubator/alois/trunk/etc/alois/environments/development.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,33 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# In the development environment your application's code is reloaded on
+# every request.  This slows down response time but is perfect for development
+# since you don't have to restart the webserver when you make code changes.
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_view.debug_rjs                         = true
+config.action_controller.perform_caching             = false
+
+# Don't care if the mailer can't send
+config.action_mailer.raise_delivery_errors = false
+
+# prima configs
+$do_not_run_prisma = false
+
+## root url for email links
+$root_url = "http://localhost:3000/"
+
+# 2009-10-07, OLD SETTINGS WERE:
+#config.action_controller.consider_all_requests_local = false
+#config.action_view.cache_template_extensions         = false
+#config.action_view.debug_rjs                         = true
+
+# Don't care if the mailer can't send
+#config.action_mailer.raise_delivery_errors = true
+# debugger
+#require "ruby-debug"

Added: incubator/alois/trunk/etc/alois/environments/production.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/environments/production.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/environments/production.rb (added)
+++ incubator/alois/trunk/etc/alois/environments/production.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,19 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching             = true
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host                  = "http://assets.example.com"
+
+# Disable delivery errors if you bad email addresses should just be ignored
+# config.action_mailer.raise_delivery_errors = false
+

Added: incubator/alois/trunk/etc/alois/environments/test.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/environments/test.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/environments/test.rb (added)
+++ incubator/alois/trunk/etc/alois/environments/test.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,35 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The test environment is used exclusively to run your application's
+# test suite.  You never need to work with it otherwise.  Remember that
+# your test database is "scratch space" for the test suite and is wiped
+# and recreated between test runs.  Don't rely on the data there!
+config.cache_classes = true
+
+# Log error messages when you accidentally call methods on nil.
+config.whiny_nils = true
+
+# Show full error reports and disable caching
+config.action_controller.consider_all_requests_local = true
+config.action_controller.perform_caching             = false
+config.action_view.cache_template_loading            = true
+
+# Disable request forgery protection in test environment
+config.action_controller.allow_forgery_protection    = false
+
+# Tell Action Mailer not to deliver emails to the real world.
+# The :test delivery method accumulates sent emails in the
+# ActionMailer::Base.deliveries array.
+config.action_mailer.delivery_method = :test
+
+# Use SQL instead of Active Record's schema dumper when creating the test database.
+# This is necessary if your schema can't be completely dumped by the schema dumper,
+# like if you have constraints or database-specific column types
+# config.active_record.schema_format = :sql
+
+# prima configs
+$do_not_run_prisma = false
+$email_default_subject = "Alois Testing - Prisma ALERT"
+
+## root url for email links
+$root_url = "https://localhost:3001/alois/"

Added: incubator/alois/trunk/etc/alois/munin-sink.conf
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/munin-sink.conf?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/munin-sink.conf (added)
+++ incubator/alois/trunk/etc/alois/munin-sink.conf Thu Nov  4 18:27:22 2010
@@ -0,0 +1,5 @@
+# needs root privileges for iptables
+[alois_sink]
+timeout 60
+user root
+group root

Added: incubator/alois/trunk/etc/alois/munin.conf
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/munin.conf?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/munin.conf (added)
+++ incubator/alois/trunk/etc/alois/munin.conf Thu Nov  4 18:27:22 2010
@@ -0,0 +1,14 @@
+[alois_aloisdb]
+timeout 120
+user prisma
+group alois
+
+[alois_sinkdb]
+timeout 120
+user prisma
+group alois
+
+[alois_sinkflows]
+timeout 120
+user prisma
+group alois

Added: incubator/alois/trunk/etc/alois/prisma/cron.daily
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/prisma/cron.daily?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/prisma/cron.daily (added)
+++ incubator/alois/trunk/etc/alois/prisma/cron.daily Thu Nov  4 18:27:22 2010
@@ -0,0 +1,2 @@
+#!/bin/sh
+/usr/sbin/prisma-admindb --clean `date --date="last month" +%d.%m.%Y`

Added: incubator/alois/trunk/etc/alois/routes.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/alois/routes.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/alois/routes.rb (added)
+++ incubator/alois/trunk/etc/alois/routes.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,66 @@
+ActionController::Routing::Routes.draw do |map|
+  # The priority is based upon order of creation: first created -> highest priority.
+
+  # Sample of regular route:
+  #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
+  # Keep in mind you can assign values other than :controller and :action
+
+  # Sample of named route:
+  #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
+  # This route can be invoked with purchase_url(:id => product.id)
+
+  # Sample resource route (maps HTTP verbs to controller actions automatically):
+  #   map.resources :products
+  map.resources :ip_ranges
+
+  # Sample resource route with options:
+  #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }
+
+  # Sample resource route with sub-resources:
+  #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
+  
+  # Sample resource route with more complex sub-resources
+  #   map.resources :products do |products|
+  #     products.resources :comments
+  #     products.resources :sales, :collection => { :recent => :get }
+  #   end
+
+  # Sample resource route within a namespace:
+  #   map.namespace :admin do |admin|
+  #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
+  #     admin.resources :products
+  #   end
+
+  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
+  # map.root :controller => "welcome"
+  map.root :controller => 'prisma'
+
+  # See how all your routes lay out with "rake routes"
+
+  # Install the default routes as the lowest priority.
+  # Note: These default routes make all actions in every controller accessible via GET requests. You should
+  # consider removing the them or commenting them out if you're using named routes and resources.
+
+  map.connect 'table/:table/:action/:id', :controller => 'survey'
+  map.connect 'table', :controller => 'tablelist'
+
+  map.connect ':msg_type/:appliance/:transport/msg/:action/:id', :controller => 'survey'
+  map.connect ':msg_type/:appliance/msg/:action/:id', :controller => 'survey'
+  map.connect ':msg_type/msg/:action/:id', :controller => 'survey'
+
+  map.connect 'help/inline', :controller => 'help', :action => 'inline'
+  map.connect 'help/inline/:context', :controller => 'help', :action => 'inline'
+  map.connect 'help/inline/:context/:page', :controller => 'help', :action => 'inline'
+
+  map.connect 'help/:context/:page', :controller => 'help', :action => 'index'
+  map.connect 'help/:context', :controller => 'help', :action => 'index'
+
+  map.connect ':transport/:msg_type/table/:action/:id', :controller => 'survey'
+
+#  map.connect ':source/source/:action/:id', :controller => 'survey'
+#  map.connect ':source/:msg_type/source/:action/:id', :controller => 'survey'
+
+  # Install the default route as the lowest priority.
+  map.connect ':controller/:action/:id'
+  map.connect ':controller/:action/:id.:format'
+end

Added: incubator/alois/trunk/etc/cron.d/alois-prisma
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/cron.d/alois-prisma?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/cron.d/alois-prisma (added)
+++ incubator/alois/trunk/etc/cron.d/alois-prisma Thu Nov  4 18:27:22 2010
@@ -0,0 +1,2 @@
+15 1 * * *      root    /usr/bin/prisma-compress-archives 2>&1 1>&2 | grep -v RAILS 2>/dev/null
+

Added: incubator/alois/trunk/etc/cron.d/alois-sink
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/cron.d/alois-sink?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/cron.d/alois-sink (added)
+++ incubator/alois/trunk/etc/cron.d/alois-sink Thu Nov  4 18:27:22 2010
@@ -0,0 +1 @@
+*/15 * * * *	root	/usr/bin/prisma-cleanup-raws syslogd_raws > /dev/null

Added: incubator/alois/trunk/etc/default/alois-environment-config.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/default/alois-environment-config.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/default/alois-environment-config.rb (added)
+++ incubator/alois/trunk/etc/default/alois-environment-config.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,73 @@
+THEME_CONFIG_PATTERN = File.dirname(__FILE__) + "/../../../alois-theme-*/config.rb"
+Pathname.glob(THEME_CONFIG_PATTERN).each {|config_file|
+   require config_file
+}
+
+$selected_theme = $themes[0] if $themes and $themes.length > 0
+include $selected_theme if $selected_theme
+
+def load_config(config)
+  config.logger = $log if $log
+
+  # Settings in config/environments/* take precedence over those specified here.
+  # Application configuration should go into files in config/initializers
+  # -- all .rb files in that directory are automatically loaded.
+
+  # Add additional load paths for your own custom dirs
+  # config.load_paths += %W( #{RAILS_ROOT}/extras )
+  
+  # Specify gems that this application depends on and have them installed with rake gems:install
+  
+  # config.gem "bj"
+  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
+  # config.gem "sqlite3-ruby", :lib => "sqlite3"
+  # config.gem "aws-s3", :lib => "aws/s3"
+  if ENV["GEM_HOME"]
+    config.gem "hpricot"
+    config.gem "ruport" #, :version => "1.2.0"
+    config.gem "acts_as_reportable", :lib => "ruport"
+    config.gem "mysql", :version => "2.7"
+    config.gem "hoe" #, :version => "1.7.0"
+    config.gem "fastercsv" #, :version => "1.2.0"
+    config.gem "mailfactory" #, :version => "1.2.3"
+    config.gem "will_paginate" #,:version => "2.1.0"
+
+    # csspool for awesome mailer (next version 2.0.0 does not work)
+    # failing with error 
+    # Failed to load library '/usr/lib/libcroco-0.6.so': Could not open library '/usr/lib/libcroco-0.6.so': /usr/lib/libcroco-0.6.so: cannot open shared object file: No such file or director
+    config.gem "csspool", :version => "0.2.6"
+    config.gem "inline_attachment" #:version => "0.3.0"
+    config.gem "rubyforge" # :version => "0.4.4",
+  
+    # for pdf writing
+    config.gem "pdf-writer", :lib => false  # => "1.1.3",
+    config.gem "color-tools", :lib => false #=> "1.3.0"
+    config.gem "transaction-simple", :lib => false # => "1.4.0",
+
+    # this is only needed for produciton use, probalby
+    # a debian package dependence is enough
+    ## config.gem "passenger", :lib => false
+    ## config.gem "fastthread", :lib => false
+  end
+
+  # this is done in makefile because compile native extension does not work.	"hpricot" => "0.6.0", # for awesome mailer
+
+  # Only load the plugins named here, in the order given (default is alphabetical).
+  # :all can be used as a placeholder for all plugins not explicitly named
+  # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
+
+  # Skip frameworks you're not going to use. To use Rails without a database,
+  # you must remove the Active Record framework.
+  # config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
+
+  # Activate observers that should always be running
+  # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
+
+  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
+  # Run "rake -D time" for a list of tasks for finding time zone names.
+  config.time_zone = 'UTC'
+
+  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
+  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
+  config.i18n.default_locale = :en
+end

Added: incubator/alois/trunk/etc/default/alois-environment.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/default/alois-environment.rb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/default/alois-environment.rb (added)
+++ incubator/alois/trunk/etc/default/alois-environment.rb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,114 @@
+$themes = []
+if !defined?(RAILS_ENV) or RAILS_ENV == "production"
+  # will be substitutet at package building
+  ALOIS_VERSION = "###VERSION###" unless defined?(ALOIS_VERSION)
+else
+  ALOIS_VERSION = "#{RAILS_ENV} version" unless defined?(ALOIS_VERSION)
+end
+
+require "alois/utils"
+require 'pathname'
+require 'alois/date_time_enhance'
+require 'mysql_adapter_extensions'
+require 'dummy_class_extension'
+require 'will_paginate'
+require 'inline_attachment'
+require 'awesome_email_fix'
+
+ActionView::Helpers::AssetTagHelper.register_javascript_include_default(
+  "prototype","effects","dragdrop","controls","application")
+
+begin
+  require "ruport/acts_as_reportable"
+rescue LoadError
+  print "Unable to load acts_as_reportable: #{$!}\n"
+end
+ActiveRecord::Base.acts_as_reportable if ActiveRecord::Base.respond_to?(:acts_as_reportable)
+
+# register alois conneciton
+begin
+  attr = {"name" => "alois"}.update(ActiveRecord::Base.configurations[RAILS_ENV])
+  attr.delete("reconnect")                                    
+  alois_conn = Connection.new(attr)
+  alois_conn.pool = ActiveRecord::Base.connection_pool
+  Connection.register(alois_conn)
+rescue
+  $log.warn("Could not load alois connection: #{alois_conn}")
+end
+
+Pathname.glob("/var/lib/prisma/archive/*_raws*").each {|f|
+  if File.ftype(f) == "file"
+    msg = "PLEASE MOVE THE CONTENT OF OLD ARCHIVE /var/lib/prisma/archive/* TO ANOTHER DIRECTORY\nEG TO: /var/lib/prisma/archive/old\n  # mkdir /var/lib/prisma/archive/old\n  # mv /var/lib/prisma/archive/*raws* /var/lib/prisma/archive/old"
+    print msg + "\n"
+    $log.error(msg)
+    throw msg
+  end
+}
+
+########################################
+# Appliances
+#
+# Define here which appliances should
+# be processed
+########################################
+#require "ruport"
+require "ip_address"
+#require "mysql_retry_lost_connection"
+ActiveRecord::SchemaDumper.ignore_tables = [/view_.*/]
+
+## How many seconds prisma should wait if there
+## is no record to process
+$default_waiting_time = 2
+
+## How many records per query should be processed
+$default_count = 100
+
+## niceness (-10 higher priority, 10 lower priority)
+$default_niceness = 0
+
+## default archive time. After this time the logs will be deleted
+## in archive and in the database
+$delete_logs_before = 1.year.ago
+
+## how the logs are archived. The following
+## values will be replaced:
+##  %c: with the class name (Prisma::XyzRaw)
+##  %t: with the table name (xyz_raw)
+##  %i: with the incoming date (the current system date)
+##  %d: with the log date (the date contained by in the raw class)
+## The value must give a filename with ending arch.
+$archive_pattern =  "/var/lib/prisma/archive/%t/%i/%d.arch"
+
+## how the reports are archived. The following
+## values will be replaced:
+##  %n: with the name of the report
+##  %d: with the date of creation (YYYY-MM-DD)
+##  %t: with the time of creation (HH:MM:SS)
+## The value must give a Directory
+$report_archive_pattern = "/var/lib/alois/archive/reports/%d/%n/%t"
+
+## how the alarms are archived. The following
+## values will be replaced:
+##  %i: with the id of the alarm
+##  %d: with the date of creation (YYYY-MM-DD)
+##  %t: with the time of creation (HH:MM:SS)
+## The value must give a Directory
+$alarm_archive_pattern = "/var/lib/alois/archive/alarms/%d/%i"
+
+## developper email address for exceptions
+$developper_email = "flavio.pellanda@logintas.ch"
+
+## root url for email links
+$root_url ||= "https://#{Socket.gethostname}/alois/"
+
+## default umask (0007 group an user can do everything)
+File.umask(0007)
+
+## commit this amount of operations together
+$transaction_bundle_amount ||= 500
+
+begin
+# require 'home_run'
+rescue
+ $log.warn("Could not load home_run, however this is not necessary but faster")
+end

Added: incubator/alois/trunk/etc/logrotate.d/alois-prisma
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/logrotate.d/alois-prisma?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/logrotate.d/alois-prisma (added)
+++ incubator/alois/trunk/etc/logrotate.d/alois-prisma Thu Nov  4 18:27:22 2010
@@ -0,0 +1,14 @@
+/var/log/alois/*.log {
+        daily
+        compress
+        rotate 20
+}
+
+/var/log/alois/*.err {
+        daily
+        compress
+        postrotate
+        /etc/init.d/prisma restart > /dev/null
+        endscript
+        rotate 20
+}

Added: incubator/alois/trunk/etc/logrotate.d/alois-sink
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/etc/logrotate.d/alois-sink?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/etc/logrotate.d/alois-sink (added)
+++ incubator/alois/trunk/etc/logrotate.d/alois-sink Thu Nov  4 18:27:22 2010
@@ -0,0 +1,14 @@
+/var/log/alois-ignored.log {
+   rotate 4
+   missingok
+   notifempty
+   weekly
+   compress
+}
+/var/log/alois-fallback.log {
+   rotate 4
+   missingok
+   notifempty
+   weekly
+   compress
+}

Added: incubator/alois/trunk/prisma/bin/prisma
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma (added)
+++ incubator/alois/trunk/prisma/bin/prisma Thu Nov  4 18:27:22 2010
@@ -0,0 +1,89 @@
+#! /usr/bin/ruby1.8
+require "libisi"
+init_libisi
+
+daemon = false
+type = :fifo
+waiting_time = nil
+force = false
+force_user = nil
+count = nil
+
+action, params = optparse({
+			    :text => "TODO: add text here",
+			    :actions => {
+			      "migrate DB" => "Migrate databse (use evironment variable VERSION to specify version)",
+			      "dump DB" => "Dump database schema",
+			      "load DB" => "Load database schema",
+			      "check DB" => "Check database version",
+                              "start SOURCECLASS" => "start"
+                            }}) {|o|
+  o.on( "-d", "--daemon", "Run as daemon." ) do |daemon| end
+  o.on( "-f", "--force", "Force prisma to run even if do_not_run_prisma is defined." ) do |force| end
+
+  o.on( "-u", "--user USERNAME", "Force user root to access database (useful for migrations)." ) do |force_user| end
+
+  o.on( "-c", "--count COUNT", "Amount of recrods to process per step.") do |c|
+    count = c
+  end
+  
+  o.on( "-w", "--waiting WAITINGTIME", "The time in seconds to wait if the queue table is empty.") do |w|
+    waiting_time = w.to_i
+  end
+
+  o.on( "--all", "Transform all messages in the queue and exit afterwards." ) do |a|
+    type = :all
+  end
+
+}
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+options = {
+  :force_user => force_user
+}
+
+case action
+when "migrate"
+  # migration
+  Prisma::Database.migrate(params[:db], ENV["VERSION"] ? ENV["VERSION"].to_i : nil, options)
+when "dump"
+  Prisma::Database.schema_dump(params[:db], options)
+when "load"
+  Prisma::Database.schema_load(params[:db], options)
+when "check"
+  Prisma::Database.load_all(options)
+  Prisma::Database.check(params[:db], options)
+when "start"
+  if force; $do_not_run_prisma = false; end
+  if $do_not_run_prisma
+    $log.warn("$do_not_run_prisma=true, not starting prisma")
+    exit 0
+  end
+  
+  Prisma::Database.load_all(options)
+  Prisma::Database.check("prisma" , options)
+  Prisma::Database.check("pumpy" , options)
+
+  if daemon
+    Prisma::Util.define_new_logger("prisma")
+    daemonize(:pid_file => "/var/run/prisma")
+    Prisma::Database.reconnect
+  end
+
+  Signal.trap("TERM") do; $terminate = true; end
+  Signal.trap("USR1") do; $terminate = true; $restart = true; end
+
+  source = SourceDbMeta.new.prisma_initialize(type, eval(params[:sourceclass]), count,nil, false, waiting_time)
+  $enable_dublette_recognition = source.may_contain_dublettes
+  Prisma::Util.define_new_logger(params[:sourceclass])
+  source.transform
+  exit 0  
+else
+  raise "Unexpected action #{action}"
+end

Added: incubator/alois/trunk/prisma/bin/prisma-cleanup-raws
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-cleanup-raws?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-cleanup-raws (added)
+++ incubator/alois/trunk/prisma/bin/prisma-cleanup-raws Thu Nov  4 18:27:22 2010
@@ -0,0 +1,80 @@
+#! /usr/bin/ruby1.8
+require "libisi"
+init_libisi(:ui => "console")
+
+sleeping_time = 5
+count = nil
+dryrun = false
+
+opts = optparse(:arguments => [["RAW_TABLE","Raw table to check size and delete if necessary"]]) do |o|
+  o.on( "-c", "--count COUNT", "Max count in the table (default #{count})." ) do |c|
+    count = c.to_i
+  end
+  o.on("--dryrun", "Do not create stat record and do not delete") {|dryrun|}
+end
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+raw_table = opts[0]
+raise "No raw table given" unless raw_table
+
+# create the mysql command string
+count ||= MAX_QUEUE_SIZES[raw_table]
+Prisma::Database.load_classes("pumpy")
+
+raw_klass = nil
+for klass in Prisma::Database.get_classes(:raw)
+  raw_klass = klass if klass.table_name == raw_table
+end
+
+raise "Raw class with table #{raw_table} not found" unless
+  raw_klass
+
+$log.info("Using #{raw_klass.name} with max count #{count.inspect}")
+
+stat = RawsState.new
+stat.table_name = raw_table
+stat.count_limit = count
+if dryrun
+  $log.info("Would create stat #{stat.inspect}")
+else
+  $log.info("Save stat #{stat.inspect}")
+  stat.save
+end
+
+start_time = Time.now()
+stat.count_value =  raw_klass.count()
+stat.count_time = (Time.now - start_time)
+if dryrun
+  $log.info("Would create stat #{stat.inspect}")
+else
+  $log.info("Save stat #{stat.inspect}")
+  stat.save
+end
+
+if count and stat.count_value > count 
+  from_records = raw_klass.find(:all,:order => "id DESC", :offset => count, :limit => 1)
+  if from_records.length >= 1    
+    from_record = from_records[0]    
+
+    if dryrun
+      $log.warn("Count #{stat.count_value} for #{raw_klass.table_name} > than max_count #{count }. " + 
+                "Would delete all records with id less or equal to #{from_record.id}")
+    else
+      $log.warn("Count #{stat.count_value} for #{raw_klass.table_name} > than max_count #{count }. " + 
+                "Deleting all records with id less or equal to #{from_record.id}")
+      start_time = Time.now
+      stat.delete_value = raw_klass.delete_all("id <= #{from_record.id}")
+      stat.delete_time = Time.now - start_time
+      stat.save
+    end
+  end
+else
+  $log.info("Count #{stat.count_value} is ok")
+  exit 0
+end

Added: incubator/alois/trunk/prisma/bin/prisma-compress-archives
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-compress-archives?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-compress-archives (added)
+++ incubator/alois/trunk/prisma/bin/prisma-compress-archives Thu Nov  4 18:27:22 2010
@@ -0,0 +1,15 @@
+#! /usr/bin/ruby1.8
+require "libisi"
+init_libisi
+optparse
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+Prisma::Archive.compress_archives
+
+exit 0

Added: incubator/alois/trunk/prisma/bin/prisma-delete-old-logs
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-delete-old-logs?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-delete-old-logs (added)
+++ incubator/alois/trunk/prisma/bin/prisma-delete-old-logs Thu Nov  4 18:27:22 2010
@@ -0,0 +1,58 @@
+#! /usr/bin/ruby1.8
+require 'libisi'
+init_libisi(:ui => "console")
+
+action = nil
+before_date = nil
+dryrun = false
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+before_date = $delete_logs_before.strftime("%F")
+
+opts = optparse {|o|  
+  o.on( "-d", "--database", "Delete logs in the database that have been imported before the specified date.") do |w|
+    action = :database
+  end
+  
+  o.on( "-a", "--archive", "Delete log in the archive that have been archived before the specific date." ) do |a|
+    action = :archive
+  end
+
+  o.on( "--all", "Delete log in the archive and database." ) do |a|
+    action = :all
+  end
+
+  o.on( "-b", "--before-date YYYY-MM-DD", "Delete logs before this date (default: #{before_date}).") do |d|    
+    before_date = d
+  end
+    
+  o.on("-c", "--commit-bundle-count COUNT","Commit changes after this amount of destroyed metas") {|count|
+    $transaction_bundle_amount = count.to_i
+  }
+
+  o.on("--dryrun", "Do not delete anything, dryrun only") {|dryrun|}
+}
+
+throw "Please give either --database or --archive." if action.nil?
+throw "No date given." unless before_date
+
+begin
+  before_date = DateTime.parse(before_date).strftime("%F")
+rescue 
+  throw "Invalid date supplied '#{before_date}'."
+end
+
+ensure_script_not_running_already
+
+Prisma::Database.load_classes("prisma")
+
+throw "Unknown action '#{action}'." unless [:database,:all,:archive].include?(action)
+Prisma::Database.delete_logs_before(action,before_date,dryrun)
+
+exit 0

Added: incubator/alois/trunk/prisma/bin/prisma-import-file
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-import-file?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-import-file (added)
+++ incubator/alois/trunk/prisma/bin/prisma-import-file Thu Nov  4 18:27:22 2010
@@ -0,0 +1,14 @@
+#! /usr/bin/ruby1.8
+require 'pathname'
+LOG_STDOUT = true
+LOG_VERBOSE = true
+require File.dirname(Pathname.new(__FILE__).realpath) + '/../config/boot'
+require File.dirname(Pathname.new(__FILE__).realpath) + '/../config/environment'
+
+if ARGV[0]
+  Prisma.transform_file(ARGV[0], :type => "log")
+else
+  print "\nUsage: alois-import-file FILENAME\n\nAdds the file to the configured sink file queue (file_raws).\n\n"
+end
+
+exit 0

Added: incubator/alois/trunk/prisma/bin/prisma-munin-iptablesflows
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-munin-iptablesflows?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-munin-iptablesflows (added)
+++ incubator/alois/trunk/prisma/bin/prisma-munin-iptablesflows Thu Nov  4 18:27:22 2010
@@ -0,0 +1,26 @@
+#! /usr/bin/ruby1.8
+
+if ARGV[0] == "config"
+
+  print "graph_title Sink input rates\n"
+  print "graph_category Alois\n"
+#  print "host_name insink\n"
+  print "graph_vlabel logs\n"
+
+  print "log_input_count.label log_input\n"
+  print "log_input_count.type COUNTER\n"
+  print "log_input_count.min 0\n"
+ 
+#  print "log_input_bytes.label log_input\n"
+#  print "log_input_bytes.type COUNTER\n"
+#  print "log_input_bytes.min 0\n"
+else
+  
+  for line in open("|/sbin/iptables -v --exact --list AllowSyslog")
+    if line =~ /^ *(\d\d*)  *(\d\d*).*/
+      print "log_input_count.value #{$1}\n"
+#      print "log_input_bytes.value #{$2}\n"
+    end
+  end
+
+end

Added: incubator/alois/trunk/prisma/bin/prisma-munin-prismadb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-munin-prismadb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-munin-prismadb (added)
+++ incubator/alois/trunk/prisma/bin/prisma-munin-prismadb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,33 @@
+#! /usr/bin/ruby1.8
+require "libisi"
+init_libisi(:ui => "console")
+
+args = optparse
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+Prisma::Database.load_classes("prisma")
+
+if ARGV[0] == "config"
+
+  print "graph_title Log rates\n"
+  print "graph_category Alois\n"
+#  print "host_name #{config['alois']['host']}\n"
+  print "graph_vlabel new records\n"
+ 
+  for klass in Prisma::Database.get_classes(:meta) << Message
+    print "#{klass.table_name}.label #{klass.table_name}\n"
+    print "#{klass.table_name}.type COUNTER\n"
+  end
+
+else
+  for klass in Prisma::Database.get_classes(:meta) << Message
+      print "#{klass.table_name}.value #{klass.auto_increment}\n"
+  end
+
+end

Added: incubator/alois/trunk/prisma/bin/prisma-munin-pumpydb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-munin-pumpydb?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-munin-pumpydb (added)
+++ incubator/alois/trunk/prisma/bin/prisma-munin-pumpydb Thu Nov  4 18:27:22 2010
@@ -0,0 +1,37 @@
+#! /usr/bin/ruby1.8
+require "libisi"
+init_libisi(:ui => "console")
+
+args = optparse
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+Prisma::Database.load_classes("pumpy")
+
+if args[0] == "config"
+
+  print "graph_title Sink input queues\n"
+  print "graph_category Alois\n"
+#  print "host_name #{config['pumpy']['host']}\n"
+  print "graph_vlabel records\n"
+
+ 
+  for klass in Prisma::Database.get_classes(:raw)
+    print "#{klass.table_name}.label #{klass.table_name}\n"
+  end
+
+else
+
+  for klass in Prisma::Database.get_classes(:raw)
+    $log.debug("Counting #{klass.name}")
+    # queue_size
+    queue_size = klass.approx_count
+    print "#{klass.table_name}.value #{queue_size}\n"
+  end
+
+end

Added: incubator/alois/trunk/prisma/bin/prisma-munin-pumpyflows
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/bin/prisma-munin-pumpyflows?rev=1031127&view=auto
==============================================================================
--- incubator/alois/trunk/prisma/bin/prisma-munin-pumpyflows (added)
+++ incubator/alois/trunk/prisma/bin/prisma-munin-pumpyflows Thu Nov  4 18:27:22 2010
@@ -0,0 +1,55 @@
+#! /usr/bin/ruby1.8
+require "libisi"
+init_libisi(:ui => "console")
+
+args = optparse
+
+cf = Pathname.new(__FILE__).dirname + "../conf/prisma/environment.rb"
+if cf.exist?
+  require cf 
+else
+  require "/etc/prisma/environment.rb"
+end
+
+Prisma::Database.load_classes("pumpy")
+
+if ARGV[0] == "config"
+  print "graph_title Sink flows \n"
+  print "graph_category Alois\n"
+  print "graph_vlabel records\n"
+ 
+  for klass in Prisma::Database.get_classes(:raw)
+ 
+    print "#{klass.table_name}_drops.label #{klass.table_name}_drops\n"
+    print "#{klass.table_name}_drops.type DERIVE\n"
+    print "#{klass.table_name}_drops.min 0\n"
+
+    print "#{klass.table_name}_incoming.label #{klass.table_name}_incoming\n"
+    print "#{klass.table_name}_incoming.type DERIVE\n"
+    print "#{klass.table_name}_incoming.min 0\n"
+
+    print "#{klass.table_name}_outgoing.label #{klass.table_name}_outgoing\n"
+    print "#{klass.table_name}_outgoing.type DERIVE\n"
+    print "#{klass.table_name}_outgoing.min 0\n"
+  end
+
+else
+
+  for klass in Prisma::Database.get_classes(:raw)
+    # queue_size
+    queue_size = klass.approx_count
+
+    # drops
+    drops = RawsState.connection.select_value("SELECT sum(delete_value) FROM #{RawsState.table_name} WHERE table_name='#{klass.table_name}'") || 0
+    drops = drops.to_i
+    print "#{klass.table_name}_drops.value #{drops}\n"
+
+    # incoming
+    incoming = klass.auto_increment
+    print "#{klass.table_name}_incoming.value #{incoming}\n"    
+    
+    # outgoing
+    print "#{klass.table_name}_outgoing.value #{incoming - queue_size - drops}\n"    
+  end
+
+end