blob: abf85c79a2e0c7efa236f08327d937c1381f76b9 (
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
51
52
53
54
55
56
57
58
59
60
61
|
# Description: A sophisticated object-relational DBMS
# URL: http://www.postgresql.org/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: postgresql-libs, libxml2, readline
name=postgresql
version=8.4.1
release=1
source=(ftp://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2 \
postgresql postgresql.confd build.patch postgresql.pam)
build() {
cd $name-$version
# patch to remove regress/test make target (won't build with it present)
patch -Np1 -i ../build.patch
# configure
./configure --prefix=/usr --mandir=/usr/share/man \
--with-docdir=/usr/share/doc --with-openssl \
--datadir=/srv/pgsql/data --with-pam --with-libxml
sed -i -e '/interfaces/d' src/Makefile
# build
make
# install
make DESTDIR=$PKG install
(
cd contrib/adminpack;
make
make DESTDIR=$PKG install
);
# clean up unneeded installed items
# rm -rf $PKG/usr/include/postgresql/internal
# rm -rf $PKG/usr/include/libpq
# the below line is expected to produce an error; fix this one day
# rm -rf $PKG/usr/include/*
# rm -f $PKG/usr/bin/pg_config
# Maintaining the lib below because of qt
#rm -f $startdir/pkg/usr/lib/libpgport.a || return 1
# install launch script
install -D -m755 ../postgresql $PKG/etc/rc.d/postgresql
# install license
install -D -m644 COPYRIGHT $PKG/usr/share/licenses/$name/LICENSE
# install conf file
install -D -m644 $SRC/postgresql.confd $PKG/etc/conf.d/postgresql
install -D -m644 $SRC/postgresql.pam $PKG/etc/pam.d/postgresql
# chown root:root $PKG/usr/share/doc/postgresql/html/*
}
|