Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

switching osgeolive installation to apt-get method through deb files.…

… Keeping old script as legacy to a new directory

git-svn-id: https://pycsw.svn.sourceforge.net/svnroot/pycsw/trunk@510 f6d6ccb1-4906-4145-b9cb-3503ec0a5639
  • Loading branch information...
commit 86b0ea4164c08d00c391544b9c042aa150db0d88 1 parent 45462f9
kalxas authored
View
106 etc/dist/install_script/install_pycsw.sh
@@ -0,0 +1,106 @@
+#!/bin/sh
+# Copyright (c) 2011 The Open Source Geospatial Foundation.
+# Licensed under the GNU LGPL.
+#
+# This library is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation, either version 2.1 of the License,
+# or any later version. This library is distributed in the hope that
+# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU Lesser General Public License for more details, either
+# in the "LICENSE.LGPL.txt" file distributed with this software or at
+# web page "http://www.fsf.org/licenses/lgpl.html".
+
+# About:
+# =====
+# This script will install pycsw, an OGC CSW server implementation
+# written in Python.
+# http://pycsw.org
+#
+# Running:
+# =======
+# sudo ./install_pycsw.sh
+#
+# Requires: Apache2, python-lxml, python-shapely, python-pyproj and python-sqlalchemy
+#
+# Uninstall:
+# ============
+# sudo rm /etc/apache2/conf.d/pycsw
+# sudo rm -rf /var/www/pycsw*
+
+VERSION=1.2.0
+
+echo -n 'Installing pycsw $VERSION'
+
+echo -n 'Installing dependencies ...'
+
+# install dependencies
+apt-get install apache2 python-lxml python-sqlalchemy python-shapely python-pyproj
+
+# live disc's username is "user"
+USER_NAME=user
+USER_HOME=/home/$USER_NAME
+
+WEB=/var/www
+
+# package specific settings
+PYCSW_HOME=$WEB/pycsw
+PYCSW_TMP=/tmp/build_pycsw
+PYCSW_APACHE_CONF=/etc/apache2/conf.d/pycsw
+
+mkdir -p "$PYCSW_TMP"
+
+echo -n 'Downloading package ...'
+
+# Download pycsw LiveDVD tarball.
+wget -N --progress=dot:mega --no-check-certificate "https://sourceforge.net/projects/pycsw/files/$VERSION/pycsw-$VERSION.tar.gz/download" \
+ -O "$PYCSW_TMP/pycsw-$VERSION.tar.gz"
+
+echo -n 'Extracting package ...'
+
+# Uncompress pycsw LiveDVD tarball.
+tar -zxvf "$PYCSW_TMP/pycsw-$VERSION.tar.gz" -C "$PYCSW_TMP"
+mv "$PYCSW_TMP/pycsw-$VERSION" "$PYCSW_TMP/pycsw"
+mv "$PYCSW_TMP/pycsw" "$WEB"
+
+echo -n "Updating Apache configuration ..."
+# Add pycsw apache configuration
+cat << EOF > "$PYCSW_APACHE_CONF"
+
+ <Directory $PYCSW_HOME>
+ Options FollowSymLinks +ExecCGI
+ Allow from all
+ AddHandler cgi-script .py
+ </Directory>
+
+EOF
+
+echo -n "Generating configuration files ..."
+# Add pycsw configuration files
+
+cp $PYCSW_HOME/default-sample.cfg $PYCSW_HOME/default.cfg
+
+echo -n "Done\n"
+
+#Add Launch icon to desktop
+if [ ! -e /usr/share/applications/pycsw.desktop ] ; then
+ cat << EOF > /usr/share/applications/pycsw.desktop
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=pycsw
+Comment=pycsw catalog server
+Categories=Application;Education;Geography;
+Exec=firefox http://localhost/pycsw/tester/index.html
+Icon=/var/www/pycsw/docs/_static/pycsw-logo.png
+Terminal=false
+StartupNotify=false
+Categories=Education;Geography;
+EOF
+fi
+cp /usr/share/applications/pycsw.desktop "$USER_HOME/Desktop/"
+chown "$USER_NAME:$USER_NAME" "$USER_HOME/Desktop/pycsw.desktop"
+
+# Reload Apache
+/etc/init.d/apache2 force-reload
View
81 etc/dist/osgeolive/install_pycsw.sh
@@ -22,85 +22,32 @@
# =======
# sudo ./install_pycsw.sh
#
-# Requires: Apache2, python-lxml, python-shapely, python-pyproj and python-sqlalchemy
-#
-# Uninstall:
-# ============
-# sudo rm /etc/apache2/conf.d/pycsw
-# sudo rm -rf /var/www/pycsw*
+# Requires: Apache2, python-lxml, python-shapely and python-sqlalchemy
+
VERSION=1.2.0
-echo -n 'Installing pycsw $VERSION'
+echo "Installing pycsw $VERSION"
-echo -n 'Installing dependencies ...'
+echo 'Installing dependencies ...'
# install dependencies
-apt-get install apache2 python-lxml python-sqlalchemy python-shapely python-pyproj
+apt-get install --yes apache2 python-lxml python-sqlalchemy python-shapely python-proj
+
+echo 'Installing pycsw ...'
+
+add-apt-repository ppa:gcpp-kalxas/ppa-tzotsos
+apt-get update
+apt-get install --yes pycsw
# live disc's username is "user"
USER_NAME=user
USER_HOME=/home/$USER_NAME
-WEB=/var/www
-
-# package specific settings
-PYCSW_HOME=$WEB/pycsw
-PYCSW_TMP=/tmp/build_pycsw
-PYCSW_APACHE_CONF=/etc/apache2/conf.d/pycsw
-
-mkdir -p "$PYCSW_TMP"
-
-echo -n 'Downloading package ...'
-
-# Download pycsw LiveDVD tarball.
-wget -N --progress=dot:mega --no-check-certificate "https://sourceforge.net/projects/pycsw/files/$VERSION/pycsw-$VERSION.tar.gz/download" \
- -O "$PYCSW_TMP/pycsw-$VERSION.tar.gz"
-
-echo -n 'Extracting package ...'
-
-# Uncompress pycsw LiveDVD tarball.
-tar -zxvf "$PYCSW_TMP/pycsw-$VERSION.tar.gz" -C "$PYCSW_TMP"
-mv "$PYCSW_TMP/pycsw-$VERSION" "$PYCSW_TMP/pycsw"
-mv "$PYCSW_TMP/pycsw" "$WEB"
-
-echo -n "Updating Apache configuration ..."
-# Add pycsw apache configuration
-cat << EOF > "$PYCSW_APACHE_CONF"
-
- <Directory $PYCSW_HOME>
- Options FollowSymLinks +ExecCGI
- Allow from all
- AddHandler cgi-script .py
- </Directory>
-
-EOF
-
-echo -n "Generating configuration files ..."
-# Add pycsw configuration files
-
-cp $PYCSW_HOME/default-sample.cfg $PYCSW_HOME/default.cfg
-
-echo -n "Done\n"
-
-#Add Launch icon to desktop
-if [ ! -e /usr/share/applications/pycsw.desktop ] ; then
- cat << EOF > /usr/share/applications/pycsw.desktop
-[Desktop Entry]
-Type=Application
-Encoding=UTF-8
-Name=pycsw
-Comment=pycsw catalog server
-Categories=Application;Education;Geography;
-Exec=firefox http://localhost/pycsw/tester/index.html
-Icon=/var/www/pycsw/docs/_static/pycsw-logo.png
-Terminal=false
-StartupNotify=false
-Categories=Education;Geography;
-EOF
-fi
cp /usr/share/applications/pycsw.desktop "$USER_HOME/Desktop/"
chown "$USER_NAME:$USER_NAME" "$USER_HOME/Desktop/pycsw.desktop"
# Reload Apache
-/etc/init.d/apache2 force-reload
+#/etc/init.d/apache2 force-reload
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.