Browse Source

n/omero: Upgraded to omero-5.2.0.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent
commit
57dc9e8f1b
  1. 1
      n/omero/OMERO.server-5.1.3-ice35-b52.zip.sha1
  2. 1
      n/omero/OMERO.server-5.2.0-ice35-b12.zip.sha1
  3. 16
      n/omero/README
  4. 12
      n/omero/omero.SlackBuild
  5. 6
      n/omero/rc.omero

1
n/omero/OMERO.server-5.1.3-ice35-b52.zip.sha1

@ -1 +0,0 @@
cca6666495ddadbaecd0f7975202f9cfe06a697e OMERO.server-5.1.3-ice35-b52.zip

1
n/omero/OMERO.server-5.2.0-ice35-b12.zip.sha1

@ -0,0 +1 @@
52648a4d10ff9d1022cbb014204e87df84ec5800 OMERO.server-5.2.0-ice35-b12.zip

16
n/omero/README

@ -1,4 +1,4 @@
PACKAGER'S README FOR OMERO-5.1.3
PACKAGER'S README FOR OMERO-5.2.0
Damien Goutte-Gattat <dgouttegattat@incenp.org>
@ -89,15 +89,11 @@
The Django-based web application OMERO.web is not enabled by default,
as it requires some configuration.
Add the following lines to the OMERO configuration file
/etc/omero.conf:
Make sure Django and mod_wsgi are installed. Add the following line
to the OMERO configuration file /etc/omero.conf:
---8<----------------------------------------------------------------
omero.web.application_server=fastcgi-tcp
omero.web.application_server.host=localhost
omero.web.application_server.port=4080
omero.web.application_host=<hostname>:80
omero.web.debug=false
omero.web.application_server=wsgi
--->8----------------------------------------------------------------
Then, edit the control script /etc/rc.d/rc.omero to automatically
@ -113,7 +109,7 @@
The following command will produce a configuration snippet that can
directly inserted into the configuration file of Apache httpd:
omero web config apache-fcgi
omero web config apache
Start the web server. OMERO.web should now be reachable at the root
of the web server.
@ -155,7 +151,7 @@
- upgrade the database:
$ cd /opt/omero
$ psql -h localhost -U omero omero < sql/psql/OMERO5.1__1/OMERO5.0__0.sql
$ psql -h localhost -U omero omero < sql/psql/OMERO5.2__0/OMERO5.1__1.sql
- start the upgraded server:

12
n/omero/omero.SlackBuild

@ -25,12 +25,12 @@
# Latest omero sourcecode is available at: <http://www.openmicroscopy.org/>.
#
# Depends: d/ice, ap/postgresql
# Optional: l/pytables, l/scipy, l/matplotlib
# Optional: l/pytables, l/scipy, l/matplotlib, d/Django
# Source package infos
NAMESRC=${NAMESRC:-OMERO.server}
VERSION=${VERSION:-5.1.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-ice35-b52.zip}
VERSION=${VERSION:-5.2.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-ice35-b12.zip}
WGET=${WGET:-http://downloads.openmicroscopy.org/omero/$VERSION/artifacts/$ARCHIVE}
# Build infos
@ -69,10 +69,8 @@ sha1sum -c $ARCHIVE.sha1
mkdir -p $PKG/opt
cd $PKG/opt
unzip $CWD/$ARCHIVE
mv OMERO.server-$VERSION-ice35-b52 omero
rm omero/bin/*.bat
rm omero/etc/{Windows.cfg,env.bat,local.properties.example}
rm omero/etc/grid/windefault.xml
mv OMERO.server-$VERSION-ice35-b12 omero
rm omero/bin/*.bat omero/etc/env.bat
# Install launch scripts
install -D -m 755 $CWD/omero.sh $PKG/usr/bin/omero

6
n/omero/rc.omero

@ -37,7 +37,7 @@ init)
if ! psql $PGOPTS -c '\du' | grep -q $DB_USER ; then
echo Creating database user...
psql $PGOPTS -c "CREATE ROLE $DB_USER LOGIN WITH PASSWORD '$DB_PASS'"
psql $PGOPTS -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS'"
fi
if ! psql $PGOPTS -l | grep -q $DB_NAME ; then
@ -45,8 +45,8 @@ init)
createdb $PGOPTS -E UTF8 -l en_US.UTF-8 -T template0 -O $DB_USER $DB_NAME
createlang $PGOPTS plpgsql $DB_NAME
sudo -H -u omero -i omero db script
psql -h $DB_HOST -p $DB_PORT -U $DB_USER $DB_NAME < /var/lib/omero/OMERO5.1__1.sql
rm -rf /var/lib/omero/OMERO5.1__1.sql
psql -h $DB_HOST -p $DB_PORT -U $DB_USER $DB_NAME < /var/lib/omero/OMERO5.2__0.sql
rm -rf /var/lib/omero/OMERO5.2__0.sql
fi
;;

Loading…
Cancel
Save