incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1034296 - in /incubator/alois/trunk: INSTALL debian/alois-common.postinst debian/alois-reporter.links debian/alois-single-system.install debian/alois.postinst debian/control
Date Fri, 12 Nov 2010 08:38:56 GMT
Author: flavio
Date: Fri Nov 12 08:38:56 2010
New Revision: 1034296

URL: http://svn.apache.org/viewvc?rev=1034296&view=rev
Log:
Bugfixes for debian package.

Modified:
    incubator/alois/trunk/INSTALL
    incubator/alois/trunk/debian/alois-common.postinst
    incubator/alois/trunk/debian/alois-reporter.links
    incubator/alois/trunk/debian/alois-single-system.install
    incubator/alois/trunk/debian/alois.postinst
    incubator/alois/trunk/debian/control

Modified: incubator/alois/trunk/INSTALL
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/INSTALL?rev=1034296&r1=1034295&r2=1034296&view=diff
==============================================================================
--- incubator/alois/trunk/INSTALL (original)
+++ incubator/alois/trunk/INSTALL Fri Nov 12 08:38:56 2010
@@ -1,6 +1,6 @@
-= Installation =
+= Installation
 
-== Local usage ==
+== Local usage
 You can use alois without installing antything. Beacause
 ALOIS is a rails application you can simply use the common
 rails commands to start a local webserver on port 3000. All
@@ -8,51 +8,78 @@ you need is a working rubygems version a
 libraries installed on your system.
 
 # required packages
-sudo apt-get install rubygems rake ruby1.8-dev libmysqlclient-dev libsqlite3-ruby1.8 libjfreechart-java
+ sudo apt-get install rubygems rake ruby1.8-dev libmysqlclient-dev libsqlite3-ruby1.8 libjfreechart-java
 # install a java runtime and java compiler eg openjdk-6-jdk
-suod gem install libisi
+ suod gem install libisi
 
 # download necessary gems
-make freeze-gems
+ make freeze-gems
 
 # initialize directory structure
-make init
+ make init
 
 # creates new sqlite databases
-make init-db
+ make init-db
 
 TODO: Create script to fill sqlite db with local logs
 
 # change into rails directory
-cd <<svn root>>/rails
+ cd <<svn root>>/rails
 
 # to start server
-./script/server
+ ./script/server
 
-== Debian installation ==
-/!\ Probably not working yet /!\
-TODO: Create public debian repository for gems
+== Debian installation
+Add the following sources:
+ deb http://www.backports.org/debian lenny-backports main
+ deb http://debian.logintas.ch/ lenny/
+ deb http://debian.logintas.ch/ all/
 
-# ADD TO /etc/apt/preferences
-Package: libcsspool-ruby1.8
-Pin: version 0.2.6
-Pin-Priority: 1001
-
-apt-get install rubygems
-dpkg  --install --force-all /var/cache/apt/archives/rubygems*_1.3.5-1rel_all.deb
-gem install --no-rdoc -v=2.3.2 rails
+Update
+ apt-get update
 
+If there are newer libcsspool packages:
+# ADD TO /etc/apt/preferences
+ Package: libcsspool-ruby1.8
+ Pin: version 0.2.6
+ Pin-Priority: 1001
+
+# install rubygems
+ apt-get install rubygems
+ # rubygems is wrong packaged
+ dpkg  --install --force-all /var/cache/apt/archives/rubygems*_1.3.5-1rel_all.deb
+ gem install --no-rdoc --no-ri -v=2.3.2 rails
 
-deb http://www.backports.org/debian lenny-backports main contrib non-free
-apt-get install libapache2-mod-passenger
-a2enmod passenger
-ln /usr/share/alois/www/public /var/www/alois -s
+# install alois
+ apt-get install alois-single-system mysql-server
 
 # SELECT SUN JVM
