# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #EAPI=0 inherit eutils DESCRIPTION="The Shibboleth Service Provider for Apache2 servers." HOMEPAGE="http://shibboleth.internet2.edu/" SRC_URI="http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/2.3/shibboleth-sp-2.3.tar.gz" LICENSE="Apache-2.0" SLOT="2.3" KEYWORDS="~x86 ~amd64" IUSE="debug" # Notice that shibd needs xerces-c less than 3.1 DEPEND=" >=dev-libs/log4shib-1.0.4 >=dev-libs/opensaml-2.3 >=dev-libs/openssl-0.8.81-r2 =dev-libs/xmltooling-1.3.3 >=dev-libs/xml-security-c-1.5.1 " RDEPEND="${DEPEND}" src_compile() { myconf=" --with-log4shib=/usr \ --enable-apache22 \ --with-apxs2=/usr/sbin/apache2" if use debug; then myconf="${myconf} --enable-debug" fi econf ${myconf} emake || die "emake failed" } src_install() { newinitd ${FILESDIR}/shibd.init shibd newconfd ${FILESDIR}/shibd.conf shibd einstall || die "einstall failed" } pkg_postinst() { keepdir /var/log/shibboleth/ keepdir /var/run/shibboleth/ cp -frp /var/lib/log/shibboleth/ /var/log/shibboleth rm -rf /var/lib/log/shibboleth touch /var/log/shibboleth/shibd.log touch /var/log/shibboleth/transaction.log sed -i -e 's:/var/tmp/portage/www-misc/shibboleth-2.3/image/var/lib:/var:g' \ /etc/shibboleth/native.logger sed -i -e 's:/var/tmp/portage/www-misc/shibboleth-2.3/image/var/lib:/var:g' \ /etc/shibboleth/native.logger.dist sed -i -e 's:/var/tmp/portage/www-misc/shibboleth-2.3/image/var/lib:/var:g' \ /etc/shibboleth/shibd.logger sed -i -e 's:/var/tmp/portage/www-misc/shibboleth-2.3/image/var/lib:/var:g' \ /etc/shibboleth/shibd.logger.dist } pkg_postrm() { rm -rf /var/log/shibboleth }