diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-07 09:12:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-07 09:12:09 +0000 |
commit | 558388f10a0fd7b392d8ab5761ccfddf79485ede (patch) | |
tree | 528f0c4558792d25fd50168e6c23ef649c63397c /main/postgresql/APKBUILD | |
parent | b3b060d72e80703b36092bce96ad5490b313eeb7 (diff) | |
download | aports-558388f10a0fd7b392d8ab5761ccfddf79485ede.tar.bz2 aports-558388f10a0fd7b392d8ab5761ccfddf79485ede.tar.xz |
main/postgresql: fix init scripts for 9.2
- change some variables, {NICE,RUDE,FORCE}_TIMEOUT to correspond with
gentoo variables, while still beeing backawards compatible
- change data dir to 9.2
- patch initdb to not suggest how to start postgresql
Diffstat (limited to 'main/postgresql/APKBUILD')
-rw-r--r-- | main/postgresql/APKBUILD | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD index e792fcd2f7..d77f797c1e 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=0 +pkgrel=1 pkgdesc="A sophisticated object-relational DBMS" url="http://www.postgresql.org/" arch="all" @@ -11,15 +11,26 @@ 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" +patches="initdb.patch" source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2 + $patches $pkgname.initd $pkgname.confd pg-restore.initd pg-restore.confd " +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $patches; do + msg $i + patch -p1 -i "$srcdir"/$i || return 1 + done +} + build() { - cd "$srcdir"/$pkgname-$pkgver || return 1 + cd "$_builddir" ./configure --prefix=/usr \ --mandir=/usr/share/man \ --with-openssl \ @@ -29,7 +40,7 @@ build() { } package() { - cd "$srcdir"/$pkgname-$pkgver || return 1 + cd "$_builddir" make DESTDIR="$pkgdir" install install-docs || return 1 install -D -m755 "$srcdir"/postgresql.initd \ @@ -58,7 +69,8 @@ client() { md5sums="c0b4799ea9850eae3ead14f0a60e9418 postgresql-9.2.1.tar.bz2 -4d2f5be74fae4895db3d993e69bbda10 postgresql.initd -b609795f715cefcc30b08e4ed01f4416 postgresql.confd -df2d90fc713b4e89fd21abb9e36cd688 pg-restore.initd +de29e4cea00a3318a77587fbbc7b6243 initdb.patch +01cc8d4a4cbc77a7b6f84344155232d5 postgresql.initd +ca9759d29dc86402858821d5fdec48a1 postgresql.confd +d2a51db4436e550d56bb1e96699faef4 pg-restore.initd bf45384752b320b369f1425939763178 pg-restore.confd" |