From 0cf4539e3636f23958cea6c178b8441c4c019f60 Mon Sep 17 00:00:00 2001 From: Angelos Tzotsos Date: Sun, 15 Feb 2015 23:00:50 +0200 Subject: [PATCH] Removed OSGeoLive installer since it is not used and maintained here, removing license conflict (#302) --- etc/dist/install_script/install_pycsw.sh | 106 ----------------------- etc/dist/osgeolive/install_pycsw.sh | 64 -------------- 2 files changed, 170 deletions(-) delete mode 100755 etc/dist/install_script/install_pycsw.sh delete mode 100755 etc/dist/osgeolive/install_pycsw.sh diff --git a/etc/dist/install_script/install_pycsw.sh b/etc/dist/install_script/install_pycsw.sh deleted file mode 100755 index 6f9266d95..000000000 --- a/etc/dist/install_script/install_pycsw.sh +++ /dev/null @@ -1,106 +0,0 @@ -#!/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 "http://download.osgeo.org/pycsw/pycsw-$VERSION.tar.gz" \ - -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" - - - Options FollowSymLinks +ExecCGI - Allow from all - AddHandler cgi-script .py - - -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/tests/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 diff --git a/etc/dist/osgeolive/install_pycsw.sh b/etc/dist/osgeolive/install_pycsw.sh deleted file mode 100755 index 5af5eeb09..000000000 --- a/etc/dist/osgeolive/install_pycsw.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh -# Copyright (c) 2013 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 and python-sqlalchemy - -SCRIPT="install_pycsw.sh" -echo "===============================================================" -echo "$SCRIPT" -echo "===============================================================" - -# live disc's username is "user" -if [ -z "$USER_NAME" ] ; then - USER_NAME="user" -fi -USER_HOME="/home/$USER_NAME" - -# VERSION=1.10.0 - -echo 'Installing pycsw dependencies ...' - -# install dependencies -apt-get install --yes apache2 python-lxml python-sqlalchemy \ - python-shapely python-pyproj - -echo 'Installing pycsw ...' - -#add-apt-repository --yes ppa:gcpp-kalxas/ppa-tzotsos -#apt-get -q update -apt-get install --yes python-owslib python-pycsw pycsw-cgi - - -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 - -echo "===============================================================" -echo "Finished $SCRIPT" -echo Disk Usage1:, $SCRIPT, `df . -B 1M | grep "Filesystem" | sed -e "s/ */,/g"`, date -echo Disk Usage2:, $SCRIPT, `df . -B 1M | grep " /$" | sed -e "s/ */,/g"`, `date` -echo "===============================================================" -