-update-alternatives --config java
+ update-alternatives --config java
+
+# create necessary databases
+ mysqladmin -u root -p create prisma
+ mysqladmin -u root -p create pumpy
+ mysqladmin -u root -p create alois
+
+# Load database schemas
+ prisma load pumpy
+# prisma load prisma
+# TODO: load prisma does not work use migrate insead
+ prisma migrate prisma
+ rake -f /usr/share/alois/www/Rakefile "db:schema:load"
+
+# enable log collect
+ cat /usr/share/doc/alois-sink/syslog-ng.conf.example/syslog-ng.conf.example  >> /etc/syslog-ng/syslog-ng.conf
+ /etc/init.d/prisma-mysqlpiped restart
+ /etc/init.d/syslog-ng restart
 
 alois-setup
 
+# enable apache site
+ ln /etc/apache2/sites-available/alois /etc/apache2/sites-enabled/ -s
+# restart dependant services
+ restart munin-node
+ restart apache2
 
 # /etc/sudoers
 # Alois

Modified: incubator/alois/trunk/debian/alois-common.postinst
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois-common.postinst?rev=1034296&r1=1034295&r2=1034296&view=diff
==============================================================================
--- incubator/alois/trunk/debian/alois-common.postinst (original)
+++ incubator/alois/trunk/debian/alois-common.postinst Fri Nov 12 08:38:56 2010
@@ -23,17 +23,7 @@ case "$1" in
      adduser --system alois
      adduser alois alois
 
-     for i in /etc/alois/alois.conf
-     do
-       # only do something when no setting exists
-       if ! dpkg-statoverride --list $i >/dev/null 2>&1
-       then
-         dpkg-statoverride --update --add root alois 0640 $i
-       fi
-     done
-
      chown www-data:www-data /var/log/alois
-     chown root:alois /etc/alois/alois.conf
 
      ;;
 

Modified: incubator/alois/trunk/debian/alois-reporter.links
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois-reporter.links?rev=1034296&r1=1034295&r2=1034296&view=diff
==============================================================================
--- incubator/alois/trunk/debian/alois-reporter.links (original)
+++ incubator/alois/trunk/debian/alois-reporter.links Fri Nov 12 08:38:56 2010
@@ -8,3 +8,7 @@
 /usr/bin/prisma-munin-prismadb		/etc/munin/plugins/alois_aloisdb
 /usr/bin/prisma-munin-pumpydb		/etc/munin/plugins/alois_sinkdb
 /usr/bin/prisma-munin-pumpyflows	/etc/munin/plugins/alois_sinkflows
+
+# link for default webpage
+/usr/share/alois/www/public /var/www/alois
+

Modified: incubator/alois/trunk/debian/alois-single-system.install
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois-single-system.install?rev=1034296&r1=1034295&r2=1034296&view=diff
==============================================================================
--- incubator/alois/trunk/debian/alois-single-system.install (original)
+++ incubator/alois/trunk/debian/alois-single-system.install Fri Nov 12 08:38:56 2010
@@ -1 +0,0 @@
-debian/tmp/usr/share/alois/www/script/setup

Modified: incubator/alois/trunk/debian/alois.postinst
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/alois.postinst?rev=1034296&r1=1034295&r2=1034296&view=diff
==============================================================================
--- incubator/alois/trunk/debian/alois.postinst (original)
+++ incubator/alois/trunk/debian/alois.postinst Fri Nov 12 08:38:56 2010
@@ -1,3 +1,5 @@
+
+
 #!/bin/sh
 set -e
 
@@ -8,9 +10,6 @@ if [ ! -e /etc/apache2/mods-enabled/rewr
  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
@@ -33,8 +32,8 @@ chmod 770 /var/lib/alois/archive
 usermod -g www-data prisma
 usermod -g www-data alois
 
-invoke-rc.d apache2 restart 
-invoke-rc.d munin-node restart 
+#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/*

Modified: incubator/alois/trunk/debian/control
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/debian/control?rev=1034296&r1=1034295&r2=1034296&view=diff
==============================================================================
--- incubator/alois/trunk/debian/control (original)
+++ incubator/alois/trunk/debian/control Fri Nov 12 08:38:56 2010
@@ -53,7 +53,7 @@ Description: Advanced Logging and Intrus
 
 Package: alois-prisma
 Architecture: any
-Depends: alois-common (=${Source-Version}), ruby1.8
+Depends: alois-common (=${Source-Version}), ruby1.8, libtmail-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.



Mime
View raw message