# 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 name=postgresql version=8.4.4 release=1 source=(ftp://ftp.postgresql.org/pub/source/v$version/postgresql-$version.tar.bz2 \ nutyx-01.patch build.patch postgresql.pam) build() { source /etc/blfs-bootscripts wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$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 ../build.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 -j3 # install make DESTDIR=$PKG install # install license install -D -m644 COPYRIGHT $PKG/usr/share/licenses/$name/LICENSE cd ../$scripts-$scriptsversion patch -Np1 -i ../nutyx-01.patch make DESTDIR=$PKG install-postgresql # install pam file install -D -m644 $SRC/postgresql.pam $PKG/etc/pam.d/postgresql chown -v root:root $PKG/usr/share/doc/postgresql/html/* }