blob: c957032a64ec65aeb2c42367092a488dd561b4f0 (
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
|
# Description: Système de base de données relationnelles très complète basée sur les objects
# URL: http://www.postgresql.org/
# Maintainer: NuTyX core team
# Packager: lesibel at free dot fr
# Depends on: libxml2, linux-pam
# Run on: libxml2,linux-pam
name=postgresql
version=9.0.3
release=2
source=(ftp://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2 \
http://nutyx.meticul.eu/files/patchs/$name/{$name-9.0.3-nutyx-1.patch,$name-9.0.3-build-1.patch,postgresql.pam})
build() {
source /etc/blfs-bootscripts
# wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$scriptsversion.tar.bz2
tar xvf $scripts-$scriptsversion.tar.bz2
cd $name-$version
# patch to remove regress/test make target (won't build with it present)
patch -Np1 -i ../$name-9.0.3-build-1.patch
# configure
./configure --prefix=/usr --mandir=/usr/share/man \
--with-docdir=/usr/share/doc --with-openssl \
--enable-thread-safety \
--with-pam --with-libxml
# build
make
# install
make DESTDIR=$PKG install
# install license
install -D -m644 COPYRIGHT $PKG/usr/share/licenses/$name/LICENSE
cd ../$scripts-$scriptsversion
patch -Np1 -i ../$name-9.0.3-nutyx-1.patch
make DESTDIR=$PKG install-postgresql
# install pam file
install -D -m644 $SRC/postgresql.pam $PKG/etc/pam.d/postgresql
}
|