summaryrefslogtreecommitdiff
path: root/extra/postgresql
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-05-04 10:10:35 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-05-04 10:10:35 -0300
commitb9ab7ef683fd366635faca49342ee005846037ab (patch)
tree3bb0ff57a43d068e85dc5318887f700b071c7f8f /extra/postgresql
parent7046a475b24925c0ec7816ef7d2cdcf3b9cd4eb0 (diff)
parentab1410d33401cf1fc4a384bb0b2d9901c8fe8d14 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/gimmie/PKGBUILD community/glipper-old/PKGBUILD community/glipper/PKGBUILD community/lcms2/PKGBUILD community/libpanelappletmm/PKGBUILD community/panflute/PKGBUILD community/sensors-applet/PKGBUILD community/wtf/PKGBUILD community/xmonad-log-applet/PKGBUILD core/binutils/PKGBUILD core/tzdata/PKGBUILD extra/a52dec/PKGBUILD extra/aubio/PKGBUILD extra/automoc4/PKGBUILD extra/deskbar-applet/PKGBUILD extra/eject/PKGBUILD extra/ekiga/PKGBUILD extra/gnome-netstatus/PKGBUILD extra/gnome-python-desktop/PKGBUILD extra/htdig/PKGBUILD extra/ktorrent/PKGBUILD extra/libgail-gnome/PKGBUILD extra/libktorrent/PKGBUILD extra/libofa/PKGBUILD extra/netspeed-applet/PKGBUILD extra/openexr/PKGBUILD extra/postgresql/PKGBUILD extra/pulseaudio-mixer-applet/PKGBUILD extra/seahorse-plugins/PKGBUILD extra/telepathy-qt4/PKGBUILD libre/kernel26-libre/PKGBUILD testing/libtool/PKGBUILD testing/xfsprogs/PKGBUILD
Diffstat (limited to 'extra/postgresql')
-rw-r--r--extra/postgresql/PKGBUILD4
-rw-r--r--extra/postgresql/postgresql.install3
2 files changed, 5 insertions, 2 deletions
diff --git a/extra/postgresql/PKGBUILD b/extra/postgresql/PKGBUILD
index d5db674dc..e89eb4d9e 100644
--- a/extra/postgresql/PKGBUILD
+++ b/extra/postgresql/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 120393 2011-04-23 18:29:42Z dan $
+# $Id: PKGBUILD 122182 2011-05-02 17:54:57Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
pkgbase=postgresql
pkgname=('postgresql-libs' 'postgresql-docs' 'postgresql')
pkgver=9.0.4
-pkgrel=2
+pkgrel=3
arch=('i686' 'x86_64' 'mips64el')
url="http://www.postgresql.org"
license=('custom:PostgreSQL')
diff --git a/extra/postgresql/postgresql.install b/extra/postgresql/postgresql.install
index c3fa4fc3e..d65bb6a7f 100644
--- a/extra/postgresql/postgresql.install
+++ b/extra/postgresql/postgresql.install
@@ -1,4 +1,7 @@
post_install() {
+ if [ ! -d '/var/lib/postgres' ]; then
+ mkdir -p '/var/lib/postgres'
+ fi
getent group postgres >/dev/null || groupadd -g 88 postgres
getent passwd postgres >/dev/null || useradd -c 'PostgreSQL user' -u 88 -g postgres -d '/var/lib/postgres' -s /bin/bash postgres
passwd -l postgres >/dev/null