aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/postgresql/APKBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD
index d77f797c1e..04b73ed193 100644
--- a/main/postgresql/APKBUILD
+++ b/main/postgresql/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql
pkgver=9.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/"
arch="all"
@@ -10,7 +10,7 @@ depends="postgresql-client"
install="$pkgname.pre-upgrade"
depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev"
makedepends="$depends_dev"
-subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client"
+subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client $pkgname-contrib"
patches="initdb.patch"
source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2
$patches
@@ -67,6 +67,12 @@ client() {
mv "$pkgdir"/usr/bin/psql "$subpkgdir"/usr/bin/
}
+contrib() {
+ depends=
+ pkgdesc="Extension modules distributed with PostgreSQL"
+ cd "$_builddir"
+ make DESTDIR="$subpkgdir" -C contrib install || return 1
+}
md5sums="c0b4799ea9850eae3ead14f0a60e9418 postgresql-9.2.1.tar.bz2
de29e4cea00a3318a77587fbbc7b6243 initdb.patch