1 # Maintainer: Michael Trunner <archlinux@michael.trunner.de>
6 pkgdesc="libnss-pgsql 1.5.0-beta"
8 url="http://pgfoundry.org/projects/sysauth/"
11 depends=(postgresql-libs)
12 makedepends=(xmlto docbook-xsl)
15 conflicts=('authpgsql')
17 backup=('etc/nss-pgsql.conf' 'etc/nss-pgsql-root.conf')
20 changelog=$pkgname.changelog
21 source=(http://pgfoundry.org/frs/download.php/1878/$pkgname-$pkgver.tgz
22 beta-exit-in-library.patch
24 add_primary_group.patch
28 md5sums=('8d86f1dd93799c365691a3322e107732'
29 '35eb9dda236701973bd00abf522682d1'
30 '1306b001ddd33427693321f489d5dc36'
31 '28f18a19b8f35cc35448507ca322e1da'
32 '062b40577bd385fc3d45175d8af87efa'
33 '4ba1ac481b6c7be75bdd0975948a286b')
36 cd "$srcdir/$pkgname-$_pkgver"
37 patch -p 1 < ../libpg-fe.patch
38 patch -p 1 < ../beta-exit-in-library.patch
39 patch -p 1 < ../add_primary_group.patch
40 patch -p 1 < ../getgr-conf.patch
41 patch -p 1 < ../fallback.patch
42 ./configure --libdir=/lib --sysconfdir=/etc --prefix=/
44 make DESTDIR="$pkgdir/" install
45 install -D -o root -g root -m 644 conf/nss-pgsql.conf $pkgdir/etc/nss-pgsql.conf
46 install -D -o root -g root -m 600 conf/nss-pgsql-root.conf $pkgdir/etc/nss-pgsql-root.conf
47 install -D -o root -g root -m 644 conf/nsswitch.conf $pkgdir/usr/share/doc/nsspgsql/nsswitch.conf
48 install -D -o root -g root -m 644 conf/dbschema.sql $pkgdir/usr/share/doc/nsspgsql/dbschema.sql
49 install -D -o root -g root -m 644 README $pkgdir/usr/share/doc/nsspgsql/README
50 install -D -o root -g root -m 644 INSTALL $pkgdir/usr/share/doc/nsspgsql/INSTALL
51 install -D -o root -g root -m 644 ChangeLog $pkgdir/usr/share/doc/nsspgsql/ChangeLog
53 mkdir -p usr/share/doc/nsspgsql
54 mv doc/* usr/share/doc/nsspgsql
57 # vim:set ts=2 sw=2 et: