updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / giengerldap_auxprop / PKGBUILD
blobf94c8afc46f401e97b1f4c7554dbcf7df6456cf9
1 pkgname=giengerldap_auxprop
2 _cyrus_sasl_ver=2.1.23
3 pkgver=1.2.2
4 pkgrel=1
5 pkgdesc="ldap auth for SVN"
6 arch=(i686 x86_64)
7 url="http://southbrain.com/south/2008/06/writing-a-cyrus-sasl-ldap-auxp.html"
8 license=('GPL')
9 depends=()
10 makedepends=()
11 options=(!distcc)
12 source=(http://southbrain.com/software/ldap_auxprop/giengerldap_auxprop-$pkgver.tar.gz \
13         ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-${_cyrus_sasl_ver}.tar.gz)
14 md5sums=('636e8261198ea69372058e858fc496e9'
15          '2eb0e48106f0e9cd8001e654f267ecbc')
17 build() {
18   cd "$srcdir/cyrus-sasl-${_cyrus_sasl_ver}"
20   sed -i 's|#elif WITH_DES|#elif defined WITH_DES|' plugins/digestmd5.c
22   [ $NOEXTRACT -eq 1 ] || ./configure --prefix=/usr --with-ldap=/usr --with-saslauthd=/var/run/saslauthd --with-des=/usr
23   make || return 1
25   cd "$srcdir/giengerldap-$pkgver"
27   sed -i "s#CYRUSSASLPATH=.*#CYRUSSASLPATH=$srcdir/cyrus-sasl-${_cyrus_sasl_ver}#" compile
29   patch -p0 giengerldap.c <<EOF
30 119a120,125
31 >   char *_at = strchr(username, '@');
32 >   if(_at != NULL)
33 >   {
34 >     *_at = 0;
35 >   }
36
37 EOF
39   ./compile && make plugindir=$pkgdir/usr/lib/sasl2 install