# # How to build a Shibboleth SP update to be uploaded from the # Zeroshell web interface # wget http://shibboleth.net/downloads/log4shib/latest/log4shib-1.0.4.tar.gz wget http://shibboleth.net/downloads/c++-opensaml/latest/xmltooling-1.4.2.tar.gz wget http://shibboleth.net/downloads/c++-opensaml/latest/opensaml-2.4.3.tar.gz wget http://shibboleth.net/downloads/service-provider/latest/shibboleth-sp-2.4.3.tar.gz wget http://mirror.switch.ch/mirror/apache/dist/santuario/c-library/xml-security-c-1.6.1.tar.gz export SHIB_HOME=/opt/shibboleth-sp rm /etc/shibboleth tar xvfz log4shib-1.0.4.tar.gz cd log4shib-1.0.4 ./configure --prefix=$SHIB_HOME --disable-static --disable-doxygen --sysconfdir=/etc --localstatedir=/var make make install cd .. tar xvfz xml-security-c-1.6.1.tar.gz cd xml-security-c-1.6.1 ./configure --prefix=$SHIB_HOME --sysconfdir=/etc --localstatedir=/var make make install cd .. tar xvfz xmltooling-1.4.2.tar.gz cd xmltooling-1.4.2 ./configure --prefix=$SHIB_HOME --with-log4shib=$SHIB_HOME --with-xmlsec=$SHIB_HOME --sysconfdir=/etc --localstatedir=/var -C make make install cd .. tar xvfz opensaml-2.4.3.tar.gz cd opensaml-2.4.3 ./configure --prefix=$SHIB_HOME --with-log4shib=$SHIB_HOME --sysconfdir=/etc --localstatedir=/var -C make make install cd .. tar xvfz shibboleth-sp-2.4.3.tar.gz cd shibboleth-2.4.3 wget http://www.zeroshell.net/listing/shibboleth-2.4.3-zeroshell-IdP-autoDiscovery.patch patch -p1 < shibboleth-2.4.3-zeroshell-IdP-autoDiscovery.patch ./configure --prefix=$SHIB_HOME --enable-apache-22 --with-log4shib=$SHIB_HOME --with-xmltooling=$SHIB_HOME --with-saml=$SHIB_HOME --sysconfdir=/etc --localstatedir=/var -C make make install mv /opt/shibboleth-sp/ /usr/local/ ln -s /usr/local/shibboleth-sp/ /opt/ mkdir /opt/shibboleth-sp/etc/ mv /etc/shibboleth /opt/shibboleth-sp/etc/shibboleth.orig ln -s /var/register/system/cp/Auth/Shibboleth/etc/shibboleth/ /etc mkdir /opt/shibboleth-sp/Release date > /opt/shibboleth-sp/Release/BUILD echo 1.0.4 > /opt/shibboleth-sp/Release/log4shib echo 1.6.1 > /opt/shibboleth-sp/Release/xml-security-c echo 1.4.2 > /opt/shibboleth-sp/Release/xmltooling echo 2.4.3 > /opt/shibboleth-sp/Release/opensaml echo 2.4.3 > /opt/shibboleth-sp/Release/shibboleth-sp find /opt/shibboleth-sp/ -name '*.a' -exec rm {} \; tar cfvj /packages/shibboleth-sp-2.4.3-log4shib-1.0.4-xml-security-c-1.6.1-xmltooling-1.4.2-opensaml-2.4.3-zs-i386.tar.bz2 /usr/local/shibboleth-sp/ /opt/shibboleth-sp uuencode shibboleth-sp-2.4.3-log4shib-1.0.4-xml-security-c-1.6.1-xmltooling-1.4.2-opensaml-2.4.3-i386.tar.bz2 < shibboleth-sp-2.4.3-log4shib-1.0.4-xml-security-c-1.6.1-xmltooling-1.4.2-opensaml-2.4.3-i386.tar.bz2 > shibboleth-sp-2.4.3-log4shib-1.0.4-xml-security-c-1.6.1-xmltooling-1.4.2-opensaml-2.4.3-i386.bin