summaryrefslogtreecommitdiffstats
path: root/main/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'main/postgresql')
-rw-r--r--main/postgresql/APKBUILD6
-rw-r--r--main/postgresql/postgresql.pre-upgrade7
2 files changed, 6 insertions, 7 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD
index 205c3f89c..2c3266bc0 100644
--- a/main/postgresql/APKBUILD
+++ b/main/postgresql/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql
pkgver=8.4.0
-pkgrel=0
+pkgrel=1
pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/"
license="BSD"
@@ -12,7 +12,6 @@ subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client"
source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
$pkgname.initd
$pkgname.confd
- $install
"
build() {
@@ -49,5 +48,4 @@ client() {
md5sums="1f172d5f60326e972837f58fa5acd130 postgresql-8.4.0.tar.bz2
6dd7bd7c97252312357a255237115b38 postgresql.initd
-6218755fde294b7d17b77d280a9c9106 postgresql.confd
-a5c671b718f7adc9735b1ed89a5c26e1 postgresql.pre-upgrade"
+6218755fde294b7d17b77d280a9c9106 postgresql.confd"
diff --git a/main/postgresql/postgresql.pre-upgrade b/main/postgresql/postgresql.pre-upgrade
index 358e9986b..989e02167 100644
--- a/main/postgresql/postgresql.pre-upgrade
+++ b/main/postgresql/postgresql.pre-upgrade
@@ -1,8 +1,9 @@
#!/bin/sh
-current="$1"
-compare=$(apk version -t $current 8.4)
+new="$1"
+old="$2"
+compare=$(apk version -t "$old" 8.4)
# check if we upgrade from earlier than 8.4 and if it is running
if [ "$compare" != "<" ] || ! /etc/init.d/postgresql --quiet status; then
@@ -23,7 +24,7 @@ cat <<EOF
* /etc/init.d/postgresql stop
* apk add -u postgresql
* /etc/init.d/postgresql setup
-* /etc/init.d/postgresl start
+* /etc/init.d/postgresql start
* psql -U ${PGUSER:-postgres} -f dumpfile
*
EOF