updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / shibboleth-sp / PKGBUILD
blob517ca924c72bde7c2907ae2a93aa944a5f970276
1 # Maintainer: Kaiting Chen <kaitocracy@gmail.com>
3 pkgname='shibboleth-sp'
4 _pkgname='shibboleth'
5 pkgver='2.3.1'
6 pkgrel='1'
7 pkgdesc='Shibboleth2 Service Provider (Apache module)'
8 license=('APACHE')
9 url='http://shibboleth.internet2.edu/'
10 arch=('i686' 'x86_64')
11 depends=('apache' 'openssl' 'log4shib'
12   'opensaml' 'xmltooling'
13   'xerces-c' 'xml-security-c')
14 backup=(
15   'etc/shibboleth/shibboleth2.xml'
16   'etc/shibboleth/accessError.html'
17   'etc/shibboleth/httpd.conf'
18   'etc/shibboleth/attribute-map.xml'
19   'etc/shibboleth/attribute-policy.xml'
20   'etc/shibboleth/bindingTemplate.html'
21   'etc/shibboleth/console.logger'
22   'etc/shibboleth/discoveryTemplate.html'
23   'etc/shibboleth/globalLogout.html'
24   'etc/shibboleth/localLogout.html'
25   'etc/shibboleth/metadataError.html'
26   'etc/shibboleth/native.logger'
27   'etc/shibboleth/partialLogout.html'
28   'etc/shibboleth/postTemplate.html'
29   'etc/shibboleth/sessionError.html'
30   'etc/shibboleth/shibd.logger'
31   'etc/shibboleth/sslError.html'
32   'etc/shibboleth/syslog.logger'
33   'etc/shibboleth/upgrade.xsl')
35 md5sums=('750a911d78df0e3a88cfb14983ecf1a2'
36          'a292f1cc0aab3cfe3ecec0e9b2b30a10')
37 _source=("${url}downloads/$_pkgname/cppsp/$pkgver/$pkgname-$pkgver.tar.gz"
38   'shibd.rc.d')
40 build() {
41   cd "${srcdir}/${_pkgname}-${pkgver}"
43   ./configure --prefix=/usr \
44     --sysconfdir=/etc \
45     --localstatedir=/var \
46     --enable-apache22 \
47     --disable-doxygen-doc
48   make; make DESTDIR=$pkgdir install
50   install -Dm755 $srcdir/shibd.rc.d \
51     $pkgdir/etc/rc.d/shibd
53   mkdir -p $pkgdir/usr/share/$pkgname
55   cd $pkgdir/etc/$_pkgname
56   mv *.sh  $pkgdir/usr/share/$pkgname
57   mv example-metadata.xml
58     $pkgdir/usr/share/$pkgname
59   mv *.pem $pkgdir/usr/share/$pkgname
60   rm -rf apache.config apache2.config
61   rm -rf *.dist shibd-*
62   ln -s shibboleth2.xml shibboleth.xml