diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-07 09:35:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-07 09:36:59 +0000 |
commit | 94c5d09f454a624f9a0eec01be68e36d0c5a47c8 (patch) | |
tree | ce7bab5fd660ae31ddc744ed36e049382e124a1a | |
parent | 558388f10a0fd7b392d8ab5761ccfddf79485ede (diff) | |
download | alpine_aports-94c5d09f454a624f9a0eec01be68e36d0c5a47c8.tar.bz2 alpine_aports-94c5d09f454a624f9a0eec01be68e36d0c5a47c8.tar.xz alpine_aports-94c5d09f454a624f9a0eec01be68e36d0c5a47c8.zip |
main/postgresql: add -contrib subpackage
-rw-r--r-- | main/postgresql/APKBUILD | 10 |
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 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=postgresql | 2 | pkgname=postgresql |
3 | pkgver=9.2.1 | 3 | pkgver=9.2.1 |
4 | pkgrel=1 | 4 | pkgrel=2 |
5 | pkgdesc="A sophisticated object-relational DBMS" | 5 | pkgdesc="A sophisticated object-relational DBMS" |
6 | url="http://www.postgresql.org/" | 6 | url="http://www.postgresql.org/" |
7 | arch="all" | 7 | arch="all" |
@@ -10,7 +10,7 @@ depends="postgresql-client" | |||
10 | install="$pkgname.pre-upgrade" | 10 | install="$pkgname.pre-upgrade" |
11 | depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev" | 11 | depends_dev="readline-dev openssl-dev zlib-dev libxml2-dev" |
12 | makedepends="$depends_dev" | 12 | makedepends="$depends_dev" |
13 | subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client" | 13 | subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client $pkgname-contrib" |
14 | patches="initdb.patch" | 14 | patches="initdb.patch" |
15 | source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2 | 15 | source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2 |
16 | $patches | 16 | $patches |
@@ -67,6 +67,12 @@ client() { | |||
67 | mv "$pkgdir"/usr/bin/psql "$subpkgdir"/usr/bin/ | 67 | mv "$pkgdir"/usr/bin/psql "$subpkgdir"/usr/bin/ |
68 | } | 68 | } |
69 | 69 | ||
70 | contrib() { | ||
71 | depends= | ||
72 | pkgdesc="Extension modules distributed with PostgreSQL" | ||
73 | cd "$_builddir" | ||
74 | make DESTDIR="$subpkgdir" -C contrib install || return 1 | ||
75 | } | ||
70 | 76 | ||
71 | md5sums="c0b4799ea9850eae3ead14f0a60e9418 postgresql-9.2.1.tar.bz2 | 77 | md5sums="c0b4799ea9850eae3ead14f0a60e9418 postgresql-9.2.1.tar.bz2 |
72 | de29e4cea00a3318a77587fbbc7b6243 initdb.patch | 78 | de29e4cea00a3318a77587fbbc7b6243 initdb.patch |