[med-svn] r5751 - in trunk/packages/biomaj/trunk/debian: . po
olivier sallou
osallou-guest at alioth.debian.org
Sat Jan 29 17:05:12 UTC 2011
Author: osallou-guest
Date: 2011-01-29 17:05:10 +0000 (Sat, 29 Jan 2011)
New Revision: 5751
Added:
trunk/packages/biomaj/trunk/debian/postinst
trunk/packages/biomaj/trunk/debian/postrm
trunk/packages/biomaj/trunk/debian/prerm
Removed:
trunk/packages/biomaj/trunk/debian/biomaj-watcher.README.source
trunk/packages/biomaj/trunk/debian/biomaj-watcher.config
trunk/packages/biomaj/trunk/debian/biomaj-watcher.postinst
trunk/packages/biomaj/trunk/debian/biomaj-watcher.postrm
trunk/packages/biomaj/trunk/debian/biomaj-watcher.prerm
trunk/packages/biomaj/trunk/debian/biomaj-watcher.templates
trunk/packages/biomaj/trunk/debian/biomaj.postinst
trunk/packages/biomaj/trunk/debian/biomaj.postrm
trunk/packages/biomaj/trunk/debian/biomaj.prerm
Modified:
trunk/packages/biomaj/trunk/debian/config
trunk/packages/biomaj/trunk/debian/control
trunk/packages/biomaj/trunk/debian/po/fr.po
trunk/packages/biomaj/trunk/debian/po/templates.pot
trunk/packages/biomaj/trunk/debian/rules
Log:
moved biomajwatcher out as a separate package
Deleted: trunk/packages/biomaj/trunk/debian/biomaj-watcher.README.source
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj-watcher.README.source 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj-watcher.README.source 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,3 +0,0 @@
-The BmajWatcher war application is made with GWT toolkit. Once compiled and war directory is produced, war file must be uploaded on a repository. The generation must be done before package creation, GWT is not executed at package build time nor installation.
-
-To recreate the debian package structure, a script biomajwatcher_deb.sh is available in packaging directory in svn structure. It copies necessary files from svn to a debian structure. For BmajWatcher, the war file must have been uploaded to a repository. The scripts define 2 versions for each element (biomaj/bmajwatcher) at the beginning of the file. It must be updated to the required version prior to execution.
Deleted: trunk/packages/biomaj/trunk/debian/biomaj-watcher.config
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj-watcher.config 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj-watcher.config 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,31 +0,0 @@
-#!/bin/sh -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-# admin login
-db_input critical biomaj/login || true
-db_go
-
-# admin passwd
-db_input critical biomaj/password || true
-db_go
-
-# Configure LDAP ?
-db_input critical biomaj/ldap || true
-db_go
-db_get biomaj/ldap
-if [ $RET = "true" ]; then
- # LDAP server
- db_input critical biomaj/ldap_server || true
- db_go
-
- # LDAP dn
- db_input critical biomaj/ldap_dn || true
- db_go
-
- # LDAP filter
- db_input critical biomaj/ldap_filter || true
- db_go
-fi
-
Deleted: trunk/packages/biomaj/trunk/debian/biomaj-watcher.postinst
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj-watcher.postinst 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj-watcher.postinst 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,60 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DEBHELPER#
-
-
-biomajwatcher_root="/usr/share/biomaj-watcher"
-
-bmajconf="/etc/biomaj-watcher"
-
-bmajroot="/usr/share/biomaj"
-
-
-db_get biomaj/login
-app_login="$RET"
-db_get biomaj/password
-app_passwd="$RET"
-
-db_get biomaj/ldap
-use_ldap="$RET"
-db_get biomaj/ldap_server
-ldap_host="$RET"
-db_get biomaj/ldap_dn
-ldap_dn="$RET"
-db_get biomaj/ldap_filter
-opt_filer="$RET"
-
-# Link general.conf
-cd $biomajwatcher_root
-
-javac -d $biomajwatcher_root/bin $biomajwatcher_root/bin/WatcherConfigurator.java
-
-java -cp $biomajwatcher_root/bin WatcherConfigurator bmajroot:=$bmajroot bmajconf:=$bmajconf use_ldap:=$use_ldap ldap_host:=$ldap_host ldap_dn:=$ldap_dn opt_filter:=$opt_filter app_login:=$app_login app_passwd:=$app_passwd
-
-mkdir -p /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib
-cp /usr/share/biomaj/lib/biomaj.jar /var/lib/tomcat6/shared/
-
-cp /etc/biomaj-watcher/BmajWatcher*.xml /var/lib/tomcat6/conf/Catalina/localhost/
-
-TMPZIP=`mktemp -t biomaj-watcher.1.XXXXXX`
-rm $TMPZIP
-cd /usr/share/java/webapps/biomaj-watcher
-zip -r $TMPZIP *
-mv $TMPZIP /var/lib/tomcat6/webapps/BmajWatcher.war
-
-chown -R tomcat6 /etc/biomaj/db_properties
-chmod -R 775 /etc/biomaj/db_properties
-
-chown -R tomcat6 /var/log/biomaj
-chmod -R 775 /var/log/biomaj
-
-chown -R tomcat6 /var/lib/biomaj
-chmod -R 775 /var/lib/biomaj
-
-chown -R tomcat6 /var/tmp/biomaj
-chmod -R 775 /var/tmp/biomaj
Deleted: trunk/packages/biomaj/trunk/debian/biomaj-watcher.postrm
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj-watcher.postrm 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj-watcher.postrm 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DEBHELPER#
-
-# Remove all
-if [ -e /var/lib/tomcat6/webapps/BmajWatcher.war ]; then
- rm /var/lib/tomcat6/webapps/BmajWatcher.war
-fi
-
-if [ -e /var/lib/tomcat6/shared/biomaj.jar ]; then
- rm /var/lib/tomcat6/shared/biomaj.jar
-fi
-
-if [ -e /usr/share/java/webapps/biomaj-watcher ]; then
- rm -rf /usr/share/java/webapps/biomaj-watcher
-fi
-
Deleted: trunk/packages/biomaj/trunk/debian/biomaj-watcher.prerm
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj-watcher.prerm 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj-watcher.prerm 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-# Remove post installation created files
-
-# Remove admin credentials
-if [ -e /usr/share/biomaj/.bmajwatcherpasswd ]; then
- rm /usr/share/biomaj/.bmajwatcherpasswd
-fi
-
-if [ -e /var/lib/tomcat6/conf/Catalina/localhost/BmajWatcher.xml ]; then
- rm /var/lib/tomcat6/conf/Catalina/localhost/BmajWatcher.xml
-fi
-
-if [ -e /var/lib/tomcat6/conf/Catalina/localhost/BmajWatcher#logs.xml ]; then
- rm /var/lib/tomcat6/conf/Catalina/localhost/BmajWatcher#logs.xml
-fi
-
-#DEBHELPER#
Deleted: trunk/packages/biomaj/trunk/debian/biomaj-watcher.templates
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj-watcher.templates 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj-watcher.templates 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,24 +0,0 @@
-Template: biomaj/login
-Type: string
-_Description: Administration interface admin login:
-
-Template: biomaj/password
-Type: password
-_Description: Administration interface admin password:
-
-Template: biomaj/ldap
-Type: boolean
-_Description: Want to configure LDAP now ?
-
-Template: biomaj/ldap_server
-Type: string
-_Description: Enter LDAP server:
-
-Template: biomaj/ldap_dn
-Type: string
-_Description: Enter LDAP DN:
-
-Template: biomaj/ldap_filter
-Type: string
-_Description: Enter LDAP filter (empty if not needed):
-
Deleted: trunk/packages/biomaj/trunk/debian/biomaj.postinst
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj.postinst 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj.postinst 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DEBHELPER#
-
-
-ant_home="/usr/share/ant"
-biomaj_root="/usr/share/biomaj"
-
-db_get biomaj/jdk_home
-jdk_home="$RET"
-
-#db_get biomaj/login
-#app_login="$RET"
-#db_get biomaj/password
-#app_passwd="$RET"
-
-#db_get biomaj/ldap
-#use_ldap="$RET"
-#db_get biomaj/ldap_server
-#ldap_host="$RET"
-#db_get biomaj/ldap_dn
-#ldap_dn="$RET"
-#db_get biomaj/ldap_filter
-#opt_filer="$RET"
-
-#db_get biomaj/db_type
-db_type="MySQL"
-db_get biomaj/mysql_host
-db_url="jdbc:mysql://$RET/biomaj_log"
-db_get biomaj/mysql_login
-db_login="$RET"
-db_get biomaj/mysql_passwd
-db_passwd="$RET"
-
-#db_get biomaj/tomcat_port
-tomcat_port="0"
-
-# Link general.conf
-cd $biomaj_root
-ln -s /etc/biomaj/general.conf general.conf
-
-javac -d $biomaj_root/bin $biomaj_root/bin/Configurator.java
-
-java -cp $biomaj_root/bin Configurator java_home:=$jdk_home ant_home:=$ant_home biomaj_root:=$biomaj_root use_ldap:=$use_ldap ldap_host:=$ldap_host ldap_dn:=$ldap_dn opt_filter:=$opt_filter db_type:=$db_type db_url:=$db_url db_login:=$db_login db_passwd:=$db_passwd app_login:=$app_login app_passwd:=$app_passwd tomcat_port:=$tomcat_port
-
-#ln -s $biomaj_root/lib/biomaj.jar $biomaj_root/apache-tomcat-6.0.24/lib/biomaj.jar
-
-if [ $db_type = "MySQL" ]; then
- echo "Installation Complete."
- echo "You now need to create the biomaj_log database on your MySQL server."
- echo "The creation script is provided at /usr/share/biomaj/sql/mysql.sql."
-fi
-
Deleted: trunk/packages/biomaj/trunk/debian/biomaj.postrm
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj.postrm 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj.postrm 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-#DEBHELPER#
-
-# Remove all
-if [ -e /usr/share/biomaj ]; then
- rm -rf /usr/share/biomaj
-fi
-
-echo "Warning, BioMAJ database for MySQL is not deleted by process removal."
Deleted: trunk/packages/biomaj/trunk/debian/biomaj.prerm
===================================================================
--- trunk/packages/biomaj/trunk/debian/biomaj.prerm 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/biomaj.prerm 2011-01-29 17:05:10 UTC (rev 5751)
@@ -1,56 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-# Shutdown hsqldb server
-#db_get biomaj/db_type
-#if [ $RET = "HSQLDB" ]; then
-# bash /usr/share/biomaj/bin/shutdown_dbserver.sh
-#fi
-
-# Shutdown tomcat server
-#sh /usr/share/biomaj/apache-tomcat-6.0.24/bin/shutdown.sh >/dev/null 2>&1
-
-# Remove post installation created files
-
-# Remove admin credentials
-if [ -e /usr/share/biomaj/.bmajwatcherpasswd ]; then
- rm /usr/share/biomaj/.bmajwatcherpasswd
-fi
-# Remove biomaj.jar
-if [ -e /usr/share/biomaj/lib/biomaj.jar ]; then
- rm /usr/share/biomaj/lib/biomaj.jar
-fi
-# Remove build content
-if [ -e /usr/share/biomaj/build ]; then
- rm -rf /usr/share/biomaj/build
-fi
-# hsql server startup log
-if [ -e /usr/share/biomaj/dbserver.log ]; then
- rm /usr/share/biomaj/dbserver.log
-fi
-# distribution directory
-if [ -e /usr/share/biomaj/dist ]; then
- rm -rf /usr/share/biomaj/dist
-fi
-# Installation logs
-if [ -e /usr/share/biomaj/install_log.log ]; then
- rm /usr/share/biomaj/install_log.log
-fi
-# Internal tmp directory
-if [ -e /usr/share/biomaj/tmp ]; then
- rm -rf /usr/share/biomaj/tmp
-fi
-# Link to general.conf
-if [ -L /usr/share/biomaj/general.conf ]; then
- rm /usr/share/biomaj/general.conf
-fi
-# Link to biomaj.jar
-if [ -L /usr/share/biomaj/apache-tomcat-6.0.24/lib/biomaj.jar ]; then
- rm /usr/share/biomaj/apache-tomcat-6.0.24/lib/biomaj.jar
-fi
-
-#DEBHELPER#
Modified: trunk/packages/biomaj/trunk/debian/config
===================================================================
--- trunk/packages/biomaj/trunk/debian/config 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/config 2011-01-29 17:05:10 UTC (rev 5751)
@@ -7,21 +7,8 @@
db_input critical biomaj/jdk_home || true
db_go
-# admin login
-#db_input critical biomaj/login || true
-#db_go
-# admin passwd
-#db_input critical biomaj/password || true
-#db_go
-
-# db type
-#db_input critical biomaj/db_type || true
-#db_go
-
# Configure mysql ?
-#db_get biomaj/db_type
-#if [ $RET = "MySQL" ]; then
db_input critical biomaj/mysql || true
db_go
db_get biomaj/mysql
@@ -38,27 +25,5 @@
db_input critical biomaj/mysql_passwd || true
db_go
fi
-#fi
-# Configure LDAP ?
-#db_input critical biomaj/ldap || true
-#db_go
-#db_get biomaj/ldap
-#if [ $RET = "true" ]; then
- # LDAP server
-# db_input critical biomaj/ldap_server || true
-# db_go
- # LDAP dn
-# db_input critical biomaj/ldap_dn || true
-# db_go
-
- # LDAP filter
-# db_input critical biomaj/ldap_filter || true
-# db_go
-#fi
-
-# Tomcat port
-#db_input critical biomaj/tomcat_port || true
-#db_go
-
Modified: trunk/packages/biomaj/trunk/debian/control
===================================================================
--- trunk/packages/biomaj/trunk/debian/control 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/control 2011-01-29 17:05:10 UTC (rev 5751)
@@ -20,11 +20,3 @@
workflows, with consistent state,to provide ready-to-use data to biologists and
bioinformaticians. For example, it can transform original fasta files to blast
indexes. It is very flexible and post-processes can be extended very easily.
-
-Package: biomaj-watcher
-Architecture: all
-Depends: openjdk-6-jdk, tomcat6, zip, biomaj (>= 1.1), debconf, ${misc:Depends}
-Description: BioMAJ web interface
- BioMAJ watcher provide a management interface for the BiomAJ tool.
- It runs in a web container (tomcat) and is accessible at address:
- http://myhost:myport/BmajWatcher
Modified: trunk/packages/biomaj/trunk/debian/po/fr.po
===================================================================
--- trunk/packages/biomaj/trunk/debian/po/fr.po 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/po/fr.po 2011-01-29 17:05:10 UTC (rev 5751)
@@ -22,33 +22,7 @@
msgid "The JDK home directory:"
msgstr "Repertoire d'installation du JDK"
-#. Type: string
-#. Description
-#: ../templates:2001
-#msgid "Administration interface admin login:"
-#msgstr "Login de l'interface d'administration"
-#. Type: password
-#. Description
-#: ../templates:3001
-#msgid "Administration interface admin password:"
-#msgstr "Mot de passe administrateur"
-
-#. Type: select
-#. Description
-#: ../templates:4001
-#msgid "Database type."
-#msgstr "Sélectionner la base de donnée"
-
-#. Type: select
-#. Description
-#: ../templates:4001
-#msgid ""
-#"(HSQLDB is an embedded database that requires very few configuration as it "
-#"is shipped with BioMAJ. MySQL is recommended though for performance and "
-#"reliability issues)"
-#msgstr "HSQLDB est un base de donne embarquée qui requiert peu de configuration, elle est fournie avec BioMAJ. MySQL est recommandée pour de la performance et une meilleure stabilité"
-
#. Type: boolean
#. Description
#: ../templates:5001
@@ -73,33 +47,3 @@
msgid "User password for biomaj database:"
msgstr "Mot de passe de la base de donnée:"
-#. Type: boolean
-#. Description
-#: ../templates:9001
-#msgid "Want to configure LDAP now ?"
-#msgstr "Souhaitez vous configurer le LDAP?"
-
-#. Type: string
-#. Description
-#: ../templates:10001
-#msgid "Enter LDAP server:"
-#msgstr "Adresse du LDAP:"
-
-#. Type: string
-#. Description
-#: ../templates:11001
-#msgid "Enter LDAP DN:"
-#msgstr "DN (directory name) du LDAP:"
-
-#. Type: string
-#. Description
-#: ../templates:12001
-#msgid "Enter LDAP filter (empty if not needed):"
-#msgstr "Filtre pour la recherche LDAP (vide si non nécessaire):"
-
-#. Type: string
-#. Description
-#: ../templates:13001
-#msgid "Enter port you want the provided tomcat server to listen to:"
-#msgstr "Entrer le port pour le serveur Tomcat"
-
Modified: trunk/packages/biomaj/trunk/debian/po/templates.pot
===================================================================
--- trunk/packages/biomaj/trunk/debian/po/templates.pot 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/po/templates.pot 2011-01-29 17:05:10 UTC (rev 5751)
@@ -22,33 +22,7 @@
msgid "The JDK home directory:"
msgstr "Repertoire d'installation du JDK"
-#. Type: string
-#. Description
-#: ../templates:2001
-#msgid "Administration interface admin login:"
-#msgstr "Login de l'interface d'administration"
-#. Type: password
-#. Description
-#: ../templates:3001
-#msgid "Administration interface admin password:"
-#msgstr "Mot de passe administrateur"
-
-#. Type: select
-#. Description
-#: ../templates:4001
-#msgid "Database type."
-#msgstr "Sélectionner la base de donnée"
-
-#. Type: select
-#. Description
-#: ../templates:4001
-#msgid ""
-#"(HSQLDB is an embedded database that requires very few configuration as it "
-#"is shipped with BioMAJ. MySQL is recommended though for performance and "
-#"reliability issues)"
-#msgstr "HSQLDB est un base de donne embarquée qui requiert peu de configuration, elle est fournie avec BioMAJ. MySQL est recommandée pour de la performance et une meilleure stabilité"
-
#. Type: boolean
#. Description
#: ../templates:5001
@@ -73,33 +47,3 @@
msgid "User password for biomaj database:"
msgstr "Mot de passe de la base de donnée:"
-#. Type: boolean
-#. Description
-#: ../templates:9001
-#msgid "Want to configure LDAP now ?"
-#msgstr "Souhaitez vous configurer le LDAP?"
-
-#. Type: string
-#. Description
-#: ../templates:10001
-#msgid "Enter LDAP server:"
-#msgstr "Adresse du LDAP:"
-
-#. Type: string
-#. Description
-#: ../templates:11001
-#msgid "Enter LDAP DN:"
-#msgstr "DN (directory name) du LDAP:"
-
-#. Type: string
-#. Description
-#: ../templates:12001
-#msgid "Enter LDAP filter (empty if not needed):"
-#msgstr "Filtre pour la recherche LDAP (vide si non nécessaire):"
-
-#. Type: string
-#. Description
-#: ../templates:13001
-#msgid "Enter port you want the provided tomcat server to listen to:"
-#msgstr "Entrer le port pour le serveur Tomcat"
-
Copied: trunk/packages/biomaj/trunk/debian/postinst (from rev 5654, trunk/packages/biomaj/trunk/debian/biomaj.postinst)
===================================================================
--- trunk/packages/biomaj/trunk/debian/postinst (rev 0)
+++ trunk/packages/biomaj/trunk/debian/postinst 2011-01-29 17:05:10 UTC (rev 5751)
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+
+ant_home="/usr/share/ant"
+biomaj_root="/usr/share/biomaj"
+
+db_get biomaj/jdk_home
+jdk_home="$RET"
+
+#db_get biomaj/login
+#app_login="$RET"
+#db_get biomaj/password
+#app_passwd="$RET"
+
+#db_get biomaj/ldap
+#use_ldap="$RET"
+#db_get biomaj/ldap_server
+#ldap_host="$RET"
+#db_get biomaj/ldap_dn
+#ldap_dn="$RET"
+#db_get biomaj/ldap_filter
+#opt_filer="$RET"
+
+#db_get biomaj/db_type
+db_type="MySQL"
+db_get biomaj/mysql_host
+db_url="jdbc:mysql://$RET/biomaj_log"
+db_get biomaj/mysql_login
+db_login="$RET"
+db_get biomaj/mysql_passwd
+db_passwd="$RET"
+
+#db_get biomaj/tomcat_port
+tomcat_port="0"
+
+# Link general.conf
+cd $biomaj_root
+ln -s /etc/biomaj/general.conf general.conf
+
+javac -d $biomaj_root/bin $biomaj_root/bin/Configurator.java
+
+java -cp $biomaj_root/bin Configurator java_home:=$jdk_home ant_home:=$ant_home biomaj_root:=$biomaj_root use_ldap:=$use_ldap ldap_host:=$ldap_host ldap_dn:=$ldap_dn opt_filter:=$opt_filter db_type:=$db_type db_url:=$db_url db_login:=$db_login db_passwd:=$db_passwd app_login:=$app_login app_passwd:=$app_passwd tomcat_port:=$tomcat_port
+
+#ln -s $biomaj_root/lib/biomaj.jar $biomaj_root/apache-tomcat-6.0.24/lib/biomaj.jar
+
+if [ $db_type = "MySQL" ]; then
+ echo "Installation Complete."
+ echo "You now need to create the biomaj_log database on your MySQL server."
+ echo "The creation script is provided at /usr/share/biomaj/sql/mysql.sql."
+fi
+
Copied: trunk/packages/biomaj/trunk/debian/postrm (from rev 5654, trunk/packages/biomaj/trunk/debian/biomaj.postrm)
===================================================================
--- trunk/packages/biomaj/trunk/debian/postrm (rev 0)
+++ trunk/packages/biomaj/trunk/debian/postrm 2011-01-29 17:05:10 UTC (rev 5751)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+# Remove all
+if [ -e /usr/share/biomaj ]; then
+ rm -rf /usr/share/biomaj
+fi
+
+echo "Warning, BioMAJ database for MySQL is not deleted by process removal."
Copied: trunk/packages/biomaj/trunk/debian/prerm (from rev 5654, trunk/packages/biomaj/trunk/debian/biomaj.prerm)
===================================================================
--- trunk/packages/biomaj/trunk/debian/prerm (rev 0)
+++ trunk/packages/biomaj/trunk/debian/prerm 2011-01-29 17:05:10 UTC (rev 5751)
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+# Shutdown hsqldb server
+#db_get biomaj/db_type
+#if [ $RET = "HSQLDB" ]; then
+# bash /usr/share/biomaj/bin/shutdown_dbserver.sh
+#fi
+
+# Shutdown tomcat server
+#sh /usr/share/biomaj/apache-tomcat-6.0.24/bin/shutdown.sh >/dev/null 2>&1
+
+# Remove post installation created files
+
+# Remove admin credentials
+if [ -e /usr/share/biomaj/.bmajwatcherpasswd ]; then
+ rm /usr/share/biomaj/.bmajwatcherpasswd
+fi
+# Remove biomaj.jar
+if [ -e /usr/share/biomaj/lib/biomaj.jar ]; then
+ rm /usr/share/biomaj/lib/biomaj.jar
+fi
+# Remove build content
+if [ -e /usr/share/biomaj/build ]; then
+ rm -rf /usr/share/biomaj/build
+fi
+# hsql server startup log
+if [ -e /usr/share/biomaj/dbserver.log ]; then
+ rm /usr/share/biomaj/dbserver.log
+fi
+# distribution directory
+if [ -e /usr/share/biomaj/dist ]; then
+ rm -rf /usr/share/biomaj/dist
+fi
+# Installation logs
+if [ -e /usr/share/biomaj/install_log.log ]; then
+ rm /usr/share/biomaj/install_log.log
+fi
+# Internal tmp directory
+if [ -e /usr/share/biomaj/tmp ]; then
+ rm -rf /usr/share/biomaj/tmp
+fi
+# Link to general.conf
+if [ -L /usr/share/biomaj/general.conf ]; then
+ rm /usr/share/biomaj/general.conf
+fi
+# Link to biomaj.jar
+if [ -L /usr/share/biomaj/apache-tomcat-6.0.24/lib/biomaj.jar ]; then
+ rm /usr/share/biomaj/apache-tomcat-6.0.24/lib/biomaj.jar
+fi
+
+#DEBHELPER#
Modified: trunk/packages/biomaj/trunk/debian/rules
===================================================================
--- trunk/packages/biomaj/trunk/debian/rules 2011-01-29 16:50:08 UTC (rev 5750)
+++ trunk/packages/biomaj/trunk/debian/rules 2011-01-29 17:05:10 UTC (rev 5751)
@@ -36,7 +36,7 @@
dh_installdirs
# Compile here architecture independant files
-binary-indep: build install biomaj biomaj-watcher
+binary-indep: build install biomaj
dh_testdir
dh_testroot
@@ -68,33 +68,6 @@
dh_md5sums -p$@
dh_builddeb -p$@
-biomaj-watcher:
- dh_installdirs -p$@
- dh_install -p$@
- dh_install -p$@ usr/share/biomaj-watcher
- dh_install -p$@ usr/share/java
- dh_install -p$@ var/log/biomaj-watcher
- dh_install -p$@ etc/biomaj-watcher
- # Common stuff
- dh_installdebconf -p$@
- dh_installdocs -p$@
- dh_installexamples -p$@
- dh_installmenu -p$@
- dh_installcron -p$@
- dh_installman -p$@
- dh_installinfo -p$@
- dh_installchangelogs -p$@
- dh_link -p$@
- dh_strip -p$@
- dh_compress -p$@
- dh_fixperms -p$@
- dh_installdeb -p$@
- dh_shlibdeps -p$@
- dh_gencontrol -p$@
- dh_md5sums -p$@
- dh_builddeb -p$@
-
-
binary-arch:
binary: binary-indep binary-arch
More information about the debian-med-commit
mailing list