Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save saimonmoore/43bf3a002b941dfa7cbe to your computer and use it in GitHub Desktop.

Select an option

Save saimonmoore/43bf3a002b941dfa7cbe to your computer and use it in GitHub Desktop.

Revisions

  1. saimonmoore revised this gist Mar 3, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions shibboleth_sp_with_fastcgi.sh
    Original file line number Diff line number Diff line change
    @@ -22,11 +22,11 @@ function get {
    }

    get log4shib 1.0.9 http://shibboleth.net/downloads/log4shib/latest/
    get xerces-c 3.1.2 http://mirror.hosting90.cz/apache/xerces/c/3/sources/
    get xerces-c 3.1.3 http://mirror.hosting90.cz/apache/xerces/c/3/sources/
    get xml-security-c 1.7.3 http://mirror.hosting90.cz/apache/santuario/c-library/
    get xmltooling 1.5.6 http://shibboleth.net/downloads/c++-opensaml/latest/
    get opensaml 2.5.5 http://shibboleth.net/downloads/c++-opensaml/latest/
    get shibboleth-sp 2.5.5 http://shibboleth.net/downloads/service-provider/latest/
    get shibboleth-sp 2.5.6 http://shibboleth.net/downloads/service-provider/latest/


    function compile {
  2. @vidiecan vidiecan revised this gist Sep 18, 2015. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions shibboleth_sp_with_fastcgi.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # https://github.com/ufal/lindat-dspace/wiki/Building-Shibboleth-with-FastCGI-support
    # ensure the versions are still latest

    sudo apt-get install libfcgi-dev libboost-all-dev
    sudo apt-get install libfcgi-dev libboost-all-dev openssl libssl-devc

    INSTALLDIR=/opt/shibboleth-sp-fastcgi

    @@ -42,10 +42,7 @@ function compile {

    compile log4shib "--disable-static --disable-doxygen --prefix=$INSTALLDIR"
    compile xerces-c "--disable-netaccessor-libcurl --prefix=$INSTALLDIR"
    compile xmltooling "--without-xalan --disable-static \
    --with-log4shib=$INSTALLDIR \
    --prefix=$INSTALLDIR"
    compile xml-security "--without-xalan --disable-static \
    compile xml-security-c "--without-xalan --disable-static \
    --with-xerces=$INSTALLDIR \
    --prefix=$INSTALLDIR"
    compile xmltooling "--with-log4shib=$INSTALLDIR --prefix=$INSTALLDIR -C"
  3. @vidiecan vidiecan created this gist Sep 18, 2015.
    55 changes: 55 additions & 0 deletions shibboleth_sp_with_fastcgi.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,55 @@
    #!/bin/bash
    # https://github.com/ufal/lindat-dspace/wiki/Building-Shibboleth-with-FastCGI-support
    # ensure the versions are still latest

    sudo apt-get install libfcgi-dev libboost-all-dev

    INSTALLDIR=/opt/shibboleth-sp-fastcgi

    function get {
    local dirname=$1
    local version=$2
    local url=$3
    local archive="$dirname-$version.tar.gz"

    if [ ! -d "$dirname" ]; then
    wget -O "$archive" "$url$archive"
    tar -xzvf "$archive"
    mv `tar -ztf "$archive" | head -n 1` "$dirname.$version"
    ln -s $dirname.$version $dirname
    rm "$archive"
    fi
    }

    get log4shib 1.0.9 http://shibboleth.net/downloads/log4shib/latest/
    get xerces-c 3.1.2 http://mirror.hosting90.cz/apache/xerces/c/3/sources/
    get xml-security-c 1.7.3 http://mirror.hosting90.cz/apache/santuario/c-library/
    get xmltooling 1.5.6 http://shibboleth.net/downloads/c++-opensaml/latest/
    get opensaml 2.5.5 http://shibboleth.net/downloads/c++-opensaml/latest/
    get shibboleth-sp 2.5.5 http://shibboleth.net/downloads/service-provider/latest/


    function compile {
    local dirname=$1
    local config=$2

    cd $dirname
    ./configure $config
    make
    sudo make install
    cd ..
    }

    compile log4shib "--disable-static --disable-doxygen --prefix=$INSTALLDIR"
    compile xerces-c "--disable-netaccessor-libcurl --prefix=$INSTALLDIR"
    compile xmltooling "--without-xalan --disable-static \
    --with-log4shib=$INSTALLDIR \
    --prefix=$INSTALLDIR"
    compile xml-security "--without-xalan --disable-static \
    --with-xerces=$INSTALLDIR \
    --prefix=$INSTALLDIR"
    compile xmltooling "--with-log4shib=$INSTALLDIR --prefix=$INSTALLDIR -C"
    compile opensaml "--with-log4shib=$INSTALLDIR --prefix=$INSTALLDIR -C"
    compile shibboleth-sp "--with-log4shib=$INSTALLDIR \
    --prefix=$INSTALLDIR \
    --with-fastcgi"