Ticket #1774: install_mapproxy.patch

File install_mapproxy.patch, 1.8 KB (added by Bas Couwenberg, 5 years ago)
  • bin/install_mapproxy.sh

    diff --git a/bin/install_mapproxy.sh b/bin/install_mapproxy.sh
    index 266cb4e..73a05b7 100755
    a b fi 
    1616USER_HOME="/home/$USER_NAME"
    1717
    1818BIN="/usr/local/bin"
    19 TMP="/tmp/build_mapproxy"
    20 MAPPROXY_VERSION="1.8.2"
    21 MAPPROXY_DOCS_FILE="MapProxy-docs-1.8.0.tar.gz"
    22 MAPPROXY_DOCS_URL="http://mapproxy.org/static/rel/$MAPPROXY_DOCS_FILE"
    2319MAPPROXY_DIR="/usr/local/share/mapproxy"
    2420
    25 apt-get install --yes python-mapproxy
     21apt-get install --yes mapproxy mapproxy-doc
    2622
    27 mkdir -p "$TMP"
    28 cd "$TMP"
    29 
    30 echo "Downloading: $MAPPROXY_DOCS_URL"
    31 wget --timestamping --continue --progress=dot:mega "$MAPPROXY_DOCS_URL"
    32 if [ $? -ne 0 ] ; then
    33    echo "ERROR: download failed"
    34    exit 1
    35 fi
    36 
    37 mkdir -p $MAPPROXY_DIR/docs
    38 echo "Extracting docs: $MAPPROXY_DOCS_FILE"
    39 tar -xz --strip-components 1 -C "$MAPPROXY_DIR"/docs -f "$MAPPROXY_DOCS_FILE"
    40 if [ $? -ne 0 ] ; then
    41    echo "ERROR: docs install failed"
    42    exit 1
    43 fi
    44 ln -sf "$MAPPROXY_DIR/docs" /var/www/html/mapproxy
     23ln -sf /usr/share/doc/mapproxy/html /var/www/html/mapproxy
    4524
    4625echo "Creating Scripts/Links"
    4726# Create startup script for MapProxy Server
    services: 
    11493        fax: +49(0)000-000000-0
    11594        email: info@omniscale.de
    11695      access_constraints:
    117         This service is intended for private and evaluation use only.
    118         The data is licensed as Creative Commons Attribution-Share Alike 2.0
    119         (http://creativecommons.org/licenses/by-sa/2.0/)
     96        Insert license and copyright information for this service.
    12097      fees: 'None'
    12198
    12299layers:
    chgrp users "$MAPPROXY_DIR/mapproxy.yaml" 
    266243chmod g+w "$MAPPROXY_DIR/mapproxy.yaml"
    267244adduser "$USER_NAME" users
    268245
    269 #snafu'd ownership
    270 chown -R root.root "$MAPPROXY_DIR/docs/"
    271 
    272246
    273247####
    274248"$BUILD_DIR"/diskspace_probe.sh "`basename $0`" end