1 # Maintainer: Gereon Schomber <Gereon underscore Schomber at arcor dot de>
6 pkgdesc="A PAM module to authenticate users against postgresql (git version)"
9 url="http://gitorious.org/pam-pgsql"
10 depends=('postgresql-libs' 'libgcrypt')
13 conflicts=('pam_pgsql')
15 _gitroot="git://gitorious.org/pam-pgsql/pam-pgsql.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
37 ./configure --prefix=/ --docdir=/usr/share/doc/pam-pgsql
41 cd "$srcdir/$_gitname-build"
42 make DESTDIR="$pkgdir/" install || return 1