blob: 5fc1a235d1d6e4bf48b0aacb6c07a1f2336cadb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postgresql
pkgver=8.3.7
pkgrel=0
pkgdesc="A sophisticated object-relational DBMS"
url="http://www.postgresql.org/"
license="BSD"
depends="uclibc openssl libpq bbsuid"
makedepends="readline-dev openssl-dev"
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
"
build() {
cd "$srcdir"/$pkgname-$pkgver || return 1
./configure --prefix=/usr \
--mandir=/usr/share/man \
--with-docdir=/usr/share/doc \
--with-openssl \
|| return 1
make || return 1
make DESTDIR="$pkgdir" install || return 1
install -D -m755 "$srcdir"/postgresql.initd \
"$pkgdir"/etc/init.d/postgresql
install -D -m644 "$srcdir"/postgresql.confd \
"$pkgdir"/etc/conf.d/postgresql || return 1
}
libpq() {
depends="uclibc openssl"
pkgdesc="PostgreSQL libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libpq.so* "$subpkgdir"/usr/lib/
}
client() {
depends="uclibc openssl libpq readline"
pkgdesc="PostgreSQL client"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/psql "$subpkgdir"/usr/bin/
}
md5sums="7b7e91a2221e55fe1b167e663217a96d postgresql-8.3.7.tar.bz2
7ed7e95246798ac3d5474ed12bf98e98 postgresql.initd
ea3320c56a22f5c305199886c2766387 postgresql.confd"
|