aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-11-07 09:35:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-07 09:36:59 +0000
commit94c5d09f454a624f9a0eec01be68e36d0c5a47c8 (patch)
treece7bab5fd660ae31ddc744ed36e049382e124a1a /main
parent558388f10a0fd7b392d8ab5761ccfddf79485ede (diff)
downloadaports-94c5d09f454a624f9a0eec01be68e36d0c5a47c8.tar.bz2
aports-94c5d09f454a624f9a0eec01be68e36d0c5a47c8.tar.xz
main/postgresql: add -contrib subpackage
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