[med-svn] r12331 - in trunk/packages/biomaj-watcher/tags: . 1.2.0-10/debian 1.2.0-10/debian/patches

Olivier Sallou osallou at alioth.debian.org
Mon Oct 8 12:15:27 UTC 2012


Author: osallou
Date: 2012-10-08 12:15:27 +0000 (Mon, 08 Oct 2012)
New Revision: 12331

Added:
   trunk/packages/biomaj-watcher/tags/1.2.0-10/
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/prevent_jobs_file_move
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst
Removed:
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series
   trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst
Log:
[svn-buildpackage] Tagging biomaj-watcher 1.2.0-10

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/changelog	2012-10-08 07:03:43 UTC (rev 12326)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog	2012-10-08 12:15:27 UTC (rev 12331)
@@ -1,91 +0,0 @@
-biomaj-watcher (1.2.0-9) unstable; urgency=low
-
-  [ Olivier Sallou ]
-  * modifies ownership/permissions of files from the biomaj package 
-    - debian/postinst, debian/setperms.sh, debian/unsetperms.sh,
-      debian/install (Closes: #682490)
-  * debian/control: Transition package to use default java implementation
-    - Thanks to James Page (james.page at ubuntu.com) (Closes: #683530)
-
- -- Olivier Sallou <osallou at debian.org>  Sun, 24 Jun 2012 15:33:54 +0200
-
-biomaj-watcher (1.2.0-8) unstable; urgency=low
-
-  [Martin Bagge <brother at bsnet.se>, debian-l10n-swedish]
-  * po/sv.po: Update swedish translation (Closes: #673887).
-
- -- Olivier Sallou <osallou at debian.org>  Sun, 24 Jun 2012 14:54:15 +0200
-
-biomaj-watcher (1.2.0-7) unstable; urgency=low
-
-  * Fix upgrade issue, deleted wrong file (Closes: #670495) 
-
- -- Olivier Sallou <osallou at debian.org>  Wed, 09 May 2012 09:39:02 +0200
-
-biomaj-watcher (1.2.0-6) unstable; urgency=low
-
-  * Fix upgrade issue (Closes: #670495)
-
- -- Olivier Sallou <osallou at debian.org>  Thu, 26 Apr 2012 09:53:14 +0200
-
-biomaj-watcher (1.2.0-5) unstable; urgency=low
-
-  * Remove remaining files after purge (Closes: #670391).
-  [Martin Bagge <brother at bsnet.se>]
-  * Swedish translation   (Closes: #661351).
-
- -- Olivier Sallou <osallou at debian.org>  Wed, 25 Apr 2012 09:10:33 +0200
-
-biomaj-watcher (1.2.0-4) unstable; urgency=low
-
-  [debian-l10n-english]
-  * Debconf templates and debian/control reviewed by the debian-l10n-
-    english team as part of the Smith review project. Closes: #653825
-  [Debconf translation updates]
-  * Polish (Michał Kułach).  Closes: #658175
-  * Indonesian (Mahyuddin Susanto).  Closes: #658225
-  * Russian (Yuri Kozlov).  Closes: #658266
-  * Czech (Michal Simunek).  Closes: #658412
-  * Dutch; (Jeroen Schot).  Closes: #658455
-  * French (Olivier Sallou).  Closes: #658828
-  * Danish (Joe Hansen).  Closes: #659164
-  * German (Chris Leick).  Closes: #659171
-  * Portuguese (Miguel Figueiredo).  Closes: #659911
-  * Spanish; (Camaleón).  Closes: #659945
-  * Italian (Beatrice Torracca).  Closes: #659997
-  [Olivier Sallou]
-  * postinst: use invoke-rc.d instead of service to
-   restart tomcat (Closes: #657478) and add quotes to test
-   in config.
-  [Thorsten Alteholz]
-  * debian/rules: target get-orig-source added
- 
- -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 16 Dec 2011 15:53:41 +0100
-
-biomaj-watcher (1.2.0-3) unstable; urgency=low
-
-  * Add debconf translation (Closes: #651682 #650871)
-    - Portuguese, thanks to Pedro Ribeiro <p.m42.ribeiro at gmail.com>
-    - Russian, thanks to Yuri Kozlov <yuray at komyakino.ru>
-
- -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 23 Sep 2011 11:27:38 +0200
-
-biomaj-watcher (1.2.0-2) unstable; urgency=low
-
-  * Fix patch, login and jobs location not taken into account in context xml.
-
- -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 16 Sep 2011 10:32:04 +0200
-
-biomaj-watcher (1.2.0-1) unstable; urgency=low
-
-  * New upstream release with new features (multi tenant, private banks...)
-  * Spanish translation - Camaleón <noelamac at gmail.com> (Closes: #640096).
-  * Swedish translation -  Martin Bagge <brother at bsnet.se> (Closes: #640057).
-
- -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 12 Aug 2011 16:41:06 +0200
-
-biomaj-watcher (1.0-1) unstable; urgency=low
-
-  * Initial release (Closes: #609038).
-
- -- Olivier Sallou <olivier.sallou at irisa.fr>  Mon, 25 Jul 2011 01:44:27 +0200

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog (from rev 12329, trunk/packages/biomaj-watcher/trunk/debian/changelog)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/changelog	2012-10-08 12:15:27 UTC (rev 12331)
@@ -0,0 +1,98 @@
+biomaj-watcher (1.2.0-10) unstable; urgency=low
+
+  * debian/postinst, debian/patches/prevent_jobs_file_move:
+      Prevent file deletion (Closes: #689812).
+
+ -- Olivier Sallou <osallou at debian.org>  Wed, 15 Aug 2012 11:10:47 +0200
+
+biomaj-watcher (1.2.0-9) unstable; urgency=low
+
+  [ Olivier Sallou ]
+  * modifies ownership/permissions of files from the biomaj package 
+    - debian/postinst, debian/setperms.sh, debian/unsetperms.sh,
+      debian/install (Closes: #682490)
+  * debian/control: Transition package to use default java implementation
+    - Thanks to James Page (james.page at ubuntu.com) (Closes: #683530)
+
+ -- Olivier Sallou <osallou at debian.org>  Sun, 24 Jun 2012 15:33:54 +0200
+
+biomaj-watcher (1.2.0-8) unstable; urgency=low
+
+  [Martin Bagge <brother at bsnet.se>, debian-l10n-swedish]
+  * po/sv.po: Update swedish translation (Closes: #673887).
+
+ -- Olivier Sallou <osallou at debian.org>  Sun, 24 Jun 2012 14:54:15 +0200
+
+biomaj-watcher (1.2.0-7) unstable; urgency=low
+
+  * Fix upgrade issue, deleted wrong file (Closes: #670495) 
+
+ -- Olivier Sallou <osallou at debian.org>  Wed, 09 May 2012 09:39:02 +0200
+
+biomaj-watcher (1.2.0-6) unstable; urgency=low
+
+  * Fix upgrade issue (Closes: #670495)
+
+ -- Olivier Sallou <osallou at debian.org>  Thu, 26 Apr 2012 09:53:14 +0200
+
+biomaj-watcher (1.2.0-5) unstable; urgency=low
+
+  * Remove remaining files after purge (Closes: #670391).
+  [Martin Bagge <brother at bsnet.se>]
+  * Swedish translation   (Closes: #661351).
+
+ -- Olivier Sallou <osallou at debian.org>  Wed, 25 Apr 2012 09:10:33 +0200
+
+biomaj-watcher (1.2.0-4) unstable; urgency=low
+
+  [debian-l10n-english]
+  * Debconf templates and debian/control reviewed by the debian-l10n-
+    english team as part of the Smith review project. Closes: #653825
+  [Debconf translation updates]
+  * Polish (Michał Kułach).  Closes: #658175
+  * Indonesian (Mahyuddin Susanto).  Closes: #658225
+  * Russian (Yuri Kozlov).  Closes: #658266
+  * Czech (Michal Simunek).  Closes: #658412
+  * Dutch; (Jeroen Schot).  Closes: #658455
+  * French (Olivier Sallou).  Closes: #658828
+  * Danish (Joe Hansen).  Closes: #659164
+  * German (Chris Leick).  Closes: #659171
+  * Portuguese (Miguel Figueiredo).  Closes: #659911
+  * Spanish; (Camaleón).  Closes: #659945
+  * Italian (Beatrice Torracca).  Closes: #659997
+  [Olivier Sallou]
+  * postinst: use invoke-rc.d instead of service to
+   restart tomcat (Closes: #657478) and add quotes to test
+   in config.
+  [Thorsten Alteholz]
+  * debian/rules: target get-orig-source added
+ 
+ -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 16 Dec 2011 15:53:41 +0100
+
+biomaj-watcher (1.2.0-3) unstable; urgency=low
+
+  * Add debconf translation (Closes: #651682 #650871)
+    - Portuguese, thanks to Pedro Ribeiro <p.m42.ribeiro at gmail.com>
+    - Russian, thanks to Yuri Kozlov <yuray at komyakino.ru>
+
+ -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 23 Sep 2011 11:27:38 +0200
+
+biomaj-watcher (1.2.0-2) unstable; urgency=low
+
+  * Fix patch, login and jobs location not taken into account in context xml.
+
+ -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 16 Sep 2011 10:32:04 +0200
+
+biomaj-watcher (1.2.0-1) unstable; urgency=low
+
+  * New upstream release with new features (multi tenant, private banks...)
+  * Spanish translation - Camaleón <noelamac at gmail.com> (Closes: #640096).
+  * Swedish translation -  Martin Bagge <brother at bsnet.se> (Closes: #640057).
+
+ -- Olivier Sallou <olivier.sallou at irisa.fr>  Fri, 12 Aug 2011 16:41:06 +0200
+
+biomaj-watcher (1.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #609038).
+
+ -- Olivier Sallou <olivier.sallou at irisa.fr>  Mon, 25 Jul 2011 01:44:27 +0200

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/control	2012-10-08 07:03:43 UTC (rev 12326)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control	2012-10-08 12:15:27 UTC (rev 12331)
@@ -1,35 +0,0 @@
-Source: biomaj-watcher
-Section: contrib/science
-Priority: optional
-Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
-Uploaders: Olivier Sallou <osallou at debian.org>
-DM-Upload-Allowed: yes
-Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/biomaj-watcher/trunk/
-Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/biomaj-watcher/trunk/
-Homepage: http://biomaj.genouest.org
-Build-Depends: debhelper (>= 8),ant(>=1.7), zip, unzip
-Build-Depends-Indep: default-jdk, debconf, po-debconf, liblog4j1.2-java, libcommons-lang-java,
- libcommons-logging-java, libjsch-java, libjdom1-java, libquartz-java(>=1.6),libgnumail-java,
- libxerces2-java, javahelper (>=0.25), biomaj (>= 1.2)
-Standards-Version: 3.9.3
-
-Package: biomaj-watcher
-Architecture: all
-Depends: ${misc:Depends}, default-jdk, tomcat6 (>=6.0.32-3), biomaj (>= 1.2), debconf,
- liblog4j1.2-java, libjsch-java (>= 0.1.42),libjdom1-java (>= 1.1), libcommons-lang-java (>=2.4),
- libcommons-logging-java (>=1.1),libquartz-java(>=1.6),libxerces2-java, unzip, zip, libgnumail-java
-Description: biological data-bank updater - web interface
- BioMAJ downloads remote data banks, checks their status and applies
- transformation workflows, with consistent state, to provide ready-to-use
- data for biologists and bioinformaticians. For example, it can transform
- original FASTA files into BLAST indexes. It is very flexible and its
- post-processing facilities can be extended very easily.
- .
- BioMAJ watcher provides a management interface for the BioMAJ tool.
- It runs in a web container (Tomcat) and is accessible under the URL
- http://hostname:portnumber/BmajWatcher
- .
- The web interface can give anonymous users an overview of available
- data. Administrators can also use it to manage data-banks, schedule
- updates via cron, view error logs, or use the integrated data-bank
- properties editor.

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control (from rev 12328, trunk/packages/biomaj-watcher/trunk/debian/control)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/control	2012-10-08 12:15:27 UTC (rev 12331)
@@ -0,0 +1,35 @@
+Source: biomaj-watcher
+Section: contrib/science
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Olivier Sallou <osallou at debian.org>
+DM-Upload-Allowed: yes
+Vcs-Svn: svn://svn.debian.org/debian-med/trunk/packages/biomaj-watcher/trunk/
+Vcs-Browser: http://svn.debian.org/wsvn/debian-med/trunk/packages/biomaj-watcher/trunk/
+Homepage: http://biomaj.genouest.org
+Build-Depends: debhelper (>= 8),ant(>=1.7), zip, unzip
+Build-Depends-Indep: default-jdk, debconf, po-debconf, liblog4j1.2-java, libcommons-lang-java,
+ libcommons-logging-java, libjsch-java, libjdom1-java, libquartz-java(>=1.6),libgnumail-java,
+ libxerces2-java, javahelper (>=0.25), biomaj (>= 1.2)
+Standards-Version: 3.9.4
+
+Package: biomaj-watcher
+Architecture: all
+Depends: ${misc:Depends}, default-jdk, tomcat6 (>=6.0.32-3), biomaj (>= 1.2), debconf,
+ liblog4j1.2-java, libjsch-java (>= 0.1.42),libjdom1-java (>= 1.1), libcommons-lang-java (>=2.4),
+ libcommons-logging-java (>=1.1),libquartz-java(>=1.6),libxerces2-java, unzip, zip, libgnumail-java
+Description: biological data-bank updater - web interface
+ BioMAJ downloads remote data banks, checks their status and applies
+ transformation workflows, with consistent state, to provide ready-to-use
+ data for biologists and bioinformaticians. For example, it can transform
+ original FASTA files into BLAST indexes. It is very flexible and its
+ post-processing facilities can be extended very easily.
+ .
+ BioMAJ watcher provides a management interface for the BioMAJ tool.
+ It runs in a web container (Tomcat) and is accessible under the URL
+ http://hostname:portnumber/BmajWatcher
+ .
+ The web interface can give anonymous users an overview of available
+ data. Administrators can also use it to manage data-banks, schedule
+ updates via cron, view error logs, or use the integrated data-bank
+ properties editor.

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/prevent_jobs_file_move (from rev 12327, trunk/packages/biomaj-watcher/trunk/debian/patches/prevent_jobs_file_move)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/prevent_jobs_file_move	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/prevent_jobs_file_move	2012-10-08 12:15:27 UTC (rev 12331)
@@ -0,0 +1,31 @@
+Subject: Upstream code remove files from package
+Description: At package install, the upstream code moves some
+ files to config directory instead of copying them. This result
+ in package file deletion.
+ Patch removes the file deletion
+Last-Updated: 2012-10-08
+Author: Olivier Sallou <osallou at debian.org>
+Forwarded: not-needed
+Bug: 689812
+--- a/usr/share/biomaj-watcher/bin/UpdateToBiomaj1_2.java
++++ b/usr/share/biomaj-watcher/bin/UpdateToBiomaj1_2.java
+@@ -65,15 +65,19 @@
+ 				pw.close();
+ 				
+ 				// Delete old jobs.xml
++				/*
+ 				if (!new File(root + "/jobs.xml").delete()) {
+ 					System.err.println("Could not delete " + root + "/jobs.xml");
+ 				}
++				*/	
+ 				
+ 				// Move jobs.xsd
++				/*
+ 				if (!new File(root + "/jobs.xsd").renameTo(new File("/etc/biomaj-watcher/jobs.xsd"))) {
+ 					System.err.println("Could not move " + root + "/jobs.xsd to /etc/biomaj-watcher/jobs.xsd");
+ 					System.exit(3);
+ 				}
++				*/
+ 				
+ 			} catch (FileNotFoundException e) {
+ 				e.printStackTrace();

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/patches/series	2012-10-08 07:03:43 UTC (rev 12326)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series	2012-10-08 12:15:27 UTC (rev 12331)
@@ -1,2 +0,0 @@
-fix_config_load
-add_missing_lib

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series (from rev 12327, trunk/packages/biomaj-watcher/trunk/debian/patches/series)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/patches/series	2012-10-08 12:15:27 UTC (rev 12331)
@@ -0,0 +1,3 @@
+fix_config_load
+add_missing_lib
+prevent_jobs_file_move

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/postinst	2012-10-08 07:03:43 UTC (rev 12326)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst	2012-10-08 12:15:27 UTC (rev 12331)
@@ -1,97 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-set_perms() {
- find $1 | xargs -n 1 /usr/share/biomaj-watcher/bin/setperms.sh
-}
-
-case "$1" in
-    configure)
-
-      biomajwatcher_root="/usr/share/biomaj-watcher"
-      bmajconf="/etc/biomaj-watcher"
-      bmajroot="/usr/share/biomaj"
-
-      db_get biomaj/login
-      app_login="$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"
-
-      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
-
-      # Copy required libs
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/xercesImpl.jar
-      ln -s /usr/share/java/xercesImpl.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/xercesImpl.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-lang.jar 
-      ln -s /usr/share/java/commons-lang.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-lang.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-logging.jar
-      ln -s /usr/share/java/commons-logging.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-logging.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jdom1.jar
-      ln -s /usr/share/java/jdom1.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jdom1.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jsch.jar
-      ln -s /usr/share/java/jsch.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jsch.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/log4j-1.2.jar
-      ln -s /usr/share/java/log4j-1.2.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/log4j-1.2.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/quartz.jar
-      ln -s /usr/share/java/quartz.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/quartz.jar
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/gnumail.jar
-      ln -s /usr/share/java/gnumail.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/gnumail.jar
-
-      #cp /usr/share/biomaj/lib/biomaj.jar /var/lib/tomcat6/shared/
-      rm -f /var/lib/tomcat6/shared/biomaj.jar
-      cp /usr/share/biomaj/lib/biomaj.jar /var/lib/tomcat6/shared/biomaj.jar
-
-
-      # Update configuration files
-      set_perms /etc/biomaj/db_properties
-      # Update generated banks
-      set_perms /var/lib/biomaj
-      # Update logs
-      set_perms /var/log/biomaj
-
-      #chown -R tomcat6 /etc/biomaj/db_properties
-      chown -R tomcat6 /usr/share/java/webapps/biomaj-watcher
-      #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 /etc/biomaj-watcher
-      # Update context
-      java -cp $biomajwatcher_root/bin UpdateToBiomaj1_2 /usr/share/java/webapps/biomaj-watcher admin
-      chown -R tomcat6 /etc/biomaj-watcher
-      #cp /etc/biomaj-watcher/BmajWatcher*.xml /var/lib/tomcat6/conf/Catalina/localhost/
-      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
-      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
-      ln -s /etc/biomaj-watcher/BmajWatcher.xml /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
-      ln -s /etc/biomaj-watcher/BmajWatcher#logs.xml /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
-
-      invoke-rc.d tomcat6 restart
-
-
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-
-#DEBHELPER#
-
-

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst (from rev 12327, trunk/packages/biomaj-watcher/trunk/debian/postinst)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-10/debian/postinst	2012-10-08 12:15:27 UTC (rev 12331)
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+set_perms() {
+ find $1 | xargs -n 1 /usr/share/biomaj-watcher/bin/setperms.sh
+}
+
+case "$1" in
+    configure)
+
+      biomajwatcher_root="/usr/share/biomaj-watcher"
+      bmajconf="/etc/biomaj-watcher"
+      bmajroot="/usr/share/biomaj"
+
+      db_get biomaj/login
+      app_login="$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"
+
+      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
+
+      # Copy required libs
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/xercesImpl.jar
+      ln -s /usr/share/java/xercesImpl.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/xercesImpl.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-lang.jar 
+      ln -s /usr/share/java/commons-lang.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-lang.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-logging.jar
+      ln -s /usr/share/java/commons-logging.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/commons-logging.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jdom1.jar
+      ln -s /usr/share/java/jdom1.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jdom1.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jsch.jar
+      ln -s /usr/share/java/jsch.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/jsch.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/log4j-1.2.jar
+      ln -s /usr/share/java/log4j-1.2.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/log4j-1.2.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/quartz.jar
+      ln -s /usr/share/java/quartz.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/quartz.jar
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/gnumail.jar
+      ln -s /usr/share/java/gnumail.jar /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/gnumail.jar
+
+      #cp /usr/share/biomaj/lib/biomaj.jar /var/lib/tomcat6/shared/
+      rm -f /var/lib/tomcat6/shared/biomaj.jar
+      cp /usr/share/biomaj/lib/biomaj.jar /var/lib/tomcat6/shared/biomaj.jar
+      # Install latest definition
+      cp /usr/share/java/webapps/biomaj-watcher/jobs.xsd /etc/biomaj-watcher/jobs.xsd
+
+
+      # Update configuration files
+      set_perms /etc/biomaj/db_properties
+      # Update generated banks
+      set_perms /var/lib/biomaj
+      # Update logs
+      set_perms /var/log/biomaj
+
+      #chown -R tomcat6 /etc/biomaj/db_properties
+      chown -R tomcat6 /usr/share/java/webapps/biomaj-watcher
+      #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 /etc/biomaj-watcher
+      # Update context
+      java -cp $biomajwatcher_root/bin UpdateToBiomaj1_2 /usr/share/java/webapps/biomaj-watcher admin
+      chown -R tomcat6 /etc/biomaj-watcher
+      #cp /etc/biomaj-watcher/BmajWatcher*.xml /var/lib/tomcat6/conf/Catalina/localhost/
+      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
+      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
+      ln -s /etc/biomaj-watcher/BmajWatcher.xml /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
+      ln -s /etc/biomaj-watcher/BmajWatcher#logs.xml /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
+
+      invoke-rc.d tomcat6 restart
+
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+
+#DEBHELPER#
+
+




More information about the debian-med-commit mailing list