Skip to content

Instantly share code, notes, and snippets.

@jovandeginste
Created June 7, 2018 11:55
Show Gist options
  • Save jovandeginste/19a3c6205e605446cccc46f14777dabd to your computer and use it in GitHub Desktop.
Save jovandeginste/19a3c6205e605446cccc46f14777dabd to your computer and use it in GitHub Desktop.
Build shibboleth from sources
#!/bin/bash
set -e
yum -y install boost-devel zlib-devel openssl-devel libcurl-devel xml-security-c-devel gcc gcc-c++ make file wget httpd-devel unzip tar sed grep patch
(
if ! test -d log4shib-1.0.9; then
wget -c https://shibboleth.net/downloads/log4shib/latest/log4shib-1.0.9.tar.gz -O log4shib-1.0.9.tar.gz
tar xfz log4shib-1.0.9.tar.gz
fi
cd log4shib-1.0.9
./configure --disable-static --disable-doxygen --prefix=/opt/shibboleth-sp
make clean
make -j 4
make install
)
(
if ! test -d xmltooling-1.6.4; then
wget -c https://shibboleth.net/downloads/c++-opensaml/latest/xmltooling-1.6.4.zip -O xmltooling-1.6.4.zip
unzip xmltooling-1.6.4.zip
patch -p1 -d xmltooling-1.6.4 <fix-curl.patch
fi
cd xmltooling-1.6.4
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
make clean
make -j 4
make install
)
(
if ! test -d opensaml-2.6.1; then
wget -c https://shibboleth.net/downloads/c++-opensaml/latest/opensaml-2.6.1.zip -O opensaml-2.6.1.zip
unzip opensaml-2.6.1.zip
fi
cd opensaml-2.6.1
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp -C
make clean
make -j 4
make install
)
(
if ! test -d shibboleth-sp-2.6.1; then
wget -c https://shibboleth.net/downloads/service-provider/latest/shibboleth-sp-2.6.1.zip -O shibboleth-sp-2.6.1.zip
unzip shibboleth-sp-2.6.1.zip
fi
cd shibboleth-sp-2.6.1
./configure --with-log4shib=/opt/shibboleth-sp --prefix=/opt/shibboleth-sp
make clean
make -j 4
make install
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment