updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / libnss-pgsql / PKGBUILD
blobe9be1ebb9d2293c18a854a0406af356060c72223
1 # Maintainer: Michael Trunner <archlinux@michael.trunner.de>
2 pkgname=libnss-pgsql
3 pkgver=1.5.0_beta
4 _pkgver=1.5.0-beta
5 pkgrel=6
6 pkgdesc="libnss-pgsql 1.5.0-beta"
7 arch=('x86_64')
8 url="http://pgfoundry.org/projects/sysauth/"
9 license=('GPL')
10 groups=()
11 depends=(postgresql-libs)
12 makedepends=(xmlto docbook-xsl)
13 optdepends=()
14 provides=()
15 conflicts=('authpgsql')
16 replaces=()
17 backup=('etc/nss-pgsql.conf' 'etc/nss-pgsql-root.conf')
18 options=()
19 install=
20 changelog=$pkgname.changelog
21 source=(http://pgfoundry.org/frs/download.php/1878/$pkgname-$pkgver.tgz
22         beta-exit-in-library.patch
23         libpg-fe.patch
24         add_primary_group.patch
25         getgr-conf.patch
26         fallback.patch)
27 noextract=()
28 md5sums=('8d86f1dd93799c365691a3322e107732'
29          '35eb9dda236701973bd00abf522682d1'
30          '1306b001ddd33427693321f489d5dc36'
31          '28f18a19b8f35cc35448507ca322e1da'
32          '062b40577bd385fc3d45175d8af87efa'
33          '4ba1ac481b6c7be75bdd0975948a286b')
35 build() {
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=/
43   make
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
52   cd $pkgdir
53   mkdir -p usr/share/doc/nsspgsql
54   mv doc/* usr/share/doc/nsspgsql
55   rm -Rf doc
57 # vim:set ts=2 sw=2 et: