[med-svn] r12056 - in trunk/packages/biomaj-watcher/tags: . 1.2.0-9/debian

Olivier Sallou osallou at alioth.debian.org
Wed Aug 15 09:10:46 UTC 2012


Author: osallou
Date: 2012-08-15 09:10:45 +0000 (Wed, 15 Aug 2012)
New Revision: 12056

Added:
   trunk/packages/biomaj-watcher/tags/1.2.0-9/
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/changelog
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/control
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postinst
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/setperms.sh
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/unsetperms.sh
Removed:
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/changelog
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/control
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postinst
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm
   trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm
Log:
[svn-buildpackage] Tagging biomaj-watcher 1.2.0-9

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/README.Debian	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian	2012-08-15 09:10:45 UTC (rev 12056)
@@ -1,10 +0,0 @@
-Biomaj-watcher for Debian
------------------
-
- Biomaj watcher is a web application running in Tomcat. After install, a restart of tomcat may be required. Url is http://localhost:8080/BmajWatcher (depends on tomcat configuration).
- It includes some binary dependencies, not yet packaged in Debian. Source code of those dependencies are available at:
- http://google-web-toolkit.googlecode.com/svn/tags/2.2.0
- http://smartgwt.googlecode.com/svn/tags/2.2
- http://gwt-dnd.googlecode.com/svn/tags/gwt-dnd-3.0.1-r1016
- http://gwt-cal.googlecode.com/svn/tags/0.9.0
- http://gwt-google-apis.googlecode.com/svn/tags/visualization/1.1.1

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian (from rev 12055, trunk/packages/biomaj-watcher/trunk/debian/README.Debian)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/README.Debian	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,13 @@
+Biomaj-watcher for Debian
+-----------------
+
+ Biomaj watcher is a web application running in Tomcat. After install, a restart of tomcat may be required. Url is http://localhost:8080/BmajWatcher (depends on tomcat configuration).
+ It includes some binary dependencies, not yet packaged in Debian. Source code of those dependencies are available at:
+ http://google-web-toolkit.googlecode.com/svn/tags/2.2.0
+ http://smartgwt.googlecode.com/svn/tags/2.2
+ http://gwt-dnd.googlecode.com/svn/tags/gwt-dnd-3.0.1-r1016
+ http://gwt-cal.googlecode.com/svn/tags/0.9.0
+ http://gwt-google-apis.googlecode.com/svn/tags/visualization/1.1.1
+
+
+ Biomaj watcher updates the access rights of most of Biomaj directories to add write access to the user tomcat6. Indeed, all configuration and bank updates will be done via the Tomcat application. Those modifications are needed only while biomaj-watcher is installed.

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/changelog
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/changelog	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/changelog	2012-08-15 09:10:45 UTC (rev 12056)
@@ -1,80 +0,0 @@
-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-9/debian/changelog (from rev 12055, trunk/packages/biomaj-watcher/trunk/debian/changelog)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/changelog	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/changelog	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,91 @@
+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-9/debian/control
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/control	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/control	2012-08-15 09:10:45 UTC (rev 12056)
@@ -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: openjdk-6-jdk|default-jdk|java6-sdk, 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}, openjdk-6-jdk|default-jdk|java6-sdk, 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-9/debian/control (from rev 12053, trunk/packages/biomaj-watcher/trunk/debian/control)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/control	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/control	2012-08-15 09:10:45 UTC (rev 12056)
@@ -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.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.

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/install	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install	2012-08-15 09:10:45 UTC (rev 12056)
@@ -1,5 +0,0 @@
-usr/share/biomaj-watcher/bin
-usr/share/doc/biomaj-watcher
-usr/share/java
-var/log/biomaj-watcher
-etc/biomaj-watcher

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install (from rev 12054, trunk/packages/biomaj-watcher/trunk/debian/install)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/install	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,7 @@
+usr/share/biomaj-watcher/bin
+usr/share/doc/biomaj-watcher
+usr/share/java
+var/log/biomaj-watcher
+etc/biomaj-watcher
+debian/setperms.sh usr/share/biomaj-watcher/bin
+debian/unsetperms.sh usr/share/biomaj-watcher/bin

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postinst
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/postinst	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postinst	2012-08-15 09:10:45 UTC (rev 12056)
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-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
-
-
-      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-9/debian/postinst (from rev 12054, trunk/packages/biomaj-watcher/trunk/debian/postinst)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postinst	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postinst	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,97 @@
+#!/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#
+
+

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/postrm	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm	2012-08-15 09:10:45 UTC (rev 12056)
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-case "$1" in
-    upgrade)
-    ;;
-    remove|failed-upgrade|abort-install|abort-upgrade|disappear)
-
-      if [ -e /var/lib/tomcat6/shared/biomaj.jar ]; then
-        rm  /var/lib/tomcat6/shared/biomaj.jar
-      fi
-      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
-      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/*.jar
-    ;;
-
-    purge)
-      if [ -e /var/lib/tomcat6/shared/biomaj.jar ]; then
-        rm  /var/lib/tomcat6/shared/biomaj.jar
-      fi
-      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
-      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
-      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/*.jar
-      rm -rf /etc/biomaj-watcher
-    ;;
-
-    *)
-        echo "postrm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-#DEBHELPER#
-
-

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm (from rev 12054, trunk/packages/biomaj-watcher/trunk/debian/postrm)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/postrm	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+unset_perms() {
+    find $1 | xargs -n 1 /usr/share/biomaj-watcher/bin/unsetperms.sh
+}
+
+case "$1" in
+    upgrade)
+    ;;
+    remove|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+      if [ -e /var/lib/tomcat6/shared/biomaj.jar ]; then
+        rm  /var/lib/tomcat6/shared/biomaj.jar
+      fi
+      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
+      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/*.jar
+    ;;
+
+    purge)
+      if [ -e /var/lib/tomcat6/shared/biomaj.jar ]; then
+        rm  /var/lib/tomcat6/shared/biomaj.jar
+      fi
+      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher.xml
+      rm -f /etc/tomcat6/Catalina/localhost/BmajWatcher#logs.xml
+      rm -f /usr/share/java/webapps/biomaj-watcher/WEB-INF/lib/*.jar
+      rm -rf /etc/biomaj-watcher
+
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+

Deleted: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm
===================================================================
--- trunk/packages/biomaj-watcher/trunk/debian/prerm	2012-08-14 21:00:04 UTC (rev 12052)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm	2012-08-15 09:10:45 UTC (rev 12056)
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-
-case "$1" in
-    upgrade)
-    ;;
-    remove|upgrade|deconfigure)
-      # Remove post installation created files
-
-      # Remove admin credentials
-      if [ -e /usr/share/biomaj/.bmajwatcherpasswd ]; then
-         rm /usr/share/biomaj/.bmajwatcherpasswd
-      fi
-
-      if [ -e /usr/share/biomaj-watcher/bin/WatcherConfigurator.class ]; then
-         rm /usr/share/biomaj-watcher/bin/WatcherConfigurator.class
-      fi
-
-    ;;
-
-    failed-upgrade)
-    ;;
-
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-
-#DEBHELPER#

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm (from rev 12054, trunk/packages/biomaj-watcher/trunk/debian/prerm)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/prerm	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+set -e
+
+# Source debconf library.
+. /usr/share/debconf/confmodule
+
+unset_perms() {
+    find $1 | xargs -n 1 /usr/share/biomaj-watcher/bin/unsetperms.sh
+}
+
+
+case "$1" in
+    remove)
+      # Update configuration files
+      unset_perms /etc/biomaj/db_properties/
+      # Update generated banks
+      unset_perms /var/lib/biomaj/
+      # Update logs
+      unset_perms /var/log/biomaj/
+    ;;
+    *)
+    ;;
+esac    
+
+case "$1" in
+    upgrade)
+    ;;
+    remove|upgrade|deconfigure)
+      # Remove post installation created files
+
+      # Remove admin credentials
+      if [ -e /usr/share/biomaj/.bmajwatcherpasswd ]; then
+         rm /usr/share/biomaj/.bmajwatcherpasswd
+      fi
+
+      if [ -e /usr/share/biomaj-watcher/bin/WatcherConfigurator.class ]; then
+         rm /usr/share/biomaj-watcher/bin/WatcherConfigurator.class
+      fi
+
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+
+#DEBHELPER#

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/setperms.sh (from rev 12054, trunk/packages/biomaj-watcher/trunk/debian/setperms.sh)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/setperms.sh	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/setperms.sh	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+if ! dpkg-statoverride --list "$1" >/dev/null; then
+  dpkg-statoverride --update --add tomcat6 root 0775  $1
+fi

Copied: trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/unsetperms.sh (from rev 12054, trunk/packages/biomaj-watcher/trunk/debian/unsetperms.sh)
===================================================================
--- trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/unsetperms.sh	                        (rev 0)
+++ trunk/packages/biomaj-watcher/tags/1.2.0-9/debian/unsetperms.sh	2012-08-15 09:10:45 UTC (rev 12056)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+dpkg-statoverride --remove "$1" >/dev/null 2>/dev/null || true




More information about the debian-med-commit mailing list