Last active
March 3, 2016 16:03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 openssl libssl-devc | |
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 xml-security-c "--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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment