[arch-commits] CVS update of extra/daemons/postgresql (PKGBUILD)
Paul Mattal
paul at archlinux.org
Fri Oct 19 02:13:12 UTC 2007
Date: Thursday, October 18, 2007 @ 22:13:12
Author: paul
Path: /home/cvs-extra/extra/daemons/postgresql
Modified: PKGBUILD (1.39 -> 1.40)
upgpkg: postgresql 8.2.5-1
upgrade to 8.2.5
----------+
PKGBUILD | 47 ++++++++++++++++++++++++++++++-----------------
1 file changed, 30 insertions(+), 17 deletions(-)
Index: extra/daemons/postgresql/PKGBUILD
diff -u extra/daemons/postgresql/PKGBUILD:1.39 extra/daemons/postgresql/PKGBUILD:1.40
--- extra/daemons/postgresql/PKGBUILD:1.39 Fri May 11 11:59:44 2007
+++ extra/daemons/postgresql/PKGBUILD Thu Oct 18 22:13:12 2007
@@ -1,31 +1,44 @@
-# $Id: PKGBUILD,v 1.39 2007/05/11 15:59:44 tpowa Exp $
-# Maintainer: Judd <jvinet at zeroflux.org>
+# $Id: PKGBUILD,v 1.40 2007/10/19 02:13:12 paul Exp $
+# Maintainer: Paul Mattal <paul at archlinux.org>
pkgname=postgresql
-pkgver=8.2.4
-pkgrel=2
+pkgver=8.2.5
+pkgrel=1
pkgdesc="A sophisticated object-relational DBMS"
arch=(i686 x86_64)
+license=('BSD')
url="http://www.postgresql.org/"
-depends=('postgresql-libs>=8.2.4')
+depends=('postgresql-libs>=8.2.5')
source=(ftp://ftp.postgresql.org/pub/source/v${pkgver}/postgresql-base-${pkgver}.tar.bz2 \
postgresql build.patch)
-md5sums=('5c0576627c9969a3cedb6b014fb6ae05' 'd19658ac1b00ff51e3335386ed6c262f'\
+md5sums=('5879b205b635f3fb905f6015c50f4edd' 'd19658ac1b00ff51e3335386ed6c262f'\
'4d74f4227dc5e12bf95b3490758d86c9')
build() {
- export MAKEFLAGS="-j1"
- cd ${startdir}/src/${pkgname}-${pkgver}
- patch -Np1 -i ../build.patch || return 1
- ./configure --prefix=/usr --with-openssl --datadir=/usr/share/postgresql
+ cd ${startdir}/src/$pkgname-$pkgver || return 1
+
+ # patch to remove regress/test make target (won't build with it present)
+ patch -Np1 -i ../build.patch || return 1
+
+ # configure
+ ./configure --prefix=/usr --with-openssl --datadir=/usr/share/postgresql \
+ || return 1
sed -i -e '/interfaces/d' src/Makefile || return 1
+
+ # build
make || return 1
- make DESTDIR=${startdir}/pkg install
- rm -rf ${startdir}/pkg/usr/include/postgresql/internal
- rm -rf ${startdir}/pkg/usr/include/libpq
- rm -f ${startdir}/pkg/usr/include/*
- rm -f ${startdir}/pkg/usr/bin/pg_config
- rm -f ${startdir}/pkg/usr/lib/libpgport.a
+ # install
+ make DESTDIR=${startdir}/pkg install || return 1
+
+ # clean up unneeded installed items
+ rm -rf $startdir/pkg/usr/include/postgresql/internal || return 1
+ rm -rf $startdir/pkg/usr/include/libpq || return 1
+ # the below line is expected to produce an error; fix this one day
+ rm -f $startdir/pkg/usr/include/*
+ rm -f $startdir/pkg/usr/bin/pg_config || return 1
+ rm -f $startdir/pkg/usr/lib/libpgport.a || return 1
- install -D -m755 ../postgresql ${startdir}/pkg/etc/rc.d/postgresql
+ # install launch script
+ install -D -m755 ../postgresql $startdir/pkg/etc/rc.d/postgresql \
+ || return 1
}
More information about the arch-commits
mailing list